2015-11-24 Steve Ellcey <sellcey@imgtec.com>
[official-gcc.git] / gcc / ChangeLog
blob30ff440cd0520c66665204791ab2695b8e387ae6
1 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
3         * frame-header-opt.c (gate): Check for optimize > 0.
4         (has_inlined_assembly): New function.
5         (needs_frame_header_p): Remove is_leaf_function check,
6         add argument type check.
7         (callees_functions_use_frame_header): Add is_leaf_function
8         and has_inlined_assembly calls..
9         (set_callers_may_not_allocate_frame): New function.
10         (frame_header_opt): Add is_leaf_function call, add
11         set_callers_may_not_allocate_frame call.
12         * config/mips/mips.c (mips_compute_frame_info): Add check
13         to see if callee saved regs can be put in frame header.
14         (mips_expand_prologue): Add check to see if step1 is zero,
15         fix cfa restores when using frame header to store regs.
16         (mips_can_use_return_insn): Check to see if registers are
17         stored in frame header.
18         * config/mips/mips.h (machine_function): Add
19         callers_may_not_allocate_frame and
20         use_frame_header_for_callee_saved_regs fields.
22 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
24         PR rtl-optimization/68520
25         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
26         its bit was already set in BB_WITH.
28 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
30         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
31         double check that type is main variant.
32         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
33         variant.
34         (verify_type_variant): Verify that variants have no
35         TYPE_ALIAS_SET_KNOWN_P set
36         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
37         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
38         only for main variants; stream TYPE_ALIAS_SET as a bit.
39         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
40         accordingly.
42 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
44         * tree.c (make_vector_type): Properly compute canonical type of the
45         main variant.
46         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
47         a main variant.
49 2015-11-24  Nathan Sidwell  <nathan@acm.org>
51         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
52         VOIDmode, don't alter incoming mode.
53         (nvptx_split_reg_p): Delete.
54         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
55         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
56         maybe_split_mode calls.
57         (nvptx_print_operand): Use maybe_split_mode.
59 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
61         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
62         only for types where LTO sets them.
63         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
64         (make_vector_type): Likewise.
65         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
66         * tree.h (canonical_type_used_p): New inline.
67         * alias.c (get_alias_set): Handle structural equality for all
68         types that pass canonical_type_used_p.
69         (record_component_aliases): Look through all types with
70         record_component_aliases for possible pointers; sanity check that
71         the alias sets match.
73 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
75         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
77 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
79         * tree.c (free_node): New function.
80         (type_hash_canon): Use it.
81         * tree.h (free_node): Declare.
83 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
84             Michael Meissner  <meissner@linux.vnet.ibm.com>
86         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
87         (Fv2): New mode attribute to be used when ISA 2.07 instructions
88         are used on SF values, and ISA 2.06 instructions on DF values.
89         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
90         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
91         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
92         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
93         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
94         (fre<Fs>): Use <Fv2> instead of <Fv>.
95         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
96         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
97         (xsrdpi<mode>): Add support for the lround function.
98         (lround<mode>di2): Likewise.
99         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
100         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
101         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
102         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
104 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
105             Sebastian Pop  <s.pop@samsung.com>
107         PR tree-optimization/67984
108         * graphite-isl-ast-to-gimple.c (is_constant): New.
109         (get_rename): Call is_constant.
110         (get_new_name): Same.
112 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
113             Sebastian Pop  <s.pop@samsung.com>
115         * graphite-dependences.c: Only include graphite.h.
116         * graphite-isl-ast-to-gimple.c: Same.
117         * graphite-optimize-isl.c: Same.
118         * graphite-poly.c: Same.
119         * graphite-scop-detection.c: Same.
120         * graphite-sese-to-poly.c: Same.
121         * graphite.c: Same.
122         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
123         * graphite-poly.h: Same.
124         * graphite-scop-detection.h: Same.
125         * graphite.h: New.
127 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
129         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
130         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
131         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
132         function already takes care of checking what it can emit.
134 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
136         * doc/invoke.texi (-fpic): Add the AArch64 limit.
137         (-fPIC): Add AArch64.
139 2015-11-24  Tom de Vries  <tom@codesourcery.com>
141         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
142         (pass_lim::execute): Allow to run outside pass_tree_loop.
144 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
146         * gcc/config/aarch64/aarch64.md (add<mode>3):
147         Block early expansion into 2 add instructions.
148         (add<mode>3_pluslong): New pattern to combine complex
149         immediates into 2 additions.
151 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
153         PR target/66217
154         PR target/67677
155         PR target/68332
156         * config/rs6000/predicates.md (and_operand): Check that the operand
157         is a const_int before calling rs6000_is_valid_and_mask.
159 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
161         * config/aarch64/aarch64.md (*condjump): Rename to...
162         (condjump): ... This.
163         (*compare_condjump<mode>): New define_insn_and_split.
164         (*compare_cstore<mode>_insn): Likewise.
165         (*cstore<mode>_insn): Rename to...
166         (cstore<mode>_insn): ... This.
167         * config/aarch64/iterators.md (CMP): Handle ne code.
168         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
170 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
172         PR target/68497
173         * config/i386/i386.c (output_387_binary_op): Fix assertion for
174         -fno-checking case.
176 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
178         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
179         (val_ssa_equiv_hash_traits::remove): Likewise.
180         (pass_uncprop::execute): Adjust.
182 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
184         * hash-map-traits.h (simple_hashmap_traits ::remove): call
185         destructors on values that are being removed.
186         * mem-stats.h (hash_map): Pass type of values to
187         simple_hashmap_traits.
188         * tree-sra.c (sra_deinitialize): Remove work around for hash
189         maps not destructing values.
190         * genmatch.c (sinfo_hashmap_traits): Adjust.
191         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
193 2015-11-24  Richard Biener  <rguenther@suse.de>
194             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
196         PR middle-end/68375
197         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
198         bogus assertion.
200 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
202         PR target/68483
203         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
204         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
205         returns false.
206         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
207         whenever first is nelt or above.  Don't mask expected with
208         2 * nelt - 1.
210 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
212         PR c/68337
213         * gimple-fold.c: Include ipa-chkp.h.
214         (gimple_fold_builtin_memory_op): Don't fold call if we
215         are going to instrument it and it may copy pointers.
217 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
218             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
220         PR rtl-optimization/68194
221         PR rtl-optimization/68328
222         PR rtl-optimization/68185
223         * ree.c (combine_reaching_defs): Reject copy_needed case if
224         copies_list is not empty.
226 2015-11-24  Richard Biener  <rguenther@suse.de>
228         PR middle-end/68221
229         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
230         use mem_ref_offset.
232 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
234         PR rtl-optimization/68381
235         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
236         is poisoned.
238 2015-11-23  Nick Clifton  <nickc@redhat.com>
239             Jeff Law  <law@redhat.com>
241         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
242         the source/dest of the target extension require a different number of
243         hard registers.
244         (combine_set_extension): Remove #if 0 code.
246 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
247             Sebastian Pop  <s.pop@samsung.com>
249         PR tree-optimization/68314
250         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
251         * graphite-poly.c (new_scop): Remove original_schedule.
252         (free_scop): Same.
253         * graphite-poly.h (struct scop): Same.
254         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
255         (build_pbb_scattering_polyhedrons): Add back.
256         (build_scop_minimal_scattering): Remove.
257         (build_scop_scattering): Add back.
258         (build_scop_original_schedule): Remove.
259         (build_poly_scop): Revert to only call build_scop_scattering.
261 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
262             Sebastian Pop  <s.pop@samsung.com>
264         PR tree-optimization/68493
265         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
266         missing early return when codegen_error is set.
268 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
269             Sebastian Pop  <s.pop@samsung.com>
271         PR tree-optimization/68279
272         * graphite-poly.c (new_scop): Remove poly_scop_p.
273         * graphite-poly.h (struct scop): Same.
274         (build_poly_scop): Declare.
275         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
276         (cleanup_loop_iter_dom): New.
277         (build_loop_iteration_domains): Early return when scev analysis fails.
278         (create_pw_aff_from_tree): Same.
279         (add_condition_to_pbb): Same.
280         (add_conditions_to_domain): Same.
281         (add_conditions_to_constraints): Same.
282         (build_scop_iteration_domain): Same.
283         (build_poly_scop): Same.  Do not initialize poly_scop_p.
284         * graphite-sese-to-poly.h: Remove.
285         * graphite.c: Do not include graphite-sese-to-poly.h.
286         (graphite_transform_loops): Stop before code generation when
287         build_poly_scop fails.
288         * sese.c (scalar_evolution_in_region): Add fixme note about scev
289         analysis.
291 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
292             Sebastian Pop  <s.pop@samsung.com>
294         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
295         Remove call to update_ssa.
296         * sese.c (sese_insert_phis_for_liveouts): Same.
298 2015-11-23  Marek Polacek  <polacek@redhat.com>
300         PR tree-optimization/68455
301         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
302         extract_range_from_multiplicative_op_1 on symbolic ranges.
304 2015-11-23  Richard Henderson  <rth@redhat.com>
306         * optabs.def (uaddv4_optab, usubv4_optab): New.
307         * internal-fn.c (expand_addsub_overflow): Use them.
308         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
310         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
311         to reversed operands.
312         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
313         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
314         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
315         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
316         (*add<SWI>3_cconly_overflow_2): New.
317         (*add<SWI>3_cc_overflow_2): New.
318         (*addsi3_zext_cc_overflow_2): New.
320 2015-11-23  Richard Biener  <rguenther@suse.de>
322         PR tree-optimization/68465
323         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
324         Also record equalities from multiple predecessor blocks if
325         only one non-backedge exists.
327 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
329         PR target/68363
330         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
331         that are not INSN_P.
333 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
335         * config/aarch64/aarch64-builtins.c
336         (aarch64_gimple_fold_builtin): Fold FMULX.
338 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
340         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
341         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
342         after GCC header files and before graphite header files.
343         * graphite-dependences.c: Same.
344         * graphite-isl-ast-to-gimple.c: Same.
345         * graphite-optimize-isl.c: Same.
346         * graphite-poly.c: Same.
347         * graphite-scop-detection.c: Same.
348         * graphite-sese-to-poly.c: Same.
349         * graphite.c: Same.
351 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
352             Jiong Wang  <jiong.wang@arm.com>
354         PR tree-optimization/68317
355         PR tree-optimization/68326
356         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
357         final min and max are not infinity.
359 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
360             Richard Biener  <rguenther@suse.de>
362         PR tree-optimization/68327
363         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
364         compute vectype for non-relevant mask producers.
365         * gcc/tree-vect-stmts.c (vectorizable_comparison): Check stmt
366         relevance earlier.
368 2015-11-23  Tom de Vries  <tom@codesourcery.com>
370         PR tree-optimization/68460
371         * tree-parloops.c (gather_scalar_reductions): Also call
372         free_stmt_vec_info_vec if simple_loop_info == NULL.
374 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
376         * opts.c (finish_options): Allow -fsanitize-recover=address for
377         userspace sanitization.
378         * asan.c (asan_expand_check_ifn): Redefine recover_p.
379         * doc/invoke.texi (fsanitize-recover): Update documentation.
381 2015-11-23  Tom de Vries  <tom@codesourcery.com>
383         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
385 2015-11-23  Richard Biener  <rguenther@suse.de>
387         PR tree-optimization/68445
388         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
389         two different strides.
391 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
393         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
394         * config/s390/s390.c (s390_check_symref_alignment): Use new
395         symref flags, early abort on wrong alignment
396         (s390_secondary_reload): Use new symref flags.
397         (s390_encode_section_info): Likewise.
398         * config/s390/predicates.md: Likewise.
400 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
402         PR target/68390
403         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
404         for indirect function call.
406 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
408         * config/aarch64/aarch64-simd.md
409         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
410         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
411         (*aarch64_mulx_elt_to_64v2df): Likewise.
412         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
413         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
414         (vmulx_lane_f64): Likewise.
415         (vmulxq_lane_f32): Refactored & moved.
416         (vmulxq_lane_f64): Likewise.
417         (vmulx_laneq_f32): New.
418         (vmulx_laneq_f64): Likewise.
419         (vmulxq_laneq_f32): Likewise.
420         (vmulxq_laneq_f64): Likewise.
421         (vmulxs_lane_f32): Likewise.
422         (vmulxs_laneq_f32): Likewise.
423         (vmulxd_lane_f64): Likewise.
424         (vmulxd_laneq_f64): Likewise.
426 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
428         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
429         In LTO we do not compute TYPE_CANONICAL of pointers.
430         (gimple_canonical_types_compatible_p): Improve coments; sanity check
431         that pointers do not have canonical type that would make us believe
432         they are different.
433         * alias.c (get_alias_set): Do structural type equality on pointers;
434         enable pointer path for LTO; also glob pointer to vector with pointer
435         to vector element; glob pointers and references for LTO; do more strict
436         sanity checking about build_pointer_type returning the canonical type
437         which is also the main variant.
438         (record_component_aliases): When component type is pointer and we
439         do LTO; record void_type_node alias set.
441 2015-11-21  Nathan Sidwell  <nathan@acm.org>
443         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
445         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
446         leading blank line.
447         (write_func_decl_from_insn): Likewise.
448         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
449         (nvptx_file_end): Likewise.
450         (nvptx_function_end): Undent output.
451         (nvptx_expand_call): Fix formatting.
452         (nvptx_output_call_insn): Indent output.
453         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
454         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
456 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
458         PR debug/66432
459         * tree-inline.c (copy_debug_stmt): If
460         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
461         in decl_debug_args, don't call remap_gimple_op_r on it.
463 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
465         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
466         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
467         Check that all record types are complete.
468         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
469         compare alias sets for types w/o alias sets.
471 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
473         * config/sparc/sparc.md (umulxhi_vis): Move around.
474         (*umulxhi_sp64): Likewise.
475         (umulxhi_v8plus): Likewise.
476         (xmulx_vis): Likewise.
477         (*xmulx_sp64): Likewise.
478         (xmulx_v8plus): Likewise.
479         (xmulxhi_vis): Likewise.
480         (*xmulxhi_sp64): Likewise.
481         (xmulxhi_v8plus): Likewise.
483 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
485         PR 62314
486         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
487         (class layout): Update comment
488         (layout::print_any_fixits): New method.
489         (layout::move_to_column): New method.
490         (diagnostic_show_locus): Add call to layout.print_any_fixits.
492 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
494         PR middle-end/68221
495         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
496         has non-zero bias, subtract it in integer type instead of
497         pointer plus of negated bias.
499         PR middle-end/68339
500         * omp-low.c (expand_simd_clones): Call node->get_body () before
501         allocating stuff in GC.
503 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
505         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
507 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
509         * config/aarch64/aarch64.md (predicated): Copy attribute from
510         "arm.md".
511         * config/arm/arm.md (predicated): Added description.
513 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
515         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
516         for unaligned_access.
517         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
518         from matching condition.
519         (unaligned_loadhis): Likewise.
520         (unaligned_loadhiu): Likewise.
521         (unaligned_storesi): Likewise.
522         (unaligned_storehi): Likewise.
524 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
526         PR target/68149
527         * config/arm/arm.md (unaligned_loaddi): Delete.
528         (unaligned_storedi): Likewise.
529         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
530         unaligned DImode memory ops.  Instead perform two back-to-back
531         unaligned SImode ops.
533 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
534             James Norris  <jnorris@codesourcery.com>
536         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
537         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
539 2015-11-20  Alan Hayward <alan.hayward@arm.com>
541         PR tree-optimization/68413
542         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
543         evolution base
544         (vectorizable_reduction): Use cached base
546 2015-11-20  Tom de Vries  <tom@codesourcery.com>
548         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
549         dump-file string.
550         (try_create_reduction_list): Same.  Fix typo in dump-file string.
552 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
554         * doc/md.texi (Standard Names): Move entry for addptr3 around,
555         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
556         glitch in entries for cbranch4 and jump.
558 2015-11-20  Tom de Vries  <tom@codesourcery.com>
560         PR tree-optimization/68373
561         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
562         of ...
563         (scev_const_prop): ... here.
564         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
565         * tree-parloops.c (try_create_reduction_list): Call
566         final_value_replacement_loop.
568 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
570         PR tree-optimization/52272
571         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
572         (struct iv_common_cand_hasher): New struct.
573         (iv_common_cand_hasher::hash): New function.
574         (iv_common_cand_hasher::equal): New function.
575         (struct ivopts_data): New fields, iv_common_cand_tab and
576         iv_common_cands.
577         (tree_ssa_iv_optimize_init): Initialize above fields.
578         (record_common_cand, common_cand_cmp): New functions.
579         (add_iv_candidate_derived_from_uses): New function.
580         (add_iv_candidate_for_use): Record iv_common_cands derived from
581         iv use in hash table, instead of adding candidates directly.
582         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
583         (record_important_candidates): Add important candidates to iv uses'
584         related_cands.  Always keep related_cands for future use.
585         (try_add_cand_for): Use iv uses' related_cands.
586         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
587         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
589 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
591         * config/s390/s390.md ("bswaphi2"): New pattern.
593 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
595         * config/s390/s390.md (GPR1_REGNUM): New constant.
596         ("*trunc<BFP:mode><DFP_ALL:mode>2")
597         ("*trunc<DFP_ALL:mode><BFP:mode>2")
598         ("trunc<BFP:mode><DFP_ALL:mode>2")
599         ("trunc<DFP_ALL:mode><BFP:mode>2")
600         ("*extend<BFP:mode><DFP_ALL:mode>2")
601         ("*extend<DFP_ALL:mode><BFP:mode>2")
602         ("extend<BFP:mode><DFP_ALL:mode>2")
603         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
605 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
606             Sebastian Pop  <s.pop@samsung.com>
608         PR tree-optimization/68428
609         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
610         over basic blocks outside the scop.
612 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
613             Sebastian Pop  <s.pop@samsung.com>
615         PR tree-optimization/68341
616         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
617         gcc_unreachable and safely fail codegen.
618         (copy_loop_close_phi_args): Do not insert merge phis in a basic
619         block with loop phi nodes.
620         (edge_for_new_close_phis): New.
621         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
623 2015-11-19  Nathan Sidwell  <nathan@acm.org>
625         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
626         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
627         (nvptx_declare_objec_name): Likewise.
629 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
631         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
632         (get_false_edge_from_guard_bb): Move...
633         * sese.c (get_false_edge_from_guard_bb)
634         (get_true_edge_from_guard_bb): ... here.
636 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
638         Revert
639         2015-11-18  Alan Modra  <amodra@gmail.com>
641         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
642         type-limits warning.
645 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
647         * tree.h (desired_pro_or_demotion_p): New function.
648         * tree-vrp.c (simplify_cond_using_ranges): Call it.
650 2015-11-19  Michael Matz  <matz@suse.de>
652         * fwprop.c (update_uses): Use flag_checking instead of
653         gcc_checking_assert.
655 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
657         * doc/gty.texi (Support for inheritance): Fix missing
658         parentheses in example.
660 2015-11-19  Marek Polacek  <polacek@redhat.com>
662         PR tree-optimization/68431
663         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
665 2015-11-19  Nathan Sidwell  <nathan@acm.org>
667         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
668         atomic_exchange<mode>): Input values can be immediates.
670 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
672         PR lto/61313
673         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
674         by the user.
675         * configure: Regenerate.
677 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
679         PR target/68408
680         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
681         (DTORS_SECTION_ASM_OP): Likewise.
683 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
685         PR rtl-optimization/68376
686         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
687         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
689 2015-11-19  Richard Biener  <rguenther@suse.de>
691         PR middle-end/68117
692         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
693         redirect_edge_var_map_destroy.
695 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
697         PR target/67770
698         * config/i386/i386.md (simple_return): Disable if
699         ix86_static_chain_on_stack is true.
701 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
703         PR bootstrap/68393
704         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
705         destinations.
707 2015-11-18  Jeff Law  <law@redhat.com>
709         PR tree-optimization/68198
710         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
711         between threading a multi-way branch and a thread path that contains
712         a multi-way branch.  Disallow the case where a path contains a
713         multi-way branch and does not thread a multi-way branch.
714         (thread_through_all_blocks): Update comment.
716 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
718         PR c/65083
719         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
720         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
721         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
722         functions before defining as macros.
724 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
726         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
727         (nvptx_record_offload_symbol): Remove code compensating for lack
728         of default dimension handling.
729         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
731 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
733         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
734         type to bool for early exit.
735         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
736         in case of error.
737         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
738         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
739         predecessor dominates the other.
740         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
741         element is not found it returns -1.
742         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
743         out early when codegen fails.
744         (graphite_regenerate_ast_isl): Remove codegen region when pending
745         phis could not be generated.
747 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
749         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
750         semicolon.
751         (class translate_isl_ast_to_gimple): Indentation.
752         (translate_pending_phi_nodes): Comment.
753         (add_parameters_to_ivs_params): Moved from sese.c inside class
754         translate_isl_ast_to_gimple.
755         (get_max_schedule_dimensions): Same.
756         (generate_isl_context): Same.
757         (extend_schedule): Same.
758         (generate_isl_schedule): Same.
759         (set_options): Same.
760         (scop_to_isl_ast): Same.
761         (is_valid_rename): Same.
762         (get_rename): Same.
763         (get_rename_from_scev): Same.
764         (get_def_bb_for_const): Same.
765         (get_new_name): Same.
766         (collect_all_ssa_names): Same.
767         (copy_loop_phi_args): Same.
768         (copy_loop_phi_nodes): Same.
769         (copy_loop_close_phi_args): Same.
770         (copy_loop_close_phi_nodes): Same.
771         (copy_cond_phi_args): Same.
772         (copy_cond_phi_nodes): Same.
773         (graphite_copy_stmts_from_block): Same.
774         (copy_bb_and_scalar_dependences): Same.
775         (add_phi_arg_for_new_expr): Same.
776         (rename_uses): Same.
777         (set_rename): Same.
778         (set_rename_for_each_def): Same.
779         (gsi_insert_earliest): Same.
780         (rename_all_uses): Same.
781         (codegen_error_p): Same.
782         (print_isl_ast_node): Same.
783         (translate_isl_ast_for_loop): Call function codegen_error_p.
784         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
785         (translate_isl_ast_node_user): Make nb_loops const and release
786         iv_map before exit.
787         (get_true_edge_from_guard_bb): Move all free-functions early.
788         (get_false_edge_from_guard_bb): Same.
789         (bb_contains_loop_close_phi_nodes): Same.
790         (bb_contains_loop_phi_nodes): Same.
791         (is_loop_closed_ssa_use):  Same.
792         (number_of_phi_nodes): Same.
793         (phi_uses_name): Same.
794         (later_of_the_two): Same.
795         (substitute_ssa_name):
796         (get_edges): Same.
797         (get_loc): Same.
798         (get_loop_init_value): Same.
799         (find_init_value): Same.
800         (find_init_value_close_phi): Same.
801         (ast_build_before_for): Same.
802         (graphite_regenerate_ast_isl): Formatting changes.
803         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
804         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
805         (set_rename): Same.
806         (gsi_insert_earliest): Same.
807         (collect_all_ssa_names): Same.
808         (rename_all_uses): Same.
809         (rename_uses): Same.
810         (get_def_bb_for_const): Same.
811         (copy_loop_phi_nodes): Same.
812         (copy_loop_close_phi_args): Same.
813         (copy_loop_close_phi_nodes): Same.
814         (copy_cond_phi_args): Same.
815         (copy_cond_phi_nodes): Same.
816         (set_rename_for_each_def): Same.
817         (graphite_copy_stmts_from_block): Same.
818         (copy_bb_and_scalar_dependences): Same.
819         (if_region_set_false_region): Same.
820         (scev_analyzable_p): Same.
821         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
823 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
825         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
826         commit from r125920 for FreeBSD.
828 2015-11-18  Jason Merrill  <jason@redhat.com>
830         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
831         to be vecs of vecs.
832         (add_finalizer): Split out from ggc_internal_alloc.
833         (ggc_handle_finalizers): Run finalizers for the current depth.
834         (init_ggc, ggc_pch_read): Reserve space for finalizers.
836 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
838         PR target/68410
839         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
840         from || expression.
842 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
844         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
845         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
846         and atmega328pb.
847         * doc/avr-mmcu.texi: Regenerate.
849 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
851         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
852         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
853         (struct bb_sese): New struct.
854         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
855         (BB_GET_SESE, BB_SET_SESE): Define.
856         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
857         (nvptx_find_sese): New.
858         (nvptx_neuter_pars): Find SESE regions when optimizing.
860 2015-11-18  Alan Modra  <amodra@gmail.com>
862         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
863         type-limits warning.
865 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
867         PR bootstrap/68406
868         * hash-set.h (hash_set::traverse): Expand Key typedef.
870 2015-11-18  Martin Liska  <mliska@suse.cz>
872         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
873         options struct.
875 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
877         * config/nvptx/nvptx.c (global_lock_var): New.
878         (nvptx_global_lock_addr): New.
879         (nvptx_lockless_update): Recomment and adjust for clarity.
880         (nvptx_lockfull_update): New.
881         (nvptx_reduction_update): New.
882         (nvptx_goacc_reduction_fini): Call it.
884 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
886         * regrename.h (struct du_head): Add target_data_1 and target_data_2
887         fields.
888         * regrename.c (create_new_chain): Clear entire struct after allocating.
890         * config/i386/i386.opt (mmitigate-rop): New option.
891         * doc/invoke.texi (mmitigate-rop): Document.
892         * config/i386/i386.c: Include "regrename.h".
893         (ix86_rop_should_change_byte_p, reg_encoded_number,
894         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
895         static functions.
896         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
897         * config/i386/i386.md (attr "modrm_class"): New.
898         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
899         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
900         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
902 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
904         PR target/68405
905         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
907 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
909         PR tree-optimization/68157
910         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
911         pow_stmt or mul_stmt from stmt's uid.
912         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
914 2015-11-18  Martin Liska  <mliska@suse.cz>
916         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
918 2015-11-18  Martin Liska  <mliska@suse.cz>
920         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
921         Fix GNU coding style.
922         (find_def_preds): Use auto_vec.
923         (destroy_predicate_vecs): Change signature of the function.
924         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
925         new signature.
926         (simplify_preds_4): Use destroy_predicate_vecs instread of
927         just releasing preds vector.
928         (normalize_preds): Likewise.
929         (is_use_properly_guarded): Use new signature of
930         destroy_predicate_vecs.
931         (find_uninit_use): Likewise.
933 2015-11-18  Richard Biener  <rguenther@suse.de>
935         PR tree-optimization/67790
936         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
937         IL rewrite for MINUS_EXPR reductions, rename back to ...
938         (vect_is_simple_reduction): ... this, removing the wrapper.
939         (vect_force_simple_reduction): Adjust.
940         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
941         reductions and make use if reduc_index in all places.  For
942         the final reduction of MINUS_EXPR use PLUS_EXPR.
944 2015-11-18  Alan Modra  <amodra@gmail.com>
946         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
947         to ld.
948         * configure: Regenerate.
950 2015-11-17  Tom de Vries  <tom@codesourcery.com>
952         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
954 2015-11-17  Tom de Vries  <tom@codesourcery.com>
956         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
957         uses of ssa_name with constant.
959 2015-11-17  Tom de Vries  <tom@codesourcery.com>
961         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
962         something changed.
964 2015-11-17  Tom de Vries  <tom@codesourcery.com>
966         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
967         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
968         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
970 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
972         * regrename.c (regrename_find_superclass): New function, code moved
973         from ...
974         (rename_chains): ... here.  Call it.
975         * regrename.h (regrename_find_superclass): Declare.
977         * regrename.c (record_out_operands): Terminate earlyclobbered
978         operands here.
980         PR target/66785
981         * regrename.c (record_operand_use): Keep track of failed operands
982         and stop appending if we see any.
983         * regrename.h (struct operand_rr_info): Add a failed field and shrink
984         n_chains to short.
986 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
988         PR 48568
989         * doc/extend.texi (Common Function Attributes) [visibility]:
990         Add cross-references to matching variable and type attributes.
991         (Common Variable Attributes) [visibility]: Add missing entry.
993 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
995         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
996         entries that map directly to optabs.
998 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1000         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
1001         entries that map directly to optabs.
1003 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1005         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
1006         * internal-fn.c (direct_internal_fn_array): Update accordingly.
1007         * tree-vectorizer.h (vectorizable_function): Delete.
1008         * tree-vect-stmts.c: Include internal-fn.h.
1009         (vectorizable_internal_function): New function.
1010         (vectorizable_function): Inline into...
1011         (vectorizable_call): ...here.  Explicitly reject calls that read
1012         from or write to memory.  Try using an internal function before
1013         falling back on the old vectorizable_function behavior.
1015 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1017         * target.def (builtin_vectorized_function): Take a combined_fn (in
1018         the form of an unsigned int) rather than a function decl.
1019         (builtin_md_vectorized_function): New.
1020         * targhooks.h (default_builtin_vectorized_function): Replace the
1021         fndecl argument with an unsigned int.
1022         (default_builtin_md_vectorized_function): Declare.
1023         * targhooks.c (default_builtin_vectorized_function): Replace the
1024         fndecl argument with an unsigned int.
1025         (default_builtin_md_vectorized_function): New function.
1026         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
1027         New hook.
1028         * doc/tm.texi: Regenerate.
1029         * tree-vect-stmts.c (vectorizable_function): Update call to
1030         builtin_vectorized_function, also passing internal functions.
1031         Call builtin_md_vectorized_function for target-specific builtins.
1032         * config/aarch64/aarch64-protos.h
1033         (aarch64_builtin_vectorized_function): Replace fndecl argument
1034         with an unsigned int.
1035         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
1036         (aarch64_builtin_vectorized_function): Update after above changes.
1037         Use CASE_CFN_*.
1038         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
1039         fndecl argument with an unsigned int.
1040         * config/arm/arm-builtins.c: Include case-cfn-macros.h
1041         (arm_builtin_vectorized_function): Update after above changes.
1042         Use CASE_CFN_*.
1043         * config/i386/i386.c: Include case-cfn-macros.h
1044         (ix86_veclib_handler): Take a combined_fn rather than a
1045         built_in_function.
1046         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
1047         mathfn_built_in rather than calling builtin_decl_implicit directly.
1048         (ix86_builtin_vectorized_function) Update after above changes.
1049         Use CASE_CFN_*.
1050         * config/rs6000/rs6000.c: Include case-cfn-macros.h
1051         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
1052         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
1053         than calling builtin_decl_implicit directly.
1054         (rs6000_builtin_vectorized_function): Update after above changes.
1055         Use CASE_CFN_*.  Move BUILT_IN_MD to...
1056         (rs6000_builtin_md_vectorized_function): ...this new function.
1057         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
1059 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1061         * tree-vect-patterns.c: Include internal-fn.h.
1062         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
1064 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1066         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
1067         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
1069 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1071         * builtins.c (expand_errno_check, expand_builtin_mathfn)
1072         (expand_builtin_mathfn_2): Delete.
1073         (expand_builtin): Remove handling of functions with
1074         internal function equivalents.
1075         * internal-fn.def (SET_EDOM): New internal function.
1076         * internal-fn.h (set_edom_supported_p): Declare.
1077         * internal-fn.c (expand_SET_EDOM): New function.
1078         (set_edom_supported_p): Likewise.
1079         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
1080         Rewrite comment at head of file.
1081         (is_call_dce_candidate): Rename to...
1082         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
1083         or gimple_call_builtin_p here.
1084         (edom_only_function): New function.
1085         (shrink_wrap_one_built_in_call_with_conds): New function, split out
1086         from...
1087         (shrink_wrap_one_built_in_call): ...here.
1088         (can_use_internal_fn, use_internal_fn): New functions.
1089         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
1090         for calls that have an lhs.
1091         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
1092         (pass_call_cdce::execute): Skip blocks that are optimized for size.
1093         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
1094         calls with an lhs.
1095         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
1096         at -O and above.
1098 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1100         * builtins.h (called_as_built_in): Declare.
1101         * builtins.c (called_as_built_in): Make external.
1102         * internal-fn.h (expand_internal_call): Define a variant that
1103         specifies the internal function explicitly.
1104         * internal-fn.c (expand_load_lanes_optab_fn)
1105         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
1106         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
1107         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
1108         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
1109         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
1110         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
1111         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
1112         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
1113         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
1114         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
1115         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
1116         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
1117         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
1118         argument.
1119         (internal_fn_expanders): Update prototype.
1120         (expand_internal_call): Define a variant that specifies the
1121         internal function explicitly. Use it to implement the previous
1122         interface.
1123         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
1124         functions as calls to internal functions.
1126 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1128         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
1129         (generated_files): Likewise.
1130         (s-cfn-operators, cfn-operators.pd): New rules.
1131         (s-match): Depend on cfn-operators.pd.
1132         * gencfn-macros.c: Expand comment to describe -o behavior.
1133         (print_define_operator_list): New function.
1134         (main): Accept -o.  Call print_define_operator_list.
1135         * genmatch.c (main): Add the current directory to the include path.
1136         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
1137         instead.
1139 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1141         * doc/match-and-simplify.texi: Document the "null" identifier.
1142         * genmatch.c (id_base::NULL_ID): New kind.
1143         (null_id): New variable.
1144         (get_operator): Add a parameter that says whether null identifiers
1145         are allowed.
1146         (contains_id): New function.
1147         (lower_for): Skip substitutions that would have a null_id in
1148         either the match or the result.
1149         (parser::parse_for): Allow the null identifier to be used.
1150         (parser::parse_operator_list): Likewise.
1151         (main): Initialize null_id.
1153 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1155         * match.pd: Use HYPOT and COS rather than hypot and cos.
1156         Use CASE_CFN_* macros.  Guard log/exp folds with
1157         SCALAR_FLOAT_TYPE_P.
1158         * genmatch.c (internal_fn): New enum.
1159         (fn_id::fn): Change to an unsigned int.
1160         (fn_id::fn_id): Accept internal_fn too.
1161         (add_builtin): Rename to...
1162         (add_function): ...this and turn into a template.
1163         (get_operator): Only try one variation if the original name fails.
1164         Only add _EXPR if the original name was all lower case.
1165         Try converting internal and built-in function names to their
1166         CFN equivalents.
1167         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
1168         (dt_simplify::gen_1): Likewise.
1169         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
1170         and get_call_combined_fn for generic.
1171         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
1172         (decision_tree::gen): Likewise.
1173         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
1174         Use add_function rather than add_builtin.  Register internal
1175         functions too.
1176         * generic-match-head.c: Include case-cfn-macros.h.
1177         * gimple-fold.c (replace_stmt_with_simplification): Use
1178         gimple_call_combined_fn to test whether we can keep an
1179         existing call.
1180         * gimple-match.h (code_helper): Replace built_in_function
1181         with combined_fn.
1182         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
1183         and case-fn-macros.h.
1184         (gimple_resimplify1): Use fold_const_call.
1185         (gimple_resimplify2, gimple_resimplify3): Likewise.
1186         (build_call_internal, build_call): New functions.
1187         (maybe_push_res_to_seq): Use them.
1188         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
1189         rather than a built-in function.
1190         * tree.h (build_call_expr_internal_loc): Declare.
1191         (maybe_build_call_expr_loc): Likewise.
1192         * tree.c (build_call_expr_internal_loc_array): New function.
1193         (maybe_build_call_expr_loc): Likewise.
1195 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1197         * builtins.h (mathfn_built_in): Add a variant that takes
1198         a combined_fn.
1199         * builtins.c: Include case-cfn-macros.h.
1200         (CASE_MATHFN): Use CASE_CFN_*.
1201         (CASE_MATHFN_REENT): Use CFN_ codes.
1202         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
1203         argument with a combined_fn.
1204         (mathfn_built_in): Add a variant that takes a combined_fn.
1205         (expand_builtin_int_roundingfn_2): Update callers accordingly.
1206         (fold_builtin_sincos, fold_builtin_classify): Likewise.
1208 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1210         * tree-vect-patterns.c: Include case-cfn-macros.h.
1211         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
1213 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1215         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
1216         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
1217         (pass_cse_sincos::execute): Likewise.
1219 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1221         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
1222         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
1223         (decrement_power, acceptable_pow_call): Likewise.
1224         (attempt_builtin_copysign): Likewise.
1226 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1228         * tree-vrp.c: Include case-cfn-macros.h.
1229         (extract_range_basic): Switch on combined_fn rather than handling
1230         built-in functions and internal functions separately.
1232 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1234         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
1235         than a built_in_function.
1236         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1237         a function decl.
1238         (integer_valued_real_call_p): Likewise.
1239         * fold-const.c: Include case-cfn-macros.h
1240         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
1241         (negate_expr_p): Update accordingly.
1242         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
1243         a function decl.
1244         (integer_valued_real_call_p): Likewise.
1245         (tree_invalid_nonnegative_warnv_p): Update accordingly.
1246         (integer_valued_real_p): Likewise.
1247         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
1248         to tree_call_nonnegative_warnv_p.
1249         (gimple_call_integer_valued_real_p): Likewise
1250         integer_valued_real_call_p.
1251         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
1252         (backprop::process_builtin_call_use): Extend to combined_fn.
1253         (strip_sign_op_1): Likewise.
1254         (backprop::process_use): Don't check for built-in calls here.
1255         (backprop::execute): Likewise.
1256         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
1258 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1260         * fold-const-call.h (fold_const_call): Replace built_in_function
1261         arguments with combined_fn arguments.
1262         * fold-const-call.c: Include case-cfn-macros.h.
1263         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
1264         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
1265         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
1266         built_in_function arguments with combined_fn arguments.
1267         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
1268         (fold_builtin_3): Update calls to fold_const_call.
1270 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1272         * Makefile.in (HASH_TABLE_H): Add GGC_H.
1273         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
1274         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
1275         (build/gencfn-macros$(build_exeext): New rules.
1276         (genprogerr): Add cfn-macros.
1277         * hash-set.h (hash_set): Use the traits value_type as the key.
1278         * gencfn-macros.c: New file.
1280 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1282         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
1283         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
1284         * builtins.c (associated_internal_fn): Handle them.
1286 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1288         * builtins.h (associated_internal_fn): Declare.
1289         (replacement_internal_fn): Likewise.
1290         * builtins.c: Include internal-fn.h
1291         (associated_internal_fn, replacement_internal_fn): New functions.
1292         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
1293         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
1294         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
1295         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
1296         (LDEXP): New functions.
1297         * internal-fn.c: Include recog.h.
1298         (unary_direct, binary_direct): New macros.
1299         (expand_direct_optab_fn): New function.
1300         (expand_unary_optab_fn): New macro.
1301         (expand_binary_optab_fn): Likewise.
1302         (direct_unary_optab_supported_p): Likewise.
1303         (direct_binary_optab_supported_p): Likewise.
1305 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1307         * coretypes.h (tree_pair): New type.
1308         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
1309         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
1310         * internal-fn.h (direct_internal_fn_info): New structure.
1311         (direct_internal_fn_array): Declare.
1312         (direct_internal_fn_p, direct_internal_fn): New functions.
1313         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
1314         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
1315         (mask_store_direct, store_lanes_direct): New macros.
1316         (direct_internal_fn_array) New array.
1317         (get_multi_vector_move): Return the optab handler without asserting
1318         that it is available.
1319         (expand_LOAD_LANES): Rename to...
1320         (expand_load_lanes_optab_fn): ...this and add an optab argument.
1321         (expand_STORE_LANES): Rename to...
1322         (expand_store_lanes_optab_fn): ...this and add an optab argument.
1323         (expand_MASK_LOAD): Rename to...
1324         (expand_mask_load_optab_fn): ...this and add an optab argument.
1325         (expand_MASK_STORE): Rename to...
1326         (expand_mask_store_optab_fn): ...this and add an optab argument.
1327         (direct_internal_fn_types, direct_optab_supported_p)
1328         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
1329         (direct_internal_fn_supported_p): New functions.
1330         (direct_mask_load_optab_supported_p): New macro.
1331         (direct_load_lanes_optab_supported_p): Likewise.
1332         (direct_mask_store_optab_supported_p): Likewise.
1333         (direct_store_lanes_optab_supported_p): Likewise.
1335 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1337         * tree-core.h (internal_fn): Move immediately after the definition
1338         of built_in_function.
1339         (combined_fn): New enum.
1340         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
1341         (internal_fn_p, as_internal_fn): New functions.
1342         (get_call_combined_fn, combined_fn_name): Declare.
1343         * tree.c (get_call_combined_fn): New function.
1344         (combined_fn_name): Likewise.
1345         * gimple.h (gimple_call_combined_fn): Declare.
1346         * gimple.c (gimple_call_combined_fn): New function.
1348 2015-11-17  Martin Sebor  <msebor@redhat.com>
1350         PR c++/68308
1351         * cp/init.c (build_new_1): Check for expression constness
1352         the right way.
1354 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
1356         PR target/53587
1357         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
1358         option list.
1359         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
1360         discussion of the Microsoft structure layout details here from
1361         its former home in extend.texi.
1362         * doc/extend.texi (x86 Variable Attributes): Replace detailed
1363         discussion with pointer to its new location.  Add cross-reference
1364         to corresponding type attributes.
1365         (x86 Type Attributes): Add cross-references to command-line options
1366         and variable attributes.
1368 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
1370         PR middle-end/68134
1371         * targhooks.c (default_get_mask_mode): Filter out
1372         scalar modes returned by mode_for_vector.
1374 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1376         PR target/68143
1377         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
1378         offset from dstbase and use it appropriately in
1379         adjust_automodify_address.
1380         (arm_block_set_aligned_vect): Likewise.
1382 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1384         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
1385         (MULTILIB_DIRNAMES): Adjust accordingly.
1387 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
1389         * config/aarch64/aarch64-cores.def (cortex-a35): New.
1390         * config/aarch64/aarch64.c (cortexa35_tunings): New.
1391         * config/aarch64/aarch64-tune.md: Regenerate.
1392         * doc/invoke.texi (-mcpu): Add Cortex-A35
1394 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
1396         PR target/68263
1397         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
1398         to 32 for IAMCU.
1399         * config/i386/sse.md (*mov<mode>_internal): Always enable
1400         AVX and SSE unaligned moves for IAMCU.
1402 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1404         * tree-if-conv.c: Include varasm.h
1405         (ref_DR_map): Define.
1406         (baseref_DR_map): Like wise
1407         (struct ifc_dr): Add new tree predicate field.
1408         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
1409         (memrefs_read_or_written_unconditionally): Remove.
1410         (write_memrefs_written_at_least_once): Remove.
1411         (ifcvt_memrefs_wont_trap): Use hash maps to query
1412         unconditional read/written information.
1413         (if_convertible_loop_p_1):  Initialize hash maps and predicates
1414         before hashing data references and delete hashmaps at the end.
1416 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
1418         PR 56036
1419         * doc/invoke.texi (Optimize Options): Move @end table to the right
1420         place.
1422 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
1424         PR 65129
1425         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
1426         return value.
1428 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
1430         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
1431         128-bit types, just types that fit in a single vector.
1432         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
1434 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
1436         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
1437         in the user documentation.
1438         (define_peephole2, define_split): Similarly.
1440 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
1442         * lto-streamer-out.c (write_global_references): Adjust integer type.
1443         (lto_output_decl_state_refs): Likewise.
1445 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1447         * config/arm/arm-cores.def (cortex-a35): New.
1448         * config/arm/arm.c (arm_cortex_a35_tune): New.
1449         * config/arm/arm-tables.opt: Regenerate.
1450         * config/arm/arm-tune.md: Regenerate.
1451         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
1452         * config/arm/t-aprofile: Likewise.
1453         * doc/invoke.texi (-mcpu): Likewise.
1455 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
1457         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
1458         and qdf24xx and xgene1 to match -march=armv8-a.
1460 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
1462         PR rtl-optimization/68330
1463         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
1464         of LSHIFTRT by a non-zero constant integer.
1466 2015-11-16  Richard Biener  <rguenther@suse.de>
1468         PR tree-optimization/68306
1469         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
1470         bogus copying from verify_data_ref_alignment and use continue
1471         instead of return.
1473 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
1474             Kaz Kojima  <kkojima@gcc.gnu.org>
1476         PR target/68277
1477         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
1478         operands[2].
1479         (*addsi3): Add another insn_and_split variant for reload.
1481 2015-11-16  Richard Biener  <rguenther@suse.de>
1483         PR middle-end/68117
1484         * cfgexpand.c (pass_expand::execute): Destroy the edge
1485         redirection var map before setting RTL CFG hooks.
1487 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
1489         * config/i386/sse.md (reduc_splus_v8df): Rename to...
1490         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
1492         (reduc_splus_v4df): Rename to...
1493         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
1495         (reduc_splus_v2df): Rename to...
1496         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
1498         (reduc_splus_v16sf): Rename to...
1499         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
1501         (reduc_splus_v8sf): Rename to...
1502         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
1504         (reduc_splus_v4sf): Rename to...
1505         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
1507         (reduc_<code>_<mode>, all 3 variants): Rename each to...
1508         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
1510         (reduc_umin_v8hf): Rename to...
1511         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
1513 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
1515         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
1516         without additional conditions.
1517         * doc/extend.texi (@item simd): New.
1519 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1521         * passes.c (first_pass_instance): Remove variable.
1522         (execute_todo): Remove setting of first_pass_instance.
1523         * tree-pass.h (first_pass_instance): Remove declaration.
1525 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1527         * passes.def: Add arg to pass_ccp pass instantiation.
1528         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
1529         instead of first_pass_instance.
1530         (do_ssa_ccp): Add and handle param nonzero_p.
1531         (pass_ccp::pass_ccp): Initialize nonzero_p.
1532         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
1533         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
1534         (pass_ccp::nonzero_p): New private member.
1536 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1538         * passes.def: Add arg to pass_object_sizes pass instantiation.
1539         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
1540         insert_min_max_p.
1541         (pass_object_sizes::set_pass_param): New member function.  Set
1542         insert_min_max_p.
1543         (pass_object_sizes::insert_min_max_p): New private member.
1544         (pass_object_sizes::execute): Use insert_min_max_p instead of
1545         first_pass_instance.
1547 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1549         * passes.def: Add arg to pass_dominator pass instantiation.
1550         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
1551         of comment.
1552         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
1553         may_peel_loop_headers_p.
1554         (pass_dominator::set_pass_param): New member function.  Set
1555         may_peel_loop_headers_p.
1556         (pass_dominator::may_peel_loop_headers_p): New private member.
1557         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
1558         first_pass_instance.
1560 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1562         * passes.def: Add arg to pass_reassoc pass instantiation.
1563         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
1564         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
1565         of first_pass_instance.
1566         (execute_reassoc): Add and handle insert_powi_p parameter.
1567         (pass_reassoc::insert_powi_p): New private member.
1568         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
1569         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
1570         (pass_reassoc::execute): Call execute_reassoc with extra arg.
1572 2015-11-16  Tom de Vries  <tom@codesourcery.com>
1574         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
1575         * gen-pass-instances.awk (handle_line): Same.
1576         * pass_manager.h (class pass_manager): Define and undefine
1577         NEXT_PASS_WITH_ARG.
1578         * passes.c (opt_pass::set_pass_param): New function.
1579         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
1580         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
1581         * tree-pass.h (gimple_opt::set_pass_param): Declare.
1582         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
1583         warn_array_bounds_p parameter.
1584         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
1585         (pass_vrp::set_pass_param): New function.
1586         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
1587         (pass_vrp::warn_array_bounds_p): New private member.
1589 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1591         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
1592         (output_probe_stack_range): Rotate the loop and simplify.
1594 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1596         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
1597         (output_probe_stack_range): Rotate the loop and simplify.
1599 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1601         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
1602         an lea instruction when possible.
1603         (output_adjust_stack_and_probe): Rotate the loop and simplify.
1604         (ix86_emit_probe_stack_range): Adjust.
1605         (output_probe_stack_range): Rotate the loop and simplify.
1607 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1609         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
1610         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
1611         with appropriate pragma GCC target.
1613 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1615         PR target/65837
1616         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
1617         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
1619 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
1621         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
1622         (cortexa57_tunings): Use it.
1624 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1626         PR target/65837
1627         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
1628         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
1629         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
1630         undefine __ARM_FP.
1631         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
1632         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
1633         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
1634         * doc/extend.texi (-mfpu=): Describe attribute.
1636 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1638         PR target/65837
1639         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
1640         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
1641         arm_init_neon_builtins.
1642         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
1643         (arm_init_neon_builtins_internal)
1644         (arm_init_crypto_builtins_internal):
1645         Test and set neon_set_p, neon_crypto_set_p.
1646         (neon_set_p, neon_crypto_set_p): New static booleans.
1648 2015-11-16  Christian Bruel  <christian.bruel@st.com>
1650         PR target/65837
1651         * config/arm/arm.c (arm_fpu_desc): Remove.
1652         (all_fpus): Make global.
1653         (arm_option_override): Use FPU TARGET accessors.
1654         (arm_declare_function_name): Likewise.
1655         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
1656         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
1657         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
1658         (TARGET_NEON): Likewise.
1659         (all_fpus): Declare extern.
1660         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
1661         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
1663 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1665         PR middle-end/68366
1666         * sdbout.c: Include emit-rtl.h and function.h.
1668 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
1670         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
1671         Remove support for FreeBSD 5 and earlier.
1673 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1675         * configure: Regenerate.
1676         * configure.ac: Always define ENABLE_OFFLOADING.
1677         * cgraph.c (cgraph_node::create): Adjust.
1678         * gcc.c (process_command): Likewise.
1679         * omp-low.c (create_omp_child_function): Likewise.
1680         (expand_omp_target): Likewise.
1681         * varpool.c (varpool_node::get_create): Likewise.
1683 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1685         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
1686         * df-scan.c (df_get_exit_block_use_set): Adjust.
1687         * except.c (expand_eh_return): Likewise.
1689 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1691         * config/i386/i386.h (TARGET_PECOFF): Remove define.
1692         * defaults.h (TARGET_PECOFF): New default definition.
1693         * varasm.c (handle_vtv_comdat_section): Adjust.
1695 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1697         * defaults.h: New definition of SDB_DEBUGGING_INFO.
1698         * doc/tm.texi: Regenerate.
1699         * doc/tm.texi.in: Adjust.
1700         * final.c (rest_of_clean_state): Remove check if
1701         SDB_DEBUGGING_INFO is defined.
1702         * function.c (number_blocks): Likewise.
1703         * output.h: Likewise.
1704         * sdbout.c: Likewise.
1705         * toplev.c (process_options): Likewise.
1707 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1709         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
1710         (enum sdb_masks): Likewise.
1711         * sdbout.c (plain_type_1): Likewise.
1712         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
1714 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
1716         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
1717         internal calls - 0 if ordered simd and 1 for ordered threads simd.
1718         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
1719         argument is 1, replace it with GOMP_ordered_* call instead of removing
1720         it.
1722 2015-11-13  Rich Felker <dalias@libc.org>
1724         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
1725         address loading hack for FDPIC targets.
1727 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
1728             Jeff Law  <law@redhat.com>
1730         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
1731         * common.opt (-fsplit-paths): New flag controlling path splitting.
1732         * doc/invoke.texi (fsplit-paths): Document.
1733         * opts.c (default_options_table): Add -fsplit-paths to -O2.
1734         * passes.def: Add split_paths pass.
1735         * timevar.def (TV_SPLIT_PATHS): New timevar.
1736         * tracer.c: Include "tracer.h"
1737         (ignore_bb_p): No longer static.
1738         (transform_duplicate): New function, broken out of tail_duplicate.
1739         (tail_duplicate): Use transform_duplicate.
1740         * tracer.h (ignore_bb_p): Declare
1741         (transform_duplicate): Likewise.
1742         * tree-pass.h (make_pass_split_paths): Declare.
1743         * gimple-ssa-split-paths.c: New file.
1745 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
1746             Marek Polacek  <polacek@redhat.com>
1747             Jason Merrill  <jason@redhat.com>
1749         * convert.c (maybe_fold_build1_loc): New.
1750         (maybe_fold_build2_loc): New.
1751         (convert_to_pointer_1): Split out from convert_to_pointer.
1752         (convert_to_pointer_nofold): New.
1753         (convert_to_real_1): Split out from convert_to_real.
1754         (convert_to_real_nofold): New.
1755         (convert_to_integer_1): Split out from convert_to_integer.
1756         (convert_to_integer_nofold): New.
1757         (convert_to_complex_1): Split out from convert_to_complex.
1758         (convert_to_complex_nofold): New.
1759         * convert.h: Declare new functions.
1760         * tree-complex.c (create_one_component_var): Break up line to
1761         avoid sequence point issues.
1763 2015-11-13  Jason Merrill  <jason@redhat.com>
1765         * fold-const.c (fold_convert_const): Fold changing cv-quals on
1766         VECTOR_CST.
1768         * hash-map.h (hash_map::empty): New.
1770 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1772         * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
1773         (oacc_loop_fixed_partitions): Correct return type to bool.
1774         (oacc_loop_auto_partitions): New.
1775         (oacc_loop_partition): Take mask argument, call
1776         oacc_loop_auto_partitions.
1777         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
1779 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
1781         * config/rs6000/constraints.md (we constraint): New constraint for
1782         64-bit power9 vector support.
1783         (wL constraint): New constraint for the element in a vector that
1784         can be addressed by the MFVSRLD instruction.
1786         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
1787         declaration.
1788         (convert_int_to_float128): Likewise.
1789         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
1790         hardware support for IEEE 128-bit floating point.
1791         (rs6000_expand_float128_convert): Likewise.
1792         (convert_float128_to_int): Likewise.
1793         (convert_int_to_float128): Likewise.
1795         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
1796         ISA 3.0 hardware IEEE 128-bit floating point.
1797         (UNSPEC_IEEE128_MOVE): Likewise.
1798         (UNSPEC_IEEE128_CONVERT): Likewise.
1799         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
1800         (Ff): Add support for DImode.
1801         (Fv): Likewise.
1802         (any_fix code iterator): New and updated iterators for IEEE
1803         128-bit floating point hardware support.
1804         (any_float code iterator): Likewise.
1805         (s code attribute): Likewise.
1806         (su code attribute): Likewise.
1807         (az code attribute): Likewise.
1808         (uns code attribute): Likewise.
1809         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
1810         floating point hardware support.
1811         (abs<mode>2, FLOAT128 iterator): Likewise.
1812         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
1813         floating point hardware.
1814         (sub<mode>3, IEEE128 iterator): Likewise.
1815         (mul<mode>3, IEEE128 iterator): Likewise.
1816         (div<mode>3, IEEE128 iterator): Likewise.
1817         (copysign<mode>3, IEEE128 iterator): Likewise.
1818         (sqrt<mode>2, IEEE128 iterator): Likewise.
1819         (neg<mode>2, IEEE128 iterator): Likewise.
1820         (abs<mode>2, IEEE128 iterator): Likewise.
1821         (nabs<mode>2, IEEE128 iterator): Likewise.
1822         (fma<mode>4_hw, IEEE128 iterator): Likewise.
1823         (fms<mode>4_hw, IEEE128 iterator): Likewise.
1824         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
1825         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
1826         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
1827         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
1828         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
1829         (fix_fixuns code attribute): Likewise.
1830         (float_floatuns code attribute): Likewise.
1831         (fix<uns>_<mode>si2_hw): Likewise.
1832         (fix<uns>_<mode>di2_hw): Likewise.
1833         (float<uns>_<mode>si2_hw): Likewise.
1834         (float<uns>_<mode>di2_hw): Likewise.
1835         (xscvqp<su>wz_<mode>): Likewise.
1836         (xscvqp<su>dz_<mode>): Likewise.
1837         (xscv<su>dqp_<mode): Likewise.
1838         (ieee128_mfvsrd): Likewise.
1839         (ieee128_mfvsrwz): Likewise.
1840         (ieee128_mtvsrw): Likewise.
1841         (ieee128_mtvsrd): Likewise.
1842         (trunc<mode>df2_odd): Likewise.
1843         (cmp<mode>_h): Likewise.
1844         (128-bit GPR splitters): Don't split a 128-bit move that is a
1845         direct move between GPR and vector registers using ISA 3.0 direct
1846         move instructions.
1847         (maddld4): Add support for the ISA 3.0 integer multiply-add
1848         instruction.
1850         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
1851         debugging.
1852         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
1853         constraint.  Disable the VSX<->GPR direct move helpers if we have
1854         the MFVSRLD and MTVSRDD instructions.
1855         (rs6000_secondary_reload_simple_move): Add support for doing
1856         vector direct moves directly without additional scratch registers
1857         if we have ISA 3.0 instructions.
1858         (rs6000_secondary_reload_direct_move): Update comments.
1859         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
1860         instructions.
1862         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
1863         direct move instructions.
1864         (vsx_movti_64bit): Likewise.
1865         (vsx_extract_<mode>): Likewise.
1867         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
1868         macros for ISA 3.0 direct move instructions.
1869         (TARGET_DIRECT_MOVE_128): Likewise.
1870         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
1871         instruction.
1873         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
1874         constraints.  Update wa documentation to say not to use %x<n> on
1875         instructions that only take Altivec registers.
1877 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
1879         * Makefile.in (OBJS): Add gcc-rich-location.o.
1880         * diagnostic.c (diagnostic_append_note): Pass line_table to
1881         rich_location ctor.
1882         (emit_diagnostic): Likewise.
1883         (inform): Likewise.
1884         (inform_n): Likewise.
1885         (warning): Likewise.
1886         (warning_at): Likewise.
1887         (warning_n): Likewise.
1888         (pedwarn): Likewise.
1889         (permerror): Likewise.
1890         (error): Likewise.
1891         (error_n): Likewise.
1892         (error_at): Likewise.
1893         (sorry): Likewise.
1894         (fatal_error): Likewise.
1895         (internal_error): Likewise.
1896         (internal_error_no_backtrace): Likewise.
1897         (source_range::debug): Likewise.
1898         * gcc-rich-location.c: New file.
1899         * gcc-rich-location.h: New file.
1900         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
1901         (warning_at): Likewise.
1902         * gimple.h (gimple_set_block): Use set_block function.
1903         * input.c (dump_line_table_statistics): Dump stats on how many
1904         ranges were optimized vs how many needed ad-hoc table.
1905         (write_digit_row): Add "map" param; use its range_bits
1906         to calculate the per-character offset.
1907         (dump_location_info): Print the range and column bits for each
1908         ordinary map.  Use the range bits to calculate the per-character
1909         offset.  Pass the map as a new param to the various calls to
1910         write_digit_row.  Eliminate uses of
1911         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
1912         * print-tree.c (print_node): Print any source range information.
1913         * rtl-error.c (diagnostic_for_asm): Likewise.
1914         * toplev.c (general_init): Initialize line_table's
1915         default_range_bits.
1916         * tree-cfg.c (move_block_to_fn): Likewise.
1917         (move_block_to_fn): Likewise.
1918         * tree-inline.c (copy_phis_for_bb): Likewise.
1919         * tree.c (tree_set_block): Likewise.
1920         (get_pure_location): New function.
1921         (set_source_range): New functions.
1922         (set_block): New function.
1923         (set_source_range): New functions.
1924         * tree.h (CAN_HAVE_RANGE_P): New.
1925         (EXPR_LOCATION_RANGE): New.
1926         (EXPR_HAS_RANGE): New.
1927         (get_expr_source_range): New inline function.
1928         (DECL_LOCATION_RANGE): New.
1929         (set_source_range): New decls.
1930         (get_decl_source_range): New inline function.
1932 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
1934         PR tree-optimization/67682
1935         * tree-vect-slp.c (vect_split_slp_store_group): New.
1936         (vect_analyze_slp_instance): During basic block SLP, recurse on
1937         subgroups if vect_build_slp_tree fails after 1st vector.
1939 2015-11-13  Christian Bruel  <christian.bruel@st.com>
1941         PR target/65837
1942         * config/arm/arm.c (arm_option_override): Move NEON check...
1943         (arm_option_check_internal): here
1944         (arm_file_start): Move .fpu print...
1945         (arm_declare_function_name): here
1946         (arm_option_print): Dump current fpu name.
1947         * config/arm/arm.opt (arm_fpu_index): Mark Save.
1949 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
1950             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1952         * combine.c (subst): Don't substitute or simplify when
1953         handling register-wise widening multiply.
1954         (force_to_mode): Likewise.
1956 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
1958         PR tree-optimization/68264
1959         * tree-call-cdce.c (gen_one_condition): Update commentary.
1960         (gen_conditions_for_pow_int_base): Invert the sense of the tests
1961         passed to gen_one_condition.
1962         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
1963         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
1964         using EDGE_FALSE_VALUE for edges to the call block and
1965         EDGE_TRUE_VALUE for the others.
1967 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1969         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
1970         complex types.
1972 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
1974         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
1976 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1978         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
1979         len_of_prefix.
1981 2015-11-13  Tom de Vries  <tom@codesourcery.com>
1983         * gen-pass-instances.awk (handle_line): Add args_str variable.
1985 2015-11-13  Martin Liska  <mliska@suse.cz>
1987         * graphite-poly.c (free_scop): Release scop->drs vector.
1988         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
1989         Release dom vector.
1990         (try_generate_gimple_bb): Use vNULL as a default initialization
1991         for vectors.
1993 2015-11-13  Martin Liska  <mliska@suse.cz>
1995         PR ipa/68311
1996         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
1997         Replace array initialization (using a variable post-increment)
1998         that possible triggers multiple unsequenced modifications
1999         with a pair of pushes to a vector.
2001 2015-11-13  Richard Biener  <rguenther@suse.de>
2003         PR tree-optimization/68306
2004         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
2005         loop related checks ...
2006         (vect_verify_datarefs_alignment): ... here.
2007         (vect_slp_analyze_and_verify_node_alignment): Compute and
2008         verify alignment of the single DR that it matters.
2009         * tree-vect-stmts.c (vectorizable_store): Add an assert.
2010         (vectorizable_load): Add a comment.
2011         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
2012         for determining load cost.
2014 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2016         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
2017         mix of boolean and integer vectors in a single statement.
2018         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
2019         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
2020         determine constant type.
2021         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
2022         for loop invariants.
2024 2015-11-13  Alan Hayward <alan.hayward@arm.com>
2026         PR tree-optimization/66558
2027         * tree-vect-loop.c (is_integer_induction):Add.
2028         (vectorizable_reduction): Add integer induction checks.
2030 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
2032         Revert [ARM] Remove neon-testgen.ml and generated tests.
2034         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2036         [ARM] Remove neon-testgen.ml and generated tests.
2038         * config/arm/neon-testgen.ml: Remove.
2040 2015-11-13  Richard Biener  <rguenther@suse.de>
2042         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
2043         Signal fatal failure if early checks fail.
2044         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
2045         do not bother testing further vector sizes.
2047 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
2049         * config/i386/predicates.md (misaligned_operand): Return true if
2050         operand is aligned to less than its natural alignmnet.
2052 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2054         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
2055         (vec_cmpu@var{m}@var{n}): New item.
2056         (vcond@var{m}@var{n}): Specify comparison is signed.
2057         (vcondu@var{m}@var{n}): New item.
2058         (vcond_mask_@var{m}@var{n}): New item.
2059         (maskload@var{m}@var{n}): New item.
2060         (maskstore@var{m}@var{n}): New item.
2062 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
2064         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2065         types of stored value and storage are compatible.
2067 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
2069         * gcc.c (POST_LINK_SPEC): Define if not already defined.
2070         (LINK_COMMAND_SPEC): Use post_link.
2071         (post_link_spec): New, initialize to POST_LINK_SPEC.
2072         (post_link): Initialize new static spec.
2073         * doc/tm.texi.in (POST_LINK_SPEC): Document.
2074         * doc/tm.texi: Regenerated.
2076 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2078         PR driver/67613
2079         * Makefile.in (GCC_OBJS): Add spellcheck.o.
2080         (OBJS): Add spellcheck-tree.o.
2081         * gcc.c: Include "spellcheck.h".
2082         (suggest_option): New function.
2083         (driver::handle_unrecognized_options): Call suggest_option to
2084         provide a hint about misspelled options.
2085         * spellcheck.c: Update file comment.
2086         (levenshtein_distance): Convert 4-param implementation from static
2087         to extern scope.  Remove note about unit tests from leading
2088         comment for const char * implementation.  Move tree
2089         implementation to...
2090         * spellcheck-tree.c: New file.
2091         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
2093 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
2095         * Makefile.in (OBJS): Add spellcheck.o.
2096         * spellcheck.c: New file.
2097         * spellcheck.h: New file.
2099 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
2101         * config/ft32/ft32.md (*sne): New insn pattern.
2103 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
2105         * gcc/cprop.c (is_too_expensive): Remove.
2106         (gcse.h): Include.
2107         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
2108         is_too_expensive.
2109         * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
2110         * gcc/gcse.c (is_too_expensive): Rename to ...
2111         (gcse_or_cprop_is_too_expensive): ... this.
2112         Expand warning to add required size of max-gcse-memory.
2113         (one_pre_gcse_pass): Use it.
2114         (one_code_hoisting_pass): Use it.
2115         * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
2117 2015-11-12  James Norris  <jnorris@codesourcery.com>
2118             Joseph Myers  <joseph@codesourcery.com>
2120         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
2121         GF_OMP_TARGET_KIND_OACC_DECLARE.
2122         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
2123         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2124         * gimplify.c (oacc_declare_returns): New.
2125         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
2126         (device_resident_p): New function.
2127         (oacc_default_clause): Handle device_resident clause.
2128         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
2129         (gimplify_expr): Handle OACC_DECLARE.
2130         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
2131         * omp-low.c (expand_omp_target): Handle
2132         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
2133         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
2134         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
2135         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
2136         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
2137         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
2138         GOMP_MAP_DEVICE_RESIDENT.
2140 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
2142         [ARM] Remove neon-testgen.ml and generated tests.
2144         * config/arm/neon-testgen.ml: Remove.
2146 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
2148         * config/aarch64/aarch64-cores.def (qdf24xx): New.
2149         * config/aarch64/aarch64-tune.md: Regenerated.
2150         * config/arm/arm-cores.def (qdf24xx): New.
2151         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
2152         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
2153         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
2154         (ARM Options/-mtune): Likewise.
2156 2015-11-12  Martin Liska  <mliska@suse.cz>
2158         * config/i386/i386.c (ix86_valid_target_attribute_p):
2159         Finalize options at the of the function.
2160         * gcc.c (driver_get_configure_time_options): Call newly
2161         introduced init_opts_obstack.
2162         * lto-wrapper.c (main): Likewise.
2163         * opts.c (init_opts_obstack): New function.
2164         (init_options_struct): Call newly introduced init_opts_obstack.
2165         * opts.h (init_options_struct): Declare.
2167 2015-11-12  Martin Liska  <mliska@suse.cz>
2169         PR ipa/68035
2170         * ipa-icf.c (void sem_item::set_hash): New function.
2171         (sem_function::get_hash): Use renamed m_hash member variable.
2172         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
2173         (sem_item::update_hash_by_local_refs): Likewise.
2174         (sem_variable::get_hash): Use renamed m_hash member variable.
2175         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
2176         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
2177         (sem_item_optimizer::build_graph): As the hash value of an item
2178         is lazy initialized, force the calculation.
2179         * ipa-icf.h (set_hash): Declare new function and rename hash member
2180         variable to m_hash.
2182 2015-11-12  Richard Biener  <rguenther@suse.de>
2184         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
2185         Rename to vect_slp_analyze_instance_dependence.
2186         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2187         Remove WAR special-case.
2188         (vect_slp_analyze_node_dependences): Instead add more specific
2189         code here, not relying on other instances being vectorized.
2190         (vect_slp_analyze_instance_dependence): Adjust accordingly.
2191         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
2192         vertical space in dump files.
2193         (vect_print_slp_tree): Likewise.
2194         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
2195         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
2196         not vectorized stmts until after dependence analysis removed
2197         instances.  Merge alignment and dependence checks.
2198         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
2199         flag on all stmts.
2201 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
2203         * config/aarch64/aarch64-protos.h (tune_params): Add new members
2204         "max_case_values" and "cache_line_size".
2205         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
2206         function.
2207         (aarch64_override_options_internal): Tune heuristics based on new
2208         members in "tune_params".
2209         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2211 2015-11-12  Richard Biener  <rguenther@suse.de>
2213         PR tree-optimization/68306
2214         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
2215         relevant and vectorizable checks here.
2216         (vect_verify_datarefs_alignment): Add relevant check here.
2218 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
2220         * gimplify.c (oacc_default_clause): New.
2221         (omp_notice_variable): Call it.
2223 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2225         PR tree-optimization/68305
2226         * tree-vect-slp.c (vect_get_constant_vectors): Support
2227         COND_EXPR with SSA_NAME as a condition.
2229 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2231         * config/visium/visium-protos.h (notice_update_cc): Delete.
2232         (print_operand): Likewise.
2233         (print_operand_address): Likewise.
2235 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2237         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
2238         FUNCTION_VALUE_REGNO_P): Remove.
2239         * config/alpha/alpha-protos.h (function_value): Remove.
2240         * config/alpha/alpha.c (function_value): Rename to...
2241         (alpha_function_value_1): ... this.  Make static.
2242         (alpha_function_value, alpha_libcall_value,
2243         alpha_function_value_regno_p): New functions.
2244         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2245         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2247 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2249         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2250         * config/alpha/alpha.c (alpha_memory_latency): Make static.
2251         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
2252         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2254 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2256         PR target/67265
2257         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
2258         assertion on the CFA register.
2260 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2262         * expr.c (do_store_flag): Expand vector comparison as
2263         VEC_COND_EXPR if vector comparison is not supported by target.
2265 2015-11-12  Renlin Li  <renlin.li@arm.com>
2267         * config/arm/arm.md (addsi3_compare_op2): Make the order of
2268         assembly pattern consistent with constraint order.
2270 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2272         * gen-pass-instances.awk (handle_line): Simplify match regexp.
2274 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2276         * gen-pass-instances.awk (handle_line): Simplify init of
2277         postfix_starts_at.
2279 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2281         * gen-pass-instances.awk (handle_line): Rename var where to
2282         call_starts_at.
2284 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
2286         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
2287         do not expand to rtl.
2289 2015-11-12  Richard Biener  <rguenther@suse.de>
2291         PR tree-optimization/58497
2292         * tree-vect-generic.c: Include gimplify.h.
2293         (tree_vec_extract): Lookup constant/constructor DEFs.
2294         (do_cond): Unshare cond.
2296 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
2298         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
2299         combined insn if the alignment of vector mode memory operand
2300         is less than ssememalign.
2302 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2304         * gen-pass-instances.awk (handle_line): Print parentheses and
2305         pass_name explicitly.
2307 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2309         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
2310         and postfix vars.
2312 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2314         * gen-pass-instances.awk (handle_line): Add comments.
2316 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2318         * gen-pass-instances.awk (handle_line): Rename len_of_end to
2319         len_of_close.
2321 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2323         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2325 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2327         * gen-pass-instances.awk (handle_line): Restructure using early-out.
2329 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2331         * gen-pass-instances.awk (handle_line): Unify semicolon use.
2333 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2335         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2337 2015-11-12  Tom de Vries  <tom@codesourcery.com>
2339         * gen-pass-instances.awk: Add emacs indent setting.
2341 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2343         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
2344         to match.pd.
2345         Move Convert A/(B/C) to (A/B)*C to match.pd.
2346         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
2347         Move Optimize (X & (-A)) / A where A is a power of 2, to
2348         X >> log2(A) to match.pd.
2350         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
2351         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
2352         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
2353         New simplifier.
2354         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
2356 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
2358         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
2359         variable.
2360         (neon_vst2_lane<mode>): Likewise.
2361         (neon_vld3_lane<mode>): Likewise.
2362         (neon_vst3_lane<mode>): Likewise.
2363         (neon_vld4_lane<mode>): Likewise.
2364         (neon_vst4_lane<mode>): Likewise.
2366 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
2367             Sebastian Pop  <s.pop@samsung.com>
2369         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2370         New member codegen_error
2371         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
2372         early return.
2373         (translate_isl_ast_node_user): Early return in case of error.
2374         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2375         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
2376         (add_parameters_to_ivs_params): Remove macro.
2377         (graphite_regenerate_ast_isl): Add if_region pointer to region.
2378         * graphite-poly.c (new_poly_dr): Remove macro.
2379         (print_pdr): Same.
2380         (new_gimple_poly_bb): Same.
2381         (free_gimple_poly_bb): Same.
2382         (print_scop_params): Same.
2383         * graphite-poly.h (struct poly_dr): Same.
2384         (struct poly_bb): Add new_bb.
2385         (gbb_from_bb): Remove dead code.
2386         (pbb_from_bb): Same.
2387         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
2388         (parameter_index_in_region): Same.
2389         (find_scop_parameters): Same.
2390         (build_cross_bb_scalars_def): New.
2391         (build_cross_bb_scalars_use): New.
2392         (graphite_find_cross_bb_scalar_vars): New
2393         (try_generate_gimple_bb): Reads and Writes.
2394         (build_alias_set): Move.
2395         (gather_bbs::before_dom_children): Gather bbs visited.
2396         (build_scops): call build_alias_set.
2397         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
2398         (remove_simple_copy_phi): Delete.
2399         (remove_invariant_phi): Delete.
2400         (simple_copy_phi_p): Delete.
2401         (reduction_phi_p): Delete.
2402         (isl_id_for_dr): Remove unused param.
2403         (parameter_index_in_region_1): Remove macro usage.
2404         (set_scop_parameter_dim): Same.
2405         (add_param_constraints): Same.
2406         (add_conditions_to_constraints): Same
2407         (build_scop_iteration_domain): Same.
2408         (pdr_add_alias_set): Comment.
2409         (add_scalar_version_numbers): New.
2410         (build_poly_dr): ISL id.
2411         (build_scop_drs): Move.
2412         (build_poly_sr_1): Same.
2413         (insert_stmts): Remove.
2414         (build_poly_sr): New.
2415         (new_pbb_from_pbb): Delete.
2416         (insert_out_of_ssa_copy_on_edge): Delete.
2417         (create_zero_dim_array): Delete.
2418         (scalar_close_phi_node_p): Delete.
2419         (propagate_expr_outside_region): Delete.
2420         (rewrite_close_phi_out_of_ssa): Delete.
2421         (rewrite_phi_out_of_ssa): Delete.
2422         (rewrite_degenerate_phi): Delete.
2423         (rewrite_reductions_out_of_ssa): Delete.
2424         (rewrite_cross_bb_scalar_dependence): Delete.
2425         (handle_scalar_deps_crossing_scop_limits):
2426         (rewrite_cross_bb_scalar_deps): Delete.
2427         (build_poly_scop): Remove calls to out-of-ssa functions.
2428         * graphite.c (graphite_transform_loops): Early return in case of
2429         codegen error.
2430         * sese.c (debug_rename_map_1): Delete.
2431         (debug_rename_map): Delete.
2432         (sese_record_loop): Remove macro.
2433         (build_sese_loop_nests): Same.
2434         (new_sese_info): Same.
2435         (free_sese_info): Same.
2436         (sese_insert_phis_for_liveouts):
2437         (is_loop_closed_ssa_use): New.
2438         (number_of_phi_nodes): New.
2439         (bb_contains_loop_close_phi_nodes): New.
2440         (bb_contains_loop_phi_nodes): New.
2441         (phi_uses_name): New.
2442         (is_valid_rename):
2443         (get_rename): Add old_bb and loop_phi for more precise matching of
2444         exprs.
2445         (set_rename): Pass region.
2446         (later_of_the_two): New.
2447         (gsi_insert_earliest): New.
2448         (collect_all_ssa_names): New.
2449         (substitute_ssa_name): New.
2450         (rename_all_uses): New.
2451         (get_rename_from_scev): New.
2452         (rename_uses): Pass old_bb for more precise matching of exprs.
2453         (get_def_bb_for_const): New.
2454         (get_new_name): New.
2455         (get_loc): New.
2456         (get_edges): New.
2457         (copy_loop_phi_args): New.
2458         (copy_loop_phi_nodes): New.
2459         (get_loop_init_value): New.
2460         (find_init_value): New.
2461         (find_init_value_close_phi): New.
2462         (copy_loop_close_phi_args): New.
2463         (copy_loop_close_phi_nodes): New.
2464         (add_phi_arg_for_new_expr): New.
2465         (copy_cond_phi_args): New.
2466         (copy_cond_phi_nodes): New.
2467         (copy_phi_nodes): New.
2468         (should_copy_to_new_region): New.
2469         (set_rename_for_each_def): New.
2470         (graphite_copy_stmts_from_block): Early return in case of error.
2471         (copy_bb_and_scalar_dependences): Same.
2472         * sese.h (vec_find): New.
2473         (SESE_PARAMS): Delete.
2474         (SESE_LOOPS): Delete.
2475         (SESE_LOOP_NEST): Delete.
2476         (sese_contains_loop): Remove macro usage.
2477         (sese_nb_params): Same.
2478         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
2480 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2482         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
2483         isl_union_map_add_map on every pbb->schedule.
2485 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2487         * tree-parloops.c (create_parallel_loop): Return void.
2489 2015-11-11  Tom de Vries  <tom@codesourcery.com>
2491         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
2492         block only when needed.
2494 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
2496         * config/alpha/alpha-protos.h (print_operand): Remove.
2497         (print_operand_address): Remove.
2498         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
2499         (PRINT_OPERAND_ADDRESS): Remove.
2500         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
2501         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
2502         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
2503         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
2504         (print_operand_address): Rename to...
2505         (alpha_print_operand_address): ...this and make static.
2506         (print_operand): Rename to...
2507         (alpha_print_operand): ...this and make static.
2508         (alpha_print_operand_punct_valid_p): New static function.
2510 2015-11-11  Richard Biener  <rguenther@suse.de>
2512         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
2513         Declare.
2514         (vect_analyze_data_refs_alignment): Make loop vect specific.
2515         (vect_verify_datarefs_alignment): Likewise.
2516         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
2517         Add missing continue.
2518         (vect_compute_data_ref_alignment): Export.
2519         (vect_compute_data_refs_alignment): Merge into...
2520         (vect_analyze_data_refs_alignment): ... this.
2521         (verify_data_ref_alignment): Split out from ...
2522         (vect_verify_datarefs_alignment): ... here.
2523         (vect_slp_analyze_and_verify_node_alignment): New function.
2524         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
2525         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
2526         misplaced checks on alignment.
2527         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
2528         alignment analysis after SLP discovery and do it per instance.
2529         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
2530         bother to re-try using different vector sizes.
2532 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2533             Cesar Philippidis  <cesar@codesourcery.com>
2535         * gimplify.c (enum omp_region_type): Add ORT_ACC,
2536         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
2537         (gimple_add_tmp_var): Add ORT_ACC checks.
2538         (gimplify_var_or_parm_decl): Likewise.
2539         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
2540         (omp_add_variable): Look in outer contexts for openacc and allow
2541         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
2542         (omp_notice_variable, omp_is_private, omp_check_private): Add
2543         ORT_ACC checks.
2544         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
2545         Permit private openacc reductions.
2546         (gimplify_oacc_cache): Specify ORT_ACC.
2547         (gimplify_omp_workshare): Adjust OpenACC region types.
2548         (gimplify_omp_target_update): Likewise.
2549         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
2550         (lower-rec_input_clauses): Don't handle openacc firstprivate
2551         references here.
2552         (lower_omp_target): Emit initializers for openacc firstprivate vars.
2554 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
2556         PR target/67265
2557         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
2558         frame pointer for stack checking if non-call exceptions aren't used.
2559         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
2561 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
2563         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
2564         [LA]SHIFTRT.
2566 2015-11-11  Martin Liska  <mliska@suse.cz>
2567             Richard Biener  <rguenther@suse.de>
2569         PR rtl-optimization/68287
2570         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
2571         number of elements.
2573 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
2575         * config/mips/mips.c (mips_breakable_sequence_p): New function.
2576         (mips_break_sequence): New function.
2577         (mips_reorg_process_insns): Use them. Use compact branches in selected
2578         situations.
2580 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
2582         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
2584 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
2585             Jim Wilson  <wilson@gcc.gnu.org>
2587         PR target/67305
2588         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
2589         be true and eliminable registers mentioned.
2591 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
2593         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
2594         options.
2595         * config/arc/arc-opts.h: Add ARCv2 CPUs.
2596         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
2597         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
2598         situation, and store instructions with large offsets.
2599         (arc_secondary_reload_conv): New function.
2600         (arc_init): Add ARCv2 options.
2601         (arc_conditional_register_usage): Select the proper register usage
2602         for ARCv2 processors.
2603         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
2604         architecture.
2605         (arc_compute_function_type): Likewise.
2606         (arc_print_operand): Handle new ARCv2 punctuation characters.
2607         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
2608         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
2609         function.
2610         (arc_reorg, arc_hazard): Use it.
2611         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
2612         (ASM_SPEC): Add ARCv2 options.
2613         (TARGET_NORM): ARC HS has norm instructions by default.
2614         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
2615         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
2616         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
2617         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
2618         Likewise.
2619         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
2620         (TARGET_LP_WR_INTERLOCK): Likewise.
2621         * config/arc/arc.md
2622         (commutative_binary_mult_comparison_result_used, movsicc_insn)
2623         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
2624         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
2625         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
2626         Use it for ARCv2.
2627         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
2628         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
2629         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
2630         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
2631         (extzvsi): New pattern.
2632         * config/arc/arc.opt: New ARCv2 options.
2633         * config/arc/arcEM.md: New file.
2634         * config/arc/arcHS.md: Likewise.
2635         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
2636         values.
2637         (Cm2): A signed 9-bit integer constant constraint.
2638         (C62): An unsigned 6-bit integer constant constraint.
2639         (C16): A signed 16-bit integer constant constraint.
2640         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
2641         (short_const_int_operand): New predicate.
2642         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
2643         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
2644         -mcode-density and -mdiv-rem.
2646 2015-11-11  Julia Koval  <julia.koval@intel.com>
2648         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
2650 2015-11-11  Julia Koval  <julia.koval@intel.com>
2652         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
2654 2015-11-11  Martin Liska  <mliska@suse.cz>
2656         * gimple-ssa-strength-reduction.c (create_phi_basis):
2657         Use auto_vec.
2658         * passes.c (release_dump_file_name): New function.
2659         (pass_init_dump_file): Used from this function.
2660         (pass_fini_dump_file): Likewise.
2661         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
2662         * var-tracking.c (vt_initialize): Use pool_allocator.
2664 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
2665             Jiong Wang      <jiong.wang@arm.com>
2667         PR tree-optimization/68234
2668         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
2669         node which estimiated to be VR_VARYING initially.
2671 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
2673         * regname.c (scan_rtx_reg): Check the matching number of consecutive
2674         registers when tying chains.
2675         (build_def_use): Move terminated_this_insn earlier in the function.
2677 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
2679         * configure.ac: Use = with test and not ==.
2680         * configure: Regenerated.
2682 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
2684         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
2685         machine asserts.  Update defines for 64 bit.
2687 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2689         PR target/63870
2690         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
2691         lane number.
2692         (neon_vst1_lane<mode>): Likewise.
2693         (neon_vld2_lane<mode>): Likewise.
2694         (neon_vst2_lane<mode>): Likewise.
2695         (neon_vld3_lane<mode>): Likewise.
2696         (neon_vst3_lane<mode>): Likewise.
2697         (neon_vld4_lane<mode>): Likewise.
2698         (neon_vst4_lane<mode>): Likewise.
2700 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2702         PR target/63870
2703         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
2704         qualifier_struct_load_store_lane_index.
2705         (arm_storestruct_lane_qualifiers) Likewise.
2706         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
2707         big-endian.
2708         (neon_vst1_lane<mode>) Likewise.
2709         (neon_vld2_lane<mode>) Likewise.
2710         (neon_vst2_lane<mode>) Likewise.
2711         (neon_vld3_lane<mode>) Likewise.
2712         (neon_vst3_lane<mode>) Likewise.
2713         (neon_vld4_lane<mode>) Likewise.
2714         (neon_vst4_lane<mode>) Likewise.
2716 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
2718         PR target/63870
2719         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
2720         qualifier_struct_load_store_lane_index.
2721         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2722         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
2723         argument qualifiers.
2724         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
2725         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
2727 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
2729         * config/nvptx/nvptx.opt (moptimize): New flag.
2730         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
2731         default.
2732         (nvptx_optimize_inner): New.
2733         (nvptx_process_pars): Call it when optimizing.
2734         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
2736 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2738         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
2739         Remove redundant code.
2741 2015-11-10  Jeff Law  <law@redhat.com>
2743         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
2744         call to output_address.
2745         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
2746         Add unnamed machine_mode argument.
2748 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2750         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
2751         default to 64-bit.
2753 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2755         * config/i386/i386.md (*movabs<mode>_1): Add explicit
2756         size directives for -masm=intel.
2757         (*movabs<mode>_2): Ditto.
2759 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2761         * config/i386/i386.c (ix86_print_operand): Remove dead code that
2762         tried to avoid (%rip) for call operands.
2764 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
2766         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
2767         argument.  Do not use RIP relative addressing when no_rip is set.
2768         (ix86_print_operand): Update call to ix86_print_operand_address_as.
2769         (ix86_print_operand_address): Ditto.
2770         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
2771         absolute movabs operand 0.  Add square braces for -masm=intel.
2772         (*movabs<mode>_2): Ditto for operand 1.
2774 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2776         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
2777         combine_vcvtf2i pattern.
2779 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2781         * config/arm/arm.c (neon_valid_immediate): Remove integer
2782         CONST_DOUBLE handling.  It should never occur.
2784 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
2786         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
2787         (ATOMIC_LDOP): Likewise.
2788         (atomic_ldop): Likewise.
2789         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
2790         (ATOMIC_LDOP): Likewise.
2791         (atomic_ldop): Likewise.
2793 2015-11-10  Martin Liska  <mliska@suse.cz>
2795         * alloc-pool.h (allocate_raw): New function.
2796         (operator new (size_t, object_allocator<T> &a)): Use the
2797         function instead of object_allocator::allocate).
2799 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2801         * config/i386/sse.md (HALFMASKMODE): New attribute.
2802         (DOUBLEMASKMODE): New attribute.
2803         (vec_pack_trunc_qi): New.
2804         (vec_pack_trunc_<mode>): New.
2805         (vec_unpacks_lo_hi): New.
2806         (vec_unpacks_lo_si): New.
2807         (vec_unpacks_lo_di): New.
2808         (vec_unpacks_hi_hi): New.
2809         (vec_unpacks_hi_<mode>): New.
2811 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2813         * optabs.c (expand_binop_directly): Allow scalar mode for
2814         vec_pack_trunc_optab.
2815         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2816         boolean vector producers from pattern sequence when computing VF.
2817         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
2818         vect_recog_mask_conversion_pattern.
2819         (search_type_for_mask): Choose the smallest
2820         type if different size types are mixed.
2821         (build_mask_conversion): New.
2822         (vect_recog_mask_conversion_pattern): New.
2823         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
2824         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
2825         load with pattern.
2826         (vectorizable_conversion): Support boolean vectors.
2827         (free_stmt_vec_info): Allow patterns for statements with no lhs.
2828         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
2830 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2832         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
2833         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
2834         Cast mask to FP mode if required.
2835         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
2836         (vcond_mask_<mode><avx512fmaskmodelower>): New.
2837         (vcond_mask_<mode><sseintvecmodelower>): New.
2838         (vcond_mask_<mode><sseintvecmodelower>): New.
2839         (vcond_mask_v2div2di): New.
2840         (vcond_mask_<mode><sseintvecmodelower>): New.
2841         (vcond_mask_<mode><sseintvecmodelower>): New.
2843 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2845         * optabs-query.h (get_vcond_mask_icode): New.
2846         * optabs-tree.c (expand_vec_cond_expr_p): Use
2847         get_vcond_mask_icode for VEC_COND_EXPR with mask.
2848         * optabs.c (expand_vec_cond_mask_expr): New.
2849         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
2850         * optabs.def (vcond_mask_optab): New.
2851         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
2852         generate redundant comparison for COND_EXPR.
2853         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
2854         as a condition.
2855         (vectorizable_condition): Likewise.
2856         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
2857         cond_exp with no embedded comparison.
2858         (vect_build_slp_tree_1): Likewise.
2860 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2862         * config/i386/sse.md (maskload<mode>): Rename to ...
2863         (maskload<mode><sseintvecmodelower>): ... this.
2864         (maskstore<mode>): Rename to ...
2865         (maskstore<mode><sseintvecmodelower>): ... this.
2866         (maskload<mode><avx512fmaskmodelower>): New.
2867         (maskstore<mode><avx512fmaskmodelower>): New.
2869 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2871         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
2872         (expand_MASK_STORE): Adjust to maskstore optab changes.
2873         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
2874          Adjust to maskload, maskstore optab changes.
2875         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
2876         * optabs.def (maskload_optab): Transform into convert optab.
2877         (maskstore_optab): Likewise.
2878         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
2879         can_vec_mask_load_store_p signature change.
2880         (predicate_mem_writes): Use boolean mask.
2881         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
2882         can_vec_mask_load_store_p signature change.  Allow invariant masks.
2883         (vectorizable_operation): Ignore type precision for boolean vectors.
2885 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
2887         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
2888         (const_vector_mask_from_tree): New.
2889         (const_vector_from_tree): Use const_vector_mask_from_tree
2890         for boolean vectors.
2891         * optabs-query.h (get_vec_cmp_icode): New.
2892         * optabs-tree.c (expand_vec_cmp_expr_p): New.
2893         * optabs-tree.h (expand_vec_cmp_expr_p): New.
2894         * optabs.c (vector_compare_rtx): Add OPNO arg.
2895         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
2896         (expand_vec_cmp_expr): New.
2897         * optabs.def (vec_cmp_optab): New.
2898         (vec_cmpu_optab): New.
2899         * optabs.h (expand_vec_cmp_expr): New.
2900         * tree-vect-generic.c (expand_vector_comparison): Add vector
2901         comparison optabs check.
2902         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
2903         operations for VF.  Add mask type computation.
2904         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
2905         (vectorizable_comparison): New.
2906         (vect_analyze_stmt): Add vectorizable_comparison.
2907         (vect_transform_stmt): Likewise.
2908         (vect_init_vector): Support boolean vector invariants.
2909         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2910         (vectorizable_condition): Directly provide vectype for invariants
2911         used in comparison.
2912         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
2913         (enum vect_var_kind): Add vect_mask_var.
2914         (enum stmt_vec_info_type): Add comparison_vec_info_type.
2915         (vectorizable_comparison): New.
2916         (vect_get_vec_def_for_operand): Add VECTYPE arg.
2917         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
2918         (vect_create_destination_var): Likewise.
2919         * tree-vect-patterns.c (check_bool_pattern): Check fails
2920         if we can vectorize comparison directly.
2921         (search_type_for_mask): New.
2922         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
2923         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
2924         comparison statements.
2925         (vect_get_constant_vectors): Support boolean vector constants.
2926         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
2927         (ix86_expand_int_vec_cmp): New.
2928         (ix86_expand_fp_vec_cmp): New.
2929         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
2930         op_true and op_false.
2931         (ix86_int_cmp_code_to_pcmp_immediate): New.
2932         (ix86_fp_cmp_code_to_pcmp_immediate): New.
2933         (ix86_cmp_code_to_pcmp_immediate): New.
2934         (ix86_expand_mask_vec_cmp): New.
2935         (ix86_expand_fp_vec_cmp): New.
2936         (ix86_expand_int_sse_cmp): New.
2937         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
2938         (ix86_expand_int_vec_cmp): New.
2939         (ix86_get_mask_mode): New.
2940         (TARGET_VECTORIZE_GET_MASK_MODE): New.
2941         * config/i386/sse.md (avx512fmaskmodelower): New.
2942         (vec_cmp<mode><avx512fmaskmodelower>): New.
2943         (vec_cmp<mode><sseintvecmodelower>): New.
2944         (vec_cmpv2div2di): New.
2945         (vec_cmpu<mode><avx512fmaskmodelower>): New.
2946         (vec_cmpu<mode><sseintvecmodelower>): New.
2947         (vec_cmpuv2div2di): New.
2949 2015-11-10  Richard Biener  <rguenther@suse.de>
2951         PR tree-optimization/68240
2952         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
2953         properly.
2954         (visit_phi): For PHIs with just a single executable edge
2955         take its value directly.
2956         (expressions_equal_p): Handle VN_TOP properly.
2958 2015-11-10  Richard Biener  <rguenther@suse.de>
2960         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
2961         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
2962         conservatively.
2964 2015-11-10  Richard Biener  <rguenther@suse.de>
2966         PR tree-optimization/56118
2967         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
2968         cost favor vectorized version.
2970 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2972         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
2973         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
2974         (neg_not_op): New code attribute.
2976 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2978         * ifcvt.c (noce_try_inverse_constants): New function.
2979         (noce_process_if_block): Call it.
2980         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
2981         * optabs.def (negcc_optab, notcc_optab): Declare.
2982         * optabs.c (emit_conditional_neg_or_complement): New function.
2983         * doc/tm.texi (Standard Names): Document negcc, notcc names.
2985 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2987         PR rtl-optimization/68236
2988         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
2989         if insn_queue doesn't exist.
2990         (haifa_sched_finish): Reset insn_queue to NULL.
2992 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
2994         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
2995         (build_def_use): Initialize terminated_this_insn.
2996         (find_best_rename_reg): Pick and check register from the tied chain.
2997         (regrename_do_replace): Mark head as renamed.
2998         (struct du_head *terminated_this_insn). New static variable.
2999         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
3000         * regrename.h (struct du_head): Add tied_chain, renamed members.
3002 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3004         PR bootstrap/68256
3005         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
3006         Return false.
3008 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3010         PR target/57845
3011         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
3012         not promote the mode for aggregate types.
3014 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3016         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
3017         * omp-low.c (build_oacc_routine_dims): New.
3019 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3021         * config/rs6000/constraints.md (wF constraint): New constraints
3022         for power9/toc fusion.
3023         (wG constraint): Likewise.
3025         * config/rs6000/predicates.md (u6bit_cint_operand): New
3026         predicate, recognize 0..63.
3027         (upper16_cint_operand): New predicate for power9 and toc fusion.
3028         (fpr_reg_operand): Likewise.
3029         (toc_fusion_or_p9_reg_operand): Likewise.
3030         (toc_fusion_mem_raw): Likewise.
3031         (toc_fusion_mem_wrapped): Likewise.
3032         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
3033         address range.
3034         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
3035         instead.
3036         (fusion_addis_mem_combo_load): Add support for power9 fusion of
3037         floating point loads, floating point stores, and gpr stores.
3038         (fusion_addis_mem_combo_store): Likewise.
3039         (fusion_offsettable_mem_operand): Likewise.
3041         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
3042         (emit_fusion_load_store): Likewise.
3043         (fusion_p9_p): Likewise.
3044         (expand_fusion_p9_load): Likewise.
3045         (expand_fusion_p9_store): Likewise.
3046         (emit_fusion_p9_load): Likewise.
3047         (emit_fusion_p9_store): Likewise.
3048         (fusion_wrap_memory_address): Likewise.
3050         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
3051         elements for power9 fusion.
3052         (rs6000_debug_print_mode): Rework debug information to print more
3053         information about fusion.
3054         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
3055         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
3056         offsettable memory address.
3057         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
3058         (emit_fusion_gpr_load): Move most of the code from
3059         emit_fusion_gpr_load into emit_fusion-addis that handles both
3060         power8 and power9 fusion.
3061         (emit_fusion_addis): Likewise.
3062         (emit_fusion_load_store): Likewise.
3063         (fusion_wrap_memory_address): Add support for TOC fusion.
3064         (fusion_split_address): Likewise.
3065         (fusion_p9_p): Add support for power9 fusion.
3066         (expand_fusion_p9_load): Likewise.
3067         (expand_fusion_p9_store): Likewise.
3068         (emit_fusion_p9_load): Likewise.
3069         (emit_fusion_p9_store): Likewise.
3071         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
3072         new instructions in ISA 3.0.
3073         (TARGET_CTZ): Likewise.
3074         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
3075         (TARGET_TOC_FUSION_FP): Likewise.
3077         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
3078         fusion unspecs.
3079         (UNSPEC_FUSION_ADDIS): Likewise.
3080         (QHSI mode iterator): New iterator for power9 fusion.
3081         (GPR_FUSION): Likewise.
3082         (FPR_FUSION): Likewise.
3083         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
3084         (umod<mode>3): Likewise.
3085         (divmod peephole): Likewise.
3086         (udivmod peephole): Likewise.
3087         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
3088         instructions.
3089         (ctz<mode>2_h): Likewise.
3090         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
3091         (ashdi3_extswsli_dot): Likewise.
3092         (ashdi3_extswsli_dot2): Likewise.
3093         (power9 fusion splitter): New power9/toc fusion support.
3094         (toc_fusionload_<mode>): Likewise.
3095         (toc_fusionload_di): Likewise.
3096         (fusion_gpr_load_<mode>): Update predicate function.
3097         (power9 fusion peephole2s): New power9/toc fusion support.
3098         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3099         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
3100         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3101         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3102         (fusion_p9_<mode>_constant): Likewise.
3104 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
3106         * optabs.c (prepare_libcall_arg): New function.
3107         (expand_fixed_convert): Add call to prepare_libcall_arg.
3109 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3111         * sched-int.h (dump_rgn_dependencies_dot): Declare
3112         * sched-rgn.c (dump_rgn_dependencies_dot): New function
3113         * print-rtl.h (print_insn): Add prototype
3115         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
3116         * common.opt (-fsched-verbose): Set default value to 1.
3117         * invoke.texi (-fsched-verbose): Update the option's description.
3119 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3121         * config/visium/visium.h (PRINT_OPERAND): Delete.
3122         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3123         (PRINT_OPERAND_ADDRESS): Likewise.
3124         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
3125         to...
3126         (visium_print_operand_punct_valid_p): ...this.  New function.
3127         (TARGET_PRINT_OPERAND): Define to...
3128         (print_operand): Rename to...
3129         (visium_print_operand): ...this.
3130         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
3131         (visium_output_address): Rename to...
3132         (visium_print_operand_address): ...this.
3133         (print_operand_address): Delete.
3135 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3137         PR middle-end/68259
3138         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
3139         Check that the type of the first operand is an aggregate type.
3141 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3143         * omp-low.c: Fix some OpenACC comment typos.
3144         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
3145         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
3146         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
3148 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
3150         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
3152 2015-11-09  Jeff Law  <law@redhat.com>
3154         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
3155         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
3156         Fix comment typo.
3158 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3159             Peter Bergner  <bergner@vnet.ibm.com>
3161         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
3162         ISA 3.0 (power9).
3163         (-mpower9-vector): Likewise.
3164         (-mpower9-dform): Likewise.
3165         (-mpower9-minmax): Likewise.
3166         (-mtoc-fusion): Likewise.
3167         (-mmodulo): Likewise.
3168         (-mfloat128-hardware): Likewise.
3170         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
3171         mask for ISA 3.0 (power9).
3172         (POWERPC_MASKS): Add new ISA 3.0 switches.
3173         (power9 cpu): Add power9 cpu.
3175         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
3176         (ASM_CPU_SPEC): Likewise.
3177         (EXTRA_SPECS): Likewise.
3179         * config/rs6000/rs6000-opts.h (enum processor_type): Add
3180         PROCESSOR_POWER9.
3182         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
3183         (rs6000_debug_reg_global): Add support for power9 fusion.
3184         (rs6000_setup_reg_addr_masks): Cache mode size.
3185         (rs6000_option_override_internal): Until real power9 tuning is
3186         added, use -mtune=power8 for -mcpu=power9.
3187         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
3188         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
3189         of Altivec registers.
3190         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
3191         (rs6000_loop_align): Add support for power9 cpu.
3192         (rs6000_file_start): Likewise.
3193         (rs6000_adjust_cost): Likewise.
3194         (rs6000_issue_rate): Likewise.
3195         (insn_must_be_first_in_group): Likewise.
3196         (insn_must_be_last_in_group): Likewise.
3197         (force_new_group): Likewise.
3198         (rs6000_register_move_cost): Likewise.
3199         (rs6000_opt_masks): Likewise.
3201         * config/rs6000/rs6000.md (cpu attribute): Add power9.
3202         * config/rs6000/rs6000-tables.opt: Regenerate.
3204         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3205         _ARCH_PWR9 if power9 support is available.
3207         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
3208         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
3210         * configure.ac: Determine if the assembler supports the ISA 3.0
3211         instructions.
3212         * config.in (HAVE_AS_POWER9): Likewise.
3213         * configure: Regenerate.
3215         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
3216         switches.
3218 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3220         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
3221         Remove integer CONST_DOUBLE handling.  It should never occur.
3223 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3225         PR target/68129
3226         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
3227         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
3228         Delete VOIDmode case.  Assert that mode is not VOIDmode.
3229         * config/aarch64/predicates.md (const0_operand): Remove const_double
3230         match.
3232 2015-11-09  Martin Liska  <mliska@suse.cz>
3234         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
3235         body_info release function.
3236         * ipa-prop.c (ipa_release_body_info): New function.
3237         (ipa_analyze_node): Call the function.
3238         (ipa_node_params::~ipa_node_params): Release known_csts.
3239         * ipa-prop.h (ipa_release_body_info): Declare.
3241 2015-11-09  Martin Liska  <mliska@suse.cz>
3243         * gcc.c (record_temp_file): Release name string.
3244         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
3245         * lra-lives.c (free_live_range_list): Utilize
3246         lra_live_range_pool for allocation and deallocation.
3247         (create_live_range): Likewise.
3248         (copy_live_range): Likewise.
3249         (lra_merge_live_ranges): Likewise.
3250         (remove_some_program_points_and_update_live_ranges): Likewise.
3251         (lra_create_live_ranges_1): Release point_freq_vec that can
3252         be not freed from previous iteration of the function.
3253         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
3254         * tree-sra.c (sra_deinitialize): Release all vectors in
3255         base_access_vec.
3256         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
3257         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3258         Release edge_info for a removed edge.
3259         (thread_through_all_blocks): Free region vector.
3260         * tree-ssa.h (free_dom_edge_info): Declare function extern.
3262 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
3264         * optabs.c (expand_vec_cond_expr): Always get sign from type.
3265         * tree.c (wide_int_to_tree): Support negative values for boolean.
3266         (build_nonstandard_boolean_type): Use signed type for booleans.
3268 2015-11-09  Richard Biener  <rguenther@suse.de>
3270         PR tree-optimization/68248
3271         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
3273 2015-11-09  Richard Biener  <rguenther@suse.de>
3275         PR tree-optimization/56118
3276         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
3277         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
3278         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
3279         function.
3280         (vect_slp_analyze_data_ref_dependences): Instead of computing
3281         all dependences of the region DRs just analyze the code motions
3282         SLP vectorization will perform.  Remove SLP instances that
3283         cannot have their store/load motions applied.
3284         (vect_analyze_data_refs): Allow DRs without a vectype
3285         in BB vectorization.
3287 2015-11-09  Julian Brown  <julian@codesourcery.com>
3289         * final.c (output_asm_insn): Pass VOIDmode to output_address.
3290         (output_address): Add MODE argument. Pass to print_operand_address
3291         hook.
3292         * targhooks.c (default_print_operand_address): Add MODE argument.
3293         * targhooks.h (default_print_operand_address): Update prototype.
3294         * output.h (output_address): Update prototype.
3295         * target.def (print_operand_address): Add MODE argument.
3296         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
3297         output_address.
3298         (print_operand): Pass access mode to output_address.
3299         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
3300         argument.
3301         (mcore_print_operand): Update calls to mcore_print_operand_address.
3302         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
3303         output_address.
3304         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
3305         output_address.
3306         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
3307         global.
3308         (tilegx_print_operand): Don't set above global. Update calls to
3309         output_address.
3310         (tilegx_print_operand_address): Add MODE argument. Use instead of
3311         output_memory_reference_mode global.
3312         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
3313         (frv_print_operand): Pass mode to frv_print_operand_address calls.
3314         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
3315         output_address.
3316         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
3317         (cris_print_operand): Pass mode to output_address calls.
3318         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
3319         * config/aarch64/aarch64.h (aarch64_print_operand)
3320         (aarch64_print_operand_address): Remove prototypes.
3321         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
3322         global.
3323         (aarch64_print_operand): Make static. Update calls to output_address.
3324         (aarch64_print_operand_address): Add MODE argument. Use instead of
3325         aarch64_memory_reference_mode global.
3326         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
3327         hooks.
3328         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3329         Delete macro definitions.
3330         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
3331         * config/xtensa/xtensa.c (print_operand): Pass mode in
3332         output_address calls.
3333         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
3334         argument.
3335         (h83000_print_operand): Update calls to h8300_print_operand_address
3336         and output_address.
3337         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
3338         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
3339         global.
3340         (tilepro_print_operand): Pass mode to output_address.
3341         (tilepro_print_operand_address): Add MODE argument. Use instead of
3342         output_memory_reference_mode.
3343         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
3344         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
3345         to output_address calls.
3346         (nvptx_print_operand_address): Add MODE argument.
3347         * config/alpha/alpha.c (print_operand): Pass mode argument in
3348         output_address calls.
3349         * config/m68k/m68k.c (print_operand): Pass mode argument in
3350         output_address call.
3351         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
3352         (avr_print_operand): Update calls to avr_print_operand_address.
3353         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
3354         argument. Update calls to output_address.
3355         (sparc_print_operand): Pass mode to output_address.
3356         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
3357         argument.
3358         (iq2000_print_operand): Pass mode in output_address calls.
3359         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
3360         MODE argument.
3361         (xstormy16_print_operand): Pass mode to
3362         xstormy16_print_operand_address calls.
3363         * config/mips/mips.c (mips_print_operand): Update calls to
3364         output_address.
3365         (mips_print_operand_address): Add MODE argument.
3366         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
3367         to output_address.
3368         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
3369         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
3370         output_address.
3371         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
3372         (rx_print_operand): Update calls to output_address,
3373         rx_print_operand_address.
3374         * config/nds32/nds32.c (nds32_print_operand): Update calls to
3375         output_address.
3376         (nds32_print_operand_address): Add MODE argument.
3377         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
3378         output_address calls.
3379         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
3380         output_address call.
3381         (c6x_print_address_operand): Update calls to output_address.
3382         (c6x_print_operand_address): Pass mode to above.
3383         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
3384         (v850_print_operand): Pass mode to v850_print_operand_address,
3385         output_address.
3386         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
3387         (mmix_print_operand): Pass mode in output_address calls.
3388         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
3389         (sh_print_operand): Pass mem mode to output_address,
3390         sh_print_operand_address.
3391         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
3392         (cr16_print_operand): Pass mode to output_address,
3393         cr16_print_operand_address.
3394         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
3395         output_address.
3396         * config/microblaze/microblaze.c (print_operand): Pass mode to
3397         output_address.
3398         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
3399         output_address.
3400         (nios2_print_operand_address): Add MODE argument. Update call to
3401         nios2_print_operand_address.
3402         * config/s390/s390.c (print_operand): Pass mode to output_address.
3403         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
3404         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
3405         output_address.
3406         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
3407         Use instead of output_memory_reference_mode.
3408         (output_memory_reference_mode): Delete global.
3409         (arm_print_operand): Pass mem mode to output_address.
3410         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
3411         (m32r_print_operand): Pass mode to output_address.
3412         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
3413         argument.
3414         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
3415         * config/i386/i386.c (ix86_print_operand): Pass mode to
3416         output_address calls.
3417         (ix86_print_operand_address): Add MODE argument.
3419 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3421         PR middle-end/68251
3422         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
3423         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
3424         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
3425         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3427 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3429         PR rtl-optimization/67749
3430         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
3431         case before emitting the two blocks.  Instead modify the register
3432         in the corresponding final insn of the basic block.
3434 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3436         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
3437         assembler syntax.
3438         Support Solaris ld.
3439         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
3441         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
3442         HAVE_INITFINI_ARRAY_SUPPORT.
3443         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
3445         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
3446         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
3447         Don't check HAVE_AS_SPARC_NOBITS.
3448         Heed SECTION_NOTYPE.
3450         * configure: Regenerate.
3451         * config.in: Regenerate.
3453 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3455         PR middle-end/68253
3456         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
3458 2015-11-09  Richard Henderson  <rth@redhat.com>
3460         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
3461         __SEG_GS, __SEG_TLS.
3462         (ix86_register_pragmas): Register address spaces __seg_fs,
3463         __seg_gs, __seg_tls.
3464         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
3465         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
3466         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
3467         * config/i386/i386.c (ix86_decompose_address): Likewise.
3468         (ix86_legitimate_address_p): Likewise.
3469         (memory_address_length): Likewise.  Check mem address space too.
3470         (ix86_print_operand): Use ix86_print_operand_address_as.
3471         (ix86_print_operand_address_as): Rename from
3472         ix86_print_operand_address, add new addr_space_t parameter.
3473         Validate that either the parameter or the ix86_address segment
3474         is default address space.  Handle ADDR_SPACE_SEG_TLS.
3475         (ix86_print_operand_address): New.
3476         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
3477         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
3478         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
3479         (ix86_addr_space_zero_address_valid): New.
3480         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3481         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
3482         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
3483         * config/i386/predicates.md (address_no_seg_operand): Likewise.
3484         (vsib_address_operand): Likewise.
3485         (address_mpx_no_base_operand): Likewise.
3486         (address_mpx_no_index_operand): Likewise.
3487         * doc/extend.texi (x86 Named Address Spaces): New section.
3489         * config/i386/i386.c (ix86_check_no_addr_space): New.
3490         (decide_alg): Add have_as parameter.
3491         (alg_usable_p): Likewise; disable rep algorithms if set.
3492         (ix86_expand_set_or_movmem): Notice if either MEM has a
3493         non-default address space.
3494         (ix86_expand_strlen): Likewise.
3495         * config/i386/i386.md (strmov, strset): Likewise.
3496         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
3497         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
3498         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
3499         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
3500         *cmpstrnqi_1, *strlenqi_1): Likewise.
3502         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
3503         (*movabs<mode>_2): Likewise.
3505         * dwarf2out.c (modified_type_die): Pass the address space number
3506         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
3507         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
3508         * targhooks.c (default_addr_space_debug): New.
3509         * targhooks.h (default_addr_space_debug): Declare.
3510         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
3511         * doc/tm.texi: Rebuild.
3513         * gimple.c (check_loadstore): Return false when 0 is a valid address.
3514         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
3515         null when 0 is valid in the source address space.
3516         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
3517         * targhooks.c (default_addr_space_zero_address_valid): New.
3518         * targhooks.h (default_addr_space_zero_address_valid): Declare.
3519         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
3520         * doc/tm.texi: Rebuild.
3522         * cselib.c (add_mem_for_addr): Compare address spaces when
3523         matching memories.
3524         (cselib_lookup_mem): Likewise.
3525         * fold-const.c (operand_equal_p): Check address spaces of
3526         pointer types before checking integer constants.
3528         PR tree-opt/66768
3529         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
3530         the correct type for the base.
3532 2015-11-09  Jeff Law  <law@redhat.com>
3534         * tree-into-ssa.c (names_to_release): No longer static.
3535         * tree-into-ssa.h (names_to_release): Declare.
3536         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
3537         (release_free_names_and_compact_live_names): New function extracted
3538         from pass_release_ssa_names::execute.
3539         (pass_release_ssa_names::execute): Use it.
3541 2015-11-09  Alan Modra  <amodra@gmail.com>
3543         * gensupport.c (add_mnemonic_string): Make len param a size_t.
3544         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
3545         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
3546         return value.
3548 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
3550         PR rtl-optimization/68182
3551         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
3552         branch with only one successor just like unconditional branches.
3554 2015-11-08  Jeff Law  <law@redhat.com>
3556         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
3557         non-FSM path has no edges marked with EDGE_DFS_BACK.
3558         (ssa_redirect_edges): No longer call mark_loop_for_removal.
3559         (thread_single_edge, def_split_header_continue_p): Remove.
3560         (bb_ends_with_multiway_branch): Likewise.
3561         (thread_through_loop_header): Remove cases of threading from
3562         latch through the header.  Simplify knowing we won't thread
3563         the latch.
3564         (thread_through_all_blocks): Simplify knowing that only the FSM
3565         threader needs to handle backedges.
3567 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3569         * doc/extend.texi (type attributes): Document scalar_storage_order.
3570         (Structure-Packing Pragmas): Rename into...
3571         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
3572         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
3573         (Warnings): Document -Wno-scalar-storage-order.
3574         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
3575         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
3576         extract_bit_field and store_bit_field.
3577         (initialize_argument_information): Adjust call to store_expr.
3578         (load_register_parameters): Adjust call to extract_bit_field.
3579         * expmed.c (check_reverse_storage_order_support): New function.
3580         (check_reverse_float_storage_order_support): Likewise.
3581         (flip_storage_order): Likewise.
3582         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
3583         of the value if it is true.  Pass REVERSE to recursive call after
3584         adjusting the target offset.
3585         Do not use extraction or movstrict instruction if REVERSE is true.
3586         Pass REVERSE to store_fixed_bit_field.
3587         (store_bit_field): Add REVERSE parameter and pass to it to above.
3588         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
3589         store_split_bit_field and store_fixed_bit_field_1.
3590         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
3591         order of the value if it is true and adjust the target offset.
3592         (store_split_bit_field): Add REVERSE parameter and pass it to
3593         store_fixed_bit_field.  Adjust the target offset if it is true.
3594         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
3595         of the value if it is true.  Pass REVERSE to recursive call after
3596         adjusting the target offset.
3597         Do not use extraction or subreg instruction if REVERSE is true.
3598         Pass REVERSE to extract_fixed_bit_field.
3599         (extract_bit_field): Add REVERSE parameter and pass to it to above.
3600         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
3601         extract_split_bit_field and extract_fixed_bit_field_1.
3602         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
3603         order of the value if it is true and adjust the target offset.
3604         (extract_split_bit_field): Add REVERSE parameter and pass it to
3605         extract_fixed_bit_field.  Adjust the target offset if it is true.
3606         * expmed.h (flip_storage_order): Declare.
3607         (store_bit_field): Adjust prototype.
3608         (extract_bit_field): Likewise.
3609         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3610         (emit_group_store): Adjust call to store_bit_field.
3611         (copy_blkmode_from_reg): Likewise.
3612         (copy_blkmode_to_reg): Likewise.
3613         (write_complex_part): Likewise.
3614         (read_complex_part): Likewise.
3615         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
3616         that it isn't true if the target is a register.
3617         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
3618         and flip the storage order of the value.
3619         <BIT_IOR_EXPR>: Flip the storage order of the value.
3620         (get_bit_range): Adjust call to get_inner_reference.
3621         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
3622         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
3623         with reverse storage order.
3624         (store_expr_with_bounds): Add REVERSE parameter and pass it to
3625         recursive calls and call to store_bit_field.  Force the value into a
3626         register if it is true and then flip the storage order of the value.
3627         (store_expr): Add REVERSE parameter and pass it to above.
3628         (categorize_ctor_elements_1): Adjust call to
3629         initializer_constant_valid_p.
3630         (store_constructor_field): Add REVERSE parameter and pass it to
3631         recursive calls and call to store_field.
3632         (store_constructor): Add REVERSE parameter and pass it to calls to
3633         store_constructor_field and store_expr.  Set it to true for an
3634         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
3635         (store_field): Add REVERSE parameter and pass it to recursive calls
3636         and calls to store_expr and store_bit_field.  Temporarily flip the
3637         storage order of the value with record type and integral mode and
3638         adjust the shift if it is true.
3639         (get_inner_reference): Add PREVERSEP parameter and set it to true
3640         upon encoutering a reference with reverse storage order.
3641         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
3642         (expand_constructor): Adjust call to store_constructor.
3643         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
3644         of the union type to store_expr in the MEM case and assert that it
3645         isn't set in the REG case.  Adjust call to store_field.
3646         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
3647         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
3648         get_inner_reference and extract_bit_field. Temporarily flip the
3649         storage order of the value with record type and integral mode and
3650         adjust the shift if it is true.  Flip the storage order of the value
3651         at the end if it is true.
3652         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
3653         get_inner_reference.  Do not fetch an inner reference if it is true.
3654         * expr.h (store_expr_with_bounds): Ajust prototype.
3655         (store_expr): Likewise.
3656         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
3657         REF_REVERSE_STORAGE_ORDER on the reference according to it.
3658         (optimize_bit_field_compare): Deal with reverse storage order.
3659         Adjust calls to get_inner_reference and make_bit_field_ref.
3660         (decode_field_reference): Add PREVERSEP parameter and adjust call to
3661         get_inner_reference.
3662         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
3663         to decode_field_reference and make_bit_field_ref.
3664         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
3665         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
3666         (fold_comparison): Adjust call to get_inner_reference.
3667         (split_address_to_core_and_offset): Adjust call to
3668         get_inner_reference.
3669         * gimple-expr.c (useless_type_conversion_p): Return false for array
3670         types with different TYPE_REVERSE_STORAGE_ORDER flag.
3671         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
3672         REF_REVERSE_STORAGE_ORDER flag.
3673         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
3674         * output.h (assemble_real): Adjust prototype.
3675         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
3676         * stor-layout.c (finish_record_layout): Propagate the
3677         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
3678         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
3679         (TYPE_SATURATING): Adjust.
3680         (REF_REVERSE_STORAGE_ORDER): Document.
3681         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
3682         set it to true upon encoutering a reference with reverse storage order.
3683         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
3684         * tree-inline.c (remap_gimple_op_r): Propagate the
3685         REF_REVERSE_STORAGE_ORDER flag.
3686         (copy_tree_body_r): Likewise.
3687         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
3688         store_expr.
3689         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
3690         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
3691         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
3692         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
3693         REF_REVERSE_STORAGE_ORDER flag.
3694         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
3695         (gimple_canonical_types_compatible_p): Likewise.
3696         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
3697         (TYPE_SATURATING): Adjust.
3698         (REF_REVERSE_STORAGE_ORDER): New flag.
3699         (reverse_storage_order_for_component_p): New inline predicate.
3700         (storage_order_barrier_p): Likewise.
3701         (get_inner_reference): Adjust prototype.
3702         * varasm.c: Include expmed.h.
3703         (assemble_variable_contents): Adjust call to output_constant.
3704         (assemble_real): Add REVERSE parameter.  Flip the storage
3705         order of the value if REVERSE is true.
3706         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
3707         (assemble_constant_contents): Adjust call to output_constant.
3708         (output_constant_pool_2): Adjust call to assemble_real.
3709         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
3710         TYPE_REVERSE_STORAGE_ORDER.
3711         (initializer_constant_valid_p): Add REVERSE parameter.
3712         (output_constant): Add REVERSE parameter.
3713         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
3714         <REAL_TYPE>: Adjust call to assemble_real.
3715         <COMPLEX_TYPE>: Pass it to recursive calls.
3716         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
3717         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
3718         (struct oc_local_state): Add REVERSE field.
3719         (output_constructor_array_range): Adjust calls to output_constant.
3720         (output_constructor_regular_field): Likewise.
3721         (output_constructor_bitfield): Adjust call to output_constructor.
3722         Flip the storage order of the value if REVERSE is true.
3723         (output_constructor): Add REVERSE parameter.  Set it to true for an
3724         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
3725         output_constructor_bitfield.
3726         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
3727         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
3728         * builtins.c (get_object_alignment_2): Likewise.
3729         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
3730         and get_ref_base_and_extent.
3731         * dbxout.c (dbxout_expand_expr): Likewise.
3732         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3733         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
3734         (loc_list_from_tree): Likewise.
3735         (fortran_common): Likewise.
3736         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
3737         get_ref_base_and_extent.
3738         (get_base_constructor): Likewise.
3739         (fold_const_aggregate_ref_1): Likewise.
3740         * gimple-laddress.c (pass_laddress::execute): Adjust call to
3741         get_inner_reference.
3742         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
3743         get_inner_reference and bail out on reverse storage order.
3744         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
3745         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
3746         build_ref_for_offset.
3747         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
3748         get_ref_base_and_extent.
3749         (ipa_polymorphic_call_context): Likewise.
3750         (extr_type_from_vtbl_ptr_store): Likewise.
3751         (check_stmt_for_type_change): Likewise.
3752         (get_dynamic_type): Likewise.
3753         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
3754         get_ref_base_and_extent.
3755         (compute_complex_assign_jump_func): Likewise.
3756         (get_ancestor_addr_info): Likewise.
3757         (compute_known_type_jump_func): Likewise.
3758         (determine_known_aggregate_parts): Likewise.
3759         (ipa_get_adjustment_candidate): Likewise.
3760         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
3761         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
3762         (build_ref_for_offset): Adjust prototype.
3763         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
3764         get_inner_reference.
3765         * tree-affine.c (tree_to_aff_combination): Adjust call to
3766         get_inner_reference.
3767         (get_inner_reference_aff): Likewise.
3768         * tree-data-ref.c (split_constant_offset_1): Likewise.
3769         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
3770         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
3771         get_inner_reference.
3772         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
3773         (dump_access): Print new fields.
3774         (create_access): Adjust call to get_ref_base_and_extent and set the
3775         REVERSE flag according to the result.
3776         (completely_scalarize_record): Set the REVERSE flag.
3777         (scalarize_elem): Add REVERSE parameter.
3778         (build_access_from_expr_1): Preserve storage order barriers.
3779         (build_accesses_from_assign): Likewise.
3780         (build_ref_for_offset): Add REVERSE parameter and set the
3781         REF_REVERSE_STORAGE_ORDER flag accordingly.
3782         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
3783         the REF_REVERSE_STORAGE_ORDER flag if there are components.
3784         (analyze_access_subtree): Likewise.
3785         (create_artificial_child_access): Set the REVERSE flag.
3786         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
3787         (turn_representatives_into_adjustments): Propagate REVERSE flag.
3788         (ipa_sra_check_caller): Adjust call to get_inner_reference.
3789         * tree-ssa-alias.c (ao_ref_base): Adjust call to
3790         get_ref_base_and_extent.
3791         (aliasing_component_refs_p): Likewise.
3792         (stmt_kills_ref_p_1): Likewise.
3793         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3794         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
3795         Return true if reverse storage order.
3796         <BIT_FIELD_REF>: Likewise.
3797         <COMPONENT_REF>: Likewise.
3798         <ARRAY_REF>: Likewise.
3799         <ARRAY_RANGE_REF>: Likewise.
3800         (split_address_cost): Likewise.  Bail out if reverse storage order.
3801         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
3802         get_inner_reference.  Bail out if reverse storage order.
3803         (bswap_replace): Adjust call to get_inner_reference.
3804         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
3805         the REF_REVERSE_STORAGE_ORDER flag.
3806         <BIT_FIELD_REF>: Likewise.
3807         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
3808         barriers.
3809         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
3810         to the REF_REVERSE_STORAGE_ORDER flag.
3811         <BIT_FIELD_REF>: Likewise.
3812         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
3813         (contains_storage_order_barrier_p): New predicate.
3814         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
3815         Punt on storage order barriers if necessary.
3816         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
3817         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
3818         call to get_ref_base_and_extent.
3819         (do_structure_copy): Likewise.
3820         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
3821         get_inner_reference.
3822         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
3823         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
3824         * ubsan.c (instrument_bool_enum_load): Likewise.
3825         (instrument_object_size): Likewise.
3826         * var-tracking.c (track_expr_p): Adjust call to
3827         get_ref_base_and_extent.
3828         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
3829         get_inner_reference.
3830         * config/s390/s390.c (s390_expand_atomic): Adjust call to
3831         store_bit_field.
3832         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
3833         extract_bit_field.
3834         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
3836 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3838         * config/sparc/sparc.opt (mfix-at697f): Add final period.
3840 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
3842         PR rtl-optimization/67864
3843         * common/config/i386/i386-common.c (ix86_option_optimization_table)
3844         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
3845         at -Os and up.
3847 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3849         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
3850         internal functions.
3852 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3854         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
3855         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
3857 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3859         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
3860         * internal-fn.c: Don't undef it here.
3861         * tree-core.h: Likewise.
3863 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3865         * builtins.c (fold_builtin_nan): Delete.
3866         (fold_builtin_memcmp): Remove case where both arguments are constant.
3867         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
3868         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
3869         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
3870         * fold-const-call.c: Include fold-const.h.
3871         (host_size_t_cst_p): New function.
3872         (build_cmp_result, fold_const_builtin_nan): Likewise.
3873         (fold_const_call_1): New function, split out from...
3874         (fold_const_call): ...here (for all three interfaces).  Handle
3875         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
3877 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3879         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
3880         (fold_builtin_1): Don't call them.
3881         * fold-const-call.c: Include tm.h.
3882         (fold_const_call_ss): New variant for integer-to-integer folds.
3883         (fold_const_call): Call it.
3885 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3887         * builtins.c (fold_builtin_classify): Move constant cases to...
3888         * fold-const-call.c (fold_const_call_ss): ...here.
3890 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3892         * builtins.h (c_getstr): Move to...
3893         * fold-const.h (c_getstr): ...here.
3894         * builtins.c (c_getstr): Move to...
3895         * fold-const.c (c_getstr): ...here.
3897 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3899         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
3900         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
3902 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
3904         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
3905         the dominance info; free it if we can't.
3906         (pass_call_cdce::execute): Don't free the dominance info here.
3908 2015-11-06  Jeff Law <law@redhat.com>
3910         * tree-ssa-threadedge.c (dummy_simplify): Remove.
3911         (thread_around_empty_blocks): Remove backedge_seen_p argument.
3912         If we thread to a backedge, then return false.  Update recursive
3913         call to eliminate backedge_seen_p argument.
3914         (thread_through_normal_block): Remove backedge_seen_p argument.
3915         Remove backedge_seen_p argument from calls to
3916         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
3917         If we thread to a backedge, then return 0.
3918         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
3919         pass it to thread_through_normal_block or thread_through_empty_blocks.
3920         For joiner handling, if we see a backedge, do not try normal
3921         threading.
3923 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3925         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
3926         * graphite-poly.c (new_scop): Initialize original_schedule.
3927         (free_scop): Free original_schedule.
3928         * graphite-poly.h (struct scop): Add field original_schedule.
3929         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
3930         (build_poly_scop): Call build_scop_original_schedule.
3932 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3934         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3935         (build_pbb_minimal_scattering_polyhedrons): New.
3936         (build_scop_scattering): Remove.
3937         (build_scop_minimal_scattering): New.
3938         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
3939         (build_poly_scop): Call build_scop_minimal_scattering.
3941 2015-11-06  Jeff Law <law@redhat.com>
3943         * cfg-flags.def (IGNORE): New edge flag.
3944         * tree-vrp.c (identify_jump_threads): Mark and clear edges
3945         scheduled for removal with EDGE_IGNORE around call into
3946         jump threader.  Do no thread across edges with EDGE_IGNORE,
3947         but do allow threading across those with EDGE_DFS_BACK.
3949 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
3951         * doc/md.texi (multi-alternative constraints): Don't document
3952         alternatives inherently tied to reload for the user documentation.
3954 2015-11-06  Michael Collison  <michael.collison@linaro.org>
3955             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3957         Revert:
3958         2015-08-01  Michael Collison  <michael.collison@linaro.org
3959                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3961         * config/arm/arm.md (*arm_smin_cmp): New pattern.
3962         (*arm_umin_cmp): Likewise.
3964 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
3966         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
3967         * omp-low.c (check_omp_nesting_restrictions): Update for the
3968         various new OpenMP 4.5 nesting restrictions, clarified
3969         nesting glossary, closely nested region relationship clarified
3970         to mean explicit or implicit parallel regions (target/teams),
3971         use %</%> or %qs where appropriate.
3973 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3974             Sebastian Pop  <s.pop@samsung.com>
3976         * graphite-scop-detection.c (loop_is_valid_scop): Call
3977         optimize_loop_nest_for_speed_p.
3979 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3980             Sebastian Pop  <s.pop@samsung.com>
3982         * graphite-optimize-isl.c (optimize_isl): Call
3983         isl_options_set_schedule_maximize_band_depth.
3985 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
3986             Sebastian Pop  <s.pop@samsung.com>
3988         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
3989         and exit edges should not be a part of irreducible loop.
3990         (scop_detection::can_represent_loop_1): Loops should not be
3991         irreducible.
3992         (scop_detection::harmful_stmt_in_region): All the basic block
3993         should belong to reducible loops.
3995 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
3997         * config/aarch64/aarch64-simd-builtins.def: Update builtins
3998         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
3999         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
4000         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
4001         (aarch64_tbx4v8qi): Rename to...
4002         aarch64_tbx4<mode>): ... this.
4003         (aarch64_qtbl3<mode>): New pattern.
4004         (aarch64_qtbx3<mode>): New pattern.
4005         (aarch64_qtbl4<mode>): New pattern.
4006         (aarch64_qtbx4<mode>): New pattern.
4007         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
4008         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
4009         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
4010         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
4011         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
4012         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
4013         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
4014         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
4015         functions.
4017 2015-11-06  Mike Stump  <mikestump@comcast.net>
4019         PR debug/66728
4020         * dwarf2out.c (get_full_len): Return a value based upon the actual
4021         precision needed for the value.
4022         (add_const_value_attribute): Use a maximal wide-int for
4023         CONST_WIDE_INTs, not VOIDmode.
4024         (output_die): Don't ever output NULL with printf.
4026         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
4027         BLKmode nor VOIDmode values.
4029 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4031         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
4032         and "range2".
4033         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
4034         * diagnostic-core.h (warning_at_rich_loc): New declaration.
4035         (error_at_rich_loc): New declaration.
4036         (permerror_at_rich_loc): New declaration.
4037         (inform_at_rich_loc): New declaration.
4038         * diagnostic-show-locus.c (adjust_line): Delete.
4039         (struct point_state): New struct.
4040         (class colorizer): New class.
4041         (class layout_point): New class.
4042         (class layout_range): New class.
4043         (struct line_bounds): New.
4044         (class layout): New class.
4045         (colorizer::colorizer): New ctor.
4046         (colorizer::~colorizer): New dtor.
4047         (layout::layout): New ctor.
4048         (layout::print_source_line): New method.
4049         (layout::print_annotation_line): New method.
4050         (layout::get_state_at_point): New method.
4051         (layout::get_x_bound_for_row): New method.
4052         (diagnostic_show_locus): Reimplement in terms of class layout.
4053         (diagnostic_print_caret_line): Delete.
4054         * diagnostic.c (diagnostic_initialize): Replace
4055         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
4056         (diagnostic_set_info_translated): Convert param from location_t
4057         to rich_location *.  Eliminate calls to set_location on the
4058         message in favor of storing the rich_location ptr there.
4059         (diagnostic_set_info): Convert param from location_t to
4060         rich_location *.
4061         (diagnostic_build_prefix): Break out array into...
4062         (diagnostic_kind_color): New variable.
4063         (diagnostic_get_color_for_kind): New function.
4064         (diagnostic_report_diagnostic): Colorize the option_text
4065         using the color for the severity.
4066         (diagnostic_append_note): Update for change in signature of
4067         diagnostic_set_info.
4068         (diagnostic_append_note_at_rich_loc): New function.
4069         (emit_diagnostic): Update for change in signature of
4070         diagnostic_set_info.
4071         (inform): Likewise.
4072         (inform_at_rich_loc): New function.
4073         (inform_n): Update for change in signature of diagnostic_set_info.
4074         (warning): Likewise.
4075         (warning_at): Likewise.
4076         (warning_at_rich_loc): New function.
4077         (warning_n): Update for change in signature of diagnostic_set_info.
4078         (pedwarn): Likewise.
4079         (permerror): Likewise.
4080         (permerror_at_rich_loc): New function.
4081         (error): Update for change in signature of diagnostic_set_info.
4082         (error_n): Likewise.
4083         (error_at): Likewise.
4084         (error_at_rich_loc): New function.
4085         (sorry): Update for change in signature of diagnostic_set_info.
4086         (fatal_error): Likewise.
4087         (internal_error): Likewise.
4088         (internal_error_no_backtrace): Likewise.
4089         (source_range::debug): New function.
4090         * diagnostic.h (struct diagnostic_info): Eliminate field
4091         "override_column".  Add field "richloc".
4092         (struct diagnostic_context): Add field "colorize_source_p".
4093         (diagnostic_override_column): Delete.
4094         (diagnostic_set_info): Convert param from location_t to
4095         rich_location *.
4096         (diagnostic_set_info_translated): Likewise.
4097         (diagnostic_append_note_at_rich_loc): New function.
4098         (diagnostic_num_locations): New function.
4099         (diagnostic_expand_location): Get the location from the
4100         rich_location.
4101         (diagnostic_print_caret_line): Delete.
4102         (diagnostic_get_color_for_kind): New declaration.
4103         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
4104         (error_cb): Update for change in signature of "error" callback.
4105         (fatal_at): Likewise.
4106         (warning_at): Likewise.
4107         * input.c (linemap_client_expand_location_to_spelling_point): New.
4108         * pretty-print.c (text_info::set_range): New method.
4109         (text_info::get_location): New method.
4110         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
4111         (struct text_info): Eliminate "locations" array in favor of
4112         "m_richloc", a rich_location *.
4113         (textinfo::set_location): Add a "caret_p" param, and reimplement
4114         in terms of a call to set_range.
4115         (textinfo::get_location): Eliminate inline implementation in favor of
4116         an out-of-line reimplementation.
4117         (textinfo::set_range): New method.
4118         * rtl-error.c (diagnostic_for_asm): Update for change in signature
4119         of diagnostic_set_info.
4120         * tree-diagnostic.c (default_tree_printer): Update for new
4121         "caret_p" param for textinfo::set_location.
4122         * tree-pretty-print.c (percent_K_format): Likewise.
4124 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4126         Properly apply.
4127         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4128         * config/aarch64/aarch64.c
4129         (aarch64_can_use_per_function_literal_pools_p): New.
4130         (aarch64_use_blocks_for_constant_p): Adjust declaration
4131         and use aarch64_can_use_function_literal_pools_p.
4132         (aarch64_select_rtx_section): Update.
4134 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4136         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
4137         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
4138         (arm_output_multireg_pop): Likewise.
4139         (output_move_double):  Likewise.
4140         (output_move_quad):  Likewise.
4141         (output_return_instruction): Likewise.
4142         (arm_print_operand): Remove support for %( and %. print modifiers.
4143         (arm_output_shift): Make unified asm.
4144         (arm_declare_function_name): Likewise.
4145         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
4146         (ASM_APP_OFF): Adjust.
4147         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
4148         (ASM_OUTPUT_REG_POP): Likewise.
4149         * config/arm/arm.md: Adjust uses of %., %(, %)
4150         * config/arm/sync.md: Likewise.
4151         * config/arm/thumb2.md: Likewise.
4152         * config/arm/ldmstm.md: Regenerate.
4153         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
4154         * doc/invoke.texi (masm-unified-syntax): Update documentation.
4156 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
4158         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
4160 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4162         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
4163         add OEP_MATCH_SIDE_EFFECTS.
4164         * fold-const.c (operand_equal_p): Update documentation; handle
4165         OEP_MATCH_SIDE_EFFECTS.
4166         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
4167         OEP_MATCH_SIDE_EFFECTS.
4169 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
4170             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4172         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
4173         * config/aarch64/aarch64-protos.h: Declare.
4174         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
4175         frsqrts.
4176         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
4177         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
4178         code when applicable.
4179         * config/aarch64/aarch64.md: Added enum entries.
4180         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
4182 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
4184         PR ipa/68057
4185         PR ipa/68220
4186         * ipa-polymorphic-call.c
4187         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
4188         issue when offset is out of range.
4189         (contains_type_p): Fix out of range check, clear dynamic flag.
4191 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
4193         * config.gcc (e6500): Fix cpu_is_64bit typo.
4195 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
4197         * tree-sra.c (completely_scalarize): Properly handle negative array
4198         indices using offset_int.
4200 2015-11-06  Richard Biener  <rguenther@suse.de>
4202         * alloc-pool.h (object_allocator::allocate): Default-initialize
4203         object.
4205 2015-11-06  Richard Biener  <rguenther@suse.de>
4207         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
4208         * lra.c (init_reg_info): Truncate copy_vec instead of
4209         re-allocating a new one and leaking the old.
4210         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
4211         bb_infos vec.
4212         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
4213         * postreload-gcse.c (free_mem): Free modify_mem_list and
4214         canon_modify_mem_list.
4216 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
4218         PR tree-optimization/68145
4219         * tree-vect-stmts.c (vectorizable_operation): Fix
4220         determination for booleans.
4222 2015-11-06  Tom de Vries  <tom@codesourcery.com>
4224         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
4225         cond_jump, instead of split after last nondebug insn before cond_jump.
4226         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
4227         returning.
4229 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4231         PR target/68088
4232         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
4233         subregs from accumulator and make sure it's a register.
4235 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
4237         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
4238         low part to scalar.
4239         (reduc_uplus_<mode>): Remove.
4240         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
4241         loongson_extract_lo_<mode>.
4242         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
4243         reduc_smax_<mode>, reduc_smax_<mode>, use vec
4244         loongson_extract_lo_<mode>.
4245         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
4247 2015-11-06  Richard Biener  <rguenther@suse.de>
4249         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
4250         members.
4251         (vect_stmt_in_region_p): Declare.
4252         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
4253         (destroy_bb_vec_info): Likewise.
4254         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
4255         (vect_get_and_check_slp_defs): Likewise.
4256         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
4257         (vect_slp_bb): Likewise.
4258         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
4259         in terms of vect_stmt_in_region_p.
4260         (vect_pattern_recog): Iterate over the BB region.
4261         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
4262         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
4263         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
4264         * config/i386/i386.c: Include gimple-iterator.h.
4265         * config/aarch64/aarch64.c: Likewise.
4267 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
4269         PR rtl-optimization/67753
4270         PR rtl-optimization/64164
4271         * function.c (assign_parm_setup_block): Avoid allocating a
4272         stack slot if we don't have an ABI-reserved one.  Emit the
4273         copy to target_reg in the conversion seq if the copy from
4274         entry_parm is in it too.  Don't use the conversion seq to copy
4275         a PARALLEL to a REG or a CONCAT.
4277 2015-11-06  Richard Biener  <rguenther@suse.de>
4279         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
4280         equal_keys.
4282 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
4283             Thomas Schwinge  <thomas@codesourcery.com>
4284             James Norris  <jnorris@codesourcery.com>
4287         * gimplify.c (gimplify_scan_omp_clauses): Add support for
4288         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
4289         (gimplify_adjust_omp_clauses): Likewise.
4290         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
4291         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
4292         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
4293         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
4294         (omp_clause_code_name): Likewise.
4295         (walk_tree_1): Handle OMP_CLAUSE_TILE.
4296         * tree.h (OMP_TILE_LIST): New macro.
4298 2015-11-05  Martin Sebor  <msebor@redhat.com>
4300         PR c++/67942
4301         * doc/invoke.texi (-Wplacement-new): Document new option.
4303 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
4305         PR tree-optimization/65963
4306         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
4307         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
4309 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
4311         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
4312         (noce_convert_multiple_sets): Likewise.
4313         (noce_process_if_block): Call them.
4315 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4317         * gimple-fold.c: Include omp-low.h.
4318         (fold_internal_goacc_dim): New.
4319         (gimple_fold_call): Call it.
4321 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4322             Ilya Verbin  <ilya.verbin@intel.com>
4324         * builtin-types.def
4325         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
4326         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
4327         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4328         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
4329         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
4330         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
4331         (struct cgraph_simd_clone_arg): Adjust comment.
4332         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
4333         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
4334         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
4335         to GOMP_target_data_ext.
4336         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
4337         to GOMP_target_update_ext.
4338         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
4339         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
4340         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
4341         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
4342         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
4343         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
4344         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
4345         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
4346         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
4347         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
4348         * tree-core.h (enum omp_clause_schedule_kind): Add
4349         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
4350         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
4351         OMP_CLAUSE_SCHEDULE_LAST value.
4352         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
4353         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
4354         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
4355         OMP_FOR_CHECK.  Remove comment.
4356         * tree-pretty-print.c (dump_omp_clause): Handle
4357         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
4358         Simplify.  Print schedule clause modifiers.
4359         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
4360         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
4361         cases.
4362         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
4363         (omp_default_clause): Tweak for
4364         private/firstprivate/is_device_ptr variables on target
4365         construct and use_device_ptr on target data.
4366         (omp_check_private): Likewise.
4367         (omp_notice_variable): For references check whether what it refers
4368         to has mappable type, rather than the reference itself.
4369         (omp_is_private): Diagnose linear iteration variables on non-simd
4370         constructs.
4371         (omp_no_lastprivate): Return true only for Fortran.
4372         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
4373         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
4374         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
4375         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
4376         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
4377         lastprivate and linear when combined with distribute.  Gimplify
4378         variable low-bound for array reduction.  Look through
4379         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
4380         reductions.
4381         (gimplify_adjust_omp_clauses_1): For implicit references to
4382         variables with reference type and when not ref to scalar or
4383         ref to pointer, map what they refer to using tofrom and
4384         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
4385         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
4386         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
4387         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
4388         Diagnose the same var on both firstprivate and lastprivate on
4389         distribute construct.
4390         (gimplify_omp_for): Fix up handling of predetermined
4391         lastprivate or linear iter vars when combined with distribute.
4392         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
4393         functions.
4394         (gimplify_omp_workshare): Call optimize_target_teams.
4395         * omp-low.c (struct omp_region): Add sched_modifiers field.
4396         (struct omp_for_data): Likewise.
4397         (omp_any_child_fn_dumped): New variable.
4398         (extract_omp_for_data): Fill in sched_modifiers, and mask out
4399         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
4400         from sched_kind.
4401         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
4402         bits of OMP_CLAUSE_SCHED_KIND.
4403         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
4404         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
4405         for array section reductions.
4406         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
4407         for distribute parallel for, if there are lastprivate clauses on the
4408         for.
4409         (lower_rec_input_clauses): Handle non-zero low-bound on array
4410         section reductions.
4411         (lower_reduction_clauses): Likewise.
4412         (lower_send_clauses): Look through POINTER_PLUS_EXPR
4413         for array section reductions.
4414         (expand_parallel_call): Use nonmonotonic entrypoints for
4415         nonmonotonic: dynamic/guided.
4416         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
4417         child_fn if current_function_decl has assembler name set, but child_fn
4418         does not.  Dump the header and IL of the child function when not in SSA
4419         form.
4420         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
4421         arguments to BUILT_IN_GOMP_TARGET.
4422         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4423         Initialize the extra _looptemp_ clause to fd->loop.n2.
4424         (expand_omp_for): Use nonmonotonic entrypoints for
4425         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
4426         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
4427         again if we have dumped any child functions.
4428         (lower_omp_for_lastprivate): Determine the right count variable
4429         for distribute simd, or distribute parallel for{, simd}.
4430         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
4431         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
4432         support.
4433         (simd_clone_clauses_extract): Handle variable step
4434         for references and arguments passed by reference.
4435         (simd_clone_mangle): Mangle ref/uval/val variable steps.
4436         (simd_clone_adjust_argument_types): Handle
4437         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
4438         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4439         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
4440         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4441         (simd_clone_linear_addend): New function.
4442         (simd_clone_adjust): Handle variable step like similarly
4443         to constant step, use simd_clone_linear_addend to determine
4444         the actual step at runtime.
4446 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4448         * target.def (goacc.dim_limit): New hook.
4449         * targhooks.h (default_goacc_dim_limit): Declare.
4450         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
4451         * doc/tm.texi: Rebuilt.
4452         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
4453         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
4454         (default_goacc_dim_limit): New.
4455         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4456         (nvptx_goacc_dim_limit) New.
4457         (TARGET_GOACC_DIM_LIMIT): Override.
4458         * tree-vrp.c: Include omp-low.h, target.h.
4459         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
4460         IFN_GOACC_DIM_POS.
4462 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4464         * tree-vect-generic.c (do_compare): Use -1 for true
4465         result instead of 1.
4467 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4469         * config/aarch64/aarch64.c
4470         (aarch64_can_use_per_function_literal_pools_p): New.
4471         (aarch64_use_blocks_for_constant_p): Adjust declaration
4472         and use aarch64_can_use_function_literal_pools_p.
4473         (aarch64_select_rtx_section): Update.
4475 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
4477         * targhooks.c (default_get_mask_mode): Use BLKmode in
4478         case target doesn't support required vector mode.
4479         * stor-layout.c (layout_type); Check for BLKmode.
4481 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4482             Sebastian Pop  <s.pop@samsung.com>
4484         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4485         Remove use of parameter_rename_map.
4486         (copy_def): Remove.
4487         (copy_internal_parameters): Remove.
4488         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4489         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4490         (free_sese_info): Do not free parameter_rename_map.
4491         (set_rename): Do not use parameter_rename_map.
4492         (rename_uses): Update call to set_rename.
4493         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4494         * sese.h (parameter_rename_map_t): Remove.
4495         (struct sese_info_t): Remove field parameter_rename_map.
4497 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
4498             Sebastian Pop  <s.pop@samsung.com>
4500         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
4501         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
4502         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
4503         anonymous namespace.
4504         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
4505         (isl_id_for_pbb): Use a buffer of size 10.
4506         (isl_id_for_ssa_name): Same.
4507         * sese.c (set_rename): Add more dumps.
4509 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4511         * omp-low.c (struct omp_context): Remove reduction_map field.
4512         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
4513         (new_omp_context, delete_omp_context, scan_omp_target): Remove
4514         reduction_map handling.
4515         (lower_omp_target): Remove obsolete openacc reduction handling.
4517 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4519         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
4521 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4522             Cesar Philippidis  <cesar@codesourcery.com>
4524         * config/nvptx/nvptx.c: Include gimple headers.
4525         (worker_red_size, worker_red_align, worker_red_name,
4526         worker_red_sym): New.
4527         (nvptx_option_override): Initialize worker reduction buffer.
4528         (nvptx_file_end): Write out worker reduction buffer var.
4529         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
4530         nvptx_expand_cmp_swap): New builtin expanders.
4531         (enum nvptx_builtins): New.
4532         (nvptx_builtin_decls): New.
4533         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
4534         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
4535         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
4536         nvptx_lockless_update): New helpers.
4537         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
4538         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
4539         (nvptx_goacc_reduction): New.
4540         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
4541         TARGET_BUILTIN_DECL): Override.
4542         (TARGET_GOACC_REDUCTION): Override.
4544 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4545             Cesar Philippidis  <cesar@codesourcery.com>
4547         * internal-fn.def (GOACC_REDUCTION): New.
4548         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
4549         * internal-fn.c (expand_GOACC_REDUCTION): New.
4550         * target.def (goacc.reduction): New OpenACC hook.
4551         * targhooks.h (default_goacc_reduction): Declare.
4552         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
4553         * doc/tm.texi: Rebuilt.
4554         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
4555         scan_sharing_clauses): Remove oacc reduction handling here.
4556         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
4557         (oacc_lower_reduction_var_helper): Delete.
4558         (lower_oacc_reductions): New.
4559         (lower_reduction_clauses): Don't handle OpenACC reductions here.
4560         (lower_oacc_head_tail): Call lower_oacc_reductions.
4561         (oacc_gimple_assign, oacc_init_reduction_array,
4562         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
4563         oacc_process_reduction_data): Delete.
4564         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
4565         dummy OpenACC gang reduction for reductions at outer level.
4566         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
4567         (default_goacc_reduction): New.
4568         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
4570 2015-11-04  Martin Liska  <mliska@suse.cz>
4572         * cgraphunit.c (cgraph_node::expand_thunk): Call
4573         allocate_struct_function before init_function_start.
4574         (cgraph_node::expand): Use push_cfun and pop_cfun.
4575         * config/i386/i386.c (ix86_code_end): Call
4576         allocate_struct_function before init_function_start.
4577         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
4578         * function.c (init_function_start): Move preamble to all
4579         callers.
4580         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
4581         (execute_one_pass): Handle newly added TODO_discard_function.
4582         (execute_pass_list_1): Terminate if cfun equals to NULL.
4583         (execute_pass_list): Do not push and pop cfun, expect that
4584         cfun is set.
4585         * tree-pass.h (TODO_discard_function): Define.
4587 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
4589         * cfganal.c (inverted_post_order_compute): Remove conditional
4590         compilation, use flag_checking.
4591         * config.in: Regenerate.
4592         * configure: Regenerate.
4593         * configure.ac: Remove ENABLE_CHECKING.
4594         * genconditions.c: Do not #undef ENABLE_CHECKING.
4595         * sese.h (bb_in_region): Comment out broken check.
4596         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
4597         conditional compilation, use flag_checking.
4599 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4601         PR tree-optimization/67742
4602         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
4603         field.
4604         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
4605         (create_variable_info_for_1): Add and handle handle_param parameter.
4606         Add restrict handling.
4607         (create_variable_info_for): Call create_variable_info_for_1 with extra
4608         arg.
4609         (make_param_constraints): Drop restrict_name parameter.  Ignore
4610         vi->only_restrict_pointers.
4611         (intra_create_variable_infos): Call create_variable_info_for_1 with
4612         extra arg.  Remove restrict handling.  Call make_param_constraints with
4613         one fewer arg.
4615 2015-11-04  Tom de Vries  <tom@codesourcery.com>
4617         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
4618         variable.
4620 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4622         * config/arm/coff.h: Remove.
4624 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4626         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
4627         check for aggregate types and beef up comment for mode check.
4629 2015-11-03  Richard Biener  <rguenther@suse.de>
4631         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
4632         data references here.
4633         * tree-vect-loop.c: Include cgraph.h.
4634         (vect_analyze_loop_2): Collect data references here.
4635         * tree-vect-slp.c (find_bb_location): Inline ...
4636         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
4637         Factor in vect_slp_transform_bb.
4638         (vect_slp_transform_bb): Removed.
4639         (vect_slp_analyze_bb_1): Collect data references here.
4640         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
4641         vect_slp_bb.
4642         * tree-vectorizer.h (vect_slp_bb): Declare.
4643         (vect_slp_analyze_bb): Remove.
4644         (vect_slp_transform_bb): Remove.
4645         (find_bb_location): Remove.
4646         (vect_analyze_data_refs): Remove stmt count reference parameter.
4648 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
4650         * multiple_target.c (create_dispatcher_calls): Add target check
4651         on ifunc.
4652         (create_target_clone): Change assembler name for versioned declarations.
4654 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
4655             Chung-Lin Tang  <cltang@codesourcery.com>
4657         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
4658         * omp-low.c (check_omp_nesting_restrictions): Allow
4659         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
4660         contexts.
4662 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
4664         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
4665         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
4666         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
4667         builtin.
4668         (vmulxq_f32): Likewise.
4669         (vmulx_f64): New.
4670         (vmulxq_f64): Rewrite to call fmulx builtin.
4671         (vmulxs_f32): Likewise.
4672         (vmulxd_f64): Likewise.
4673         (vmulx_lane_f32): Remove.
4674         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
4676 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
4678         * config/aarch64/aarch64.md (*movhf_aarch64): Use
4679         aarch64_reg_or_fp_zero for second operand.
4681 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
4683         * gimple-expr.c: Include hash-set.h and rtl.h.
4684         (mark_addressable_queue): New var.
4685         (mark_addressable): Factor actual marking into...
4686         (mark_addressable_1): ... this.  Queue it up during expand.
4687         (mark_addressable_2): New.
4688         (flush_mark_addressable_queue): New.
4689         * gimple-expr.h (flush_mark_addressable_queue): Declare.
4690         * cfgexpand.c: Include gimple-expr.h.
4691         (pass_expand::execute): Flush mark_addressable queue.
4693 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
4695         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
4696         bb_no_side_effects_p tests...
4697         (tree_ssa_ifcombine_bb): ... here.
4699         PR tree-optimization/68083
4700         * tree-ssa-ifcombine.c: Include tree-ssa.h.
4701         (bb_no_side_effects_p): Test for undefined uses too.
4702         * tree-ssa.c (gimple_uses_undefined_value_p): New.
4703         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
4705 2015-11-02  Jeff Law <law@redhat.com>
4707         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
4708         cases where the loop latch edge is in the middle of an FSM path.
4710 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4712         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4713         (make_param_constraints): ... this.  Add and handle restrict_name
4714         parameter.  Handle is_full_var case.
4715         (intra_create_variable_infos): Use make_param_constraints.
4717 2015-11-03  Tom de Vries  <tom@codesourcery.com>
4719         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
4720         make_copy_constraint call with make_constraint_from call.
4722 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
4724         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
4725         PIE executables.
4727 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
4729         * builtins.h (fold_fma): Move to fold-const-call.h.
4730         * builtins.c: Include fold-const-call.h.
4731         (mathfn_built_in_2): New function, split out from...
4732         (mathfn_built_in_1): ...here.
4733         (do_real_to_int_conversion, fold_const_builtin_pow)
4734         (fold_const_builtin_logb, fold_const_builtin_significand)
4735         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
4736         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
4737         (fold_builtin_sincos): Use fold_const_call to handle constants.
4738         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
4739         checks for ERROR_MARK.  Use fold_const_call to handle constant
4740         folds for math functions.
4741         (fold_fma): Move to fold-const-call.c.
4742         * fold-const.c: Include fold-const-call.h.
4743         * Makefile.in (OBJS): Add fold-const-call.o.
4744         (PLUGIN_HEADERS): Add fold-const-call.h.
4745         * realmpfr.h (real_from_mpfr): Allow the format to be specified
4746         directly.
4747         * realmpfr.c (real_from_mpfr): Likewise.
4748         * fold-const-call.h, fold-const-call.c: New files.
4750 2015-11-02  Julian Brown  <julian@codesourcery.com>
4752         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
4753         brackets and semicolon.
4755 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
4757         Revert:
4758         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4760         PR tree-optimization/65963
4761         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4762         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4764 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
4766         PR middle-end/68166
4767         * fold-const.c: Include "md5.h".
4769 2015-11-01  Jeff Law <law@redhat.com>
4771         * vmsdbgout.c: Revert unused header file reduction patch.
4773         * config/mcore/mcore.c: Include regs.h.
4775 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4777         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
4779 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
4781         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
4782         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
4783         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
4785 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4787         * ggc-common.c: Restore needed header for checking=release.
4789 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4791         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
4793 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4795         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
4796         existing varinfo for arguments.
4798 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4800         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
4801         create_function_info_for.  Dump constraints generated during
4802         create_function_info_for. Move intra_create_variable_infos call and
4803         function-return-values-escape bit to ...
4804         (create_function_info_for): ... here, and merge
4805         intra_create_variable_infos call with argument loop.  Add and handle
4806         nonlocal_p parameter.
4808 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4810         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
4811         updating is alap, and seperated from preceding code.  Make sure
4812         insert_vi_for_tree is seperated from surrounding code.
4814 2015-10-31  Tom de Vries  <tom@codesourcery.com>
4816         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
4818 2015-10-30  Jeff Law <law@redhat.com>
4819             Nathan Sidwell  <nathan@acm.org>
4821         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
4822         args.
4823         (MOVE_MAX): Set to 8.
4825 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
4827         * cgraph.c: Include context.h for offloading.
4828         * varpool.c: Include context.h and omp-low.h.
4830 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
4832         * rtl.h (contains_symbol_ref_p): Declare.
4833         (SYMBOL_REF_P): Define.
4834         * rtlanal.c (contains_symbol_ref_p: New function.
4835         * lra-constraints.c (contains_symbol_ref_p): Remove.
4836         * var-tracking.c (contains_symbol_ref): Remove.
4837         (track_expr_p): Use contains_symbol_ref_p instead of
4838         contains_symbol_ref.
4840 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
4842         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
4843         * fold-const.c (get_array_ctor_element_at_index): New.
4844         (fold): Remove binary-search through CONSTRUCTOR, call previous.
4846         * fold-const.h (get_array_ctor_element_at_index): New.
4848 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
4850         * Makefile.in (OBJS): Add multiple_target.o.
4851         * attrib.c (make_attribute): Moved from config/i386/i386.c
4852         * config/i386/i386.c (make_attribute): Deleted.
4853         * multiple_target.c (create_dispatcher_calls): New.
4854         (get_attr_len): Ditto.
4855         (get_attr_str): Ditto.
4856         (separate_attrs): Ditto.
4857         (is_valid_asm_symbol): Ditto.
4858         (create_new_asm_name): Ditto.
4859         (create_target_clone): Ditto.
4860         (expand_target_clones): Ditto.
4861         (ipa_target_clone): Ditto.
4862         (ipa_dispatcher_calls): Ditto.
4863         * passes.def (pass_target_clone): Two new ipa passes.
4864         * tree-pass.h (make_pass_target_clone): Ditto.
4865         * doc/extend.texi (target_clones): New attribute description.
4867 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
4869         PR rtl-optimization/68106
4870         * lra-remat.c (input_regno_present_p): Process hard regs
4871         explicitly present in machine description insns.
4872         (call_used_input_regno_present_p): Ditto.
4873         (calculate_gen_cands): Ditto.
4874         (do_remat): Ditto.
4876 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
4878         * config/arm/neon-testgen.ml: Fix comment typo.
4880 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4882         * rtlanal.c (reg_set_p): Expand function comment.
4884 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
4886         * alias.c: Remove unused headers.
4887         * asan.c: Likewise.
4888         * attribs.c: Likewise.
4889         * auto-inc-dec.c: Likewise.
4890         * auto-profile.c: Likewise.
4891         * bb-reorder.c: Likewise.
4892         * bitmap.c: Likewise.
4893         * bt-load.c: Likewise.
4894         * builtins.c: Likewise.
4895         * caller-save.c: Likewise.
4896         * calls.c: Likewise.
4897         * ccmp.c: Likewise.
4898         * cfg.c: Likewise.
4899         * cfganal.c: Likewise.
4900         * cfgbuild.c: Likewise.
4901         * cfgcleanup.c: Likewise.
4902         * cfgexpand.c: Likewise.
4903         * cfghooks.c: Likewise.
4904         * cfgloop.c: Likewise.
4905         * cfgloopanal.c: Likewise.
4906         * cfgloopmanip.c: Likewise.
4907         * cfgrtl.c: Likewise.
4908         * cgraph.c: Likewise.
4909         * cgraphbuild.c: Likewise.
4910         * cgraphclones.c: Likewise.
4911         * cgraphunit.c: Likewise.
4912         * cilk-common.c: Likewise.
4913         * combine-stack-adj.c: Likewise.
4914         * combine.c: Likewise.
4915         * compare-elim.c: Likewise.
4916         * convert.c: Likewise.
4917         * coverage.c: Likewise.
4918         * cppbuiltin.c: Likewise.
4919         * cprop.c: Likewise.
4920         * cse.c: Likewise.
4921         * cselib.c: Likewise.
4922         * data-streamer-in.c: Likewise.
4923         * data-streamer-out.c: Likewise.
4924         * data-streamer.c: Likewise.
4925         * dbxout.c: Likewise.
4926         * dce.c: Likewise.
4927         * ddg.c: Likewise.
4928         * debug.c: Likewise.
4929         * df-core.c: Likewise.
4930         * df-problems.c: Likewise.
4931         * df-scan.c: Likewise.
4932         * dfp.c: Likewise.
4933         * dojump.c: Likewise.
4934         * dominance.c: Likewise.
4935         * domwalk.c: Likewise.
4936         * double-int.c: Likewise.
4937         * dse.c: Likewise.
4938         * dumpfile.c: Likewise.
4939         * dwarf2asm.c: Likewise.
4940         * dwarf2cfi.c: Likewise.
4941         * dwarf2out.c: Likewise.
4942         * emit-rtl.c: Likewise.
4943         * except.c: Likewise.
4944         * explow.c: Likewise.
4945         * expmed.c: Likewise.
4946         * expr.c: Likewise.
4947         * final.c: Likewise.
4948         * fixed-value.c: Likewise.
4949         * fold-const.c: Likewise.
4950         * function.c: Likewise.
4951         * fwprop.c: Likewise.
4952         * gcse.c: Likewise.
4953         * generic-match-head.c: Likewise.
4954         * ggc-common.c: Likewise.
4955         * gimple-builder.c: Likewise.
4956         * gimple-expr.c: Likewise.
4957         * gimple-fold.c: Likewise.
4958         * gimple-iterator.c: Likewise.
4959         * gimple-low.c: Likewise.
4960         * gimple-match-head.c: Likewise.
4961         * gimple-pretty-print.c: Likewise.
4962         * gimple-ssa-isolate-paths.c: Likewise.
4963         * gimple-ssa-strength-reduction.c: Likewise.
4964         * gimple-streamer-in.c: Likewise.
4965         * gimple-streamer-out.c: Likewise.
4966         * gimple-walk.c: Likewise.
4967         * gimple.c: Likewise.
4968         * gimplify-me.c: Likewise.
4969         * gimplify.c: Likewise.
4970         * godump.c: Likewise.
4971         * graph.c: Likewise.
4972         * graphds.c: Likewise.
4973         * haifa-sched.c: Likewise.
4974         * hw-doloop.c: Likewise.
4975         * ifcvt.c: Likewise.
4976         * init-regs.c: Likewise.
4977         * internal-fn.c: Likewise.
4978         * ipa-chkp.c: Likewise.
4979         * ipa-comdats.c: Likewise.
4980         * ipa-cp.c: Likewise.
4981         * ipa-devirt.c: Likewise.
4982         * ipa-icf-gimple.c: Likewise.
4983         * ipa-icf.c: Likewise.
4984         * ipa-inline-analysis.c: Likewise.
4985         * ipa-inline-transform.c: Likewise.
4986         * ipa-inline.c: Likewise.
4987         * ipa-polymorphic-call.c: Likewise.
4988         * ipa-profile.c: Likewise.
4989         * ipa-prop.c: Likewise.
4990         * ipa-pure-const.c: Likewise.
4991         * ipa-ref.c: Likewise.
4992         * ipa-reference.c: Likewise.
4993         * ipa-split.c: Likewise.
4994         * ipa-utils.c: Likewise.
4995         * ipa-visibility.c: Likewise.
4996         * ipa.c: Likewise.
4997         * ira-build.c: Likewise.
4998         * ira-color.c: Likewise.
4999         * ira-conflicts.c: Likewise.
5000         * ira-costs.c: Likewise.
5001         * ira-emit.c: Likewise.
5002         * ira-lives.c: Likewise.
5003         * ira.c: Likewise.
5004         * jump.c: Likewise.
5005         * langhooks.c: Likewise.
5006         * lcm.c: Likewise.
5007         * lists.c: Likewise.
5008         * loop-doloop.c: Likewise.
5009         * loop-init.c: Likewise.
5010         * loop-invariant.c: Likewise.
5011         * loop-iv.c: Likewise.
5012         * loop-unroll.c: Likewise.
5013         * lower-subreg.c: Likewise.
5014         * lra-assigns.c: Likewise.
5015         * lra-coalesce.c: Likewise.
5016         * lra-constraints.c: Likewise.
5017         * lra-eliminations.c: Likewise.
5018         * lra-lives.c: Likewise.
5019         * lra-remat.c: Likewise.
5020         * lra-spills.c: Likewise.
5021         * lra.c: Likewise.
5022         * lto-cgraph.c: Likewise.
5023         * lto-compress.c: Likewise.
5024         * lto-opts.c: Likewise.
5025         * lto-section-in.c: Likewise.
5026         * lto-section-out.c: Likewise.
5027         * lto-streamer-in.c: Likewise.
5028         * lto-streamer-out.c: Likewise.
5029         * lto-streamer.c: Likewise.
5030         * mcf.c: Likewise.
5031         * mode-switching.c: Likewise.
5032         * modulo-sched.c: Likewise.
5033         * optabs.c: Likewise.
5034         * opts-global.c: Likewise.
5035         * passes.c: Likewise.
5036         * plugin.c: Likewise.
5037         * postreload-gcse.c: Likewise.
5038         * postreload.c: Likewise.
5039         * predict.c: Likewise.
5040         * print-tree.c: Likewise.
5041         * profile.c: Likewise.
5042         * real.c: Likewise.
5043         * realmpfr.c: Likewise.
5044         * recog.c: Likewise.
5045         * ree.c: Likewise.
5046         * reg-stack.c: Likewise.
5047         * regcprop.c: Likewise.
5048         * reginfo.c: Likewise.
5049         * regrename.c: Likewise.
5050         * regstat.c: Likewise.
5051         * reload.c: Likewise.
5052         * reload1.c: Likewise.
5053         * reorg.c: Likewise.
5054         * resource.c: Likewise.
5055         * rtl-chkp.c: Likewise.
5056         * rtl-error.c: Likewise.
5057         * rtlanal.c: Likewise.
5058         * rtlhooks.c: Likewise.
5059         * sanopt.c: Likewise.
5060         * sched-deps.c: Likewise.
5061         * sched-ebb.c: Likewise.
5062         * sched-rgn.c: Likewise.
5063         * sdbout.c: Likewise.
5064         * sel-sched-dump.c: Likewise.
5065         * sel-sched-ir.c: Likewise.
5066         * sel-sched.c: Likewise.
5067         * sese.c: Likewise.
5068         * shrink-wrap.c: Likewise.
5069         * simplify-rtx.c: Likewise.
5070         * stack-ptr-mod.c: Likewise.
5071         * statistics.c: Likewise.
5072         * stmt.c: Likewise.
5073         * stor-layout.c: Likewise.
5074         * store-motion.c: Likewise.
5075         * stringpool.c: Likewise.
5076         * symtab.c: Likewise.
5077         * target-globals.c: Likewise.
5078         * targhooks.c: Likewise.
5079         * toplev.c: Likewise.
5080         * tracer.c: Likewise.
5081         * trans-mem.c: Likewise.
5082         * tree-affine.c: Likewise.
5083         * tree-call-cdce.c: Likewise.
5084         * tree-cfg.c: Likewise.
5085         * tree-cfgcleanup.c: Likewise.
5086         * tree-chkp-opt.c: Likewise.
5087         * tree-chkp.c: Likewise.
5088         * tree-chrec.c: Likewise.
5089         * tree-complex.c: Likewise.
5090         * tree-data-ref.c: Likewise.
5091         * tree-dfa.c: Likewise.
5092         * tree-diagnostic.c: Likewise.
5093         * tree-dump.c: Likewise.
5094         * tree-eh.c: Likewise.
5095         * tree-emutls.c: Likewise.
5096         * tree-if-conv.c: Likewise.
5097         * tree-inline.c: Likewise.
5098         * tree-into-ssa.c: Likewise.
5099         * tree-iterator.c: Likewise.
5100         * tree-loop-distribution.c: Likewise.
5101         * tree-nested.c: Likewise.
5102         * tree-nrv.c: Likewise.
5103         * tree-object-size.c: Likewise.
5104         * tree-outof-ssa.c: Likewise.
5105         * tree-parloops.c: Likewise.
5106         * tree-phinodes.c: Likewise.
5107         * tree-predcom.c: Likewise.
5108         * tree-pretty-print.c: Likewise.
5109         * tree-profile.c: Likewise.
5110         * tree-scalar-evolution.c: Likewise.
5111         * tree-sra.c: Likewise.
5112         * tree-ssa-address.c: Likewise.
5113         * tree-ssa-alias.c: Likewise.
5114         * tree-ssa-ccp.c: Likewise.
5115         * tree-ssa-coalesce.c: Likewise.
5116         * tree-ssa-copy.c: Likewise.
5117         * tree-ssa-dce.c: Likewise.
5118         * tree-ssa-dse.c: Likewise.
5119         * tree-ssa-forwprop.c: Likewise.
5120         * tree-ssa-ifcombine.c: Likewise.
5121         * tree-ssa-live.c: Likewise.
5122         * tree-ssa-loop-ch.c: Likewise.
5123         * tree-ssa-loop-im.c: Likewise.
5124         * tree-ssa-loop-ivcanon.c: Likewise.
5125         * tree-ssa-loop-ivopts.c: Likewise.
5126         * tree-ssa-loop-manip.c: Likewise.
5127         * tree-ssa-loop-niter.c: Likewise.
5128         * tree-ssa-loop-prefetch.c: Likewise.
5129         * tree-ssa-loop-unswitch.c: Likewise.
5130         * tree-ssa-loop.c: Likewise.
5131         * tree-ssa-math-opts.c: Likewise.
5132         * tree-ssa-operands.c: Likewise.
5133         * tree-ssa-phiopt.c: Likewise.
5134         * tree-ssa-phiprop.c: Likewise.
5135         * tree-ssa-pre.c: Likewise.
5136         * tree-ssa-propagate.c: Likewise.
5137         * tree-ssa-reassoc.c: Likewise.
5138         * tree-ssa-scopedtables.c: Likewise.
5139         * tree-ssa-sink.c: Likewise.
5140         * tree-ssa-strlen.c: Likewise.
5141         * tree-ssa-structalias.c: Likewise.
5142         * tree-ssa-tail-merge.c: Likewise.
5143         * tree-ssa-ter.c: Likewise.
5144         * tree-ssa-threadupdate.c: Likewise.
5145         * tree-ssa-uncprop.c: Likewise.
5146         * tree-ssa-uninit.c: Likewise.
5147         * tree-ssa.c: Likewise.
5148         * tree-ssanames.c: Likewise.
5149         * tree-stdarg.c: Likewise.
5150         * tree-streamer-in.c: Likewise.
5151         * tree-streamer-out.c: Likewise.
5152         * tree-streamer.c: Likewise.
5153         * tree-switch-conversion.c: Likewise.
5154         * tree-tailcall.c: Likewise.
5155         * tree-vect-data-refs.c: Likewise.
5156         * tree-vect-generic.c: Likewise.
5157         * tree-vect-loop-manip.c: Likewise.
5158         * tree-vect-loop.c: Likewise.
5159         * tree-vect-patterns.c: Likewise.
5160         * tree-vect-slp.c: Likewise.
5161         * tree-vect-stmts.c: Likewise.
5162         * tree-vectorizer.c: Likewise.
5163         * tree-vrp.c: Likewise.
5164         * tree.c: Likewise.
5165         * tsan.c: Likewise.
5166         * ubsan.c: Likewise.
5167         * value-prof.c: Likewise.
5168         * var-tracking.c: Likewise.
5169         * varasm.c: Likewise.
5170         * varpool.c: Likewise.
5171         * vmsdbgout.c: Likewise.
5172         * vtable-verify.c: Likewise.
5173         * web.c: Likewise.
5174         * wide-int-print.cc: Likewise.
5175         * wide-int.cc: Likewise.
5176         * xcoffout.c: Likewise.
5178 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
5180         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
5181         between pass numbering and execution order.
5183 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5185         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
5186         check for dependencies.
5188 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5190         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
5191         CDI_DOMINATORS.
5193 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5195         * real.h (format_helper): New.
5196         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
5197         (real_from_target, real_nan, real_2expN, real_value_truncate)
5198         (significand_size, real_from_string2, exact_real_inverse)
5199         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
5200         (real_round, real_isinteger, real_from_integer): Replace
5201         machine_mode arguments with format_helper arguments.
5202         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
5203         (real_from_integer, real_nan, real_2expN, real_convert)
5204         (real_value_truncate, exact_real_truncate, real_to_target)
5205         (real_from_target, significand_size, real_powi, real_trunc)
5206         (real_floor, real_ceil, real_round, real_isinteger): Replace
5207         machine_mode arguments with format_helper arguments.
5208         (real_to_target_fmt, real_from_target_fmt): Delete.
5209         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
5210         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
5211         argument with real_format.
5212         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
5214 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5216         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
5217         (fixed_to_decimal, fixed_convert_from_real)
5218         (real_convert_from_fixed): Fix mode arguments to real_2expN.
5220 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
5222         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
5223         SCALAR_FLOAT_MODE_P.
5225 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
5227         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
5228         (completely_scalarize): Comment zero-length arrays.
5229         (get_access_replacement): Correct comment re. precondition.
5231 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5233         * config/i386/i386.c (get_builtin_code_for_version): Set priority
5234         for PROCESSOR_ZNVER1.
5235         (enum processor_model): Add M_AMDFAM17H_znver1.
5236         (struct arch_names_table): Likewise.
5237         * doc/extend.texi: ADD znver1.
5239 2015-10-30  Richard Biener  <rguenther@suse.de>
5241         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
5242         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
5243         zeros to be folded to VECTOR_CSTs.
5244         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
5245         * fold-const.c (fold): Use build_vector_from_ctor.
5247 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
5249         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
5250         "mov %0.h[0], %1.h[0] to "neon_move".
5251         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
5252         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
5253         "mov_imm".
5254         (*cmovsi_insn_uxtw): Likewise.
5256 2015-10-30  Tom de Vries  <tom@codesourcery.com>
5258         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
5259         unsigned, and initialize, and use initial value instead of hardcoded
5260         constant.  Add generic constraints dumping section.  Don't dump global
5261         initializers constraints dumping section if empty.  Don't update
5262         variable from if unused.
5264 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5266         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
5267         flag_checking and/or CHECKING_P to eliminate conditional compilation
5268         on ENABLE_CHECKING.
5269         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
5270         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5271         * config/i386/i386.c (ix86_print_operand_address): Likewise.
5272         (output_387_binary_op): Likewise.
5273         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
5274         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
5275         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
5276         Likewise.
5277         * config/rs6000/rs6000.h: Likewise.
5278         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5280 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5282         * config/sh/sh.opt (mfdpic): Add missing period.
5284 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
5286         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5287         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
5288         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5289         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
5290         mcore_base_register_rtx_p, mcore_legitimate_index_p,
5291         mcore_legitimate_address_p): New functions.
5292         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5294 2015-10-29  Jeff Law  <law@redhat.com>
5296         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
5297         method.
5298         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
5299         * tree-ssa-threadedge.c
5300         (record_temporary_equivalences_from_stmts_at_dest): Remove
5301         backedge_seen argument and associated code which invalidated
5302         equivalences based on the value of that argument.
5303         (thread_through_normal_block): Corresponding changes.
5305 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5307         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
5308         function earlier in the file.
5309         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
5310         df_regs_ever_live_p.
5312 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
5314         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
5315         by ignoring it.
5317 2015-10-29  Richard Henderson  <rth@redhat.com>
5319         PR target/68124
5320         PR rtl-opt/67609
5321         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5322         sse check to the exact conditions of PR 67609.
5324 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5326         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
5327         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
5328         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
5329         of the traditional names that TFmode uses for handling IEEE
5330         extended double. If -mfloat128, add KFmode functions for all of
5331         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
5332         make TFmode use the same emulation functions as KFmode.
5333         (init_float128_ibm): Likewise.
5334         (init_float128_ieee): Likewise.
5335         (rs6000_generate_compare): For IEEE 128-bit floating point
5336         comparisons, call the unordered comparison function instead of the
5337         ordered comparison function.
5338         (rs6000_expand_float128_convert): Deal with operands that are
5339         memory operands. Restructure the code to use a switch statement on
5340         the mode. Add support for TFmode defaulting to either IBM extended
5341         double or IEEE 128-bit floating point. If the underlying types are
5342         the same, use a move instead of a conversion function.
5343         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
5344         use for IEEE 128-bit floating point constants with -mfloat128.
5345         (rs6000_c_mode_for_suffix): Likewise.
5346         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
5347         128-bit floating point with IBM extended double floating point.
5348         (rs6000_invalid_binary_op): Likewise.
5349         (rs6000_gen_le_vsx_permute): On little endian systems generate a
5350         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
5351         types that can go in vector registers.
5352         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
5353         point types that can go in vector registers on little endian
5354         PowerPC systems.
5355         (mark_swaps_for_removal): Likewise.
5356         (rs6000_analyze_swaps): Likewise.
5357         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
5359         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
5360         rework IEEE 128-bit floating point insns to deal with TFmode being
5361         either IBM extended double or IEEE 128-bit floating point.
5362         (IFKF): Likewise.
5363         (IBM128): Update iterator to add condition that the mode is IBM
5364         extended double.
5365         (IEEE128): New iterator for IEEE 128-bit floating point.
5366         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
5367         (FLOAT128): Likewise.
5368         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
5369         iterator.
5370         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
5371         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
5372         instead of hard coding TFmode or KFmode.
5373         (negtf2_internal): Likewise.
5374         (neg<mode>2_internal): Likewise.
5375         (abs<mode>2): Likewise.
5376         (abstf2_internal): Likewise.
5377         (abs<mode>2_internal): Likewise.
5378         (ieee_128bit_neg<mode>2): Likewise.
5379         (ieee_128bit_neg<mode>2_internal): Likewise.
5380         (ieee_128bit_abs<mode>2): Likewise.
5381         (ieee_128bit_abs<mode>2_internal): Likewise.
5382         (ieee_128bit_nabs<mode>2): Likewise.
5383         (ieee_128bit_nabs<mode>2_internal): Likewise.
5384         (extendiftf2): Add explicit conversions between 128-bit floating
5385         point types. Drop the old conversions that had become unwieldy.
5386         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5387         (extendifkf2): Likewise.
5388         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5389         (extendtfkf2): Likewise.
5390         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5391         (trunciftf2): Likewise.
5392         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5393         (truncifkf2): Likewise.
5394         (float<SDI:mode><IFKF:mode>2): Likewise.
5395         (trunckftf2): Likewise.
5396         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5397         (trunctfif2): Likewise.
5398         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
5399         (extenddftf2): Rework 128-bit floating point conversions to
5400         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
5401         KFmode expanders into one function.
5402         (extenddf<mode>2): Likewise.
5403         (extenddftf2_fprs): Likewise.
5404         (extenddf<mode>2_fprs): Likewise.
5405         (extenddftf2_vsx): Likewise.
5406         (extenddf<mode>2_vsx): Likewise.
5407         (extendsftf2): Likewise.
5408         (extendsf<mode>2): Likewise.
5409         (trunctfdf2): Likewise.
5410         (trunc<mode>df2): Likewise.
5411         (trunctfdf2_internal1): Likewise.
5412         (trunc<mode>df2_internal1): Likewise.
5413         (trunctfdf2_internal2): Likewise.
5414         (trunc<mode>df2_internal2): Likewise.
5415         (trunctfsf2): Likewise.
5416         (trunc<mode>sf2): Likewise.
5417         (trunctfsf2_fprs): Likewise.
5418         (trunc<mode>sf2_fprs): Likewise.
5419         (floatsit2f): Likewise.
5420         (floatsi<mode>2): Likewise.
5421         (fix_trunc_helper): Likewise.
5422         (fix_trunc_helper<mode>): Likewise.
5423         (fix_trunctfsi2): Likewise.
5424         (fix_trunc<mode>si2): Likewise.
5425         (fix_trunctfsi2_fprs): Likewise.
5426         (fix_trunc<mode>si2_fprs): Likewise.
5427         (fix_trunctfsi2_internal): Likewise.
5428         (fix_trunc<mode>si2_internal): Likewise.
5429         (fix_trunctfdi2): Likewise.
5430         (fix_trunc<mode>di2): Likewise.
5431         (fixuns_trunctf<mode>2): Likewise.
5432         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5433         (floatditf2): Likewise.
5434         (floatdi<mode>2): Likewise.
5435         (floatuns<mode>tf2): Likewise.
5436         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
5437         (cmptf_internal1): Use a mode iterator to add support for both
5438         types (IFmode, TFmode) that support IBM extended double.
5439         (cmp<mode>_internal1): Likewise.
5440         (cmptf_internal2): Likewise.
5441         (cmp<mode>_internal2): Likewise.
5443         * doc/extend.texi (Floating Types): Document __ibm128 and
5444         __float128 on PowerPC.
5446         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5447         -mfloat128 and -mno-float128.
5449 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5451         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
5452         floating point modes that can go in vector registers.
5453         (MODES_TIEABLE_P): Move tests for vector modes before tests for
5454         scalar floating point, so that IEEE 128-bit floating point that
5455         can go in vector registers bind with vectors and not FP.
5456         (struct rs6000_args): Add libcall field.
5458         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
5459         and -mfloat128-software switches.  Replace them with a binary
5460         -mfloat128 switch.
5461         (-mfloat128): Likewise.
5463         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5464         128-bit floating point types in GPRs, even if the appropriate
5465         option enabling the type was not used.
5466         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
5467         debugging.
5468         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
5469         pre-decrement on IEEE 128-bit floating point values.
5470         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
5471         is IEEE 128-bit floating point.
5472         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
5473         128-bit floating point types that can go in vector registers.
5474         (rs6000_option_override_internal): Change -mfloat128-none and
5475         -mfloat128-software to -mfloat128, and move code to be near other
5476         VSX option handling.
5477         (rs6000_option_override_internal): Disable -mfloat128 if we don't
5478         have the Altivec ABI.
5479         (rs6000_init_builtins): Don't make TFmode use either IFmode or
5480         KFmode floating point nodes. Instead, have three separate nodes.
5481         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
5482         eventually moving the long double default to IEEE 128-bit floating
5483         point.
5484         (rs6000_opt_masks): Add -mfloat128.
5485         (struct rs6000_opt_var): Fix typo in comment.
5486         (init_cumulative_args): Initialize libcall field in
5487         CUMULATIVE_ARGS.
5488         (rs6000_function_arg): Treat library functions as if they had
5489         prototypes to prevent IEEE 128-bit support functions from passing
5490         arguments in both GPRs and vector registers.
5491         (rs6000_arg_partial_bytes): Likewise.
5493         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
5494         an option that can be turned on via -mcpu=<xxx>.
5496         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
5497         longer used.
5499         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5500         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
5501         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
5502         double is IBM extended double.
5504         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
5505         SUBREGs.
5507 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
5509         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
5510         * genconditions.c: Define CHECKING_P in the generated code.
5511         * genextract.c: Use flag_checking in insn_extract.
5512         * gengtype.c (main): Remove conditional compilation.
5513         * gengtype.h: Likewise.
5515 2015-10-29  Jeff Law  <law@redhat.com>
5517         PR tree-optimization/67892
5518         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
5519         in comment.
5520         (thread_through_normal_block): If we have seen a backedge, then
5521         do nothing.  No longer call find_jump_threads_backwards here.
5522         (thread_across_edge): Use find_jump_threads_backwards to find
5523         jump threads if the old style threader was not successful.
5524         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
5525         gsi_last_nondebug_bb.  Return NULL if the block does not end
5526         with a control statement.
5527         (find_jump_threads_backwards): Setup code moved here from
5528         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
5529         single edge argument instead of name & block.
5530         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
5531         prototype.
5533 2015-10-29  Tom de Vries  <tom@codesourcery.com>
5535         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
5536         types.
5538 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
5540         * omp-low.c (lower_omp_target): Remove unreachable code & merge
5541         ifs.
5543 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
5545         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
5547 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5549         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5550         guard_bb0 and use guard_bb throughout.
5552 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
5554         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
5555         unnecessary label.
5557 2015-10-29  Richard Biener  <rguenther@suse.de>
5559         PR middle-end/68142
5560         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
5561         overflow.
5563 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
5565         * alias.c: Reorder #include statements and remove duplicates.
5566         * asan.c: Likewise.
5567         * attribs.c: Likewise.
5568         * auto-inc-dec.c: Likewise.
5569         * auto-profile.c: Likewise.
5570         * bb-reorder.c: Likewise.
5571         * bt-load.c: Likewise.
5572         * builtins.c: Likewise.
5573         * caller-save.c: Likewise.
5574         * calls.c: Likewise.
5575         * ccmp.c: Likewise.
5576         * cfg.c: Likewise.
5577         * cfganal.c: Likewise.
5578         * cfgbuild.c: Likewise.
5579         * cfgcleanup.c: Likewise.
5580         * cfgexpand.c: Likewise.
5581         * cfghooks.c: Likewise.
5582         * cfgloop.c: Likewise.
5583         * cfgloopanal.c: Likewise.
5584         * cfgloopmanip.c: Likewise.
5585         * cfgrtl.c: Likewise.
5586         * cgraph.c: Likewise.
5587         * cgraphbuild.c: Likewise.
5588         * cgraphclones.c: Likewise.
5589         * cgraphunit.c: Likewise.
5590         * cilk-common.c: Likewise.
5591         * combine-stack-adj.c: Likewise.
5592         * combine.c: Likewise.
5593         * compare-elim.c: Likewise.
5594         * convert.c: Likewise.
5595         * coverage.c: Likewise.
5596         * cppbuiltin.c: Likewise.
5597         * cprop.c: Likewise.
5598         * cse.c: Likewise.
5599         * cselib.c: Likewise.
5600         * data-streamer-in.c: Likewise.
5601         * data-streamer-out.c: Likewise.
5602         * data-streamer.c: Likewise.
5603         * dbxout.c: Likewise.
5604         * dce.c: Likewise.
5605         * ddg.c: Likewise.
5606         * debug.c: Likewise.
5607         * df-core.c: Likewise.
5608         * df-problems.c: Likewise.
5609         * df-scan.c: Likewise.
5610         * dfp.c: Likewise.
5611         * dojump.c: Likewise.
5612         * dominance.c: Likewise.
5613         * double-int.c: Likewise.
5614         * dse.c: Likewise.
5615         * dumpfile.c: Likewise.
5616         * dwarf2asm.c: Likewise.
5617         * dwarf2cfi.c: Likewise.
5618         * dwarf2out.c: Likewise.
5619         * emit-rtl.c: Likewise.
5620         * except.c: Likewise.
5621         * explow.c: Likewise.
5622         * expmed.c: Likewise.
5623         * expr.c: Likewise.
5624         * final.c: Likewise.
5625         * fixed-value.c: Likewise.
5626         * fold-const.c: Likewise.
5627         * function.c: Likewise.
5628         * fwprop.c: Likewise.
5629         * gcse.c: Likewise.
5630         * generic-match-head.c: Likewise.
5631         * ggc-common.c: Likewise.
5632         * gimple-builder.c: Likewise.
5633         * gimple-expr.c: Likewise.
5634         * gimple-fold.c: Likewise.
5635         * gimple-iterator.c: Likewise.
5636         * gimple-low.c: Likewise.
5637         * gimple-match-head.c: Likewise.
5638         * gimple-pretty-print.c: Likewise.
5639         * gimple-ssa-isolate-paths.c: Likewise.
5640         * gimple-ssa-strength-reduction.c: Likewise.
5641         * gimple-streamer-in.c: Likewise.
5642         * gimple-streamer-out.c: Likewise.
5643         * gimple-walk.c: Likewise.
5644         * gimple.c: Likewise.
5645         * gimplify-me.c: Likewise.
5646         * gimplify.c: Likewise.
5647         * godump.c: Likewise.
5648         * graph.c: Likewise.
5649         * graphite-poly.c: Likewise.
5650         * haifa-sched.c: Likewise.
5651         * hw-doloop.c: Likewise.
5652         * ifcvt.c: Likewise.
5653         * incpath.c: Likewise.
5654         * init-regs.c: Likewise.
5655         * internal-fn.c: Likewise.
5656         * ipa-chkp.c: Likewise.
5657         * ipa-comdats.c: Likewise.
5658         * ipa-cp.c: Likewise.
5659         * ipa-devirt.c: Likewise.
5660         * ipa-icf-gimple.c: Likewise.
5661         * ipa-icf.c: Likewise.
5662         * ipa-inline-analysis.c: Likewise.
5663         * ipa-inline-transform.c: Likewise.
5664         * ipa-inline.c: Likewise.
5665         * ipa-polymorphic-call.c: Likewise.
5666         * ipa-profile.c: Likewise.
5667         * ipa-prop.c: Likewise.
5668         * ipa-pure-const.c: Likewise.
5669         * ipa-ref.c: Likewise.
5670         * ipa-reference.c: Likewise.
5671         * ipa-split.c: Likewise.
5672         * ipa-utils.c: Likewise.
5673         * ipa-visibility.c: Likewise.
5674         * ipa.c: Likewise.
5675         * ira-build.c: Likewise.
5676         * ira-color.c: Likewise.
5677         * ira-conflicts.c: Likewise.
5678         * ira-costs.c: Likewise.
5679         * ira-emit.c: Likewise.
5680         * ira-lives.c: Likewise.
5681         * ira.c: Likewise.
5682         * jump.c: Likewise.
5683         * langhooks.c: Likewise.
5684         * lcm.c: Likewise.
5685         * lists.c: Likewise.
5686         * loop-doloop.c: Likewise.
5687         * loop-init.c: Likewise.
5688         * loop-invariant.c: Likewise.
5689         * loop-iv.c: Likewise.
5690         * loop-unroll.c: Likewise.
5691         * lower-subreg.c: Likewise.
5692         * lra-assigns.c: Likewise.
5693         * lra-coalesce.c: Likewise.
5694         * lra-constraints.c: Likewise.
5695         * lra-eliminations.c: Likewise.
5696         * lra-lives.c: Likewise.
5697         * lra-remat.c: Likewise.
5698         * lra-spills.c: Likewise.
5699         * lra.c: Likewise.
5700         * lto-cgraph.c: Likewise.
5701         * lto-compress.c: Likewise.
5702         * lto-opts.c: Likewise.
5703         * lto-section-in.c: Likewise.
5704         * lto-section-out.c: Likewise.
5705         * lto-streamer-in.c: Likewise.
5706         * lto-streamer-out.c: Likewise.
5707         * lto-streamer.c: Likewise.
5708         * mode-switching.c: Likewise.
5709         * modulo-sched.c: Likewise.
5710         * omp-low.c: Likewise.
5711         * optabs.c: Likewise.
5712         * opts-global.c: Likewise.
5713         * passes.c: Likewise.
5714         * plugin.c: Likewise.
5715         * postreload-gcse.c: Likewise.
5716         * postreload.c: Likewise.
5717         * predict.c: Likewise.
5718         * print-tree.c: Likewise.
5719         * profile.c: Likewise.
5720         * real.c: Likewise.
5721         * realmpfr.c: Likewise.
5722         * recog.c: Likewise.
5723         * ree.c: Likewise.
5724         * reg-stack.c: Likewise.
5725         * regcprop.c: Likewise.
5726         * reginfo.c: Likewise.
5727         * regrename.c: Likewise.
5728         * regstat.c: Likewise.
5729         * reload.c: Likewise.
5730         * reload1.c: Likewise.
5731         * reorg.c: Likewise.
5732         * resource.c: Likewise.
5733         * rtl-chkp.c: Likewise.
5734         * rtl-error.c: Likewise.
5735         * rtlanal.c: Likewise.
5736         * rtlhooks.c: Likewise.
5737         * sanopt.c: Likewise.
5738         * sched-deps.c: Likewise.
5739         * sched-ebb.c: Likewise.
5740         * sched-rgn.c: Likewise.
5741         * sese.c: Likewise.
5742         * shrink-wrap.c: Likewise.
5743         * simplify-rtx.c: Likewise.
5744         * stack-ptr-mod.c: Likewise.
5745         * statistics.c: Likewise.
5746         * stmt.c: Likewise.
5747         * stor-layout.c: Likewise.
5748         * store-motion.c: Likewise.
5749         * stringpool.c: Likewise.
5750         * symtab.c: Likewise.
5751         * target-globals.c: Likewise.
5752         * targhooks.c: Likewise.
5753         * toplev.c: Likewise.
5754         * tracer.c: Likewise.
5755         * trans-mem.c: Likewise.
5756         * tree-affine.c: Likewise.
5757         * tree-call-cdce.c: Likewise.
5758         * tree-cfg.c: Likewise.
5759         * tree-cfgcleanup.c: Likewise.
5760         * tree-chkp-opt.c: Likewise.
5761         * tree-chkp.c: Likewise.
5762         * tree-chrec.c: Likewise.
5763         * tree-complex.c: Likewise.
5764         * tree-data-ref.c: Likewise.
5765         * tree-dfa.c: Likewise.
5766         * tree-diagnostic.c: Likewise.
5767         * tree-dump.c: Likewise.
5768         * tree-eh.c: Likewise.
5769         * tree-emutls.c: Likewise.
5770         * tree-if-conv.c: Likewise.
5771         * tree-inline.c: Likewise.
5772         * tree-into-ssa.c: Likewise.
5773         * tree-iterator.c: Likewise.
5774         * tree-loop-distribution.c: Likewise.
5775         * tree-nested.c: Likewise.
5776         * tree-nrv.c: Likewise.
5777         * tree-object-size.c: Likewise.
5778         * tree-outof-ssa.c: Likewise.
5779         * tree-parloops.c: Likewise.
5780         * tree-phinodes.c: Likewise.
5781         * tree-predcom.c: Likewise.
5782         * tree-pretty-print.c: Likewise.
5783         * tree-profile.c: Likewise.
5784         * tree-scalar-evolution.c: Likewise.
5785         * tree-sra.c: Likewise.
5786         * tree-ssa-address.c: Likewise.
5787         * tree-ssa-alias.c: Likewise.
5788         * tree-ssa-ccp.c: Likewise.
5789         * tree-ssa-coalesce.c: Likewise.
5790         * tree-ssa-copy.c: Likewise.
5791         * tree-ssa-dce.c: Likewise.
5792         * tree-ssa-dom.c: Likewise.
5793         * tree-ssa-dse.c: Likewise.
5794         * tree-ssa-forwprop.c: Likewise.
5795         * tree-ssa-ifcombine.c: Likewise.
5796         * tree-ssa-live.c: Likewise.
5797         * tree-ssa-loop-ch.c: Likewise.
5798         * tree-ssa-loop-im.c: Likewise.
5799         * tree-ssa-loop-ivcanon.c: Likewise.
5800         * tree-ssa-loop-ivopts.c: Likewise.
5801         * tree-ssa-loop-manip.c: Likewise.
5802         * tree-ssa-loop-niter.c: Likewise.
5803         * tree-ssa-loop-prefetch.c: Likewise.
5804         * tree-ssa-loop-unswitch.c: Likewise.
5805         * tree-ssa-loop.c: Likewise.
5806         * tree-ssa-math-opts.c: Likewise.
5807         * tree-ssa-operands.c: Likewise.
5808         * tree-ssa-phiopt.c: Likewise.
5809         * tree-ssa-phiprop.c: Likewise.
5810         * tree-ssa-pre.c: Likewise.
5811         * tree-ssa-propagate.c: Likewise.
5812         * tree-ssa-reassoc.c: Likewise.
5813         * tree-ssa-sccvn.c: Likewise.
5814         * tree-ssa-scopedtables.c: Likewise.
5815         * tree-ssa-sink.c: Likewise.
5816         * tree-ssa-strlen.c: Likewise.
5817         * tree-ssa-structalias.c: Likewise.
5818         * tree-ssa-tail-merge.c: Likewise.
5819         * tree-ssa-ter.c: Likewise.
5820         * tree-ssa-threadedge.c: Likewise.
5821         * tree-ssa-threadupdate.c: Likewise.
5822         * tree-ssa-uncprop.c: Likewise.
5823         * tree-ssa-uninit.c: Likewise.
5824         * tree-ssa.c: Likewise.
5825         * tree-ssanames.c: Likewise.
5826         * tree-stdarg.c: Likewise.
5827         * tree-streamer-in.c: Likewise.
5828         * tree-streamer-out.c: Likewise.
5829         * tree-streamer.c: Likewise.
5830         * tree-switch-conversion.c: Likewise.
5831         * tree-tailcall.c: Likewise.
5832         * tree-vect-data-refs.c: Likewise.
5833         * tree-vect-generic.c: Likewise.
5834         * tree-vect-loop-manip.c: Likewise.
5835         * tree-vect-loop.c: Likewise.
5836         * tree-vect-patterns.c: Likewise.
5837         * tree-vect-slp.c: Likewise.
5838         * tree-vect-stmts.c: Likewise.
5839         * tree-vectorizer.c: Likewise.
5840         * tree-vrp.c: Likewise.
5841         * tree.c: Likewise.
5842         * tsan.c: Likewise.
5843         * ubsan.c: Likewise.
5844         * value-prof.c: Likewise.
5845         * var-tracking.c: Likewise.
5846         * varasm.c: Likewise.
5847         * varpool.c: Likewise.
5848         * vtable-verify.c: Likewise.
5849         * web.c: Likewise.
5850         * wide-int-print.cc: Likewise.
5851         * wide-int.cc: Likewise.
5852         * xcoffout.c: Likewise.
5854 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
5856         * Makefile.in (NO_PIE_CFLAGS): New.
5857         (NO_PIE_FLAG): Likewise.
5858         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5859         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5860         (BUILD_NO_PIE_CFLAGS): Likewise.
5861         (BUILD_NO_PIE_FLAG): Likewise.
5862         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
5863         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
5864         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
5865         $(BUILD_NO_PIE_CFLAGS).
5866         (BUILD_CXXFLAGS): Likewise.
5867         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
5868         $(BUILD_NO_PIE_FLAG).
5869         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
5870         (BUILD_NO_PIE_FLAG): Likewise.
5871         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
5872         (NO_PIE_FLAG_FOR_BUILD): Likewise.
5873         * configure: Regenerated.
5875 2015-10-29  Richard Biener  <rguenther@suse.de>
5877         PR middle-end/56956
5878         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
5879         unsigned conditonal negation to ABS_EXPR.
5881 2015-10-29  Richard Biener  <rguenther@suse.de>
5883         * gimple-match-head.c (gimple_simplify): Remove premature checking
5884         of builtin_decl_implicit of function calls we simplify.
5886 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
5888         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
5889         (get_computation_cost_at): Ditto.
5890         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
5891         and inv_expr_id.
5893 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5895         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
5896         superfluous code.
5898 2015-10-28  Jason Merrill  <jason@redhat.com>
5900         * Makefile.in (TAGS): Include libcpp and libiberty.
5902 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5904         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
5905         (extract_omp_for_data): Remove OpenACC special handling of
5906         chunking.
5908         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
5909         (struct parallel): Update comment.
5910         (nvptx_reorg): Likewise.
5911         (nvptx_neuter): Cleanup whitespace.
5913 2015-10-28  Richard Henderson  <rth@redhat.com>
5915         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
5917 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5919         PR target/67839
5920         * config/avr/predicates.md (low_io_address_operand): Don't
5921         consider MODE when computing upper bound.
5922         (io_address_operand): Likewise.
5924 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
5926         * fold-const.c (operand_equal_p): Do not verify that types are
5927         compatible for MEM_REFs.
5929 2015-10-28  Richard Biener  <rguenther@suse.de>
5931         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
5932         in simplifying VEC_COND_EXPR conditions.
5934 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5936         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
5937         into vi_next of a full_var.
5939 2015-10-28  Tom de Vries  <tom@codesourcery.com>
5941         * tree-ssa-structalias.c (new_var_info, make_heapvar)
5942         (make_constraint_from_restrict, make_constraint_from_global_restrict)
5943         (create_function_info_for, create_variable_info_for_1)
5944         (create_variable_info_for): Add and handle add_id parameter.
5945         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
5946         (init_base_vars): Add extra argument to calls to new_var_info.
5947         (get_vi_for_tree): Add extra argument to call to
5948         create_variable_info_for.
5949         (process_constraint, do_deref, process_all_all_constraints): Add extra
5950         argument to calls to new_scalar_tmp_constraint_exp.
5951         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
5952         argument to calls to make_heapvar.
5953         (make_restrict_var_constraints): Add extra argument to call to
5954         make_constraint_from_global_restrict.
5955         (intra_create_variable_infos): Add extra argument to call to
5956         create_variable_info_for_1.
5957         (ipa_pta_execute): Add extra argument to call to
5958         create_function_info_for.
5960 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5962         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
5963         (sibcall_value): Likewise.
5965 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5967         * config/nvptx/nvptx.h (struct machine_function): Add
5968         axis_predicate.
5969         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
5970         nvptx_expand_oacc_join): Declare.
5971         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
5972         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
5973         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
5974         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
5975         UNSPECV_JOINING, UNSPECV_JOIN): New.
5976         (BITS, BITD): New mode iterators.
5977         (br_true_uni, br_false_uni): New.
5978         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
5979         (oacc_dim_size, oacc_dim_pos): New.
5980         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
5981         (oacc_fork, oacc_join): New.
5982         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
5983         (worker_load<mode>, worker_store<mode>): New.
5984         (nvptx_barsync): New.
5985         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
5986         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
5987         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
5988         worker_bcast_sym): New.
5989         (nvptx_option_override): Initialize worker broadcast buffer.
5990         (nvptx_emit_forking, nvptx_emit_joining): New.
5991         (nvptx_init_axis_predicate): New.
5992         (nvptx_declare_function_name): Init axis predicates.
5993         (nvptx_expand_call): Add fork/join markers around routine call.
5994         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
5995         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
5996         (nvptx_gen_vcast): New.
5997         (struct wcast_data_t): New.
5998         (enum propagate_mask): New.
5999         (nvptx_gen_wcast): New.
6000         (nvptx_print_operand): Add 'S' case.
6001         (struct parallel): New.
6002         (parallel::parallel, parallel::~parallel): New.
6003         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
6004         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
6005         nvptx_find_par, nvptx_discover_pars): New.
6006         (nvptx_propagate): New.
6007         (vprop_gen, nvptx_vpropagate): New.
6008         (wprop_gen, nvptx_wpropagate): New.
6009         (nvptx_wsync): New.
6010         (nvptx_single, nvptx_skip_par): New.
6011         (nvptx_process_pars, nvptx_neuter_pars): New.
6012         (ntptx_reorg): Split blocks, generate parallel structure, apply
6013         neutering.
6014         (nvptx_cannot_copy_insn_p): New.
6015         (nvptx_file_end): Emit worker broadcast decl.
6016         (nvptx_goacc_fork_join): New.
6017         (TARGET_CANNOT_COPY_INSN_P): Override.
6018         (TARGET_GOACC_FORK_JOIN): Override.
6020 2015-10-28  Richard Biener  <rguenther@suse.de>
6022         * fold-const.c (negate_expr_p): Adjust the division case to
6023         properly avoid introducing undefined overflow.
6024         (fold_negate_expr): Likewise.
6026 2015-10-28  Richard Biener  <rguenther@suse.de>
6028         PR tree-optimization/65962
6029         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6030         Avoid creating loop carried dependences also for outer loops
6031         of the loop a use to replace is in.
6033 2015-10-28  Richard Biener  <rguenther@suse.de>
6035         * common.opt (fchecking): New flag controlling flag_checking.
6036         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
6037         * timevar.c (timer::print): Adjust output.
6038         * doc/invoke.texi (fchecking): Document.
6040 2015-10-28  Richard Biener  <rguenther@suse.de>
6042         PR middle-end/68067
6043         * fold-const.c (negate_expr_p): We cannot negate plus or minus
6044         if overflow is not wrapping.  Likewise multiplication unless
6045         one operand is constant and not power of two.
6046         (fold_negate_expr): Adjust accordingly.
6048 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6050         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
6051         fields.
6052         (is_oacc_parallel, is_oacc_kernels): New.
6053         (enclosing_target_ctx): May return NULL.
6054         (ctx_in_oacc_kernels_region): New.
6055         (check_oacc_kernel_gwv): New.
6056         (oacc_loop_or_target_p): Delete.
6057         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
6058         operands.  Strip reductions fro kernels.
6059         (scan_omp_target): Don't calculate gwv mask.
6060         (lower_oacc_head_mark, lower_oacc_loop_marker,
6061         lower_oacc_head_tail): New.
6062         (struct oacc_collapse): New.
6063         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
6064         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6065         Remove OpenACC handling.
6066         (expand_oacc_for): New.
6067         (expand_omp_for): Call expand_oacc_for.
6068         (lower_omp_for): Call lower_oacc_head_tail.
6070 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
6072         * attribs.c (check_attribute_tables): New function, broken out from...
6073         (init_attributes): Use it.
6074         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
6075         gcc_checking_assert and checking_* functions to eliminate
6076         ENABLE_CHECKING conditionals.
6077         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
6078         (pass_expand::execute): Likewise.
6079         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6080         * cgraphunit.c (mark_functions_to_output): Likewise.
6081         (cgraph_node::expand_thunk): Likewise.
6082         (symbol_table::compile): Likewise.
6083         * ddg.c (add_cross_iteration_register_deps): Likewise.
6084         (create_ddg_all_sccs): Likewise.
6085         * df-core.c (df_finish_pass, df_analyze): Likewise.
6086         * diagnostic-core.h: Likewise.
6087         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
6088         * dominance.c (calculate_dominance_info): Likewise.
6089         * dwarf2out.c (add_AT_die_ref): Likewise.
6090         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
6091         (loc_list_from_tree, gen_lexical_block_die): Likewise.
6092         gen_type_die_with_usage, gen_type_die): Likewise.
6093         (dwarf2out_decl): Likewise.
6094         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
6095         * except.c (duplicate_eh_regions): Likewise.
6096         * fwprop.c (register_active_defs, update_df_init): Likewise.
6097         (fwprop_init, fwprop_done): Likewise.
6098         (update_uses): Likewise.
6099         * ggc-page.c (ggc_grow): Likewise.
6100         * gimplify.c (gimplify_body): Likewise.
6101         (gimplify_hasher::equal): Likewise.
6102         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
6103         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
6104         Likewise.
6105         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
6106         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
6107         * hash-table.h (::find_empty_slot_for_expand): Likewise.
6108         * ifcvt.c (if_convert): Likewise.
6109         * ipa-cp.c (ipcp_propagate_stage): Likewise.
6110         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
6111         (odr_type_p, odr_types_equivalent_p): Likewise.
6112         (add_type_duplicate, get_odr_type): Likewise.
6113         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
6114         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
6115         (sem_item_optimizer::verify_classes): Likewise.
6116         (sem_item_optimizer::traverse_congruence_split): Likewise.
6117         (sem_item_optimizer::checking_verify_classes): New.
6118         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
6119         method.
6120         * cfgrtl.c (commit_edge_insertions): Likewise.
6121         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
6122         (rtl_flow_call_edges_add): Likewise.
6123         * cgraph.c (symbol_table::create_edge): Likewise.
6124         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
6125         * cgraph.h (symtab_node): Likewise.
6126         (symtab_node::checking_verify_symtab_nodes): Define.
6127         (cgraph_node::checking_verify_cgraph_nodes): Define.
6128         * cfghooks.h (checking_verify_flow_info): Define.
6129         * cfgloop.h (checking_verify_loop_structure): Define.
6130         * dominance.h (checking_verify_dominators): Define.
6131         * et-forest.c: Fix comment.
6132         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
6133         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6134         ENABLE_CHECKING conditionals.
6135         * ipa-inline-transform.c (save_inline_function_body): Likewise.
6136         * ipa-inline.c (inline_small_functions): Likewise.
6137         (early_inliner): Likewise.
6138         * ipa-inline.h (estimate_edge_growth): Likewise.
6139         * ipa-visibility.c (function_and_variable_visibility): Likewise.
6140         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6141         (ipa_single_use): Likewise.
6142         * ira-int.h: Likewise.
6143         * ira.c (ira): Likewise.
6144         * loop-doloop.c (doloop_optimize_loops): Likewise.
6145         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
6146         * loop-invariant.c (move_loop_invariants): Likewise.
6147         * lra-assigns.c (lra_assign): Likewise.
6148         * lra-constraints.c (lra_constraints): Likewise.
6149         * lra-eliminations.c (lra_eliminate): Likewise.
6150         * lra-int.h (struct lra_reg): Likewise.
6151         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
6152         (lra_create_live_ranges_1): Likewise.
6153         * lra-remat.c (create_remat_bb_data): Likewise.
6154         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
6155         (lra): Likewise.
6156         (check_rtl): Always define. Remove incorrect guard around
6157         extract_constrain_insn call.
6158         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
6159         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6160         ENABLE_CHECKING conditionals.
6161         * lto-streamer-out.c (DFS::DFS): Likewise.
6162         (lto_output): Likewise.
6163         * lto-streamer.c (lto_streamer_init): Likewise.
6164         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
6165         expand_omp_target, execute_expand_omp): Likewise.
6166         (lower_omp_target): Likewise.
6167         * passes.c (execute_function_todo): Likewise.
6168         (execute_todo, execute_one_pass): Likewise.
6169         (verify_curr_properties): Always define.
6170         * predict.c (tree_estimate_probability: Use flag_checking,
6171         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
6172         ENABLE_CHECKING conditionals.
6173         (propagate_freq): Likewise.
6174         * pretty-print.c (pp_format): Likewise.
6175         * real.c (real_to_decimal_for_mode): Likewise.
6176         * recog.c (split_all_insns): Likewise.
6177         * regcprop.c (kill_value_one_regno): Likewise.
6178         (copy_value): Likewise.
6179         (validate_value_data): Define unconditionally.
6180         * reload.c: Fix comment.
6181         * timevar.c: Include options.h
6182         * tree-ssa.h (checking_verify_ssa): Define.
6183         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
6184         * sched-deps.c (CHECK): Remove unused macro.
6185         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
6186         gcc_checking_assert and checking_* functions to eliminate
6187         ENABLE_CHECKING conditionals.
6188         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
6189         * sel-sched.c (struct moveop_static_params): Likewise.
6190         (find_best_reg_for_expr, move_cond_jump): Likewise.
6191         (move_op_orig_expr_not_found): Likewise.
6192         (code_motion_process_successors, move_op): Likewise.
6193         * ssa-iterators.h (first_readonly_imm_use): Likewise.
6194         (next_readonly_imm_use): Likewise.
6195         * store-motion.c (compute_store_table): Likewise.
6196         * symbol-summary.h (function_summary::function_summary): Likewise.
6197         * target.h (cumulative_args_t): Likewise.
6198         (get_cumulative_args, pack_cumulative_args): Likewise.
6199         * timevar.c: (timer::print): Likewise.
6200         * trans-mem.c (ipa_tm_execute): Likewise.
6201         * tree-cfg.c (move_stmt_op): Likewise.
6202         (move_sese_region_to_fn): Likewise.
6203         (gimple_flow_call_edges_add): Likewise.
6204         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6205         Likewise.
6206         * tree-eh.c (remove_unreachable_handlers): Likewise.
6207         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
6208         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
6209         * tree-into-ssa.c (update_ssa): Likewise.
6210         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
6211         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
6212         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
6213         * tree-predcom.c (suitable_component_p): Likewise.
6214         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
6215         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
6216         * tree-ssa-live.c (verify_live_on_entry): Likewise.
6217         * tree-ssa-live.h (register_ssa_partition): Likewise.
6218         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
6219         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
6220         (tree_transform_and_unroll_loop): Likewise.
6221         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6222         * tree-ssa-operands.c (get_expr_operands): Likewise.
6223         * tree-ssa-propagate.c (replace_exp_1): Likewise.
6224         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
6225         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6226         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
6227         * tree-ssanames.c (release_ssa_name_fn): Likewise.
6228         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
6229         * tree-vect-loop-manip.c
6230         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
6231         (slpeel_checking_verify_cfg_after_peeling): Likewise.
6232         (vect_do_peeling_for_loop_bound): Likewise.
6233         (vect_do_peeling_for_alignment): Likewise.
6234         * tree-vrp.c (supports_overflow_infinity): Likewise.
6235         (set_value_range): Likewise.
6236         * tree.c (free_lang_data_in_cgraph): Likewise.
6237         * value-prof.c (gimple_remove_histogram_value): Likewise.
6238         (free_hist): Likewise.
6239         * var-tracking.c (canonicalize_values_star): Likewise.
6240         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
6242 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6244         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
6245         IFN_GOACC_LOOP): New.
6246         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
6247         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
6248         IFN_UNIQUE_OACC_TAIL_MARK.
6249         (enum ifn_goacc_loop_kind): New.
6250         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
6251         IFN_UNIQUE_OACC_JOIN cases.
6252         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
6253         (expand_GOACC_LOOP): New.
6254         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
6255         * omp-low.c: Include gimple-pretty-print.h.
6256         (struct oacc_loop): New.
6257         (enum oacc_loop_flags): New.
6258         (oacc_thread_numbers): New.
6259         (oacc_xform_loop): New.
6260         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
6261         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
6262         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
6263         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
6264         oacc_loop_discovery): New.
6265         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
6266         oacc_loop_process): New.
6267         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
6268         (execute_oacc_device_lower): Discover & process loops.  Process
6269         internal fns.
6270         * target.def (goacc.fork_join): Change sense of hook, clarify
6271         documentation.
6272         * doc/tm.texi: Regenerated.
6274 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6276         * target-insns.def (oacc_fork, oacc_join): Define.
6277         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
6278         (goacc.fork_join): New GOACC hook.
6279         * targhooks.h (default_goacc_fork_join): Declare.
6280         * omp-low.c (default_goacc_forkjoin): New.
6281         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
6282         * doc/tm.texi: Regenerate.
6284 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6286         * omp-low.c (oacc_init_rediction_array): New.
6287         (oacc_initialize_reduction_data): Initialize array.
6289 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6291         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
6293 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6295         * internal-fn.c (expand_UNIQUE): New.
6296         * internal-fn.h (enum ifn_unique_kind): New.
6297         * internal-fn.def (IFN_UNIQUE): New.
6298         * target-insns.def (unique): Define.
6299         * gimple.h (gimple_call_internal_unique_p): New.
6300         * gimple.c (gimple_call_same_target_p): Check internal fn
6301         uniqueness.
6302         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
6303         * tree-ssa-threadedge.c
6304         (record_temporary_equivalences_from_stmts): Likewise.
6305         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
6307 2015-10-27  Richard Henderson  <rth@redhat.com>
6309         PR rtl-opt/67609
6310         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
6311         narrowing subregs on SSE and MMX registers.
6312         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
6313         appear to be sub-words of multi-register pseudos must be rejected.
6314         * doc/tm.texi: Regenerate.
6316 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6318         PR target/68102
6319         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
6320         operands[0] is a reg before taking its REGNO in split condition.
6321         (*movdi_aarch64): Likewise.
6323 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6325         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
6326         Handle floating point inner modes properly.
6328 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
6330         * tree-vect-looop.c
6331         (vectorizable_live_operation): Change iterator.
6333 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6334             Aditya Kumar  <aditya.k7@samsung.com>
6336         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
6337           function to schedule based on isl_schedule_node.
6338         (get_schedule_map_st): New schedule optimizer based on
6339         isl_schedule_node.
6340         (scop_get_domains): New. Return the isl_union_set containing the
6341         domains of all the pbbs.
6342         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
6344 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6346         PR target/67215
6347         * calls.c (prepare_call_address): Don't handle -fno-plt here.
6348         * config/i386/i386.c (ix86_expand_call): Generate indirect call
6349         via GOT for -fno-plt.  Support indirect call via GOT for x32.
6350         * config/i386/predicates.md (sibcall_memory_operand): Allow
6351         GOT memory operand.
6353 2015-10-27  Richard Biener  <rguenther@suse.de>
6355         PR tree-optimization/68104
6356         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6357         strided access check ...
6358         (vect_compute_data_refs_alignment): ... here.
6360 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
6361             Joseph Myers  <joseph@codesourcery.com>
6362             Mark Shinwell  <shinwell@codesourcery.com>
6363             Andrew Stubbs  <ams@codesourcery.com>
6364             Rich Felker <dalias@libc.org>
6366         * config.gcc: Handle --enable-fdpic.
6367         * config/sh/constraints.md (Ccl): New constraint.
6368         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
6369         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
6370         __SH_FDPIC__.
6371         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
6372         library functions.
6373         * config/sh/sh-protos.h (function_symbol_result): New struct.
6374         (function_symbol): Return function_symbol_result.
6375         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
6376         declarations.
6377         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
6378         target hook.
6379         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
6380         (sh_option_override): Force -fPIC if FDPIC is in effect.
6381         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
6382         UNSPEC_GOTOFFFUNCDESC cases.
6383         (prepare_move_operands): Use FDPIC initial GOT register for
6384         TLS-related GOT access; inhibit cross-section address offset constants
6385         for FDPIC.
6386         (sh_assemble_integer): New function.
6387         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
6388         PC-relative call sites.
6389         (expand_ashiftrt): Adapt invocation of function_symbol.
6390         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
6391         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
6392         UNSPEC_GOTOFFFUNCDESC.
6393         (legitimize_pic_address): Resolve function symbols to function
6394         descriptors for FDPIC.  Do not use GOT-relative addressing for local
6395         data that may be read-only on FDPIC.
6396         (sh_emit_storesi, sh_emit_storehi): New functions.
6397         (sh_trampoline_init): Generate FDPIC trampolines.
6398         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
6399         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
6400         (sh_output_mi_thunk): Generate FDPIC call.
6401         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
6402         FDPIC, generate call site labels to use PC-relative addressing rather
6403         than GOT-relative addressing.
6404         (sh_conditional_register_usage): Make PIC register fixed and call used
6405         when FDPIC is in effect.
6406         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
6407         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
6408         sh_get_fdpic_reg_initial_val): New functions.
6409         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
6410         Handle -mfdpic.
6411         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
6412         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
6413         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
6414         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
6415         FDPIC_SELF_SPECS.
6416         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
6417         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
6418         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
6419         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
6420         constants.
6421         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
6422         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
6423         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
6424         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
6425         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
6426         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
6427         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
6428         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
6429         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6430         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
6431         block_move_real, block_lump_real, block_move_real_i4,
6432         block_lump_real_i4): Add support for FDPIC calls.
6433         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
6434         call_value_pop): Adjust for new function_symbol signature.
6435         * config/sh/sh.opt (-mfdpic): New option.
6436         * doc/install.texi (Options specification): Document --enable-fdpic.
6437         * doc/invoke.texi (SH Options): Document -mfdpic.
6440 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6442         PR tree-optimization/65963
6443         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6444         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6446 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6448         PR target/67929
6449         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
6450         * config/arm/constraints.md (Dp): Update callsite.
6451         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
6453 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6455         * builtins.c (fold_builtin_load_exponent): Rename to...
6456         (fold_const_builtin_load_exponent): ...this and only handle
6457         constant arguments.
6458         (fold_builtin_2): Update accordingly.
6459         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
6461 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6463         * builtins.c (fold_builtin_logb): Rename to...
6464         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
6465         (fold_builtin_significand): Rename to...
6466         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
6467         (fold_builtin_1): Update accordingly.
6469 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6471         * builtins.c (fold_builtin_fmin_fmax): Delete.
6472         (fold_builtin_2): Handle constant fmin and fmax arguments here.
6473         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
6475 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
6477         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
6478         for register extension into sign and zero register extension.
6479         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
6480         for sign and zero register extension.
6481         (cortexa57_addrcost_table): Likewise.
6482         (xgene1_addrcost_table): Likewise.
6484 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6486         * fold-const.c (fold_minmax): Delete.
6487         (fold_binary_loc): Don't call it.
6488         * match.pd: Add rules previously handled by fold_minmax.
6490 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6492         * builtins.c (fold_builtin_fma): Remove constant handling.
6493         (fold_builtin_3): Handle constant fma arguments here.
6495 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6497         * builtins.c (fold_builtin_fabs): Remove constant handling.
6498         (fold_builtin_abs): Likewise.
6500 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6502         * builtins.c (fold_builtin_copysign): Delete.
6503         (fold_builtin_2): Handle constant copysign arguments here.
6504         * match.pd: Add rules previously handled by fold_builtin_copysign.
6506 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6508         * builtins.c (fold_builtin_signbit): Delete.
6509         (fold_builtin_2): Handle constant signbit arguments here.
6510         * match.pd: Add rules previously handled by fold_builtin_signbit.
6512 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6514         * match.pd: Handle sqrt(x) cmp 0 specially.
6516 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
6518         * tree-vect-generic.c (expand_vector_operations_1): Check
6519         optab type before using it.
6521 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6523         * config/aarch64/aarch64-protos.h
6524         (struct tune_params): Add autoprefetcher_model field.
6525         * config/aarch64/aarch64.c: Include params.h
6526         (generic_tunings): Specify autoprefetcher_model value.
6527         (cortexa53_tunings): Likewise.
6528         (cortexa57_tunings): Likewise.
6529         (cortexa72_tunings): Likewise.
6530         (thunderx_tunings): Likewise.
6531         (xgene1_tunings): Likewise.
6532         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
6533         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
6534         (aarch64_override_options_internal): Set
6535         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
6537 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6539         * builtins.c (fold_builtin_exponent): Delete.
6540         (fold_builtin_2): Handle constant expN arguments here.
6541         * match.pd: Fold expN(logN(x)) -> x.
6543 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6545         * builtins.c (fold_builtin_powi): Delete.
6546         (fold_builtin_2): Handle constant powi arguments here.
6547         * match.pd: Add rules previously handled by fold_builtin_powi.
6549 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6551         * builtins.c (fold_builtin_pow): Delete in favor of...
6552         (fold_const_builtin_pow): ...this new function.  Only handle constant
6553         arguments.
6554         (fold_builtin_2): Update accordingly.
6555         * match.pd: Add rules previously handled by fold_builtin_pow.
6557 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6559         * builtins.c (fold_builtin_hypot): Delete.
6560         (fold_builtin_2): Handle constant hypot arguments here.
6561         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
6562         hypot(x, x) to fabs(x)*sqrt(2).
6564 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
6566         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
6567         instead of make_ssa_name if not yet in SSA form.
6569 2015-10-27  Richard Biener  <rguenther@suse.de>
6571         * cfg.c (free_edge): Add function argument and use it instead of cfun.
6572         (clear_edges): Likewise.
6573         * cfg.h (clear_edges): Adjust prototype.
6574         * cfgexpand.c (pass_expand::execute): Adjust.
6575         * cfgloop.c (release_recorded_exits): Add function argument and use
6576         it instead of cfun.
6577         * cfgloop.h (release_recorded_exits): Adjust prototype.
6578         (loops_state_satisfies_p): Add overload with function argument.
6579         (loops_state_set): Likewise.
6580         (loops_state_clear): Likewise.
6581         (struct loop_iterator): Add function argument to constructor
6582         and iterator and use it instead of cfun.
6583         (FOR_EACH_LOOP_FN): New macro.
6584         (loop_optimizer_finalize): Add overload with function argument.
6585         * loop-init.c (loop_optimizer_init): Adjust.
6586         (fix_loop_structure): Likewise.
6587         (loop_optimizer_finaliz): Add function argument and use it
6588         instead of cfun.
6589         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
6590         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
6591         * cgraph.c (release_function_body): Do not push/pop cfun.
6592         * final.c (rest_of_clean_state): Adjust.
6593         * graphite.c (graphite_finalize): Likewise.
6594         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6595         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6596         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
6597         (tree_unroll_loops_completely): Likewise.
6598         (pass_complete_unrolli::execute): Likewise.
6599         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
6600         Add function argument and use it instead of cfun.
6601         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
6602         Adjust prototype.
6603         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
6604         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
6605         instead of cfun.
6606         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
6607         * tree-ssanames.c (fini_ssanames): Add function argument and use it
6608         instead of cfun.
6609         * tree-ssanames.c (fini_ssanames): Adjust prototype.
6610         * tree-vrp.c (execute_vrp): Adjust.
6611         * value-prof.c (free_histograms): Add function argument and use it
6612         instead of cfun.
6613         * value-prof.h (free_histograms): Adjust prototype.
6615 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6617         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
6618         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
6619         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
6621 2015-10-27  Tom de Vries  <tom@codesourcery.com>
6623         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
6624         field_type.
6626 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
6628         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
6629         (inv_can_prop_to_addr_use): New function.
6630         (record_use): Call can_prop_to_addr_uses, set the new field.
6631         (get_inv_cost): Count cost if inv can't be propagated into its
6632         address uses.
6634 2015-10-26  Doug Evans  <dje@google.com>
6636         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
6638 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
6640         * match.pd (fold_widened_comparison): Apply simplifications to all
6641         integral types.
6643 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
6645         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
6646         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
6647         * doc/tm.texi: Regenerated.
6648         * reorg.c (dbr_schedule): Use new hook.
6649         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
6651 2015-10-26  Jeff Law  <law@redhat.com>
6653         PR tree-optimization/68013
6654         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6655         Make sure the first block in the path is in VISITED_BBs.
6657 2015-10-26  Richard Biener  <rguenther@suse.de>
6658         Dominik Vogt  <vogt@linux.vnet.ibm.com>
6660         PR middle-end/67443
6661         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6662         Properly prune ref->ref for accesses outside of ref.
6664 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6666         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
6667         new statements to be inserted if inplace.  Allow calls to have
6668         nonempty sequences.
6670 2015-10-26  Richard Biener  <rguenther@suse.de>
6672         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
6673         (do_valueize): New function.
6674         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
6675         replace_uses_by.
6676         * tree-ssa-threadedge.c: Remove builtins.h include, include
6677         gimple-fold.h
6678         (fold_assignment_stmt): Remove.
6679         (threadedge_valueize): New function.
6680         (record_temporary_equivalences_from_stmts): Use
6681         gimple_fold_stmt_to_constant_1, note additional cleanup
6682         opportunities.
6684 2015-10-26  Richard Biener  <rguenther@suse.de>
6686         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
6687         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
6689 2015-10-26  Alan Hayward <alan.hayward@arm.com>
6691         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
6692         VEC_COND_EXPR types.
6694 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6696         * auto-inc-dec.c (insert_move_insn_before): Delete.
6697         (attempt_change): Remember to cost the simple move in the
6698         FORM_PRE_ADD and FORM_POST_ADD cases.
6700 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
6702         PR target/68091
6703         * config/sh/sh.c (sh_vector_mode_supported_p): Use
6704         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
6706 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6708         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
6709         factored out of ...
6710         (intra_create_variable_infos): ... here.
6712 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6714         * tree-ssa-structalias.c (intra_create_variable_infos): Add
6715         restrict_pointer_p and recursive_restrict_p variables.
6717 2015-10-26  Tom de Vries  <tom@codesourcery.com>
6719         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
6720         get_vi_for_tree call.
6722 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6724         PR middle-end/67989
6725         * optabs.c (expand_atomic_compare_and_swap): Handle case when
6726         ptarget_oval or ptarget_bool are const0_rtx.
6728 2015-10-26  Christian Bruel  <christian.bruel@st.com>
6730         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
6731         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
6732         * cp/method.c (implicitly_declare_fn): Likewise.
6733         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
6734         * java/class.c (add_method_1): Likewise.
6736 2015-10-26  Richard Biener  <rguenther@suse.de>
6738         * alloc-pool.h (base_pool_allocator): Use placement new.
6739         (base_pool_allocator::remove): Likewise.  Compute size outside of
6740         flag_checking.
6742 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6744         * builtins.c (do_real_to_int_conversion): New function.
6745         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
6746         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
6747         arguments here.
6748         * match.pd: Add rules previously handled by fold_fixed_mathfn
6749         and fold_builtin_int_roundingfn.
6751 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
6753         * match.pd: Use macros to define built-in operator lists.
6755 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
6756             Richard Biener  <rguenther@suse.de>
6758         * genmatch.c (dt_simplify::gen): Skip captures that are
6759         part of the result.
6760         (parser::parse_expr): Allow captures in results too.
6761         * builtins.c (fold_builtin_cexp): Delete.
6762         (fold_builtin_1): Handle constant cexp arguments here.
6763         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
6765 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
6767         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
6768         conditional compilation.
6769         (base_pool_allocator::remove): Use flag_checking.
6771 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
6773         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
6775         PR middle-end/68079
6776         * dojump.c (do_compare_and_jump): Canonicalize both function and
6777         method types.
6779 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
6781         PR target/68084
6782         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
6783         for =@ccae.
6785 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6787         PR ipa/pr67600
6788         * ipa-polymorphic-call.c
6789         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
6790         instance offset with offset of outer type.
6792 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6794         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
6796 2015-10-23  Caroline Tice  <cmtice@google.com>
6798         (from Richard Biener
6799         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
6800         call to iterative_hash_host_wide_int.
6802 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6804         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
6805         Define as yes.
6807 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6809         * tree-vect-generic.c (expand_vector_operations_1): Check
6810         optab exists before use it.
6812 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6814         * tree-vect-generic.c (expand_vector_condition): Avoid
6815         uninitialized variable warning.
6817 2015-10-23  Jeff Law  <law@redhat.com>
6819         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
6820         here.  Instead...
6821         (execute_todo): Call it here.
6822         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
6823         statistics
6824         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
6826 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6827             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6829         * config.gcc (enable_secureplt): Add *-linux*-musl*.
6831 2015-10-23  Jeff Law  <law@redhat.com>
6833         PR tree-optimization/67830
6834         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6835         Explicitly verify the mask has no bits outside the type of
6836         the innermost operands.
6838 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
6839             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6841         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6842         (MUSL_DYNAMIC_LINKER64): Define.
6843         (GNU_USER_DYNAMIC_LINKER32): Update.
6844         (GNU_USER_DYNAMIC_LINKER64): Update.
6845         (CHOOSE_DYNAMIC_LINKER): Update.
6847         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
6848         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
6849         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6850         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6851         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6852         (CHOOSE_DYNAMIC_LINKER): Update.
6853         (INCLUDE_DEFAULTS): Redefine.
6855         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
6857 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6859         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
6860         comparing addresses.
6862 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
6864         * fold-const.c (operand_equal_p): Handle matching of vector
6865         constructors.
6867 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
6869         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
6871 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
6872             Andrew Pinski  <apinski@cavium.com>
6874         PR rtl-optimization/67736
6875         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
6876         of gen_lowpart.
6878 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6880         PR middle-end/68066
6881         * tree.c (build_truth_vector_type): Support BLK mode
6882         returned for boolean vector.
6884 2015-10-23  Alan Hayward <alan.hayward@arm.com>
6886         PR tree-optimization/65947
6887         * tree-vect-loop.c
6888         (vect_is_simple_reduction_1): Find condition reductions.
6889         (vect_model_reduction_cost): Add condition reduction costs.
6890         (get_initial_def_for_reduction): Add condition reduction initial var.
6891         (vect_create_epilog_for_reduction): Add condition reduction epilog.
6892         (vectorizable_reduction): Condition reduction support.
6893         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
6894         * doc/sourcebuild.texi (Vector-specific attributes): Document
6895         vect_max_reduc
6897 2015-10-23  Richard Biener  <rguenther@suse.de>
6899         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
6900         and builtins.def.
6902 2015-10-23  Richard Biener  <rguenther@suse.de>
6903             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6905         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
6906         into (A ^ B) - B to match.pd
6907         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
6909         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
6910         New simplifier.
6911         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
6912         New simplifier.
6913         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
6914         New simplifier.
6915         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
6916         New simplifier.
6917         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
6918         INTEGER_CST@1)): New simplifier.
6920 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
6922         * builtins.c (integer_valued_real_p): Move to fold-const.c.
6923         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
6924         (fold_builtin_ceil, fold_builtin_round): Delete.
6925         (fold_builtin_1): Handle constant trunc, floor, ceil and round
6926         arguments here.
6927         * convert.c (convert_to_real): Remove narrowing of rounding
6928         functions.
6929         * fold-const.h (integer_valued_real_unary_p)
6930         (integer_valued_real_binary_p, integer_valued_real_call_p)
6931         (integer_valued_real_single_p, integer_valued_real_p): Declare.
6932         * fold-const.c (tree_single_nonnegative_warnv_p): Move
6933         name_registered_for_update_p check to SSA_NAME case statement.
6934         Don't call tree_simple_nonnegative_warnv_p for SSA names.
6935         (integer_valued_real_unary_p, integer_valued_real_binary_p)
6936         (integer_valued_real_call_p, integer_valued_real_single_p)
6937         (integer_valued_real_invalid_p): New functions.
6938         (integer_valued_real_p): Move from fold-const.c and rework
6939         to call the functions above.  Handle SSA names.
6940         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
6941         * gimple-fold.c (gimple_assign_integer_valued_real_p)
6942         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
6943         (gimple_stmt_integer_valued_real_p): New functions.
6944         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
6945         Fold f(x)->x for the same f if x is known to be integer-valued.
6946         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
6947         the result.  Canonicalize floor(x) as trunc(x) if x is
6948         nonnegative.
6950 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6952         * tree-ssa-structalias.c (intra_create_variable_infos): Use
6953         make_constraint_from.
6955 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6957         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
6958         setting of is_full_var in case of a single field.
6960 2015-10-22  Martin Sebor  <msebor@redhat.com>
6962         PR driver/68043
6963         * config/i386/i386.opt: Add missing periods to the ends of sentences.
6964         * config/msp430/msp430.opt: Same.
6966 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
6968         * doc/extend.exp (Global Register Variables): Rewrite.
6970 2015-10-22  Jeff Law  <law@redhat.com>
6972         * genattrtab.c (main): If we do not have any annul-true or annul-false
6973         slots, then write out a dummy eligible_for_annul_true or
6974         eligible_for_annul_false as needed.
6976 2015-10-22  Nick Clifton  <nickc@redhat.com>
6978         * config/msp430/msp430.opt: Add -msilicon-errata and
6979         -msilicon-errata-warn.
6980         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
6981         assembler.
6982         * doc/invoke.texi: Document new options.
6984 2015-10-22  Richard Biener  <rguenther@suse.de>
6986         PR tree-optimization/58497
6987         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
6988         (expand_vector_operations_1): Use it.  Lower operations on
6989         all uniform vectors to scalar operations if the HW supports it.
6991 2015-10-22  Richard Biener  <rguenther@suse.de>
6993         PR tree-optimization/19049
6994         PR tree-optimization/65962
6995         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
6996         to strided accesses if single-element interleaving doesn't work.
6998 2015-10-22  Richard Biener  <rguenther@suse.de>
7000         PR middle-end/68046
7001         PR middle-end/61893
7002         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
7003         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
7004         (expand_unop): Likewise.
7006 2015-10-22  Richard Biener  <rguenther@suse.de>
7008         * fold-const.c (fold_addr_of_array_ref_difference): Properly
7009         convert operands before folding a MINUS_EXPR.
7010         (fold_binary_loc): Move simplification of MINUS_EXPR on
7011         converted POINTER_PLUS_EXPRs ...
7012         * match.pd: ... here.
7014 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7016         * builtins.c (fold_builtin_tan): Delete.
7017         (fold_builtin_1): Handle constant tan arguments here.
7018         * match.pd: Simplify (tan (atan x)) to x.
7020 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
7022         * builtins.c (fold_builtin_cproj): Delete.
7023         (fold_builtin_1): Handle constant arguments here.
7024         (build_complex_cproj): Move and rename to...
7025         * tree.c: (build_complex_inf): ...this.
7026         * tree.h (build_complex_inf): Declare.
7027         * match.pd: Fold cproj(x)->x if x has no infinity.
7028         Use build_complex_inf for existing cproj rules.
7030 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7032         PR target/68015
7033         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
7034         already have a comparison result.
7036 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7038         PR target/63304
7039         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
7040         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
7041         (aarch64_classify_address): Likewise.
7042         (aarch64_secondary_reload): Likewise.
7043         (aarch64_override_options_after_change_1): Adjust.
7044         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7045         Use aarch64_nopcrelative_literal_loads.
7046         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7047         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
7048         Declare.
7050 2015-10-21  Martin Sebor  <msebor@redhat.com>
7052         PR driver/68043
7053         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
7054         (print_filtered_help): Reference aliased option's name and encourage
7055         readers to use it in preference to the alias if the former is not
7056         documented.  Mention when using an option is diagnosed.
7057         * gcc.c (display_help): End each sentence with a period.
7059         * common.opt: End each sentence that describes an option with
7060         a period.
7061         * config/aarch64/aarch64.opt: Same.
7062         * config/alpha/alpha.opt: Same.
7063         * config/arc/arc.opt: Same.
7064         * config/arm/arm.opt: Same.
7065         * config/avr/avr.opt: Same.
7066         * config/bfin/bfin.opt: Same.
7067         * config/c6x/c6x.opt: Same.
7068         * config/cr16/cr16.opt: Same.
7069         * config/cris/cris.opt: Same.
7070         * config/cris/linux.opt: Same.
7071         * config/darwin.opt: Same.
7072         * config/epiphany/epiphany.opt: Same.
7073         * config/fr30/fr30.opt: Same.
7074         * config/frv/frv.opt: Same.
7075         * config/ft32/ft32.opt: Same.
7076         * config/g.opt: Same.
7077         * config/h8300/h8300.opt: Same.
7078         * config/i386/cygming.opt: Same.
7079         * config/i386/djgpp.opt: Same.
7080         * config/i386/i386.opt: Same.
7081         * config/i386/interix.opt: Same.
7082         * config/i386/mingw-w64.opt: Same.
7083         * config/i386/mingw.opt: Same.
7084         * config/ia64/ia64.opt: Same.
7085         * config/ia64/ilp32.opt: Same.
7086         * config/iq2000/iq2000.opt: Same.
7087         * config/linux.opt: Same.
7088         * config/lm32/lm32.opt: Same.
7089         * config/lynx.opt: Same.
7090         * config/m32c/m32c.opt: Same.
7091         * config/m32r/m32r.opt: Same.
7092         * config/m68k/ieee.opt: Same.
7093         * config/m68k/m68k.opt: Same.
7094         * config/mcore/mcore.opt: Same.
7095         * config/mep/mep.opt: Same.
7096         * config/microblaze/microblaze.opt: Same.
7097         * config/mips/mips.opt: Same.
7098         * config/mmix/mmix.opt: Same.
7099         * config/mn10300/mn10300.opt: Same.
7100         * config/moxie/moxie.opt: Same.
7101         * config/msp430/msp430.opt: Same.
7102         * config/nios2/elf.opt: Same.
7103         * config/nios2/nios2.opt: Same.
7104         * config/nvptx/nvptx.opt: Same.
7105         * config/pa/pa-hpux.opt: Same.
7106         * config/pa/pa-hpux1010.opt: Same.
7107         * config/pa/pa-hpux1111.opt: Same.
7108         * config/pa/pa-hpux1131.opt: Same.
7109         * config/pa/pa.opt: Same.
7110         * config/pa/pa64-hpux.opt: Same.
7111         * config/pdp11/pdp11.opt: Same.
7112         * config/rl78/rl78.opt: Same.
7113         * config/rs6000/476.opt: Same.
7114         * config/rs6000/aix64.opt: Same.
7115         * config/rs6000/darwin.opt: Same.
7116         * config/rs6000/linux64.opt: Same.
7117         * config/rs6000/rs6000.opt: Same.
7118         * config/rs6000/sysv4.opt: Same.
7119         * config/s390/s390.opt: Same.
7120         * config/s390/tpf.opt: Same.
7121         * config/sh/sh.opt: Same.
7122         * config/sol2.opt: Same.
7123         * config/sparc/long-double-switch.opt: Same.
7124         * config/sparc/sparc.opt: Same.
7125         * config/spu/spu.opt: Same.
7126         * config/stormy16/stormy16.opt: Same.
7127         * config/tilegx/tilegx.opt: Same.
7128         * config/tilepro/tilepro.opt: Same.
7129         * config/v850/v850.opt: Same.
7130         * config/vax/vax.opt: Same.
7131         * config/visium/visium.opt: Same.
7132         * config/vms/vms.opt: Same.
7133         * config/vxworks.opt: Same.
7134         * config/xtensa/xtensa.opt: Same.
7136 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7137             Sebastian Pop  <s.pop@samsung.com>
7139         * graphite-scop-detection.c (parameter_index_in_region): Update call to
7140         invariant_in_sese_p_rec.
7141         * graphite-sese-to-poly.c (extract_affine): Same.
7142         * sese.c (invariant_in_sese_p_rec): Pass in an extra
7143         parameter has_vdefs.
7144         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
7145         variable depends on virtual definitions in the current region.
7146         * sese.h (invariant_in_sese_p_rec): Update declaration.
7148 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7149             Sebastian Pop  <s.pop@samsung.com>
7151         * graphite-scop-detection.c (build_scops): Do not handle scops
7152         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
7153         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
7155 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
7157         * config.in: Regenerate.
7158         * configure: Regenerate.
7159         * configure.ac (CHECKING_P): Define.
7160         * system.h: Use CHECKING_P.
7162 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7164         PR ipa/67056
7165         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
7166         is negative we don't know the type.
7167         (check_stmt_for_type_change): Skip constructors of non-polymorphic
7168         types as those won't help devirutalization.
7170 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7172         * fold-const.c (operand_equal_p): Add code matching empty constructors.
7174 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
7176         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
7177         comments.
7178         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
7179         Add comments on sign of the result.
7180         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
7181         Recurse on operand #1 instead of operand #0.
7182         <CEIL_MOD_EXPR>: Do not recurse.
7183         <ROUND_MOD_EXPR>: Likewise.
7185 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7187         * cfgrtl.c (pass_free_cfg::execute): Adjust.
7188         * final.c (dbr_sequence_length): Always define.
7189         (shorten_branches): Adjust.
7190         * genattr-common.c (main): Always define DELAY_SLOTS.
7191         * genattr.c (main): Unconditionally declare functions and define
7192         macros related to delay slots.
7193         * genattrtab.c (write_eligible_delay): Adjust.
7194         (main): Always write out delay slot functions.
7195         * opts.c (default_options_table): Adjust.
7196         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
7197         (redirect_with_delay_list_safe_p): Likewise.
7198         (fill_simple_delay_slots): Likewise.
7199         (fill_slots_from_thread): Likewise.
7200         (make_return_insns): Likewise.
7201         (dbr_schedule): Likewise.
7202         (rest_of_handle_delay_slots): Likewise.
7203         (pass_delay_slots::gate): Likewise.
7204         * toplev.c (process_options): Likewise.
7206 2015-10-21  Richard Henderson  <rth@redhat.com>
7208         * targhooks.c (default_addr_space_pointer_mode): Remove check
7209         for generic address space.
7210         (default_addr_space_address_mode): Likewise.
7211         (default_addr_space_valid_pointer_mode): Likewise.
7212         (default_addr_space_legitimate_address_p): Likewise.
7213         (default_addr_space_legitimize_address): Likewise.
7214         * target.def (addr_space.pointer_mode): Update documentation
7215         of default behavior.
7216         (addr_space.address_mode): Likewise.
7217         * tm.texi: Update.
7219         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
7220         address spaces.
7222 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7224         * builtins.c (fold_builtin_cabs): Delete.
7225         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
7226         * match.pd: Add rules previously handled by fold_builtin_cabs.
7228 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7230         * fold-const.h (fold_strip_sign_ops): Delete.
7231         * fold-const.c (fold_strip_sign_ops): Likewise.
7232         (fold_unary_loc, fold_binary_loc): Remove calls to it.
7233         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
7234         (fold_builtin_ccos): Delete.
7235         (fold_builtin_pow): Don't call fold_strip_sign_ops.
7236         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
7237         Remove fndecl argument.
7238         (fold_builtin_1): Update calls accordingly.  Handle constant
7239         cos, cosh, ccos and ccosh here.
7241 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7243         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
7244         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
7245         * common.opt (fssa-backprop): New option.
7246         * fold-const.h (negate_mathfn_p): Declare.
7247         * fold-const.c (negate_mathfn_p): Make public.
7248         * timevar.def (TV_TREE_BACKPROP): New.
7249         * tree-pass.h (make_pass_backprop): Declare.
7250         * passes.def (pass_backprop): Add.
7251         * gimple-ssa-backprop.c: New file.
7253 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7254             Sebastian Pop  <s.pop@samsung.com>
7256         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
7257         Do not call create_empty_if_region_on_edge when cond_expr is true.
7258         (translate_isl_ast_node_for): Check whether a guard has been generated.
7260 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7262         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
7263         (operator=): Removed.
7264         (dr_info): Make alias_set number the last argument with default
7265         value of invalid_alias_set.
7266         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
7267         of dr_info.
7268         (rewrite_reductions_out_of_ssa): Iterate only through the
7269         basic blocks which are inside region.
7270         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
7271         * sese.h (struct sese_l): Removed assignment operator.
7272         (split_region_for_bb): Removed dead code.
7274 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
7276         * graphite-poly.h (struct dr_info): Removed conversion constructor.
7277         (struct scop): Renamed scop::region to scop::scop_info
7278         (scop_set_region): Same.
7279         (SCOP_REGION): Removed
7280         (SCOP_CONTEXT): Removed.
7281         (POLY_SCOP_P): Removed.
7282         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
7283         Rename scop->region to scop->scop_info.
7284         (add_parameters_to_ivs_params): Same.
7285         (graphite_regenerate_ast_isl): Same.
7286         * graphite-poly.c (new_scop): Same.
7287         (free_scop): Same.
7288         (print_scop_params): Same.
7289         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
7290         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
7291         (dot_all_scops_1): Rename scop->region to scop->scop_info.
7292         (scop_detection::nb_pbbs_in_loops): Same.
7293         (find_scop_parameters): Same.
7294         (try_generate_gimple_bb): Same.
7295         (gather_bbs::before_dom_children): Same.
7296         (gather_bbs::after_dom_children): Same.
7297         (build_scops): Same.
7298         * graphite-sese-to-poly.c (build_scop_scattering): Same.
7299         (extract_affine_chrec): Same.
7300         (extract_affine): Same.
7301         (set_scop_parameter_dim): Same.
7302         (build_loop_iteration_domains): Same.
7303         (create_pw_aff_from_tree): Same.
7304         (add_param_constraints): Same.
7305         (build_scop_iteration_domain): Same.
7306         (build_scop_drs): Same.
7307         (analyze_drs_in_stmts): Same.
7308         (insert_out_of_ssa_copy_on_edge): Same.
7309         (rewrite_close_phi_out_of_ssa):Same.
7310         (rewrite_reductions_out_of_ssa):Same.
7311         (handle_scalar_deps_crossing_scop_limits):Same.
7312         (rewrite_cross_bb_scalar_deps):Same.
7313         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
7314         (build_poly_scop):Same.
7315         (build_alias_set): Use pointer to dr_info.
7316         * graphite.c (print_graphite_scop_statistics):
7317         (graphite_transform_loops):
7318         * sese.h (struct sese_l): Remove conversion constructor.
7320 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7322         PR middle-end/67966
7323         * tree.c (verify_type): Verify that TYPE_MODE match
7324         between TYPE_CANONICAL and type.
7325         * expr.c (store_expr_with_bounds): Revert my previous change.
7326         * expmed.c (store_bit_field_1): Revert prevoius change.
7327         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
7328         to match for all types.
7330 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
7332         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
7333         nesting.
7335 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7337         * doc/tm.texi: Regenerated.
7338         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
7339         * stor-layout.c (layout_type): Use mode to get vector mask size.
7340         * target.def (get_mask_mode): New.
7341         * targhooks.c (default_get_mask_mode): New.
7342         * targhooks.h (default_get_mask_mode): New.
7343         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
7344         for boolean vector.
7345         * tree.c (MAX_BOOL_CACHED_PREC): New.
7346         (nonstandard_boolean_type_cache): New.
7347         (build_nonstandard_boolean_type): New.
7348         (make_vector_type): Vector mask has no canonical type.
7349         (build_truth_vector_type): New.
7350         (build_same_sized_truth_vector_type): New.
7351         (truth_type_for): Support vector masks.
7352         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
7353         (build_truth_vector_type): New.
7354         (build_same_sized_truth_vector_type): New.
7355         (build_nonstandard_boolean_type): New.
7356         * tree-cfg.c (verify_gimple_comparison) Require boolean
7357         vector type for vector comparison.
7358         (verify_gimple_assign_ternary): Likewise.
7359         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
7360         condition operand.
7361         * tree-vect-stmts.c (vectorizable_condition): Use boolean
7362         vector type for vector comparison.
7363         * tree-vect-generic.c (elem_op_func): Add new operand to hold
7364         vector type.
7365         (do_unop): Adjust to modified function type.
7366         (do_binop): Likewise.
7367         (do_plus_minus): Likewise.
7368         (do_negate); Likewise.
7369         (expand_vector_piecewise): Likewise.
7370         (do_cond): Likewise.
7371         (do_compare): Use comparison instead of condition.
7372         (expand_vector_divmod): Use boolean vector type for comparison.
7373         (expand_vector_operations_1): Skip scalar mask operations.
7375 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
7377         * omp-low.c (simd_clone_create): Set in_other_partition
7378         for created clones.
7380 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
7382         * doc/extend.exp (Local Register Variables): Rewrite.
7384 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
7386         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
7387         and x*x in cases where the operands are sign ops.  Extend these
7388         rules to handle copysign as a sign op (including for cos, cosh
7389         and pow, which already treated negate and abs as sign ops).
7391 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
7393         PR target/68018
7394         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
7395         for 64-bit MS_ABI targets also when default incoming stack boundary
7396         is overriden.
7398 2015-10-21  Richard Biener  <rguenther@suse.de>
7400         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
7401         cond stmts, enhanced and split out from ...
7402         (vn_phi_eq): ... here.
7404 2015-10-21  Richard Biener  <rguenther@suse.de>
7406         PR middle-end/68031
7407         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
7408         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
7409         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
7410         make sure they are not registered for update.
7412 2015-10-21  Richard Biener  <rguenther@suse.de>
7414         PR tree-optimization/68026
7415         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
7416         unsigned VARYING values.
7418 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
7420         * asan.c (asan_emit_stack_protection): Don't pass local stack to
7421         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
7422         NULL and use local stack than.
7423         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
7424         in addition to __asan_init.
7425         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
7426         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
7427         * asan.h (asan_intercepted_p): Handle new string builtins.
7428         * ubsan.c (ubsan_use_new_style_p): New function.
7429         (ubsan_instrument_float_cast): If location is unknown, assign
7430         input_location to loc. Propagate loc to ubsan_create_data if
7431         ubsan_use_new_style_p returned true.
7433 2015-10-21  Jeff Law  <law@redhat.com>
7435         * Makefile.in (OBJS): Remove sched-vis.c
7436         * sched-vis.c: Removed.  Code moved into...
7437         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
7438         * rtl.h: Remove prototypes for functions now living in print-rtl.c
7439         * print-rtl.h Add prototypes for new functions in print-rtl.c.
7440         * auto-inc-dec.c: Include print-rtl.h
7441         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
7442         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
7444         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
7445         ATTRIBUTE_UNUSED.
7447 2015-10-21  Richard Biener  <rguenther@suse.de>
7448             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7450         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
7451         to match.pd.
7452         Move (a * (1 << b)) is (a << b) to match.pd.
7453         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
7454         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
7455         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
7457         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
7458         New simplifier.
7459         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
7460         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
7461         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
7462         : New simplifier.
7463         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
7464         New simplifier.
7465         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
7467 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
7468             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7469             Alan Modra  <amodra@gmail.com>
7471         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
7472         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
7473         (LINK_SPEC): Add %(link_secure_plt).
7474         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
7475         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
7477 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
7478             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7480         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7481         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
7483 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7485         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
7486         New function.
7487         (fusion_load_store): Use it.
7488         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
7489         ldp and stp in VD modes.
7490         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
7491         (store_pair<mode>, VD): Likewise.
7493 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7495         PR rtl-optimization/67609
7496         * lra-splill.c (lra_final_code_change): Don't remove all
7497         sub-registers.
7499 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7501         * simplify-rtx.c (simplify_binary_operation): If either operand was
7502         a constant pool reference use them if all other simplifications failed.
7504 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7506         * config/aarch64/aarch64.md
7507         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
7508         * config/aarch64/aarch64-simd.md
7509         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
7510         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
7511         (aarch64_fpconst_pow_of_2): New function.
7512         (aarch64_vec_fpconst_pow_of_2): Likewise.
7513         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
7514         prototype.
7515         (aarch64_vec_fpconst_pow_of_2): Likewise.
7516         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
7517         (aarch64_fp_vec_pow2): Likewise.
7519 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
7521         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
7522         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
7523         * config/alpha/alpha.c (alpha_function_arg_advance): Update
7524         ALPHA_ARG_SIZE usage.
7525         (alpha_arg_partial_bytes): Ditto.
7527 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7529         PR target/66810
7530         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
7531         error_mark_node decls.
7533 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7535         PR target/67963
7536         PR target/67985
7537         * common/config/i386/i386-common.c (ix86_handle_option): Remove
7538         OPT_miamcu handling.
7539         * config/i386/i386.c (PTA_NO_80387): New macro.
7540         (processor_alias_table): Add PTA_NO_80387 to lakemont.
7541         (ix86_option_override_internal): Update MASK_80387 from
7542         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
7543         SSE math only if 80387 is supported.  Don't change
7544         MASK_FLOAT_RETURNS.
7545         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
7546         80387 is supported.
7547         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
7548         if TARGET_80387 is true and TARGET_IAMCU is false.
7549         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
7550         is true and TARGET_IAMCU_P is false.
7552 2015-10-20  Richard Biener  <rguenther@suse.de>
7554         PR tree-optimization/68017
7555         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
7557 2015-10-20  Martin Liska  <mliska@suse.cz>
7559         * cgraphclones.c (cgraph_node::create_virtual_clone):
7560         Verify cgraph_node.local.versionable instead of calling
7561         tree_versionable_function_p.
7562         * ipa-cp.c (determine_versionability): Save the information
7563         to ipa_node_params summary.
7564         (ipcp_versionable_function_p): Use it.
7565         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
7566         (ipcp_generate_summary): Do not compute cgraph_node
7567         versionability.
7568         * ipa-inline-analysis.c (inline_generate_summary): Compute
7569         versionability for all cgraph nodes.
7570         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
7571         ipa_node_params::versionability.
7572         * ipa-prop.h (struct ipa_node_params): Declare it.
7574 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7576         PR other/67868
7577         * varasm.c (assemble_variable): Move special vtv handling to..
7578         (handle_vtv_comdat_sections): .. here. New function.
7579         (output_object_block): Handle vtv sections.
7581 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7583         PR target/66912
7584         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
7586 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
7588         * doc/extend.texi: Update documentation WRT inline functions.
7590 2015-10-20  Alan Modra  <amodra@gmail.com>
7592         PR go/66870
7593         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
7594         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7595         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7597 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
7599         PR rtl-optimization/66790
7600         * df.h (DF_MIR): New macro.
7601         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
7602         (DF_MIR_INFO_BB): New macro.
7603         (DF_MIR_IN, DF_MIR_OUT): New macros.
7604         (struct df_mir_bb_info): New.
7605         (df_mir): New macro.
7606         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
7607         declarations.
7608         (df_mir_get_bb_info): New.
7609         * df-problems.c (struct df_mir_problem_data): New.
7610         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
7611         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
7612         df_mir_confluence_0, df_mir_confluence_n,
7613         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
7614         df_mir_bottom_dump, df_mir_verify_solution_start,
7615         df_mir_verify_solution_end): New.
7616         (problem_MIR): New.
7617         (df_mir_add_problem, df_mir_simulate_one_insn): New.
7618         * timevar.def (TV_DF_MIR): New.
7619         * ree.c: Include bitmap.h
7620         (add_removable_extension): Add an INIT_REGS parameter.  Use it
7621         to skip zero-extensions that may get an uninitialized register.
7622         (find_removable_extensions): Compute must-initialized registers
7623         using the MIR dataflow problem. Update the call to
7624         add_removable_extension.
7625         (find_and_remove_re): Call df_mir_add_problem.
7627 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
7629         * common/config/mn10300/mn10300-common.c
7630         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
7631         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
7633 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
7635         * doc/extend.texi (Explicit Register Variables): Simplify and
7636         avoid unnecessary and confusion abbreviations.  Update cross
7637         references.
7638         doc/implement-c.tex: Update cross reference.
7640 2015-10-19  Jeff Law  <law@redhat.com>
7642         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
7643         that create irreducible loops unless the path elimiantes a multiway
7644         branch.
7646 2015-10-19  Richard Biener  <rguenther@suse.de>
7648         PR tree-optimization/67975
7649         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
7650         * tree-cfg.c (extract_true_false_controlled_edges): Split out
7651         core worker from ...
7652         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
7653         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
7654         instead of block number for PHIs with two or one args.
7655         (vn_phi_eq): Compare edge predicates of PHIs that are in different
7656         blocks.
7658 2015-10-19  Richard Biener  <rguenther@suse.de>
7660         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
7661         (gimple_stmt_nonnegative_warnv_p): Use it.
7662         * match.pd (CPROJ): New operator list.
7663         (cproj (complex ...)): Move simplifications from ...
7664         * builtins.c (fold_builtin_cproj): ... here.
7666 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7668         * config/i386/i386.c (ix86_expand_vector_move): Use
7669         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
7670         alignment.
7672 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7674         * doc/invoke.texi: Replace @optindex with @opindex.
7676 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7678         PR target/67995
7679         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
7680         arch= is set,  clear all bits in x_ix86_isa_flags, except for
7681         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
7683 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
7685         PR middle-end/68002
7686         * common.opt (fkeep-static-functions): New option.
7687         * doc/invoke.texi: Document it.
7688         * cgraphunit.c (cgraph_node::finalize_function): Use it.
7690 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7692         * sched-int.h (struct autopref_multipass_data_): Remove offset
7693         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
7694         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
7695         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
7696         (autopref_rank_data): New function.
7697         (autopref_rank_for_schedule): Use it.
7698         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
7700 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
7702         PR other/65800
7703         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
7705 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7707         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
7708         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
7709         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
7710         (STANDARD_STARTFILE_PREFIX_1): New.
7711         (STANDARD_STARTFILE_PREFIX_2): New.
7713 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7715         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
7716         (darwin_driver_init): Note a version-min when provided on the c/l.
7717         * config/darwin.h (%darwin_minversion): Remove.
7718         * config/i386/darwin.h: Likewise.
7719         * config/rs6000/darwin.h: Likewise.
7720         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
7721         rather than an arbitrary constant.
7723 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7725         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
7726         PPC, detect conflicts between -arch and multilib settings.  Detect
7727         and warn about conflicts between multiple -arch definitions.
7729 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
7731         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
7733 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7735         * lra-constraints.c (add_next_usage_insn): Change argument type
7736         from rtx to rtx_insn *.
7738 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
7740         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
7741         for Lakemont.
7743 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
7745         * config/tilepro/gen-mul-tables.cc: Adjust include files.
7746         * config/tilegx/mul-tables.c: Regenerate.
7747         * config/tilepro/mul-tables.c: Regenerate.
7749         * config/tilegx/tilegx-c.c: Adjust include files.
7750         * config/tilegx/tilegx.c: Likewise.
7751         * config/tilepro/tilepro-c.c: Likewise.
7752         * config/tilepro/tilepro.c: Likewise.
7753         * config/aarch64/aarch64-builtins.c: Likewise.
7754         * config/aarch64/aarch64.c: Likewise.
7755         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7756         * config/alpha/alpha.c: Likewise.
7757         * config/arc/arc.c: Likewise.
7758         * config/arm/aarch-common.c: Likewise.
7759         * config/arm/arm-builtins.c: Likewise.
7760         * config/arm/arm-c.c: Likewise.
7761         * config/arm/arm.c: Likewise.
7762         * config/avr/avr-c.c: Likewise.
7763         * config/avr/avr-devices.c: Likewise.
7764         * config/avr/avr-log.c: Likewise.
7765         * config/avr/avr.c: Likewise.
7766         * config/bfin/bfin.c: Likewise.
7767         * config/c6x/c6x.c: Likewise.
7768         * config/cr16/cr16.c: Likewise.
7769         * config/cris/cris.c: Likewise.
7770         * config/darwin-c.c: Likewise.
7771         * config/darwin-driver.c: Likewise.
7772         * config/darwin.c: Likewise.
7773         * config/default-c.c: Likewise.
7774         * config/epiphany/epiphany.c: Likewise.
7775         * config/epiphany/mode-switch-use.c: Likewise.
7776         * config/epiphany/resolve-sw-modes.c: Likewise.
7777         * config/fr30/fr30.c: Likewise.
7778         * config/frv/frv.c: Likewise.
7779         * config/ft32/ft32.c: Likewise.
7780         * config/glibc-c.c: Likewise.
7781         * config/h8300/h8300.c: Likewise.
7782         * config/i386/host-cygwin.c: Likewise.
7783         * config/i386/host-mingw32.c: Likewise.
7784         * config/i386/i386-c.c: Likewise.
7785         * config/i386/i386.c: Likewise.
7786         * config/i386/msformat-c.c: Likewise.
7787         * config/i386/winnt-cxx.c: Likewise.
7788         * config/i386/winnt-stubs.c: Likewise.
7789         * config/i386/winnt.c: Likewise.
7790         * config/ia64/ia64-c.c: Likewise.
7791         * config/ia64/ia64.c: Likewise.
7792         * config/iq2000/iq2000.c: Likewise.
7793         * config/lm32/lm32.c: Likewise.
7794         * config/m32c/m32c-pragma.c: Likewise.
7795         * config/m32c/m32c.c: Likewise.
7796         * config/m32r/m32r.c: Likewise.
7797         * config/mcore/mcore.c: Likewise.
7798         * config/mep/mep-pragma.c: Likewise.
7799         * config/mep/mep.c: Likewise.
7800         * config/microblaze/microblaze-c.c: Likewise.
7801         * config/microblaze/microblaze.c: Likewise.
7802         * config/mips/mips-tables.opt
7803         * config/mips/mips.c: Likewise.
7804         * config/mmix/mmix.c: Likewise.
7805         * config/mn10300/mn10300.c: Likewise.
7806         * config/moxie/moxie.c: Likewise.
7807         * config/msp430/msp430-c.c: Likewise.
7808         * config/msp430/msp430.c: Likewise.
7809         * config/nds32/nds32-cost.c: Likewise.
7810         * config/nds32/nds32-fp-as-gp.c: Likewise.
7811         * config/nds32/nds32-intrinsic.c: Likewise.
7812         * config/nds32/nds32-isr.c: Likewise.
7813         * config/nds32/nds32-md-auxiliary.c: Likewise.
7814         * config/nds32/nds32-memory-manipulation.c: Likewise.
7815         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7816         * config/nds32/nds32-predicates.c: Likewise.
7817         * config/nds32/nds32.c: Likewise.
7818         * config/nios2/nios2.c: Likewise.
7819         * config/nvptx/mkoffload.c: Likewise.
7820         * config/nvptx/nvptx.c: Likewise.
7821         * config/pa/pa.c: Likewise.
7822         * config/pdp11/pdp11.c: Likewise.
7823         * config/rl78/rl78-c.c: Likewise.
7824         * config/rl78/rl78.c: Likewise.
7825         * config/rs6000/host-darwin.c: Likewise.
7826         * config/rs6000/rs6000-c.c: Likewise.
7827         * config/rs6000/rs6000-linux.c: Likewise.
7828         * config/rs6000/rs6000.c: Likewise.
7829         * config/rx/rx.c: Likewise.
7830         * config/s390/s390-c.c: Likewise.
7831         * config/s390/s390.c: Likewise.
7832         * config/sh/sh-c.c: Likewise.
7833         * config/sh/sh-mem.cc: Likewise.
7834         * config/sh/sh.c: Likewise.
7835         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7836         * config/sh/sh_treg_combine.cc: Likewise.
7837         * config/sol2-c.c: Likewise.
7838         * config/sol2-cxx.c: Likewise.
7839         * config/sol2-stubs.c: Likewise.
7840         * config/sol2.c: Likewise.
7841         * config/sparc/sparc-c.c: Likewise.
7842         * config/sparc/sparc.c: Likewise.
7843         * config/spu/spu-c.c: Likewise.
7844         * config/spu/spu.c: Likewise.
7845         * config/stormy16/stormy16.c: Likewise.
7846         * config/v850/v850-c.c: Likewise.
7847         * config/v850/v850.c: Likewise.
7848         * config/vax/vax.c: Likewise.
7849         * config/visium/visium.c: Likewise.
7850         * config/vms/vms-c.c: Likewise.
7851         * config/vms/vms.c: Likewise.
7852         * config/vxworks.c: Likewise.
7853         * config/winnt-c.c: Likewise.
7854         * config/xtensa/xtensa.c: Likewise.
7856 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7858         PR target/67745
7859         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
7860         (FUNCTION_BOUNDARY_P): New macro:
7861         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
7862         New hook.
7863         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
7864         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
7865         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
7866         * function.c (allocate_struct_function): Call
7867         relayout_function hook.
7868         * passes.c (rest_of_decl_compilation): Likewise.
7870 2015-10-16  Christian Bruel  <christian.bruel@st.com>
7872         PR target/67745
7873         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
7874         * config/arm/arm.c (arm_option_override_internal): Call
7875         arm_override_options_after_change_1.
7876         (arm_override_options_after_change): New function.
7877         (arm_override_options_after_change_1): Likewise.
7878         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
7880 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7882         Revert:
7883         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7884         empty constructors.
7886 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7888         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
7889         argument is an ADDR_EXPR.
7891 2015-10-16  Richard Biener  <rguenther@suse.de>
7893         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
7894         and get rid of force_gimple_operand_gsi.
7895         (gimple_fold_builtin_memory_chk): Likewise.
7896         (gimple_fold_builtin_stxcpy_chk): Likewise.
7897         (rewrite_to_defined_overflow): Likewise.
7898         (gimple_convert_to_ptrofftype): New function.
7899         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
7901 2015-10-16  Richard Biener  <rguenther@suse.de>
7903         * tree-nested.h (build_addr): Adjust prototype.
7904         * tree-nested.c (build_addr): Remove context argument and use
7905         mark_addressable.
7906         (get_static_chain): Adjust calls to build_addr.
7907         (convert_nl_goto_reference): Likewise.
7908         (convert_tramp_reference_op): Likewise.
7909         (finalize_nesting_tree_1): Likewise.
7910         * value-prof.c (gimple_ic): Likewise.
7911         * gimple-low.c (lower_builtin_setjmp): Likewise.
7912         * tree-parloops.c (take_address_of): Likewise.
7913         (create_call_for_reduction_1): Likewise.
7914         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
7915         (gimple_gen_ic_func_profiler): Likewise.
7917 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
7919         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
7920         empty constructors.
7922 2015-10-16  Michael Collison  <michael.collison@linaro.org>
7923             Andrew Pinski <andrew.pinski@caviumnetworks.com>
7925         * match.pd ((x < y) && (x < z) -> x < min (y,z),
7926         (x > y) and (x > z) -> x > max (y,z))
7928 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7929             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7931         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
7932         (DYNAMIC_LINKER): Renamed to ...
7933         (GLIBC_DYNAMIC_LINKER): This.
7934         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
7936 2015-10-15  Marek Polacek  <polacek@redhat.com>
7938         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
7939         gimple_call_builtin instead of is_gimple_call.
7941 2015-10-15  Richard Biener  <rguenther@suse.de>
7943         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
7945 2015-10-15  Richard Biener  <rguenther@suse.de>
7947         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
7948         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
7949         * tree-vect-loop.c (get_initial_def_for_induction): Drop
7950         use of force_gimple_operand in favor of gimple_build.
7951         Use vect_get_new_ssa_name.
7952         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
7953         (vectorizable_mask_load_store): Likewise.
7954         (vectorizable_call): Likewise.
7955         (vectorizable_store): Likewise.
7956         (vectorizable_load): Likewise.
7957         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
7959 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
7961         PR tree-optimization/67945
7962         * tree-pass.h (PROP_gimple_opt_math): New property flag.
7963         * generic-match-head.c (canonicalize_math_p): New function.
7964         * gimple-match-head.c: Include tree-pass.h.
7965         (canonicalize_math_p): New function.
7966         * match.pd: Group math built-in rules into simplifications
7967         and canonicalizations.  Guard the latter with canonicalize_math_p.
7968         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
7969         PROP_gimple_opt_math property.
7971 2015-10-15  Marek Polacek  <polacek@redhat.com>
7973         PR tree-optimization/67953
7974         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
7976 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
7978         * config.gcc: Recognize "." in architecture base name for AArch64.
7980 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
7982         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
7983         ROUND_UP macro.
7984         * config/mips/mips.c (mips_setup_incoming_varargs): Use
7985         ROUND_DOWN to calculate off.
7986         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
7987         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
7988         rounded_size.
7990 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7992         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
7994 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
7995             Torvald Riegel  <triegel@redhat.com>
7997         PR target/67281
7998         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
7999         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8000         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
8001         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
8002         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
8003         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
8004         trechkpt, treclaim, tsr, ttest): New define_expands.
8005         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8006         __TM_FENCE__ for htm.
8007         * doc/extend.texi: Update documentation for htm builtins.
8009 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
8011         PR target/67967
8012         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
8013         REG_CFA_EXPRESSION to aligned SSE stores.
8015 2015-10-14  Jeff Law  <law@redhat.com>
8017         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
8018         num_threaded_edges for successful FSM threads too.
8020 2015-10-14  Richard Biener  <rguenther@suse.de>
8022         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
8023         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
8024         (vect_get_vec_def_for_operand): Remove unused parameter.
8025         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
8026         (vect_create_epilog_for_reduction): Likewise.
8027         (vectorizable_reduction): Likewise.
8028         (vectorizable_live_operation): Likewise.
8029         * tree-vect-patterns.c (type_conversion_p): Likewise.
8030         (vect_recog_vector_vector_shift_pattern): Likewise.
8031         (check_bool_pattern): Likewise.
8032         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8033         (vect_analyze_slp_cost_1): Likewise.
8034         * tree-vect-stmts.c (process_use): Likewise.
8035         (vect_get_vec_def_for_operand): Do not handle reductions.
8036         (vect_get_vec_defs): Adjust.
8037         (vectorizable_mask_load_store): Likewise.
8038         (vectorizable_call): Likewise.
8039         (vectorizable_simd_clone_call): Likewise.
8040         (vect_get_loop_based_defs): Likewise.
8041         (vectorizable_conversion): Likewise.
8042         (vectorizable_assignment): Likewise.
8043         (vectorizable_shift): Likewise.
8044         (vectorizable_operation): Likewise.
8045         (vectorizable_store): Likewise.
8046         (vectorizable_load): Likewise.
8047         (vect_is_simple_cond): Likewise.
8048         (vectorizable_condition): Likewise.
8049         (vect_is_simple_use): Remove unused parameters.
8050         (vect_is_simple_use_1): Adjust and rename.
8052 2015-10-14  Richard Biener  <rguenther@suse.de>
8054         PR tree-optimization/67915
8055         * match.pd: Handle comparisons of addresses of STRING_CSTs.
8056         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
8057         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
8058         stmt folding in favor of GIMPLE one.
8060 2015-10-14  Marek Polacek  <polacek@redhat.com>
8062         PR tree-optimization/67815
8063         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
8064         (reassociate_bb): Call it.
8066 2015-10-14  Richard Biener  <rguenther@suse.de>
8068         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8069         Reset info at start.
8070         (vect_analyze_group_access_1): Add debug print.
8071         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
8072         (vect_compute_single_scalar_iteration_cost): ... to this.
8073         (vect_analyze_loop_2): Adjust.
8074         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
8075         * tree-vectorizer.h: ... here.
8076         (add_stmt_info_to_vec): Remove.
8077         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
8079 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8081         * targhooks.c (default_target_option_pragma_parse): Do not warn if
8082         called on behalf of "#pragma GCC pop_options".
8084 2015-10-14  Tom de Vries  <tom@codesourcery.com>
8086         * cfganal.c (verify_no_unreachable_blocks): New function.
8087         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
8088         verify_no_unreachable_blocks.
8089         cfganal.h (verify_no_unreachable_blocks): Declare.
8091 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
8093         * common.opt: Add flag_checking.
8094         * system.h (CHECKING_P): Define.
8096 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8097             Aldy Hernandez  <aldyh@redhat.com>
8098             Ilya Verbin  <ilya.verbin@intel.com>
8100         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
8101         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
8102         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
8103         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
8104         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
8105         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
8106         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
8107         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
8108         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
8109         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
8110         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
8111         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
8112         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
8113         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8114         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
8115         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8116         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8117         (struct cgraph_simd_clone_arg): Adjust comment.
8118         * coretypes.h (struct gomp_ordered): New forward decl.
8119         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
8120         set critical clauses to it.
8121         (gimple_build_omp_ordered): Return gomp_ordered * instead of
8122         gimple *.  Add CLAUSES argument, set ordered clauses to it.
8123         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
8124         GIMPLE_OMP_ORDERED.
8125         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
8126         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
8127         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
8128         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
8129         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
8130         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
8131         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
8132         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
8133         renumber
8134         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
8135         (gomp_critical): Add clauses field.
8136         (gomp_ordered): New struct.
8137         (is_a_helper <gomp_ordered *>::test): New inline.
8138         (gimple_build_omp_critical): Add CLAUSES argument.
8139         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
8140         instead of gimple *.
8141         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
8142         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
8143         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
8144         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
8145         inline functions.
8146         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
8147         (dump_gimple_omp_target): Handle enter data and exit data.
8148         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
8149         (dump_gimple_omp_critical): Print clauses.
8150         (dump_gimple_omp_ordered): New function.
8151         (dump_gimple_omp_task): Handle taskloop.
8152         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
8153         GIMPLE_OMP_ORDERED.
8154         * gimple-walk.c (walk_gimple_op): Walk clauses on
8155         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
8156         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
8157         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
8158         (struct gimplify_omp_ctx): Add loop_iter_var,
8159         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
8160         and target_firstprivatize_array_bases fields.
8161         (delete_omp_context): Release loop_iter_var.
8162         (gimplify_bind_expr): Handle ORT_NONE.
8163         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
8164         ORT_COMBINED_TARGET.
8165         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
8166         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
8167         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
8168         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
8169         ctx->target_map_scalars_firstprivate.
8170         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
8171         data sharing clauses.  For data sharing clause with VLA decl
8172         on omp target/target data don't add firstprivate for the pointer.
8173         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
8174         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
8175         the addition of ORT_COMBINED_TARGET.
8176         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
8177         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
8178         pointers as zero length array sections and
8179         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
8180         data sharing.
8181         (omp_check_private): Handle omp_member_access_dummy_var vars.
8182         (find_decl_expr): New function.
8183         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
8184         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
8185         Handle OMP_CLAUSE_GANG separately.  Handle
8186         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8187         clauses.  Diagnose linear clause on combined
8188         distribute {, parallel for} simd construct, unless it is the loop
8189         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
8190         Handle map clauses with COMPONENT_REF.  Initialize
8191         ctx->target_map_scalars_firstprivate,
8192         ctx->target_firstprivatize_array_bases and
8193         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
8194         linear clause even to target region if combined.  Remove
8195         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
8196         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
8197         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
8198         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
8199         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
8200         For linear clause on worksharing loop combined with parallel add
8201         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
8202         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
8203         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
8204         taskloop if needed.
8205         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
8206         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
8207         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
8208         GOMP_MAP_POINTER.
8209         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
8210         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
8211         in target body.  Handle removal of struct mapping if struct is not
8212         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
8213         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
8214         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
8215         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
8216         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
8217         clause appear together.  Handle
8218         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
8219         clause if it has map-type-modifier always.  Handle
8220         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
8221         clauses.
8222         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
8223         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
8224         callers.
8225         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
8226         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
8227         iterators in doacross loops.
8228         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
8229         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
8230         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
8231         for the addition of ORT_COMBINED_TARGET.
8232         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
8233         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
8234         and OMP_TARGET_EXIT_DATA.
8235         (gimplify_omp_ordered): New function.
8236         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
8237         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
8238         Gimplify clauses on OMP_CRITICAL.
8239         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
8240         expand_GOMP_SIMD_ORDERED_END): New functions.
8241         * internal-fn.def (GOMP_SIMD_ORDERED_START,
8242         GOMP_SIMD_ORDERED_END): New internal functions.
8243         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
8244         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
8245         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
8246         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
8247         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
8248         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
8249         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
8250         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
8251         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
8252         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
8253         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
8254         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
8255         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
8256         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
8257         adjust type.
8258         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
8259         GOMP_target_data_41, adjust type.
8260         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
8261         GOMP_target_update_41, adjust type.
8262         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
8263         field.
8264         (struct omp_for_data): Add ordered and simd_schedule fields.
8265         (omp_member_access_dummy_var, unshare_and_remap_1,
8266         unshare_and_remap, is_taskloop_ctx): New functions.
8267         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
8268         (extract_omp_for_data): Handle taskloops and doacross loops
8269         and simd schedule modifier.
8270         (omp_adjust_chunk_size): New function.
8271         (get_ws_args_for): Use it.
8272         (lookup_sfield): Change first argument to splay_tree_key,
8273         add overload with first argument tree.
8274         (maybe_lookup_field): Likewise.
8275         (use_pointer_for_field): Handle omp_member_access_dummy_var.
8276         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
8277         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
8278         (build_outer_var_ref): Add LASTPRIVATE argument, handle
8279         taskloops and omp_member_access_dummy_var vars.
8280         (build_sender_ref): Change first argument to splay_tree_key,
8281         add overload with first argument tree.
8282         (install_var_field): For mask & 8 use &DECL_UID as key instead
8283         of the tree itself.
8284         (fixup_child_record_type): Const qualify *.omp_data_i.
8285         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
8286         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
8287         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
8288         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
8289         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
8290         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
8291         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
8292         kinds.
8293         (add_taskreg_looptemp_clauses): New function.
8294         (scan_omp_parallel): Use it.
8295         (scan_omp_task): Likewise.
8296         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8297         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
8298         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8299         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
8300         sandwiched taskloop constructs.  Type check
8301         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
8302         region.  Diagnose depend(source) or depend(sink:...) on
8303         target constructs or task/taskloop.
8304         (handle_simd_reference): Use get_name.
8305         (lower_rec_input_clauses): Likewise.  Ignore all
8306         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
8307         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
8308         before passing it to omp_clause_{default,copy}_ctor.  Handle
8309         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
8310         lastprivate_firstprivate flag for linear that needs copyin and
8311         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
8312         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
8313         on taskloop lookup decl in outer context.  Pass true to
8314         build_outer_var_ref lastprivate argument.  Handle
8315         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
8316         outside of outer taskloop for.
8317         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
8318         OMP_CLAUSE_DECL.
8319         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
8320         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
8321         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
8322         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
8323         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
8324         abstract origin.  Handle omp_member_access_dummy_var vars.
8325         (expand_parallel_call): Use expand_omp_build_assign.
8326         (expand_task_call): Handle taskloop construct expansion.  Add
8327         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
8328         integers.  Add priority argument to GOMP_task* calls.  Or in
8329         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
8330         GOMP_task call.
8331         (expand_omp_build_assign): Add prototype.  Add AFTER
8332         argument, if true emit statements after *GSI_P and continue linking.
8333         (expand_omp_taskreg): Adjust expand_task_call caller.
8334         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
8335         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
8336         zero_iter2_bb and first_zero_iter2 arguments, handle computation
8337         of counts even for ordered loops.
8338         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
8339         (expand_omp_ordered_source, expand_omp_ordered_sink,
8340         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
8341         functions.
8342         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
8343         clauses on worksharing loop.  Handle DOACROSS loop expansion.
8344         (expand_omp_for_static_nochunk): Handle linear clauses on
8345         worksharing loop.  Adjust expand_omp_for_init_counts
8346         callers.
8347         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
8348         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
8349         expand_omp_for_init_counts callers.
8350         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
8351         functions.
8352         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
8353         Handle doacross loops.
8354         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8355         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
8356         GOMP_target_{41,update_41,enter_exit_data} libcalls.
8357         (expand_omp): Don't expand ordered depend constructs here, record
8358         ord_stmt instead for later expand_omp_for_generic.
8359         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8360         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8361         clause as stand-alone directive.
8362         (lower_omp_ordered_clauses): New function.
8363         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
8364         don't lower anything.
8365         (lower_omp_for_lastprivate): Use last _looptemp_ clause
8366         on taskloop for comparison.
8367         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
8368         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
8369         expansion for linear adjustments.
8370         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
8371         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
8372         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
8373         to tree * pointing to the stmt's clauses.
8374         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
8375         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
8376         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
8377         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
8378         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
8379         clauses.  Always use short kind and 8-bit align shift.
8380         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
8381         (struct lower_omp_regimplify_operands_data): New type.
8382         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
8383         New functions.
8384         (lower_omp_1): Use lower_omp_regimplify_operands instead of
8385         gimple_regimplify_operands.
8386         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
8387         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
8388         clause as stand-alone directive.
8389         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
8390         (simd_clone_mangle): Mangle the various linear kinds
8391         per the new ABI.
8392         (simd_clone_adjust_argument_types): Handle
8393         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
8394         (simd_clone_init_simd_arrays): Don't do anything for uval.
8395         (simd_clone_adjust): Handle
8396         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8397         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
8398         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
8399         * omp-low.h (omp_member_access_dummy_var): New prototype.
8400         * passes.def (pass_simduid_cleanup): Schedule another copy of the
8401         pass after all optimizations.
8402         * tree.c (omp_clause_code_name): Add entries for
8403         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8404         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8405         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
8406         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
8407         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
8408         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
8409         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8410         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
8411         clauses.
8412         * tree-core.h (enum omp_clause_linear_kind): New.
8413         (struct tree_omp_clause): Change type of map_kind
8414         from unsigned char to unsigned int.  Add subcode.if_modifier
8415         and subcode.linear_kind fields.
8416         (enum omp_clause_code): Add
8417         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
8418         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
8419         (OMP_CLAUSE_REDUCTION): Document
8420         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8421         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
8422         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
8423         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
8424         operand.
8425         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
8426         operand.
8427         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
8428         codes.
8429         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
8430         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
8431         char.
8432         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
8433         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
8434         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
8435         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
8436         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
8437         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
8438         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
8439         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
8440         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
8441         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
8442         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
8443         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
8444         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
8445         * tree-inline.c (remap_gimple_stmt): Handle clauses on
8446         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
8447         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
8448         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
8449         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8450         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8451         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
8452         (convert_local_omp_clauses): Likewise.
8453         * tree-pretty-print.c (dump_omp_clause): Handle
8454         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
8455         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
8456         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
8457         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
8458         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
8459         GOMP_MAP_FORCE_DEALLOC.  Handle
8460         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
8461         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
8462         and clauses on OMP_ORDERED and OMP_CRITICAL.
8463         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
8464         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
8465         (vectorize_loops): Adjust comments.
8466         (pass_simduid_cleanup::execute): Likewise.
8467         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8468         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
8469         * wide-int.h (wi::gcd): New.
8471 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8473         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
8474         (ix86_function_arg_advance): Ditto.
8475         (ix86_function_arg): Ditto.
8476         (ix86_gimplify_va_arg): Ditto.
8477         (ix86_class_max_nregs): Ditto.
8478         (inline_memory_move_cost): Ditto.
8479         (ix86_set_reg_reg_cost): Ditto.
8480         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
8482 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
8484         PR middle-end/67912
8485         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
8487 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
8489         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
8490         ROUND_UP macro and UNITS_PER_WORD * 2.
8491         * config/sparc/sparc.c (sparc_compute_frame_size):
8492         Use ROUND_UP and ROUND_DOWN macros where applicable.
8493         (function_arg_record_value, function_arg_record_value_1)
8494         (function_arg_record_value_1): Ditto.
8495         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
8496         alignment to double-word.
8497         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
8498         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
8499         rounded_size.
8501 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
8503         * rtl.h (print_insn): Fix prototype.
8505 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8507         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
8508         -1.  Add assert that returned entry matches phi argument.
8509         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
8510         free_stmt_vec_info_vec ...
8511         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
8512         with -1.
8514 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
8516         PR tree-optimization/67909, 67947
8517         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
8518         really skip the inner loop.
8520 2015-10-13  Jeff Law  <law@redhat.com>
8522         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8523         Allow single block jump threading paths.
8525 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8527         PR tree-optimization/67476
8528         * doc/invoke.texi (@item parloops-schedule): New item.
8529         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
8530         * tree-parloops.c: Include params-enum.h.
8531         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
8533 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8535         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
8536         * params-enum.h: New file.
8537         * opts.c (handle_param): Handle case that param arg is a string.
8538         * params-list.h: Handle DEFPARAMENUM5 in params.def.
8539         * params.c (find_param): New function, factored out of ...
8540         (set_param_value): ... here.
8541         (param_string_value_p): New function.
8542         * params.h (struct param_info): Add value_names field.
8543         (find_param, param_string_value_p): Declare.
8545 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8547         PR tree-optimization/67476
8548         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
8550 2015-10-13  Richard Biener  <rguenther@suse.de>
8552         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
8553         the data dependence vector.
8554         (vect_peeling_hash_insert): Get the peeling hash table as argument.
8555         (vect_peeling_hash_get_lowest_cost): Likewise.
8556         (vect_enhance_data_refs_alignment): Adjust.
8557         (struct _vect_peel_info, struct _vect_peel_extended_info,
8558         struct peel_info_hasher): Move from ...
8559         * tree-vectorizer.h: ... here.
8560         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
8561         (LOOP_VINFO_PEELING_HTAB): Likewise.
8562         (struct _loop_vec_info): Remove min_profitable_iters and
8563         peeling_htab members.
8564         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
8565         here.
8566         (destroy_loop_vec_info): Adjust.
8567         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
8568         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
8569         to estimate alias versioning cost.
8570         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
8572 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
8574         * real.h (real_isinteger): Declare.
8575         * real.c (real_isinteger): New function.
8576         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
8577         if y is an even integer.
8579 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8581         revert:
8582         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8583         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8584         counts when these are more informative.
8586 2015-10-12  Jeff Law  <law@redhat.com>
8588         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
8589         (fsm_find_control_stmt_paths): Change name of first argument to
8590         more accurately relfect what it really is.  Handle simplification
8591         of GIMPLE_COND after finding a thread path for NAME.
8592         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
8593         nontrivial conditions to be handled by FSM threader.
8594         (thread_through_normal_block): Extract the name to looup via
8595         FSM threader from COND_EXPR.
8597         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
8598         restriction that traced SSA_NAME is a user variable.
8600 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8602         PR tree-optimization/67476
8603         * omp-low.c (expand_omp_for_generic): Add missing phis.
8605 2015-10-12  Tom de Vries  <tom@codesourcery.com>
8607         PR tree-optimization/67476
8608         * omp-low.c (expand_omp_for_generic): Handle simple latch.
8610 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
8612         * config/aarch64/aarch64-simd-builtins.def: Update builtins
8613         tables: add tbl3 and tbx4.
8614         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
8615         (aarch64_tbx4v8qi): New.
8616         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
8617         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
8618         Rewrite using builtin functions.
8619         * config/aarch64/iterators.md (UNSPEC_TBX): New.
8621 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8623         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
8624         ROUND_UP macro.
8625         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8626         Use ROUND_UP and ROUND_DOWN macros where applicable.
8627         (rs6000_darwin64_record_arg_flush): Ditto.
8628         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
8629         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
8630         rounded_size.
8632 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
8634         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
8635         (AARCH64_ROUND_DOWN): Ditto.
8636         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
8638 2015-10-12  Richard Biener  <rguenther@suse.de>
8640         PR ipa/67783
8641         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
8642         code that analyzes IVs on each stmt but in a cheaper way avoiding
8643         quadratic behavior.
8645 2015-10-12  Nick Clifton  <nickc@redhat.com>
8647         * config/msp430/msp430.c (msp430_mcu_names): Rename to
8648         msp430_mcu_data, add fields for ISA and hardware multiply
8649         support.  Import latest data from the devices.csv file.
8650         (msp430_override_option): Use the data from the new array.
8651         (msp430_use_f5_series_hwmult): Likewise.
8652         (use_32bit_hwmult): Likewise.
8653         (msp430_no_hwmult): Likewise.
8654         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
8655         MCU names.
8656         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
8657         not recognised then no hardware multiply support is assumed and
8658         that only the MSP430 ISA is allowed.
8660 2015-10-12  Richard Biener  <rguenther@suse.de>
8662         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
8663         related code ...
8664         (vect_analyze_loop_2): ... here.
8666 2015-10-11  Jason Merrill  <jason@redhat.com>
8668         PR c++/67557
8669         * expr.c (store_field): Call store_constructor directly when
8670         storing a CONSTRUCTOR into a target smaller than its type.
8671         Guard against unsafe bitwise copy.
8673 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8675         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
8676         counts when these are more informative.
8678 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8680         * tree-profile.c (tree_profiling): Do not clear
8681         pure/const when not instrumenting.
8682         (pass tree_profile): Add dump of symtab.
8684 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8686         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
8687         addresses.
8688         (fold_addr_of_array_ref_difference): Likewise.
8690 2015-10-11  Jeff Law  <law@redhat.com>
8692         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
8693         tree-ssa-threadbackward.c.
8694         (fsm_find_control_statement_thread_paths): Likewise.
8695         (thread_through_normal_block): Break out FSM bits and move them
8696         into a new function in tree-ssa-threadbackward.c.  Call new function
8697         instead.
8698         Minimize header file usage.
8699         * tree-ssa-threadbackward.h: New file.
8700         * tree-ssa-threadbackward.c: Likewise.
8701         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
8703 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
8705         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
8707 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
8709         PR rtl-optimization/67864
8710         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
8711         fallthrough edges for conditional jumps.  Don't sort candidate
8712         edges if not optimizing for speed.
8714 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8716         * defaults.h (REVERSE_CONDITION): New default definition.
8717         * jump.c (reversed_comparison_code_parts): Adjust.
8719 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8721         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
8722         check HARD_FRAME_POINTER_IS_ARG_POINTER.
8724 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8726         * defaults.h (FRAME_ADDR_RTX): New default definition.
8727         * builtins.c (expand_builtin_return_addr): Adjust.
8729 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8731         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
8732         * builtins.c (expand_builtin_return_addr): Adjust.
8734 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8736         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
8737         * builtins.c (expand_builtin_return_addr): Adjust.
8738         * doc/tm.texi: Likewise.
8739         * doc/tm.texi.in: Likewise.
8740         * except.c (expand_builtin_unwind_init): Likewise.
8742 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8744         * builtins.c (expand_builtin_return_addr): Adjust.
8745         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
8747 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8749         * tree.c (type_with_interoperable_signedness): New.
8750         (gimple_canonical_types_compatible_p): Use it.
8751         * tree.h (type_with_interoperable_signedness): Declare
8753 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
8755         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
8756         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
8757         when OEP_ADDRESS_OF is se.
8759 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8760             Sebastian Pop  <s.pop@samsung.com>
8762         * graphite-dependences.c (scop_get_dependences): Add dump of the
8763         data dependence graph.
8764         * graphite-poly.c (print_isl_union_map): New.
8765         (debug_isl_union_map): New.
8766         * graphite-poly.h (print_isl_union_map): Declare.
8767         (debug_isl_union_map): Declare.
8769 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
8770             Sebastian Pop  <s.pop@samsung.com>
8772         * graphite-poly.c (print_iteration_domain): Remove verbosity.
8773         Remove OpenScop formatting.
8774         (print_iteration_domains): Same.
8775         (debug_iteration_domain): Same.
8776         (debug_iteration_domains): Same.
8777         (print_pdr): Same.
8778         (debug_pdr): Same.
8779         (dump_gbb_cases): Same.
8780         (dump_gbb_conditions): Same.
8781         (print_pdrs): Same.
8782         (debug_pdrs): Same.
8783         (print_pbb_body): Same.
8784         (print_pbb): Same.
8785         (print_scop_params): Same.
8786         (print_scop_context): Same.
8787         (print_scop): Same.
8788         (debug_pbb_domain): Same.
8789         (debug_pbb): Same.
8790         (debug_scop_context): Same.
8791         (debug_scop): Same.
8792         (debug_scop_params): Same.
8793         * graphite-poly.h: Same.
8794         * graphite.c (graphite_transform_loops): Same.
8796 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8798         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
8799         call that isn't needed.
8801 2015-10-09  Jeff Law  <law@redhat.com>
8803         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
8804         rather than moving each name to the freelist individually.
8806 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
8808         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
8809         * frame-header-opt.c: New file.
8810         * config/mips/mips-proto.h (mips_register_frame_header_opt):
8811         Add prototype.
8812         * config/mips/mips.c (mips_compute_frame_info): Check
8813         optimize_call_stack flag.
8814         (mips_option_override): Register new frame_header_opt pass.
8815         (mips_frame_info, mips_int_mask, mips_shadow_set,
8816         machine_function): Move these types to...
8817         * config/mips/mips.h: here.
8818         (machine_function): Add does_not_use_frame_header and
8819         optimize_call_stack fields.
8820         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
8821         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
8822         Document new flags.
8823         * config/mips/mips.opt (mframe-header-opt): Add new option.
8825 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
8827         * config/i386/i386.c
8828         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
8829         ROUND_DOWN where applicable.
8831 2015-10-09  Jeff Law  <law@redhat.com>
8833         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
8834         correct statement.
8836 2015-10-09  Renlin Li  <renlin.li@arm.com>
8838         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
8839         operands[0] and operands[2].
8840         (neon_vtrn<mode>_insn): Likewise.
8841         (neon_vzip<mode>_insn): Likewise.
8843 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8845         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
8846         ((X & C2) << C1): Expand to...
8847         (X {&,^,|} C2 << C1): ...This.
8848         ((X & C2) >> C1): Expand to...
8849         (X {&,^,|} C2 >> C1): ...This.
8851 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
8853         PR target/67895
8854         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
8855         Adjust embedded rounding/SAE specifier position.
8856         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
8857         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
8858         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
8859         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
8860         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8861         Likewise.
8862         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
8864 2015-10-09  Martin Jambor  <mjambor@suse.cz>
8866         tree-optimization/67794
8867         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
8868         between types of state,ents but accept original definitions as a
8869         parameter.
8870         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
8871         iterate over definitions.
8873 2015-10-09  James Norris  <jnorris@codesourcery.com>
8875         * config/rs6000/rs6000.c (rs6000_offload_options): New.
8876         (TARGET_OFFLOAD_OPTIONS): New.
8878 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
8880         PR middle-end/67891
8881         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
8883         PR middle-end/67766
8884         * function.c (expand_function_end): Move return value
8885         promotion past the handling of PARALLELs and CONCATs.
8887         PR rtl-optimization/67828
8888         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
8889         (tree_may_unswitch_on): Don't unswitch on expressions
8890         involving undefined values.
8892 2015-10-09  Richard Biener  <rguenther@suse.de>
8894         * genmatch.c (print_operand): Fix formatting.
8895         (dt_node::append_simplify): Warn for multiple simplifiers
8896         that match the same pattern.
8897         * match.pd (log (exp @0)): Remove duplicates.
8899 2015-10-09  Richard Biener  <rguenth@suse.de>
8901         PR target/67366
8902         * gimple-fold.c (optabs-query.h): Include
8903         (gimple_fold_builtin_memory_op): Allow unaligned stores
8904         when movmisalign_optabs are available.
8906 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8908         PR target/67366
8909         * config/arm/arm.md (movmisalign<mode>): New.
8910         * config/arm/iterators.md (HSI): New.
8912 2015-10-09  Richard Biener  <rguenther@suse.de>
8914         PR tree-optimization/67891
8915         * gimple-match.h (gimple_simplified_result_is_gimple_val):
8916         New helper.
8917         (gimple_resimplify1): Declare.
8918         (gimple_resimplify2): Likewise.
8919         (gimple_resimplify3): Likewise.
8920         * gimple-match-head.c (gimple_resimplify1): Export.
8921         (gimple_resimplify2): Likewise.
8922         (gimple_resimplify3): Likewise.
8923         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
8924         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8925         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
8926         to avoid creating stmts without VN info.
8928 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
8930         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
8931         of availability.
8933 2015-10-08  Jeff Law  <law@redhat.com>
8935         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
8936         and release_ssa_name in two places.
8937         (gimple_stringop_fixed_value): Similarly.
8939         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
8940         release_defs.
8942         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
8943         unlink_stmt_vdef and release_ssa_name_fn.
8945         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
8946         release_defs.
8948 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8950         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
8951         SSE register save area to 16 bytes only if the incoming stack
8952         boundary is no less than 16 bytes.
8954 2015-10-08  Jeff Law  <law@redhat.com>
8956         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
8957         release_ssa_name.  Fix typo in comment.
8959 2015-10-08  Nathan Sidwell  <nathan@acm.org>
8961         * config/nvptx/nvptx.h (struct machine_function): Add comment.
8962         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
8963         may return pointer as well as in memory.
8964         (nvptx_output_return): Likewise.
8966 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8968         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
8969         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8970         * match.pd: Add rules previously handled by fold_builtin_sqrt
8971         and fold_builtin_cbrt.
8973 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
8975         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
8976         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
8977         * fold-const.h (tree_unary_nonnegative_warnv_p)
8978         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8979         (tree_expr_nonnegative_warnv_p): Add depth parameters.
8980         * fold-const.c: Include gimple-fold.h and params.h.
8981         (tree_ssa_name_nonnegative_warnv_p): New function.
8982         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
8983         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
8984         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
8985         Add a depth parameter and increment it for recursive calls to
8986         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
8987         to handle SSA names.
8988         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
8989         (gimple_stmt_nonnegative_warnv_p): Declare.
8990         * tree-vrp.c (remove_range_assertions): Remove assert that condition
8991         cannot be proven false.
8992         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
8993         (gimple_stmt_nonnegative_warnv_p): Move to...
8994         * gimple-fold.c: ...here.  Add depth parameters and pass them
8995         down to the tree routines.  Accept statements that aren't
8996         assignments or calls but just return false for them.
8997         (gimple_val_nonnegative_real_p): Delete.
8998         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
8999         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
9000         Check HONOR_NANs first.
9002 2015-10-08  Martin Jambor  <mjambor@suse.cz>
9004         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
9005         unnecessary MIN.
9007 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9009         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
9010         in the tail of outer-loop.
9012 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
9014         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
9015         return UI_NONE.
9017 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
9019         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
9020         "cfghooks.h", add prototypes for introduced new functions.
9021         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
9022         checks on ability of loop unswitching to tree_unswitch_single_loop;
9023         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
9024         on innermost loop check.
9025         (tree_unswitch_single_loop): Add all required checks on ability of
9026         loop unswitching under zero recursive level guard.
9027         (tree_unswitch_outer_loop): New function.
9028         (find_loop_guard): Likewise.
9029         (empty_bb_without_guard_p): Likewise.
9030         (used_outside_loop_p): Likewise.
9031         (get_vop_from_header): Likewise.
9032         (hoist_guard): Likewise.
9033         (check_exit_phi): Likewise.
9035 2015-10-08  Marek Polacek  <polacek@redhat.com>
9037         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
9038         ops element.
9040 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9042         PR c/65345
9043         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
9044         create_tmp_var_raw instead of create_tmp_var.
9046 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
9048         * expr.c (store_expr_with_bounds): Handle aggregate moves from
9049         BLKmode.
9050         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
9051         to define gimple type system; compare aggregates only by size.
9053 2015-10-07  Jeff Law  <law@redhat.com>
9055         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
9056         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
9057         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
9058         unnecessarily.
9060 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9061             Sebastian Pop  <s.pop@samsung.com>
9063         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
9064         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
9065         (generate_isl_schedule): Same.
9066         * graphite-optimize-isl.c (scop_get_domains): Same.
9067         (apply_schedule_map_to_scop): Same.
9068         * graphite-poly.c (print_iteration_domains): Same.
9069         (remove_gbbs_in_scop): Same.
9070         (new_scop): Same.
9071         (free_scop): Same.
9072         (print_scop): Same.
9073         * graphite-poly.h (struct scop): Rename bbs to pbbs.
9074         (SCOP_BBS): Remove.
9075         * graphite-scop-detection.c (compare_bb_depths): Remove.
9076         (graphite_sort_dominated_info): Remove.
9077         (try_generate_gimple_bb): Move out of scop_detection.
9078         (all_non_dominated_preds_marked_p): Remove.
9079         (build_scop_bbs_1): Remove.
9080         (build_scop_bbs): Remove.
9081         (nb_pbbs_in_loops): Do not use SCOP_BBS.
9082         (find_scop_parameters): Same.
9083         (sese_dom_walker): Rename gather_bbs.
9084         (before_dom_children): Call try_generate_gimple_bb and collect gbb
9085         and pbb.
9086         (build_scops): Call gather_bbs.
9087         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
9088         (add_conditions_to_constraints): Same.
9089         (build_scop_iteration_domain): Same.
9090         (build_scop_drs): Same.
9091         (new_pbb_from_pbb): Same.
9092         * sese.c (new_sese_info): Create bbs.
9093         * sese.h (struct sese_info_t): Add bbs.
9095 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
9097         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
9098         encoding in 64-bit mode.
9100 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
9102         PR target/66697
9103         * config/i386/i386.c (ix86_option_override_internal): Always use
9104         8-byte minimum stack boundary in 64-bit mode.
9105         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
9106         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
9107         Add a REG_CFA_EXPRESSION note if needed.
9108         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
9109         (ix86_handle_force_align_arg_pointer_attribute): New.
9110         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
9111         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
9112         with ix86_handle_force_align_arg_pointer_attribute.
9113         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
9115 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9116             Sebastian Pop  <s.pop@samsung.com>
9118         * graphite-scop-detection.c (parameter_index_in_region): Remove
9119         use of SESE_ADD_PARAMS.
9120         (find_scop_parameters): Same.
9121         * sese.c (new_sese_info): Same.
9122         * sese.h (struct sese_info_t): Remove add_params.
9123         (SESE_ADD_PARAMS): Remove.
9125 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
9126             Sebastian Pop  <s.pop@samsung.com>
9128         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
9129         an sese_info_p.
9130         (copy_def): Same.
9131         (copy_internal_parameters): Same.
9132         (translate_isl_ast_to_gimple): Use an sese_l.
9133         (build_iv_mapping): Same.
9134         * graphite-poly.c (new_sese): Rename new_sese_info.
9135         (free_sese): Rename free_sese_info.
9136         * graphite-poly.h (struct scop): Use an sese_info_p.
9137         (scop_set_region): Same.
9138         * graphite-scop-detection.c (struct sese_l): Moved...
9139         (get_entry_bb): Moved...
9140         (get_exit_bb): Moved...
9141         (parameter_index_in_region_1): Use an sese_info_p.
9142         (parameter_index_in_region): Same.
9143         (scan_tree_for_params): Same.
9144         (find_params_in_bb): Same.
9145         (sese_dom_walker): Use an sese_l.
9146         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
9147         (reduction_phi_p): Same.
9148         (parameter_index_in_region_1): Use an sese_info_p.
9149         (propagate_expr_outside_region): Use an sese_l.
9150         * graphite.c: Replace uses of SCOP_REGION.
9151         * sese.c (sese_record_loop): Use an sese_info_p.
9152         (build_sese_loop_nests): Same.
9153         (sese_build_liveouts_use): Same.
9154         (sese_build_liveouts_bb): Same.
9155         (sese_build_liveouts_bb): Same.
9156         (sese_bad_liveouts_use): Same.
9157         (sese_reset_debug_liveouts_bb): Same.
9158         (sese_build_liveouts): Same.
9159         (new_sese): Renamed new_sese_info.
9160         (free_sese): Renamed free_sese_info.
9161         (set_rename): Use an sese_info_p.
9162         (graphite_copy_stmts_from_block): Same.
9163         (copy_bb_and_scalar_dependences): Same.
9164         (outermost_loop_in_sese_1): Use an sese_l.
9165         (outermost_loop_in_sese): Same.
9166         (if_region_set_false_region): Use an sese_info_p.
9167         (move_sese_in_condition): Same.
9168         (scalar_evolution_in_region): Use an sese_l.
9169         * sese.h (struct sese_l): ... here.
9170         (SESE_ENTRY): Remove.
9171         (SESE_ENTRY_BB): Remove.
9172         (SESE_EXIT): Remove.
9173         (SESE_EXIT_BB): Remove.
9174         (sese_contains_loop): Use an sese_info_p.
9175         (sese_nb_params): Same.
9176         (bb_in_sese_p): Use an sese_l.
9177         (stmt_in_sese_p): Same.
9178         (defined_in_sese_p): Same.
9179         (loop_in_sese_p): Same.
9180         (sese_loop_depth): Same.
9181         (struct ifsese_s): Use an sese_info_p.
9182         (gbb_loop_at_index): Use an sese_l.
9183         (nb_common_loops): Same.
9184         (scev_analyzable_p): Same.
9186 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9188         * config/i386/i386.c (ix86_conditional_register_usage): Use
9189         CALL_USED_REGISTERS_MASK.
9190         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
9192 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9194         PR bootstrap/67385
9195         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
9196         * configure: Regenerated.
9198 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
9200         PR target/67850
9201         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
9202         (ix86_set_current_function): This.
9203         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
9205 2015-10-07  Richard Biener  <rguenther@suse.de>
9207         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
9208         (vinfo_for_stmt): Adjust.
9209         (set_vinfo_for_stmt): Likewise.
9210         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
9211         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
9212         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
9213         of inner loop.
9214         (vect_analyze_loop_1): Remove.
9215         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
9216         inner loop when vectorizing an outer loop by splitting out from ...
9217         (vect_analyze_loop_form): ... here.
9219 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9221         PR c/65345
9222         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
9223         Use create_tmp_var_raw instead of create_tmp_var.
9225 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
9227         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
9228         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
9229         * real.c (CACHED_FRACTION): New helper macro.
9230         (dconst_third_ptr): Use it.
9231         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
9232         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
9233         dconst_sixth.
9234         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
9236 2015-10-06  Jeff Law  <law@redhat.com>
9238         PR tree-optimization/67816
9239         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
9240         from remove_jump_threads_starting_at.  Accept an edge rather than
9241         a basic block.
9242         * tree-ssa-threadupdate.c (removed_edges): New hash table.
9243         (remove_jump_threads_including): Note edges that get removed from
9244         the CFG for later pruning of jump threading paths including them.
9245         (thread_through_all_blocks): Remove paths which include edges that
9246         have been removed.
9247         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
9248         on each outgoing edges when optimizing away a control statement.
9250 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9252         * reorg.c (emit_delay_sequence): Store list of delay slot insns
9253         in a vector instead of rtx_insn_list.
9254         (add_to_delay_list): Likewise.
9255         (delete_from_delay_slot): Likewise.
9256         (optimize_skip): Likewise.
9257         (redirect_with_delay_list_safe_p): Likewise.
9258         (check_annul_list_true_false): Likewise.
9259         (steal_delay_list_from_target): Likewise.
9260         (steal_delay_list_from_fallthrough): Likewise.
9261         (redundant_insn): Likewise.
9262         (fill_simple_delay_slots): Likewise.
9263         (fill_slots_from_thread): Likewise.
9264         (fill_eager_delay_slots): Likewise.
9265         (relax_delay_slots): Likewise.
9267 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
9269         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
9270         For -mgpopt=local, also exclude unintialized common symbols.
9271         * doc/invoke.texi (Nios II Options): Document the change.
9273 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9275         * config/aarch64/iterators.md (vwcore): Add missing cases for
9276          V4HF/V8HF modes.
9278 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9279             Sebastian Pop  <s.pop@samsung.com>
9281         * graphite-poly.c (new_scop): Initialize drs.
9282         * graphite-poly.h (struct dr_info): New.
9283         (struct scop): Add drs.
9284         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
9285         (pdr_add_memory_accesses): Same.
9286         (build_poly_dr): Same.
9287         (build_alias_set): Same.
9288         (build_scop_drs): Same.
9289         (build_pbb_drs): Remove.
9290         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
9291         * tree-data-ref.h (data_reference): Remove alias_set.
9293 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9294             Sebastian Pop  <s.pop@samsung.com>
9296         * graphite-poly.c (free_data_refs_aux): Remove.
9297         (free_gimple_poly_bb): Do not call free_data_refs_aux.
9298         * graphite-poly.h (struct base_alias_pair): Remove.
9299         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
9300         base_alias_pair and dr->aux.
9301         (build_alias_set): Same.
9302         * tree-data-ref.c (create_data_ref): Initialize alias_set.
9303         * tree-data-ref.h (data_reference): Add alias_set.
9305 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
9306             Sebastian Pop  <s.pop@samsung.com>
9308         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
9309         Do not set PDR_BASE_OBJECT_SET.
9310         * graphite-poly.h (poly_dr): Same.
9311         (PDR_BASE_OBJECT_SET): Remove.
9312         (new_poly_dr): Update decl.
9313         * graphite-sese-to-poly.c (build_poly_dr): Update call to
9314         new_poly_dr.
9315         (write_alias_graph_to_ascii_dimacs): Remove.
9316         (write_alias_graph_to_ascii_dot): Remove.
9317         (write_alias_graph_to_ascii_ecc): Remove.
9318         (dr_same_base_object_p): Remove.
9319         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
9320         code.
9321         (build_base_obj_set_for_drs): Remove.
9322         (dump_alias_graphs): Remove.
9323         (build_scop_drs): Remove dead code.
9325 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9326             Peter Bergner  <bergner@vnet.ibm.com>
9328         PR target/67808
9329         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
9330         allow registers, but provide insns for the combiner to create for
9331         loads from memory. Separate VSX code from non-VSX code. For
9332         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
9333         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
9334         so that registers come before memory operations. Drop support from
9335         converting DFmode to TFmode, if the DFmode value is in a GPR
9336         register.
9337         (extenddftf2_fprs): Likewise.
9338         (extenddftf2_internal): Likewise.
9339         (extenddftf2_vsx): Likewise.
9340         (extendsftf2): In the expander, only allow registers, but provide
9341         insns for the combiner to create for stores and loads.
9343 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9345         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
9346         from the decl parameter.
9348 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
9350         PR 67861
9351         * gimple-fold.c (gimple_fold_builtin): Add break after
9352         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
9354 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9356         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
9357         to scop->isl_context.
9359 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9361         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
9362         (output_probe_stack_range): Rotate the loop and simplify.
9363         (thumb1_expand_prologue): Tweak sorry message.
9364         * config/arm/arm.md (probe_stack): Use bare string.
9366 2015-10-06  Nick Clifton  <nickc@redhat.com>
9368         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
9370 2015-10-06  Nick Clifton  <nickc@redhat.com>
9372         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
9373         (ATTR_PERSIST): New constant.
9374         (msp430_data_attr): New function - verifies an attribute that only
9375         applies to variables.
9376         (msp430_attributes): Add noinit and persistent attributes.
9377         (noinit_section): New variable.
9378         (presis_section): New variable.
9379         (TARGET_ASM_INIT_SECTIONS): Define.
9380         (msp430_init_sections): New function - initialises the noinit and
9381         persist section variables.
9382         (msp430_select_section): Add support for noinit and persist
9383         attributes.
9384         (msp430_section_type_flags): Likewise.
9385         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
9386         and persistent attributes.
9388 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9389             Sebastian Pop  <s.pop@samsung.com>
9391         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
9392         (no_violations): Remove.
9393         (subtract_commutative_associative_deps): Remove.
9394         (compute_deps): Do not call subtract_commutative_associative_deps.
9395         (transform_is_safe): Remove.
9396         (graphite_legal_transform): Remove.
9397         * graphite-poly.h (graphite_legal_transform): Remove.
9399 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
9401         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
9402         which are in this region are passed so gcc_assert and remove redundant
9403         computation.
9404         * sese.c (sese_build_liveouts): Pass only those bbs which are not
9405         in region.
9406         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
9407         gcc_assert on that and remove unnecessary computation.
9408         (sese_build_liveouts_use): Same.
9410 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9412         * graphite-dependences.c (scop_get_reads): Renamed scop->context
9413         to scop->param_context.
9414         (scop_get_must_writes): Same.
9415         (scop_get_may_writes): Same.
9416         (scop_get_original_schedule): Same.
9417         (scop_get_transformed_schedule): Same.
9418         (subtract_commutative_associative_deps): Same.
9419         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
9420         (generate_isl_context): Same.
9421         (generate_isl_schedule): Same.
9422         (scop_to_isl_ast): Same.
9423         (graphite_regenerate_ast_isl): Same.
9424         * graphite-optimize-isl.c (scop_get_domains): Same.
9425         (optimize_isl): Renamed scop->context to scop->param_context.
9426         * graphite-poly.c (new_poly_bb): Change the type of argument to
9427         gimple_poly_bb_p.
9428         (new_scop): Renamed scop->context to scop->param_context.
9429         (free_scop): Same.
9430         (print_scop_context): Same.
9431         * graphite-poly.h (new_poly_dr): Change the type of argument from
9432         void* to data_reference_p.
9433         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
9434         (new_poly_bb): Change the type of argument from void* to
9435         gimple_poly_bb_p.
9436         (pbb_set_black_box): Same.
9437         (struct scop): Rename context to param_context, ctx to isl_context.
9438         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
9439         Move declarations closer to assignment.
9440         (find_params_in_bb): Same.
9441         (find_scop_parameters): Same.
9442         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
9443         Global to be used for statement IDs.
9444         (isl_id_for_pbb): Use ssa_name_version_typesize.
9445         (simple_copy_phi_p): Move declarations closer to assignment.
9446         (build_pbb_scattering_polyhedrons): Same.
9447         (build_scop_scattering): Same.
9448         (isl_id_for_ssa_name): Same.
9449         (extract_affine_name): Same.
9450         (extract_affine_int): Same.
9451         (extract_affine): Same.
9452         (set_scop_parameter_dim): Use renamed member.
9453         (build_loop_iteration_domains): Same.
9454         (add_param_constraints): Same.
9455         (build_scop_iteration_domain): Same.
9456         (pdr_add_data_dimensions): Same.
9457         (build_poly_dr): Same.
9458         (build_scop_drs): Move declarations closer to assignment.
9459         (analyze_drs_in_stmts): Same.
9460         (insert_out_of_ssa_copy): Same.
9461         (insert_out_of_ssa_copy_on_edge): Same.
9462         (propagate_expr_outside_region): Same.
9463         (rewrite_phi_out_of_ssa): Same.
9464         (rewrite_degenerate_phi): Same.
9465         (rewrite_reductions_out_of_ssa): Same.
9466         (rewrite_cross_bb_scalar_dependence): Same.
9467         (handle_scalar_deps_crossing_scop_limits): Same.
9468         (rewrite_cross_bb_scalar_deps): Same.
9469         * graphite.c (graphite_transform_loops): Use renamed member.
9471 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
9473         PR c/65345
9474         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
9475         create_tmp_var_raw instead of create_tmp_var.
9477 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9479         PR c/65345
9480         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
9481         Use create_tmp_var_raw instead of create_tmp_var.
9483 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
9485         PR target/67849
9486         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
9487         split for upper-bank registers when target does not support
9488         AVX512VL.
9489         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
9490         split when target does not support AVX512VL.
9492 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
9494         PR c/65345
9495         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
9496         Adjust to use create_tmp_var_raw instead of create_tmp_var.
9498 2015-10-06  Nick Clifton  <nickc@redhat.com>
9500         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
9501         multiplication.
9503 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9505         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
9506         (case ${target}): Add znver1.
9507         * config/i386/cpuid.h(bit_CLZERO):  Define.
9508         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
9509         -march=native recognize znver1 processors.
9510         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9511         znver1, clzero def_and_undef.
9512         * config/i386/i386.c (struct processor_costs znver1_cost): New.
9513         (m_znver1): New definition.
9514         (m_AMD_MULTIPLE): Includes m_znver1.
9515         (processor_target_table): Add znver1 entry.
9516         (ix86_target_string) : Add clzero entry.
9517         (static const char *const cpu_names): Add znver1 entry.
9518         (ix86_option_override_internal): Add znver1 instruction sets.
9519         (PTA_CLZERO) :  New definition.
9520         (ix86_option_override_internal): Handle new clzerooption.
9521         (ix86_issue_rate): Add znver1.
9522         (ix86_adjust_cost): Add znver1.
9523         (ia32_multipass_dfa_lookahead): Add znver1.
9524         (has_dispatch): Add znver1.
9525         * config/i386/i386.h (TARGET_znver1): New definition.
9526         (TARGET_CLZERO): Define.
9527         (TARGET_CLZERO_P): Define.
9528         (struct ix86_size_cost): Add TARGET_ZNVER1.
9529         (enum processor_type): Add PROCESSOR_znver1.
9530         * config/i386/i386.md (define_attr "cpu"): Add znver1.
9531         (set_attr znver1_decode): New definitions for znver1.
9532         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
9533         (mclzero): New.
9534         * config/i386/mmx.md (set_attr znver1_decode): New definitions
9535         for znver1.
9536         * config/i386/sse.md (set_attr znver1_decode): Likewise.
9537         * config/i386/x86-tune.def:  Add znver1 tunings.
9538         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
9539         * doc/invoke.texi: Add details about znver1
9541 2015-10-06  Richard Biener  <rguenther@suse.de>
9543         PR tree-optimization/67859
9544         * tree-ssa-pre.c (create_expression_by_pieces): Properly
9545         discard not inserted stmts.
9547 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
9549         * doc/extend.texi (Template Instantiation): Reorder options and
9550         de-emphasize -frepo.
9551         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
9552         example instead of -frepo.
9554 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9556         PR c/65345
9557         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
9558         use create_tmp_var_raw rather than create_tmp_var.
9560 2015-10-06  Richard Biener  <rguenther@suse.de>
9562         * tree-vectorizer.h (vec_info): New base class for...
9563         (_loop_vec_info): ... this and ...
9564         (_bb_vec_info): ... this.
9565         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
9566         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
9567         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
9568         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
9569         vect_destroy_datarefs): Adjust interface to take a vec_info *
9570         rather than both a loop_vec_info and a bb_vec_info argument.
9571         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
9572         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
9573         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
9574         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
9575         accordingly.
9576         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
9577         (destroy_loop_vec_info, vect_analyze_loop_2,
9578         vect_is_simple_reduction_1, get_initial_def_for_induction,
9579         vect_create_epilog_for_reduction, vectorizable_reduction,
9580         vectorizable_live_operation, vect_transform_loop): Adjust.
9581         * tree-vect-patterns.c (type_conversion_p,
9582         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
9583         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
9584         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
9585         check_bool_pattern, vect_recog_bool_pattern,
9586         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
9587         * tree-vect-slp.c (vect_get_and_check_slp_defs,
9588         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
9589         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
9590         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
9591         (new_bb_vec_info): Initialize base classs.
9592         * tree-vect-stmts.c (record_stmt_cost, process_use,
9593         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
9594         vectorizable_mask_load_store, vectorizable_call,
9595         vectorizable_simd_clone_call, vectorizable_conversion,
9596         vectorizable_assignment, vectorizable_shift,
9597         vectorizable_operation, vectorizable_store,
9598         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
9599         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
9600         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
9602 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9604         PR c/65345
9605         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
9606         create_tmp_var_raw rather than create_tmp_var.
9608 2015-10-05  Marek Polacek  <polacek@redhat.com>
9610         * tree-ssa-loop-im.c
9611         (move_computations_dom_walker::before_dom_children): Don't set
9612         SSA_NAME_ANTI_RANGE_P.
9613         * tree-ssa-phiopt.c (value_replacement): Likewise.
9615 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9616             Sebastian Pop  <s.pop@samsung.com>
9618         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
9620 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9621             Sebastian Pop  <s.pop@samsung.com>
9623         * graphite-poly.c (new_gimple_poly_bb): ... here.
9624         (free_data_refs_aux): ... here.
9625         (free_gimple_poly_bb): ... here.
9626         (remove_gbbs_in_scop): ... here.
9627         (new_scop): Call new_sese.
9628         (free_scop): Call remove_gbbs_in_scop and free_sese.
9629         * graphite-poly.h (base_alias_pair): ... here.
9630         (new_gimple_poly_bb): Declare.
9631         (free_gimple_poly_bb): Declare.
9632         * graphite-scop-detection.c (parameter_index_in_region_1):
9633         (parameter_index_in_region): ... here.
9634         (scan_tree_for_params): ... here.
9635         (find_params_in_bb): ... here.
9636         (find_scop_parameters): ... here.
9637         (build_scops): Call find_scop_parameters.
9638         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
9639         (free_scops): Move...
9640         (single_pred_cond_non_loop_exit): Move...
9641         (sese_dom_walker::before_dom_children): Move...
9642         (sese_dom_walker::after_dom_children): Move...
9643         (build_poly_scop): Move...
9644         * graphite-sese-to-poly.h (base_alias_pair): Move...
9645         * graphite.c (free_scops): ... here.
9647 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
9648             Sebastian Pop  <s.pop@samsung.com>
9650         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
9651         (trivially_empty_bb_p): Move...
9652         (same_close_phi_node): Move...
9653         (new_gimple_poly_bb): Move...
9654         (compare_bb_depths): Move...
9655         (graphite_sort_dominated_info): Move...
9656         (remove_duplicate_close_phi): Move...
9657         (make_close_phi_nodes_unique): Move...
9658         (canonicalize_loop_closed_ssa): Move...
9659         (canonicalize_loop_closed_ssa_form): Move...
9660         (loop_ivs_can_be_represented): Move...
9661         (single_pred_cond_non_loop_exit): Move...
9662         (graphite_can_represent_init): Move...
9663         (graphite_can_represent_scev): Move...
9664         (stmt_has_simple_data_refs_p): Move...
9665         (stmt_has_side_effects):  Move...
9666         (graphite_can_represent_stmt): Move...
9667         (scop_detection): ... here.
9668         (sese_dom_walker): ... and here.
9669         (build_scops): Call all moved functions.
9670         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
9671         (all_non_dominated_preds_marked_p): Move...
9672         (build_scop_bbs_1): Move...
9673         (build_scop_bbs): Move...
9674         (set_scop_parameter_dim): Move...
9675         (nb_pbbs_in_loops): Move...
9676         (build_poly_scop): Do not call all the moved functions.
9678 2015-10-05  Martin Jambor  <mjambor@suse.cz>
9679             Jan Hubicka  <hubicka@ucw.cz>
9681         * ipa-cp.c (ipcp_alignment_lattice): New type.
9682         (ipcp_param_lattices): Use the above to represent alignment.
9683         (ipcp_alignment_lattice::print): New function.
9684         (print_all_lattices): Use it to print alignment information.
9685         (ipcp_alignment_lattice::top_p): New function.
9686         (ipcp_alignment_lattice::bottom_p): Likewise.
9687         (ipcp_alignment_lattice::set_to_bottom): Likewise.
9688         (ipcp_alignment_lattice::meet_with_1): Likewise.
9689         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
9690         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
9691         (initialize_node_lattices): Likewise.
9692         (propagate_alignment_accross_jump_function): Work with the new class
9693         for alignment lattices.
9694         (propagate_constants_accross_call): Pass only the alignment lattice to
9695         propagate_alignment_accross_jump_function.
9696         (ipcp_store_alignment_results): Work with the new class for alignment
9697         lattices.
9699 2015-10-05  Marek Polacek  <polacek@redhat.com>
9701         PR tree-optimization/67821
9702         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
9704 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
9706         PR other/65021
9707         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
9708         function to...
9709         (mkoffload_cleanup): ... this.  Adjust all users.
9710         (maybe_unlink): Look at save_temps and verbose flags instead of
9711         debug flag.
9712         (main): Parse "-save-temps" flag.
9713         (generate_target_descr_file, generate_target_offloadend_file)
9714         (generate_host_descr_file, prepare_target_image): Pass it on.
9715         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
9716         (mkoffload_cleanup): New function.
9717         (maybe_unlink): Look at save_temps and verbose flags instead of
9718         debug flag.
9719         (main): Instead of calling utils_cleanup, register atexit handler
9720         for mkoffload_cleanup.
9721         (main): Parse "-save-temps" flag.
9722         (compile_native, main): Pass it on.
9723         * lto-wrapper.c (compile_offload_image): Likewise.
9725 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9727         * gimple.h (gimple_op_ptr): Require a non const gimple *.
9728         (gimple_assign_lhs_ptr): Likewise.
9729         (gimple_assign_rhs1_ptr): Likewise.
9730         (gimple_assign_rhs2_ptr): Likewise.
9731         (gimple_assign_rhs3_ptr): Likewise.
9732         (gimple_call_lhs_ptr): Likewise.
9733         (gimple_call_fn_ptr): Likewise.
9734         (gimple_call_chain_ptr): Likewise.
9735                 (gimple_call_arg_ptr): Likewise.
9736                 (gimple_cond_lhs_ptr): Likewise.
9737         (gimple_cond_rhs_ptr): Likewise.
9738         (gimple_switch_index_ptr): Likewise.
9739         (gimple_return_retval_ptr): Likewise.
9741 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9743         * gimple.h (gimple_asm_input_op_ptr): Remove.
9744         (gimple_asm_output_op_ptr): Likewise.
9746 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9748         * gimple.h (gimple_location_ptr): Remove.
9749         * tree-vrp.c (check_all_array_refs): Adjust.
9751 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9753         * tree-ssa-operands.c (build_uses): store tree * instead of
9754         tree.
9755         (finalize_ssa_uses): Adjust.
9756         (append_use): Likewise.
9757         (verify_ssa_operands): Likewise.
9759 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9761         * real.h (build_real_truncate): Declare.
9762         * tree.c (build_real_truncate): New function.
9763         (strip_float_extensions): Use it.
9764         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
9765         (fold_builtin_hypot, fold_builtin_pow): Likewise.
9766         * match.pd: Likewise.
9768 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
9769            Jiong Wang  <jiong.wang@arm.com>
9771         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
9773 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9775         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
9776         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
9777         (aarch64_print_operand, aarch64_float_const_representable_p)
9778         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
9779         instead of REAL_VALUE_FROM_CONST_DOUBLE.
9780         * config/arc/arc.c (arc_print_operand): Likewise.
9781         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
9782         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
9783         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
9784         Likewise.
9785         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
9786         (consttable_16): Likewise.
9787         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
9788         * config/avr/avr.c (avr_print_operand): Likewise.
9789         * config/bfin/bfin.md: Likewise (in a define_split).
9790         * config/c6x/c6x.md: Likewise (in a define_split).
9791         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
9792         (cr16_print_operand): Likewise.
9793         * config/cris/cris.c (cris_print_operand): Likewise.
9794         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
9795         * config/fr30/fr30.c (fr30_print_operand): Likewise.
9796         (fr30_const_double_is_zero): Likewise.
9797         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
9798         * config/frv/frv.md: Likewise (in a define_split).
9799         * config/frv/predicates.md (int_2word_operand): Likewise.
9800         * config/h8300/h8300.c (h8300_print_operand): Likewise.
9801         * config/i386/i386.c (standard_80387_constant_p): Likewise.
9802         (ix86_print_operand, ix86_split_to_parts): Likewise.
9803         * config/i386/i386.md: Likewise (in a define_split).
9804         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
9805         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
9806         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
9807         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
9808         (print_operand): Likewise.
9809         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
9810         * config/mep/mep.md: Likewise (in define_split).
9811         * config/microblaze/microblaze.c (microblaze_const_double_ok)
9812         (print_operand): Likewise.
9813         * config/mips/mips.md (consttable_float): Likewise.
9814         * config/mmix/mmix.c (mmix_intval): Likewise.
9815         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9816         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
9817         * config/pa/pa.c (pa_singlemove_string): Likewise.
9818         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
9819         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
9820         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
9821         (output_toc): Likewise.
9822         * config/rs6000/rs6000.md: Likewise (in define_splits).
9823         * config/rx/rx.c (rx_print_operand): Likewise.
9824         * config/s390/s390.c (s390_output_pool_entry): Likewise.
9825         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9826         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
9827         (and also in define_splits).
9828         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
9829         (fp_high_losum_p): Likewise.
9830         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
9831         (*movsf_high): Likewise.
9832         * config/spu/spu.c (const_double_to_hwint): Likewise.
9833         * config/v850/v850.c (const_double_split): Likewise.
9834         * config/vax/vax.c (vax_float_literal): Likewise.
9835         * config/visium/visium.c (visium_expand_copysign): Likewise.
9836         * config/visium/visium.md: Likewise (in define_split).
9837         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9838         * config/xtensa/xtensa.c (print_operand): Likewise.
9839         (xtensa_output_literal): Likewise.
9840         * cprop.c (implicit_set_cond_p): Likewise.
9841         * dwarf2out.c (insert_float): Likewise.
9842         * expmed.c (expand_mult, make_tree): Likewise.
9843         * expr.c (compress_float_constant): Likewise.
9844         * rtlanal.c (split_double): Likewise.
9845         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9846         (simplify_const_unary_operation, simplify_binary_operation_1)
9847         (simplify_const_binary_operation): Likewise.
9848         (simplify_const_relational_operation): Likewise.
9849         * varasm.c (output_constant_pool_2): Likewise.
9851 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9853         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
9854         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9855         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
9856         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
9857         instead of CONST_DOUBLE_FROM_REAL_VALUE.
9858         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
9859         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
9860         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
9861         (ix86_emit_swsqrtsf): Likewise.
9862         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
9863         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
9864         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
9865         * config/pa/pa.c (pa_expand_builtin): Likewise.
9866         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
9867         (rs6000_scale_v2df): Likewise.
9868         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
9869         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
9870         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
9871         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
9872         (vec_ctul): Likewise.
9873         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
9874         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
9875         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
9876         * cse.c (fold_rtx): Likewise.
9877         * emit-rtl.c (immed_double_const): Likewise (in comments).
9878         (init_emit_once): Likewise.
9879         * expr.c (compress_float_constant, expand_expr_real_1)
9880         (const_vector_from_tree): Likewise.
9881         * optabs.c (expand_float, expand_fix): Likewise.
9882         * reg-stack.c (reg_to_stack): Likewise.
9883         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
9884         (simplify_const_unary_operation, simplify_binary_operation_1)
9885         (simplify_const_binary_operation, simplify_relational_operation)
9886         (simplify_immed_subreg): Likewise.
9888 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9890         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
9891         * doc/tm.texi: Regenerate.
9892         * real.h (REAL_ARITHMETIC): Delete.
9893         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
9894         (ix86_expand_round_sse4): Use real_arithmetic instead of
9895         REAL_ARITHMETIC.
9896         * config/i386/sse.md (round<mode>2): Likewise.
9897         * rtl.h (rtx_to_tree_code): Likewise (in comment).
9898         * explow.c (rtx_to_tree_code): Likewise (in comment).
9899         * match.pd: Likewise.
9900         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9901         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9902         (expand_pow_as_sqrts): Likewise.
9903         * tree-pretty-print.c (dump_generic_node): Remove code that
9904         was conditional on REAL_ARITHMETIC being undefined.
9906 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9908         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
9909         * doc/tm.texi: Regenerate.
9910         * real.h (real_less): Declare.
9911         (REAL_VALUES_LESS): Delete.
9912         * real.c (real_less): New function.
9913         (real_compare): Use it.
9914         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
9915         of REAL_VALUES_LESS.
9916         * config/microblaze/microblaze.c (microblaze_const_double_ok):
9917         Likewise.
9918         * fold-const.c (fold_convert_const_int_from_real): Likewise.
9919         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9920         (simplify_const_relational_operation): Likewise.
9921         * tree-call-cdce.c (check_pow): Likewise.
9922         (gen_conditions_for_pow_cst_base): Likewise.
9924 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9926         * real.h (REAL_VALUES_IDENTICAL): Delete.
9927         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
9928         instead of REAL_VALUES_IDENTICAL.
9929         * fold-const.c (operand_equal_p): Likewise.
9930         * ipa-icf.c (sem_variable::equals): Likewise.
9931         * tree-complex.c (some_nonzerop): Likewise.
9932         (expand_complex_multiplication): Likewise.
9933         * tree.c (simple_cst_equal): Likewise.
9934         * varasm.c (compare_constant): Likewise.
9936 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
9938         * real.h (real_equal): Declare.
9939         (REAL_VALUES_EQUAL): Delete.
9940         * real.c (real_equal): New function.
9941         (real_compare): Use it.
9942         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
9943         * doc/tm.texi: Regenerate.
9944         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
9945         real_equal instead of REAL_VALUES_EQUAL.
9946         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
9947         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
9948         (fp_const_from_val): Likewise.
9949         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
9950         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
9951         (floating_exact_log2): Likewise.
9952         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
9953         * config/vax/vax.c (vax_float_literal): Likewise.
9954         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
9955         * cprop.c (implicit_set_cond_p): Likewise.
9956         * expmed.c (expand_mult): Likewise.
9957         * fold-const.c (const_binop): Likewise.
9958         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9959         (simplify_const_binary_operation): Likewise.
9960         (simplify_const_relational_operation): Likewise.
9961         * tree-call-cdce.c (check_pow): Likewise.
9962         (gen_conditions_for_pow_cst_base): Likewise.
9963         * tree-inline.c (estimate_num_insns): Likewise.
9964         * tree-ssa-dom.c (record_equality): Likewise.
9965         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
9966         (gimple_expand_builtin_pow): Likewise.
9967         (pass_optimize_widening_mul::execute): Likewise.
9968         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
9969         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
9970         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
9972 2015-10-05  Richard Biener  <rguenther@suse.de>
9974         PR ipa/67783
9975         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
9976         consider loop header PHI defs as IVs.
9978 2015-10-05  Richard Biener  <rguenther@suse.de>
9980         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
9981         call handling ...
9982         (create_expression_by_pieces): ... here and build GIMPLE
9983         calls directly.  Use gimple_build API and avoid force_gimple_operand.
9984         (insert_into_preds_of_block): Simplify.
9985         (do_regular_insertion): Add comment.
9987 2015-10-04  Jason Merrill  <jason@redhat.com>
9989         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
9991 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
9993         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
9994         check for general register.
9995         (ix86_emit_save_regs): Ditto.
9996         (ix86_emit_save_regs_using_mov): Ditto.
9997         (ix86_emit_restore_regs_using_pop): Ditto.
9998         (ix86_emit_restore_regs_using_mov): Ditto.
10000 2015-10-03  Marek Polacek  <polacek@redhat.com>
10002         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
10003         (insn-dfatab.o): Likewise.
10005 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
10007         * config.gcc (xtensa*-*-uclinux*): New configuration.
10008         * config/xtensa/uclinux.h: New file.
10009         * config/xtensa/uclinux.opt: New file.
10011 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
10013         * doc/cpp.texi (Standard Predefined Macros): Document value of
10014         __cplusplus for C++14.
10016 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
10018         * gcc.c (process_command): Use spec_machine rather than
10019         spec_host_machine to build tooldir_prefix2.
10021 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10022             Bernd Schmidt  <bernds@codesourcery.com>
10024         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
10025         (Token, Stmt): Remove structs.
10026         (decls, vars, fns): Remove variables.
10027         (alloc_comment, append_stmt, is_keyword): Remove macros.
10028         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
10029         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
10030         (parse_init, parse_file): Remove functions.
10031         (read_file): Accept a pointer to a length and store into it.
10032         (process): Don't try to parse the input file, just write it out as
10033         a string, but looking for maps.  Also write out the length.
10034         (main): Don't use "-S" to compile PTX code.
10036 2015-10-02  Jeff Law  <law@redhat.com>
10038         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
10039         fixups.
10041 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10043         PR target/67822
10044         * config/nvptx/mkoffload.c (main): Scan the argument vector for
10045         -fopenmp, and skip generating an offloading image if specified.
10047 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
10049         * system.h (ROUND_UP): New macro definition.
10050         (ROUND_DOWN): Ditto.
10051         * ggc-page.c (ROUND_UP): Remove local macro definition.
10052         (PAGE_ALIGN): Implement using ROUND_UP macro.
10054         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
10055         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
10056         to align values.
10057         (ix86_compute_frame_layout): Ditto.
10058         (ix86_expand_prologue): Ditto.
10059         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
10060         to round down values.
10061         (expand_set_or_movmem_via_rep): Ditto.
10063 2015-10-02  Marek Polacek  <polacek@redhat.com>
10065         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
10067 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
10069         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
10070         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
10071         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
10072         (free_gimple_bb): Renamed free_gimple_poly_bb.
10073         (try_generate_gimple_bb): Hoist loop invariant code.
10074         (analyze_drs_in_stmts): Same.
10075         (build_scop_drs): Call renamed functions.
10076         (new_pbb_from_pbb): Same.
10077         (scop_ivs_can_be_represented): Delete as functionality now moved to
10078         graphite-scop-detection.c
10079         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
10081 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
10083         * graphite-scop-detection.c (stmt_has_side_effects): New function
10084           outlined from stmt_simple_for_scop_p.
10085         (graphite_can_represent_stmt): Same.
10086         (stmt_simple_for_scop_p): Moved code out of this function for better
10087         readability.
10089 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10091         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
10092         F_AVX512IFMA.
10093         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
10095 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10097         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
10099 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10101         PR rtl-optimization/67756
10102         * lra-constraints.c (match_reload): Add a new parameter.  Use it
10103         for creating a pseudo with the same value.
10104         (curr_insn_transform): Pass a new argument to match_reload.
10106 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10108         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
10109         (expand_vec_perm_even_odd_1): Handle V64QImode.
10110         (ix86_expand_vec_perm_const_1): Try expansion with
10111         expand_vec_perm_even_odd_trunc as well.
10112         * config/i386/sse.md (VI124_AVX512F): Rename to ...
10113         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
10114         to V54QI.
10115         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
10116         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
10117         to V32HI and V16SI.
10118         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
10119         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
10120         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
10121         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
10122         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
10123         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
10125 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
10127         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
10128         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
10130 2015-10-02  Jason Merrill  <jason@redhat.com>
10132         PR c/59218
10133         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
10134         (diagnose_tm_1_op): Also diagnose volatile accesses in
10135         transaction_safe function.
10137 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
10139         * system.h (malloc.h): Don't include obsolete header.
10141 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10143         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
10144         (TLS_SECTION_ASM_FLAG): Delete.
10146 2015-10-02  Marek Polacek  <polacek@redhat.com>
10148         PR c/64249
10149         * doc/invoke.texi: Document -Wduplicated-cond.
10150         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
10151         (insn-dfatab.o): Likewise.
10152         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
10153         warning.
10155 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
10157         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
10158         sequences.
10160 2015-10-02  Renlin Li  <renlin.li@arm.com>
10162         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
10164 2015-10-02  Renlin Li  <renlin.li@arm.com>
10166         PR target/66776
10167         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
10169 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10171         PR rtl-optimization/67786
10172         PR rtl-optimization/67787
10173         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
10174         it modifies a reg used in the condition calculation.
10176 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
10178         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
10179         alternatives for reads from memory and moves from general-purpose
10180         registers.
10181         (*aarch64_combinez_be<mode>): Likewise.
10183 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
10185         PR target/51726
10186         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
10187         selectany within this function without need to keep attribute.
10188         (i386_pe_encode_section_info): Remove selectany-code.
10190 2015-10-02  Richard Biener  <rguenther@suse.de>
10192         * tree-ssa-sccvn.c (has_VN_INFO): New function.
10193         (free_scc_vn): Use it.
10194         (visit_use): Remove dead code and refactor to use gassign
10195         and use less indentation.
10197 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10199         PR target/67788
10200         PR target/67789
10201         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
10202         (rs6000_cannot_copy_insn_p): New function.
10203         * config/rs6000/rs6000.md (cannot_copy): New attribute.
10204         (load_toc_v4_PIC_1_normal): Set cannot_copy.
10205         (load_toc_v4_PIC_1_476): Ditto.
10207 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10209         * graphite-scop-detection.c (struct sese_l): New conversion constructor
10210         so that this type can be pushed into a vec.
10211         (class scop_builder): use sese_l to collect scops.
10212         (get_scops): New getter function.
10213         (remove_intersecting_scops): Use sese_l instead of scops_p.
10214         (intersects): Same.
10215         (add_scop): Same.
10216         (subsumes): Same.
10217         (remove_subscops): Same.
10218         (build_scops): Add scops to vec<scops_p> once all the scops have been
10219         detected.
10221 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
10223         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10224         Renamed type from gimple_bb_p to gimple_poly_bb_p.
10225         (translate_isl_ast_node_user): Same.
10226         * graphite-poly.c (new_poly_bb): Same.
10227         * graphite-poly.h (gbb_from_bb): Same.
10228         * sese.h: Same.
10229         * graphite-sese-to-poly.c (new_gimple_bb):
10230         gimple_bb_p -> gimple_poly_bb_p
10231         (build_scop_scattering): Same.
10232         (find_params_in_bb): Same.
10233         (add_conditions_to_domain): Same.
10234         (sese_dom_walker::before_dom_children): Same.
10235         (analyze_drs_in_stmts): Same.
10236         (new_pbb_from_pbb): Same.
10237         (free_data_refs_aux): New pointer to type base_alias_pair.
10238         * graphite-sese-to-poly.h: Same.
10239         * sese.c (if_region_set_false_region): Fixed Indentation.
10240         (move_sese_in_condition): Same.
10242 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10243             Aditya Kumar  <aditya.k7@samsung.com>
10245         PR tree-optimization/66980
10246         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
10247         when data reference analysis has failed.
10249 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10250             Aditya Kumar  <aditya.k7@samsung.com>
10252         PR tree-optimization/67754
10253         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
10254         scev analysis on the same loop nest as analyze_drs_in_stmts.
10255         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
10256         renamed...
10257         (try_generate_gimple_bb): Call outermost_loop_in_sese.
10258         (analyze_drs_in_stmts): Same.
10259         * sese.c (outermost_loop_in_sese): ...here.
10261 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
10262             Aditya Kumar  <aditya.k7@samsung.com>
10264         PR tree-optimization/67754
10265         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
10266         recursion on the inner loops.
10268 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10270         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
10271         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
10272         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
10273         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
10274         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
10276 2015-10-01  Marek Polacek  <polacek@redhat.com>
10278         PR c/65345
10279         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
10280         create_tmp_var_raw rather than create_tmp_var.
10282 2015-10-01  Marek Polacek  <polacek@redhat.com>
10284         PR tree-optimization/67769
10285         * tree-ssa-phiopt.c (conditional_replacement): Call
10286         reset_flow_sensitive_info_in_bb.
10287         (minmax_replacement): Likewise.
10288         (abs_replacement): Likewise.
10290 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
10292         * builtins.c: Don't include gomp-constants.h.
10293         (fold_builtin_1): Don't fold acc_on_device here.
10294         * gimple-fold.c: Include gomp-constants.h.
10295         (gimple_fold_builtin_acc_on_device): New.
10296         (gimple_fold_builtin): Call it.
10298 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10300         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
10301         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
10303 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
10305         * config/arm/aarch-common-protos.h
10306         (aarch_accumulator_forwarding): New.
10307         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10308         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
10309         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
10310         * config/arm/cortex-a53.md: Rewrite.
10312 2015-10-01  Richard Biener  <rguenther@suse.de>
10314         * gimple-match.h (mprts_hook): Declare.
10315         * gimple-match.head.c (mprts_hook): Define.
10316         (maybe_push_res_to_seq): Use new hook.
10317         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10318         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
10319         (vn_ssa_aux::has_constants): Remove.
10320         * tree-ssa-sccvn.c: Include gimple-match.h.
10321         (VN_INFO_GET): Assert we don't re-use SSA names.
10322         (vn_get_expr_for): Remove.
10323         (expr_has_constants): Likewise.
10324         (stmt_has_constants): Likewise.
10325         (simplify_binary_expression): Likewise.
10326         (simplify_unary_expression): Likewise.
10327         (vn_lookup_simplify_result): New hook.
10328         (visit_copy): Adjust.
10329         (visit_reference_op_call): Likewise.
10330         (visit_phi): Likewise.
10331         (visit_use): Likewise.
10332         (process_scc): Likewise.
10333         (init_scc_vn): Likewise.
10334         (visit_reference_op_load): Likewise.  Use match-and-simplify and
10335         a gimple seq for inserted expressions.
10336         (try_to_simplify): Remove GENERIC stmt combining code.
10337         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
10338         * tree-ssa-pre.c (eliminate_insert): Adjust.
10339         (eliminate_dom_walker::before_dom_children): Likewise.
10341 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10343         * doc/invoke.texi (Optimization Options): Add
10344         -freorder-blocks-algorithm=.
10345         (Optimize Options) <-O>: Add -freorder-blocks.
10346         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
10347         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
10348         <-freorder-blocks>: Also enabled at levels -O and -Os.
10349         <-freorder-blocks-algorithm=>: Document new option.
10351 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10353         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
10354         with flag_reorder_blocks_algorithm.
10355         * common.opt (freorder-blocks-algorithm=): New flag.
10356         (reorder_blocks_algorithm): New enum.
10357         * flag-types.h (reorder_blocks_algorithm): New enum.
10358         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
10359         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
10361 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10363         * bb-reorder.c: Add intro comment.
10364         (reorder_basic_blocks_software_trace_cache): Print a header to
10365         the dump file.
10366         (edge_order): New function.
10367         (reorder_basic_blocks_simple): New function.
10368         (reorder_basic_blocks): Choose between the STC and the simple
10369         algorithms (always choose the former).
10371 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
10373         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
10374         function, factored out from ...
10375         (reorder_basic_blocks): ... here.
10377 2015-10-01  Tom de Vries  <tom@codesourcery.com>
10379         * tree-cfg.c (dump_function_to_file): Dump function attributes using
10380         __attribute__(()) string.  Move dumping of function attributes to before
10381         function name.
10383 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
10385         PR target/66870
10386         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10387         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
10388         based on gold linker version.
10389         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
10390         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
10391         * configure, config.in: Regenerate.
10393 2015-10-01  Alan Modra  <amodra@gmail.com>
10395         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
10396         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
10397         (rs6000_output_mi_thunk): Likewise.
10399 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10401         * config/nvptx/mkoffload.c (process): Change offload data format.
10403 2015-09-30  Jeff Law  <law@redhat.com>
10405         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
10406         with constant conditions.
10407         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
10408         (remove_ctrl_stmt_and_useless_edges): No longer static.
10409         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
10410         (remove_ctrl_stmt_and_useless_edges): Likewise.
10412 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10413             Cesar Philippidis  <cesar@codesourcery.com>
10415         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
10416         (TARGET_GOACC_VALIDATE_DIMS): Override.
10417         * target.def (TARGET_GOACC): New target hook prefix.
10418         (validate_dims): New hook.
10419         * targhooks.h (default_goacc_validate_dims): New.
10420         * omp-low.c (oacc_validate_dims): New.
10421         (execute_oacc_device_lower): New.
10422         (default_goacc_validate_dims): New.
10423         (pass_data_oacc_device_lower): New.
10424         (pass_oacc_device_lower): New pass.
10425         (make_pass_oacc_device_lower): New.
10426         * tree-pass.h (make_pass_oacc_device_lower): Declare.
10427         * passes.def (pass_oacc_device_lower): Add it.
10428         * doc/tm.texi: Rebuilt.
10429         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
10430         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
10432 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10434         PR rtl-optimization/67037
10435         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
10437 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
10439         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
10440         * passes.c: Include tree-ssanames.h.
10441         (execute_function_todo): Flush the pending free SSA_NAMEs after
10442         eliminating unreachable basic blocks.
10443         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
10444         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
10445         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
10446         (flush_ssanames_freelist): New function.
10447         (release_ssaname_fn): Put released names on the queue.
10448         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
10449         * tree-ssanames.h (flush_ssanames_freelist): Declare.
10451 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10453         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
10454         (generate_target_descr_file, generate_target_offloadend_file)
10455         (generate_host_descr_file, prepare_target_image): Pass it on.
10456         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
10457         (compile_native, main): Pass it on.
10458         * lto-wrapper.c (compile_offload_image): Likewise.
10460 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10461             Ilya Verbin  <ilya.verbin@intel.com>
10462             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10464         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
10465         (prepare_target_image, main): Refactor argv building to use
10466         obstacks.
10468 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10470         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
10471         * config/spu/spu.c (spu_expand_atomic_op): New function.
10472         * config/spu/spu.md (AINT): New mode iterator.
10473         (ATOMIC): New code iterator.
10474         (atomic_name, atomic_pred): New code predicates.
10475         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
10476         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
10477         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
10478         "atomic_<atomic_name>_fetch<mode>"): Likewise.
10480 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
10482         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
10483         debug insns.
10484         (scalar_chain::convert_reg): Likewise.
10486 2015-09-30  Richard Biener  <rguenther@suse.de>
10488         * builtins.c: Add comment that no new simplifications should
10489         be added here.
10491 2015-09-30  Marek Polacek  <polacek@redhat.com>
10493         PR tree-optimization/67690
10494         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
10495         reset_flow_sensitive_info_in_bb.
10496         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
10497         * tree-ssanames.c: Include "gimple-iterator.h".
10498         (reset_flow_sensitive_info_in_bb): New function.
10499         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
10501 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10503         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
10504         variable, replacing it with...
10505         (offload_abi): ... this new variable.  Adjust all users.
10506         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
10508 2015-09-30  Matthias Klose  <doko@ubuntu.com>
10510         * configure.ac: Remove extraneous ;;.
10511         * configure: Regenerate.
10513 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
10515         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
10516         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
10517         predicate, disallow register for operand 2.
10519 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
10521         * graphite-dependences.c (scop_get_dependences): Moved in down
10522         in order to be visible to its caller.
10523         * graphite-poly.h: Removed compute_deps, and extend_schedule.
10525 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10526             Aditya Kumar  <aditya.k7@samsung.com>
10528         PR tree-optimization/67754
10529         * graphite-optimize-isl.c (optimize_isl): Call
10530         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
10532 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10534         * builtins.c (expand_builtin_acc_on_device): Delete.
10535         (expand_builtin): Don't call it.
10536         (fold_builtin_1): Fold acc_on_device.
10538 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10540         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
10541         (ix86_nsaved_sseregs): Likewise.
10543 2015-09-29  Jeff Law  <law@redhat.com>
10545         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
10546         computation of unused value.
10548         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
10549         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
10550         inline macro expansion.
10552         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
10554         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
10555         (gen_shl_sext): Likewise.
10556         * config/sh/sh.md (divsi3): Likewise.
10557         (imm->ext_dest_operand splitter): Likewise.
10559 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
10560             Aditya Kumar  <aditya.k7@samsung.com>
10562         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
10563         (nb_data_writes_in_bb): Remove.
10564         (split_pbb): Remove.
10565         (split_reduction_stmt): Remove.
10566         (is_reduction_operation_p): Remove.
10567         (phi_contains_arg): Remove.
10568         (follow_ssa_with_commutative_ops): Remove.
10569         (detect_commutative_reduction_arg): Remove.
10570         (detect_commutative_reduction_assign): Remove.
10571         (follow_inital_value_to_phi): Remove.
10572         (edge_initial_value_for_loop_phi): Remove.
10573         (initial_value_for_loop_phi): Remove.
10574         (used_outside_reduction): Remove.
10575         (detect_commutative_reduction): Remove.
10576         (translate_scalar_reduction_to_array_for_stmt): Remove.
10577         (remove_phi): Remove.
10578         (dr_indices_valid_in_loop): Remove.
10579         (close_phi_written_to_memory): Remove.
10580         (translate_scalar_reduction_to_array): Remove.
10581         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
10582         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
10583         (rewrite_commutative_reductions_out_of_ssa): Remove.
10584         (build_poly_scop): Remove call to
10585         rewrite_commutative_reductions_out_of_ssa.
10587 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
10589         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
10590         Add new insn types for vector load and store pairs.
10591         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
10592         types "neon_ldp{,_q}".
10593         * config/arm/cortex-a57.md (neon_load_c): Add insn types
10594         "neon_ldp{,_q}".
10595         (neon_store_complex): Add insn types "neon_stp{,_q}".
10596         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
10597         "neon_{ldp,stp}_q".
10599 2015-09-29  Jeff Law  <law@redhat.com>
10601         * config/rx/constraints.md (Int08): Fix undefined left shift
10602         behaviour.
10603         (Sint08, Sint16, Sint24): Likewise.
10604         * config/rx/rx.c (rx_get_stack_layout): Likewise.
10606         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
10607         behaviour.
10609         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
10610         left shift behaviour.
10611         * config/msp430/constraints.md ('L' constraint): Similarly.
10612         ('Ys' constraint): Similarly.
10614 2015-09-29  Richard Biener  <rguenther@suse.de>
10616         PR tree-optimization/67170
10617         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
10618         the translate function pointer parameter to get the
10619         bool whether to disambiguate only by reference.
10620         (walk_non_aliased_vuses): Likewise.
10621         * tree-ssa-alias.c (maybe_skip_until): Adjust.
10622         (get_continuation_for_phi_1): Likewise.
10623         (get_continuation_for_phi): Likewise.
10624         (walk_non_aliased_vuses): Likewise.
10625         * tree-ssa-sccvn.c (const_parms): New bitmap.
10626         (vn_reference_lookup_3): Adjust for interface change.
10627         Disambiguate parameters pointing to readonly memory.
10628         (free_scc_vn): Free const_parms.
10629         (run_scc_vn): Initialize const_parms from a fn spec attribute.
10631 2015-09-29  Richard Biener  <rguenther@suse.de>
10633         PR tree-optimization/67741
10634         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
10635         builtin calls with correct signature.
10637 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
10639         PR target/65105
10640         * config/i386/i386.c: Include dbgcnt.h.
10641         (has_non_address_hard_reg): New.
10642         (convertible_comparison_p): New.
10643         (scalar_to_vector_candidate_p): New.
10644         (remove_non_convertible_regs): New.
10645         (scalar_chain): New.
10646         (scalar_chain::scalar_chain): New.
10647         (scalar_chain::~scalar_chain): New.
10648         (scalar_chain::add_to_queue): New.
10649         (scalar_chain::mark_dual_mode_def): New.
10650         (scalar_chain::analyze_register_chain): New.
10651         (scalar_chain::add_insn): New.
10652         (scalar_chain::build): New.
10653         (scalar_chain::compute_convert_gain): New.
10654         (scalar_chain::replace_with_subreg): New.
10655         (scalar_chain::replace_with_subreg_in_insn): New.
10656         (scalar_chain::emit_conversion_insns): New.
10657         (scalar_chain::make_vector_copies): New.
10658         (scalar_chain::convert_reg): New.
10659         (scalar_chain::convert_op): New.
10660         (scalar_chain::convert_insn): New.
10661         (scalar_chain::convert): New.
10662         (convert_scalars_to_vector): New.
10663         (pass_data_stv): New.
10664         (pass_stv): New.
10665         (make_pass_stv): New.
10666         (ix86_option_override): Created and register stv pass.
10667         (flag_opts): Add -mstv.
10668         (ix86_option_override_internal): Likewise.
10669         * config/i386/i386.md (SWIM1248x): New.
10670         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
10671         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
10672         (*anddi3_doubleword): New.
10673         (*zext<mode>_doubleword): New.
10674         (*zextsi_doubleword): New.
10675         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
10676         (*<code>di3_doubleword): New.
10677         * config/i386/i386.opt (mstv): New.
10678         * dbgcnt.def (stv_conversion): New.
10680 2015-09-29  Tom de Vries  <tom@codesourcery.com>
10682         * tree-cfg.c (dump_function_to_file): Dump function attributes.
10684 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10686         PR target/67716
10687         * config/sh/sh.c (sh_override_options_after_change): New.
10688         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10689         (sh_option_override): Move align_loops, align_jumps and
10690         align_functions handling into sh_override_options_after_change.
10692 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10694         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
10695         (nvptx_record_offload_symbol): Record function execution geometry.
10696         * config/nvptx/mkoffload.c (process): Include launch geometry in
10697         function data.
10698         * omp-low.c (oacc_launch_pack): New.
10699         (replace_oacc_fn_attrib): New.
10700         (set_oacc_fn_attrib): New.
10701         (get_oacc_fn_attrib): New.
10702         (expand_omp_target): Create keyed varargs for GOACC_parallel call
10703         generation.
10704         * omp-low.h (get_oacc_fn_attrib): Declare.
10705         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
10706         (DEF_FUNCTION_TYPE_VAR_11): Delete.
10707         * tree.h (OMP_CLAUSE_EXPR): New.
10708         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
10710 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10711             Sebastian Pop  <s.pop@samsung.com>
10713         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
10715 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10716             Sebastian Pop  <s.pop@samsung.com>
10718         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
10719         * graphite-scop-detection.c (struct sese_l): New type.
10720         (get_entry_bb): API for getting entry bb of SESE.
10721         (get_exit_bb): API for getting exit bb of SESE.
10722         (class debug_printer): New type.  Simple printer in debug mode.
10723         (trivially_empty_bb_p): New.  Return true when BB is empty or
10724         contains only debug instructions.
10725         (graphite_can_represent_expr): Call scalar_evoution_in_region
10726         instead of analyze_scalar_evolution.  Pass in scop instead of only
10727         the scop entry.
10728         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
10729         scop entry.
10730         (stmt_simple_for_scop_p): Same.
10731         (harmful_stmt_in_bb): Same.
10732         (graphite_can_represent_loop): Deleted.
10733         (struct scopdet_info): Deleted.
10734         (scopdet_basic_block_info): Deleted.
10735         (build_scops_1): Deleted.
10736         (bb_in_sd_region): Deleted.
10737         (find_single_entry_edge): Deleted.
10738         (find_single_exit_edge): Deleted.
10739         (create_single_entry_edge): Deleted.
10740         (sd_region_without_exit): Deleted.
10741         (create_single_exit_edge): Deleted.
10742         (unmark_exit_edges): Deleted.
10743         (mark_exit_edges): Deleted.
10744         (create_sese_edges): Deleted.
10745         (build_graphite_scops): Deleted.
10746         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
10747         (build_scops): Use the new scop_builder to build scops.
10748         (dot_all_scops_1): Use the new pretty printer.  Print loop father
10749         as well.
10750         (loop_body_is_valid_scop): New.  Return true if loop body is a
10751         valid scop.
10752         (class scop_builder): New.  Builds SCoPs for polyhedral
10753         optimizations.
10754         (scop_builder): New constructor.
10755         (static sese_l invalid_sese): sese_l with invalid edges.
10756         (get_sese): Get an sese (from a loop) if possible, invalid_sese
10757         otherwise.
10758         (get_nearest_dom_with_single_entry): Get nearest dominator of a
10759         basic_block with single entry.  Return NULL if we get to the
10760         beginning of a function.
10761         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
10762         a basic_block with single exit.  Return NULL if we get to the
10763         beginning of a function.
10764         (print_sese): Pretty-print SESE.
10765         (merge_sese): Merge two SESEs if possible and return the new SESE.
10766         (build_scop_depth): Start building the SCoP within a loop nest.
10767         (build_scop_breadth): Start building the SCoP at a single loop
10768         depth.  Merge adjacent SESEs if valid.
10769         (can_represent_loop_1): Returns true if Graphite can represent
10770         loop inside SCoP.  Helper for can_represent_loop.
10771         (can_represent_loop): Returns true if Graphite can represent LOOP
10772         and all its nested loops in SCoP.
10773         (loop_is_valid_scop): Returns true if LOOP and all its nests
10774         constitute a valid SCoP.
10775         (region_has_one_loop): Returns true of a region has only one loop.
10776         (add_scop): Add SCoP to the list of valid scops.  Removes an
10777         already existing scop if it intersects with or subsumed by this one.
10778         (harmful_stmt_in_region): Returns true if SCoP has any statment
10779         which cannot be represented by Graphite.
10780         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
10781         (remove_subscops): Remove any SCoP from the list of already found
10782         SCoPs, if subsumed by S1.
10783         (intersects): Return true if region bounded by SCoPs S1 and S2
10784         intersect.
10785         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
10786         * graphite.c (print_graphite_scop_statistics):
10787         (print_graphite_statistics): Print SCoP info while debugging.
10788         (graphite_initialize): Early exit in case number of loops in a
10789         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
10790         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10791         (graphite_finalize):
10792         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
10793         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
10794         (recompute_all_dominators): Recalculate POST_DOMINATORS.
10795         * tree-cfg.c (print_loops): Print the function name while printing
10796         loops.
10798 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
10799             Sebastian Pop  <s.pop@samsung.com>
10801         PR tree-optimization/67700
10802         * graphite-sese-to-poly.c (parameter_index_in_region): Call
10803         invariant_in_sese_p_rec.
10804         (extract_affine): Same.
10805         (rewrite_cross_bb_scalar_deps): Call update_ssa.
10806         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
10807         * sese.h (invariant_in_sese_p_rec): Declare.
10809 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
10811         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
10813 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
10815         Revert:
10816         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10817                     Jiong Wang  <jiong.wang@arm.com>
10819         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10820         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10821         (REG_CLASS_NAMES): Likewise.
10822         (REG_CLASS_CONTENTS): Likewise.
10823         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10824         (aarch64_register_move_cost): Likewise.
10825         (aarch64_load_symref_appropriately): Invoke the new added pattern if
10826         possible.
10827         * config/aarch64/constraints.md (Uc0): New constraint.
10829 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
10831         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
10833 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
10835         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
10836         SECTION_EXCLUDE in XO mapping class.
10838 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
10840         PR target/54236
10841         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
10842         and handle ne and eq codes.
10843         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
10844         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
10845         CONST_INT_P.  Use reverse_condition.
10846         (sh_split_treg_set_expr): Likewise.
10848 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
10850         * config/arm/types.md (type): Add rotate_imm.
10851         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
10852         ROR immediate case.
10853         (*rorsi3_insn_uxtw): Likewise.
10854         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
10855         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
10856         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
10858 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10860         PR rtl-optimization/67481
10861         * ifcvt.c (contains_ccmode_rtx_p): New function.
10862         (insn_valid_noce_process_p): Use it.
10864 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10866         PR rtl-optimization/67456
10867         PR rtl-optimization/67464
10868         PR rtl-optimization/67465
10869         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
10870         move in the mode of x.  Handle combination of complex and simple
10871         block pairs as well as the case when one is empty.
10873 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10875         * doc/gimple.texi: Update references to gimple_statement_base.
10876         * gdbhooks.py: Likewise.
10877         * gimple.h: Likewise.
10879 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10881         * config/sparc/driver-sparc.c: map LEON to leon3
10883 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10885         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
10886           and make it inverse to change default
10887         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
10888           supervisor mode
10889         * doc/invoke.texi: Document change of default
10891 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
10893         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
10894         true on %f0 for a target without FPU.
10895         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
10896         without FPU.
10897         (untyped_return): Do not load %f0 for a target without FPU.
10899 2015-09-28  Andrew Pinski  <apinski@cavium.com>
10901         * config/aarch64/aarch64.md (prefetch):
10902         Change the predicate of operand 0 to register_operand.
10904 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
10906         * config/i386/predicates.md (register_sse4nonimm_operand): New
10907         predicate.
10908         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
10909         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
10910         Use register_sse4nonimm_operand as operand 0 predicate.
10911         (*vec_extractv8hi_sse2): Remove insn pattern.
10912         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
10913         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
10915 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
10916             Kaz Kojima  <kkojima@gcc.gnu.org>
10918         PR target/67391
10919         * config/sh/sh-protos.h (sh_lra_p): Declare.
10920         * config/sh/sh.c (sh_lra_p): Make non-static.
10921         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
10922         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
10923         Expand into addsi3_scr if operands[2] if needed.
10924         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
10925         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
10926         (addsi3_scr, *addsi3): New insn_and_split patterns.
10928 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
10930         PR rtl-optimization/64164
10931         PR tree-optimization/67312
10932         PR middle-end/67340
10933         PR middle-end/67490
10934         PR bootstrap/67597
10935         * cfgexpand.c (parm_in_stack_slot_p): Remove.
10936         (ssa_default_def_partition): Remove.
10937         (get_rtl_for_parm_ssa_default_def): Remove.
10938         (set_rtl): Check that RTL assignments match expectations.
10939         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
10940         default def location for params and results.  Record SSA names
10941         or types in REG and MEM attrs, respectively.
10942         (set_parm_rtl): New.
10943         (expand_one_ssa_partition): Drop logic that assigned MEMs with
10944         unassigned addresses.
10945         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
10946         deferred stack alloc vars.
10947         (expand_used_vars): Skip partitions holding parm default defs.
10948         Move adjust_one_expanded_partition_var loop...
10949         (pass_expand::execute): ... here.  Drop redundant assert.
10950         Adjust comments before the final loop over all ssa names.
10951         Require assigned rtl of parms and results to match exactly.
10952         Reset its attributes to match them, not any other variables in
10953         the same partition.
10954         (expand_debug_expr): Use entry value for PARM's default defs
10955         only iff they have zero nondebug uses.
10956         * cfgexpand.h (parm_in_stack_slot_p): Remove.
10957         (get_rtl_for_parm_ssa_default_def): Remove.
10958         (set_parm_rtl): Declare.
10959         * doc/invoke.texi: Improve wording.
10960         * explow.c (promote_decl_mode): Fix promote_function_mode for
10961         result decls not by reference.
10962         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
10963         bypass TYPE_MODE to get the actual vector mode.
10964         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
10965         2015-08-19's changes as follows.  Drop include of
10966         basic-block.h and df.h.
10967         (rtl_for_parm): Remove.
10968         (maybe_reset_rtl_for_parm): Remove.
10969         (parm_in_unassigned_mem_p): Remove.
10970         (use_register_for_decl): Add logic for RESULT_DECLs matching
10971         assign_parms' behavior.
10972         (split_complex_args): Revert.
10973         (assign_parms_augmented_arg_list): Revert.  Add comment
10974         referencing the logic above.
10975         (assign_parm_adjust_stack_rtl): Revert.
10976         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
10977         of SET_DECL_RTL.  Set up a REG if the parm demands so.
10978         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
10979         calls into a single set_parm_rtl.  Set up a temporary RTL
10980         temporarily for expand_assignment.
10981         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
10982         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
10983         (assign_bounds): Revert.
10984         (assign_parms): Revert.  Use set_parm_rtl.
10985         (allocate_struct_function): Relayout result and parms of
10986         non-abstruct functions.
10987         (expand_function_start): Revert.  Use set_parm_rtl.  If the
10988         result is not a hard reg, create a pseudo from the promoted
10989         mode of the default def.  Promote static chain mode.
10990         * tree-outof-ssa.c (remove_ssa_form): Drop unused
10991         partition_has_default_def.  Set up
10992         partitions_for_parm_default_defs.
10993         (finish_out_of_ssa): Remove partition_has_default_def.
10994         Release partitions_for_parm_default_defs.
10995         * tree-outof-ssa.h (struct ssaexpand): Remove
10996         partition_has_default_def.  Add
10997         partitions_for_parm_default_defs.
10998         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
10999         stor-layout.h.
11000         (build_ssa_conflict_graph): Fix conflict-detection of default
11001         defs of even unused default defs of params and results.
11002         (for_all_parms): New.
11003         (create_default_def): New.
11004         (register_default_def): New.
11005         (coalesce_with_default): New.
11006         (create_outofssa_var_map): Create default defs for all parms
11007         and results, and register their partitions.  Add GIMPLE_RETURN
11008         operands as coalesce candidates with results.  Add default
11009         defs of each parm or result as coalesce candidates with its
11010         other defs.  Mark each result def, and each default def of
11011         parms, as used_in_copy.
11012         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
11013         with the ssa names, even anonymous ones.  Drop
11014         parm_in_stack_slot_p calls.  Require same signedness and
11015         alignment.
11016         (coalesce_ssa_name): Add coalesce candidates for all defs of
11017         each parm and result, even unused ones.
11018         (parm_default_def_partition_arg): New type.
11019         (set_parm_default_def_partition): New.
11020         (get_parm_default_def_partitions): New.
11021         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
11022         * tree-ssa-live.c (partition_view_init): Regard unused defs of
11023         parms and results as used.
11024         (verify_live_on_entry): Don't error out just because they're
11025         not live.
11027 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
11029         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11030         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
11031         (output_fde): Don't output length for debug_frame on AIX.
11032         (output_call_frame_info): Don't output length for debug_frame on AIX.
11033         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
11034         HAVE_XCOFF_DWARF_EXTRAS.
11035         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
11036         HAVE_XCOFF_DWARF_EXTRAS.
11037         (output_compilation_unit_header): Don't output length on AIX.
11038         (output_pubnames): Don't output length on AIX.
11039         (output_aranges): Delete argument. Compute length locally. Don't
11040         output length on AIX.
11041         (output_line_info): Don't output length on AIX.
11042         (dwarf2out_finish): Don't compute aranges_length.
11043         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
11044         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
11045         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
11046         symbol decoration for AIX.
11047         (rs6000_xcoff_debug_unwind_info): New.
11048         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
11049         for SECTION_DEBUG.
11050         (rs6000_xcoff_declare_function_name): Emit different
11051         .function pseudo-op when DWARF2_DEBUG. Don't call
11052         xcoffout_declare_function for DWARF2_DEBUG.
11053         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
11054         Redefine.
11055         * config/rs6000/aix71.h: New.
11056         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
11057         locations support.
11058         * configure: Regenerate.
11059         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
11060         DWARF support.
11062 2015-09-26  Jeff Law  <law@redhat.com>
11064         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
11065         behaviour.
11066         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
11067         behaviour.
11069         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
11070         behaviour
11072         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
11073         undefined behaviour.
11075         * config/cris/cris.md (asrandb): Fix left shift undefined
11076         behaviour.
11077         (asrandw): Likewise.
11079 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
11081         PR target/61578
11082         * lra-constarints.c (match_reload): Check presence of the input pseudo
11083         in the output operand.
11085 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11087         * doc/invoke.texi (-fsanitize): Minor wording tweak.
11089 2015-09-25  Tobias Burnus  <burnus@net-b.de>
11091         * doc/invoke.texi (-fsanitize): Update URLs.
11093 2015-09-25  Teresa Johnson  <tejohnson@google.com>
11095         * opts.c (finish_options): Unset -freorder-blocks-and-partition
11096         if not using profile.
11098 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11100         PR pretty-print/67567
11101         * pretty-print.c (pp_string): Add gcc_checking_assert.
11102         * pretty-print.h (output_buffer_append_r): Likewise.
11104 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
11106         PR target/67675
11107         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
11108         addr2 individually.  Don't emit logical or insn if one is known to
11109         be aligned approriately.
11110         (sh_expand_cmpnstr): Likewise.
11112 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
11114         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
11115         __builtin_aarch64_fp[sc]r arguments into a register.
11117 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
11119         * config.gcc (x86_archs): Replace lakemount with lakemont.
11120         (with_cpu): Likewise.
11121         (with_arch): Likewise.
11122         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11123         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
11124         __tune_lakemount__ with __tune_lakemont__.
11125         * config/i386/i386.c (lakemount_cost): Renamed to ...
11126         (lakemont_cost): This.
11127         (m_LAKEMOUNT): Renamed to ...
11128         (m_LAKEMONT): This.
11129         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
11130         (processor_target_table): Replace "lakemount" with "lakemont".
11131         (processor_alias_table): Likewise.
11132         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
11133         PROCESSOR_LAKEMONT.
11134         (ix86_adjust_cost): Likewise.
11135         (ia32_multipass_dfa_lookahead): Likewise.
11136         * config/i386/i386.h (processor_type): Likewise.
11137         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
11138         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
11139         Lakemount with Lakemont.
11141 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
11143         * config.gcc (x86_archs): Replace iamcu with lakemount.
11144         (with_cpu): Likewise.
11145         (with_arch): Likewise.
11146         * doc/invoke.texi: Likewise.
11147         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
11148         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
11149         __tune_iamcu__ with __tune_lakemount__.
11150         * config/i386/i386.c (iamcu_cost): Renamed to ...
11151         (lakemount_cost): This.
11152         (m_IAMCU): Renamed to ...
11153         (m_LAKEMOUNT): This.
11154         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
11155         (processor_target_table): Replace "iamcu" with "lakemount".
11156         (processor_alias_table): Likewise.
11157         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
11158         PROCESSOR_LAKEMOUNT.
11159         (ix86_adjust_cost): Likewise.
11160         (ia32_multipass_dfa_lookahead): Likewise.
11161         * config/i386/i386.h (processor_type): Likewise.
11162         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
11164 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
11166         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
11167         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
11168         Declare.
11169         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
11170         (pa_expand_compare_and_swap_loop): New.
11171         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
11172         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
11173         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
11174         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
11175         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
11176         Revise.
11178 2015-09-24  Michael Collison  <michael.collison@linaro.org>
11180         PR other/57195
11181         * read-md.c (read_name): Allow mode iterators inside angle
11182         brackets in rtl expressions.
11184 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
11186         PR target/61578
11187         * ira-color.c (update_allocno_cost): Add parameter.
11188         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
11189         parameter.
11191 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11193         PR driver/67640
11194         * opts-common.c (prune_options): Discard all -fdiagnostics-color
11195         but the last one, which is moved to the front to be processed
11196         first.
11197         * opts.c (enable_warning_as_error): Reject options that do not
11198         control warnings.
11200 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11202         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
11204 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
11206         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
11207         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
11208         (aarch64_cannot_force_const_mem): Likewise.
11209         (aarch64_classify_address): Likewise.
11210         (aarch64_classify_symbolic_expression): Likewise.
11211         (aarch64_print_operand): Likewise.
11212         (aarch64_classify_symbol): Likewise.
11213         (aarch64_mov_operand_p): Likewise.
11214         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
11215         (aarch64_mov_operand): Likewise.
11217 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
11219         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
11220         for info->spe_gp_size.
11222 2015-09-24  Richard Biener  <rguenther@suse.de>
11224         PR lto/67699
11225         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
11226         abstract origins.
11228 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
11230         * tree-object-size.c (plus_stmt_object_size)
11231         (cond_expr_object_size): Change the formal parameters from gimple
11232         to gimple *.
11233         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
11234         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
11235         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
11237 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11239         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
11240         Check for ld -type pie on Solaris 11.x and 12.
11241         * configure: Regenerate.
11242         * config.in: Regenerate.
11244         * gcc.c (LD_PIE_SPEC): Allow redefinition.
11246         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
11247         (STARTFILE_SPEC): Use it.
11248         (ENDFILE_CRTEND_SPEC): Define.
11249         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
11250         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
11251         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
11252         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
11253         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
11254         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
11255         (ENDFILE_ARCH_SPEC): Define.
11256         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
11258 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11260         * configure.ac (gcc_cv_solaris_crts): New test.
11261         * configure. Regenerate.
11262         * config.in: Regenerate.
11263         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
11264         HAVE_SOLARIS_CRTS variant.
11266 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11268         * tree-inline.h (count_insns_seq): Delete prototype.
11269         (estimate_num_insns_seq): Define prototype.
11270         * tree-inline.c (count_insns_seq): Delete.
11271         (estimate_num_insns_seq): Remove static qualifier.
11272         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
11273         with estimate_num_insns_seq.
11275 2015-09-24  Richard Biener  <rguenther@suse.de>
11277         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
11278         members.
11279         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
11280         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
11281         offset.
11282         (ao_ref_init_from_vn_reference): Record clique and base in the
11283         built base.
11284         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
11286 2015-09-24  Richard Biener  <rguenther@suse.de>
11288         PR tree-optimization/48885
11289         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
11290         as not including any restrict tags from other pointers.
11292 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11294         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
11295         character when appending to offload_targets.
11297         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
11298         offload targets by commas, not colons.
11299         * config.in: Regenerate.
11300         * configure: Likewise.
11301         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
11302         instead of setting up the default offload targets here...
11303         (process_command): ..., do it here.
11304         libgomp/
11305         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
11306         targets are separated by commas.
11307         * config.h.in: Regenerate.
11309 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
11310             Nathan Sidwell  <nathan@codesourcery.com>
11312         * omp-low.h (omp_reduction_init_op): Declare.
11313         * omp-low.c (omp_reduction_init_op): New, broken out of ...
11314         (omp_reduction_init): ... here.  Call it.
11315         * tree-parloops.c (initialize_reductions): Use
11316         omp_reduction_init_op.
11318 2015-09-23   Richard Biener  <rguenther@suse.de>
11320         PR middle-end/67662
11321         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
11322         undefined overflow unless they will cancel out.
11324 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11326         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
11327         insn emit.
11329 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11331         PR c/49655
11332         * opts.h (write_langs): Declare.
11333         * opts-global.c (write_langs): Make it extern.
11335 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
11337         PR target/67391
11338         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
11339         overlapping regs when matching the pattern.
11341 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
11343         * config/aarch64/aarch64-simd.md
11344         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
11345         (aarch64_float_truncate_hi_v4sf_le): New.
11346         (aarch64_float_truncate_hi_v4sf_be): Likewise.
11348 2015-09-23  Richard Biener  <rguenther@suse.de>
11350         * tree-ssa-structalias.c (intra_create_variable_infos): Build
11351         representatives for all restrict qualified pointer destinations.
11353 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11355         * config/i386/i386.md (define_code_attr mshift): New.
11356         (define_mode_iterator SWI1248_AVX512BW): Rename ...
11357         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
11358         only.
11359         (define_insn "*k<logic><mode>"): Use new iterator name.
11360         (define_insn "*<mshift><mode>3"): New.
11362 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
11364         PR middle-end/67649
11365         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
11366         mark the block as accessible.
11368 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
11370         * function.c (thread_prologue_and_epilogue_insns): Delete
11371         orig_entry_edge argument to try_shrink_wrapping.
11372         * shrink-wrap.c (can_get_prologue): New function.
11373         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
11374         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
11375         can_get_prologue where needed.  Remove code that finds a single
11376         edge for the prologue.  Remove code that tests if any reg clobbered
11377         by the prologue is live on the prologue edge.  Remove code that finds
11378         the new prologue edge after duplicating blocks.  Make a new prologue
11379         block and edge.
11380         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
11382 2015-09-22  Jeff Law  <law@redhat.com>
11384         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
11385         behavior.
11387 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
11389         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
11390         -Wtemplates, -Wnamespaces): Document.
11392 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11394         PR tree-optimization/67671
11395         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
11396         pointer references as restrict.
11398 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11400         * config/nios2/nios2.c (nios2_legitimize_address): When handling
11401         'reg + reloc' cases, allow first operand to be non-REG, and use
11402         force_reg() to enforce address pattern.
11404 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
11406         PR target/67480
11407         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
11408         (define_mode_iterator VI12_AVX_AVX512F): New.
11409         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
11410         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
11411         (define_insn "*<code><mode>3"): ... Into new pattern using
11412         VI12_AVX_AVX512F iterators without masking.
11414 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11416         * config.gcc: Support "skylake-avx512".
11417         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11418         PROCESSOR_SKYLAKE_AVX512.
11419         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
11420         (processor_target_table): Add "skylake-avx512".
11421         (PTA_SKYLAKE_AVX512): Define.
11422         (ix86_option_override_internal): Add "skylake_avx512".
11423         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
11424         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
11425         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
11426         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
11427         * doc/invoke.texi (skylake-avx512): New.
11429 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11431         * config/i386/i386.md (define_insn "kunpckhi"): Fix
11432         operand in pattern.
11433         (define_insn "kunpcksi"): Ditto.
11434         (define_insn "kunpckdi"): Ditto.
11436 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11438         * config/i386/i386.md (define_split not/xor SWI1248x): Use
11439         iterator instead of fixed modes.
11441 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11443         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11444         Adjust declaration.
11445         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
11446         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
11447         out_result.  Update to support update-fetch operations.
11448         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
11449         Adjust for change to aarch64_gen_atomic_ldop.
11450         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
11451         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
11452         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
11453         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
11454         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
11456 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11458         * config/aarch64/aarch64-protos.h
11459         (aarch64_atomic_ldop_supported_p): Declare.
11460         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
11461         (enum aarch64_atomic_load_op_code): New.
11462         (aarch64_emit_atomic_load_op): New.
11463         (aarch64_gen_atomic_ldop): Update to support load-operate
11464         patterns.
11465         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
11466         to an expander.
11467         (aarch64_atomic_<atomic_optab><mode>): New.
11468         (aarch64_atomic_<atomic_optab><mode>_lse): New.
11469         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
11470         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
11471         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
11473 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11475         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
11476         (UNSPECV_ATOMIC_LDOP_OR): New.
11477         (UNSPECV_ATOMIC_LDOP_BIC): New.
11478         (UNSPECV_ATOMIC_LDOP_XOR): New.
11479         (UNSPECV_ATOMIC_LDOP_PLUS): New.
11480         (ATOMIC_LDOP): New.
11481         (atomic_ldop): New.
11482         (aarch64_atomic_load<atomic_ldop><mode>): New.
11484 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11486         * config/aarch64/aarch64.md
11487         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
11488         pattern.
11490 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
11492         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
11493         Declare.
11494         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
11495         (aarch64_gen_atomic_ldop): New.
11496         (aarch64_split_atomic_op): Fix whitespace and add a comment.
11497         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
11498         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
11499         (atomic_exchange<mode>): Replace with an expander.
11500         (aarch64_atomic_exchange<mode>): New.
11501         (aarch64_atomic_exchange<mode>_lse): New.
11502         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
11503         (aarch64_atomic_swp<mode>): New.
11505 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11507         * tree-inline.c (expand_call_inline): Use inform for extra note.
11508         Do not give a note with UNKNOWN_LOCATION.
11509         Replace input_location with gimple_location (stmt).
11510         Use true/false instead of TRUE/FALSE.
11512 2015-09-22  Tom de Vries  <tom@codesourcery.com>
11514         PR tree-optimization/67666
11515         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
11516         with single field non-conservative.
11518 2015-09-21  David S. Miller  <davem@davemloft.net>
11520         PR/67622
11521         Revert:
11522         2015-09-11  David S. Miller  <davem@davemloft.net>
11524         * config/sparc/constraints.md: Make "U" constraint a real register
11525         constraint.
11526         * config/sparc/sparc.c (TARGET_LRA_P): Define.
11527         (D_MODES, DF_MODES): Add missing cast.
11528         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11529         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11530         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11531         cost to 8.
11532         * config/sparc/sparc.h (PROMOTE_MODE): Define.
11533         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11534         provide these insn when flag_pic.
11536         2015-09-17  David S. Miller  <davem@davemloft.net>
11538         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
11539         Declare.
11540         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
11541         function.
11542         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11543         (HARD_REGNO_CALLER_SAVE_MODE): Define.
11544         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
11545         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
11546         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
11547         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
11548         provide when flag_pic.
11550 2015-09-21  Jeff Law  <law@redhat.com>
11552         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
11553         behavior.
11555 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11557         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
11559 2015-09-21  Richard Biener  <rguenther@suse.de>
11561         * passes.c (rest_of_decl_compilation): Do not call
11562         dwarf2out_early_global_decl for aliases.
11564 2015-09-21  Richard Biener  <rguenther@suse.de>
11566         PR debug/67664
11567         * dwarf2out.c (add_location_or_const_value_attribute): Remove
11568         attribute parameter.  Early exit if either DW_AT_const_value
11569         or DW_AT_location are present already.
11570         (gen_variable_die): Adjust caller.
11571         (dwarf2out_late_global_decl): Likewise.
11573 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11575         PR target/67657
11576         * config/sh/sh.c (sh_remove_overlapping_post_inc,
11577         sh_peephole_emit_move_insn): Add new functions.
11578         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
11579         sh_peephole_emit_move_insn): Declere them.
11580         * config/sh/sh.md: Use them in various peephole2 patterns.
11582 2015-09-21  Richard Biener  <rguenther@suse.de>
11584         PR middle-end/67651
11585         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
11586         address with -fno-delete-null-pointer-checks.
11588 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
11590         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
11591         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
11592         (reduc_uplus_v16qi): Remove.
11594         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
11595         (reduc_<VEC_reduc_name>_v2df): Remove.
11596         (reduc_<VEC_reduc_name>_v4sf): Remove.
11597         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
11599         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
11600         gen_ function by removing * prefix.
11601         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
11603 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11605         PR middle-end/60832
11606         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
11607         Print i_bound without converting it to a tree.
11609 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
11611         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
11612         operands[4] operands[5] swap with std::swap, removed tmp variable.
11613         (arm_evpc_neon_vzip): Replaced in0/in1 and
11614         out0/out1 swaps with std::swap, removed x variable.
11615         (arm_evpc_neon_vtrn): Replaced in0/int1 and
11616         out0/out1 swaos with std::swap, removed x variable.
11617         (arm_expand_vec_perm_const_1): Replaced
11618         d->op0/d->op1 swap with std::swap, removed x variable.
11619         (arm_evpc_neon_vuzp): Replaced in0/in1 and
11620         out0/out1 swaps with std::swap, removed x variable.
11622 2015-09-21  Jonathan Yong  <10walls@gmail.com>
11624         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11625         sysroot/usr/lib/32api for additional win32 libraries,
11626         fixes failing Cygwin bootstrapping.
11628 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11630         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
11632 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
11634         PR target/67126
11635         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
11636         (*mov_t_msb_neg): Rewrite negc pattern.
11638 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11640         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
11641         immediate generation code.
11643 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11645         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
11646         redundant immediate generation code.
11648 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11650         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
11651         (AARCH64_NUM_BITMASKS): Remove.
11652         (aarch64_bitmasks_cmp): Remove.
11653         (aarch64_build_bitmask_table): Remove.
11655 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11657         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
11658         slow immediate matching loops with a faster algorithm.
11660 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
11662         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
11663         faster algorithm.
11665 2015-09-20  Jeff Law  <law@redhat.com>
11667         PR tree-optimization/47679
11668         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
11669         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
11670         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
11671         (thread_through_normal_block): Use record_temporary_equivalences.
11673 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
11675         * coretypes.h (gimple): Change typedef to be a forward declaration.
11676         * gimple.h (gimple_statement_base): rename to gimple.
11677         * (all functions and types using gimple): Adjust.
11678         * *.[ch]: Likewise.
11680 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
11681             David Edelsohn  <dje.gcc@gmail.com>
11683         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
11684         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11685         (EH_FRAME_THROUGH_COLLECT2): Define.
11686         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11687         (ASM_OUTPUT_DWARF_PCREL): Define.
11688         (ASM_OUTPUT_DWARF_DATAREL): Define.
11690 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
11692         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
11693         of TARGET_ELF32.
11695 2015-09-18  Jeff Law  <law@redhat.com>
11697         PR tree-optimization/47679
11698         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
11699         it here ...
11700         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
11701         object.  Update constructor.
11702         (pass_dominator::execute):  Corresponding chagnes to declaration
11703         and initialization of avail_exprs_stack.  Update constructor call
11704         for dom_opt_dom_walker object.
11705         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
11706         it down to children as needed.
11707         (record_equivalences_from_incoming_edge): Likewise.
11708         (eliminate_redundant_computations): Likewise.
11709         (record_equivalences_from_stmt): Likewise.
11710         (simplify_stmt_for_jump_threading): Likewise.
11711         (record_temporary_equivalences): Likewise.
11712         (optimize_stmt): Likewise.
11713         (dom_opt_dom_walker::thread_across_edge): Update access to
11714         avail_exprs_stack object and pass it to children as needed.
11715         (dom_opt_dom_walker::before_dom_children): Similarly.
11716         (dom_opt_dom_walker::after_dom_children): Similarly.
11717         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
11718         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
11719         Add avail_expr_stack argument.  Pass it to children as needed.
11720         (dummy_simplify): Likewise.
11721         (simplify_control_stmt_condition): Likewise.
11722         (thread_around_empty_blocks): Likewise.
11723         (thread_through_normal_block): Likewise.
11724         (thread_across_edge): Likewise.
11725         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
11726         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
11728         PR tree-optimization/47679
11729         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
11730         it here ...
11731         (dom_opt_dom_walker): New private member holding the const_and_copies
11732         object.  Update constructor.
11733         (pass_dominator::execute): Corresponding changes to declaration
11734         and initialization of const_and_copies.  Update constructor call
11735         for the dom_opt_dom_walker object.
11736         (record_temporary_equivalences): Accept const_and_copies argument
11737         pass it down to children as needed.
11738         (record_equality): Likewise.
11739         (record_equivalences_from_incoming_edge): Likewise.
11740         (cprop_into_successor_phis, optimize_stmt): Likewise.
11741         (eliminate_redundant_computations): Likewise.
11742         (dom_opt_dom_walker::thread_across_edge): Update access to
11743         const_and_copies object and pass it to children as needed.
11744         (dom_opt_dom_walker::before_dom_children): Similarly.
11745         (dom_opt_dom_walker::after_dom_children): Similarly.
11747         PR tree-optimization/47679
11748         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
11749         it into the avail_exprs_stack class.
11750         (pass_dominator::execute): Corresponding changes to declaration
11751         and initialization of avail_exprs.  Pass avail_exprs to
11752         dump_dominator_optimization_stats.
11753         (record_cond): Extract avail_exprs from avail_exprs_stack.
11754         (lookup_avail_expr): Similarly.
11755         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
11756         position in file.
11757         (dump_dominator_optimization_stats): Make static and prototype.
11758         Add argument for the hash table to dump.
11759         (debug_dominator_optimization_stats): Remove.
11760         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
11761         prototype.
11762         (debug_dominator_optimization_stats): Similarly.
11763         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
11764         "void" in prototype for pop_to_marker method.  Add accessor method
11765         for the underlying avail_exprs table.
11767         * tree-ssa-threadedge.c: Remove trailing whitespace.
11769 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
11771         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
11772         unsigned.
11773         (pa_ldil_cint_p): Likewise.
11774         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
11775         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
11776         Update callers.
11777         * config/pa/pa.md: Likewise.
11779 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
11781         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
11782         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
11783         (diagnostic_show_locus): Likewise.
11784         (diagnostic_print_caret_line): Likewise.
11785         * diagnostic-show-locus.c: New file.
11787 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
11789         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
11790         "back" parameter. Declare label in #if block.
11792 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
11794         PR middle-end/67619
11795         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
11796         the address to a register.
11798 2015-09-18  Jeff Law  <law@redhat.com>
11800         PR tree-optimization/47679
11801         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
11802         * tree-ssa-dom.c: Remove unnecessary header includes.
11803         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
11804         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
11805         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
11806         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
11807         (pass_phi_only_cprop::execute): Likewise.
11808         (make_pass_phi_only_cprop): Likewise.
11809         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
11810         uses of file scoped statics by passing the required objects
11811         as parameters wherever needed.
11813 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
11814             David Edelsohn  <dje.gcc@gmail.com>
11816         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
11817         EH_FRAME_THROUGH_COLLECT2.
11818         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
11819         DW_EH_PE_datarel.
11820         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
11821         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
11822         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
11823         * except.c (switch_to_exception_section): Use a read-only section
11824         even if EH_FRAME_SECTION_NAME is undefined.
11825         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
11826         * collect2.c (write_c_file_stat): Provide dbase on AIX.
11827         (scan_prog_file): Don't export __dso_handle nor
11828         __gcc_unwind_dbase.
11829         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11830         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11831         (ASM_OUTPUT_DWARF_PCREL): Define.
11832         (ASM_OUTPUT_DWARF_DATAREL): Define.
11833         (EH_FRAME_THROUGH_COLLECT2): Define.
11834         (EH_FRAME_IN_DATA_SECTION): Delete.
11835         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
11836         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
11837         Declare.
11838         (rs6000_asm_output_dwarf_datarel): Declare.
11839         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
11840         (rs6000_aix_asm_output_dwarf_datarel): New.
11841         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
11842         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
11843         (EH_FRAME_THROUGH_COLLECT2): Define.
11844         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
11845         (EH_FRAME_THROUGH_COLLECT2): Define.
11846         (EH_TABLES_CAN_BE_READ_ONLY): Define.
11847         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
11848         (EH_FRAME_THROUGH_COLLECT2): New.
11849         (ASM_OUTPUT_DWARF_DATAREL): New.
11850         * doc/tm.texi: Regenerate.
11852 2015-09-18  Richard Biener  <rguenther@suse.de>
11854         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
11855         we're in early phase.
11856         (schedule_generic_params_dies_gen): Likewise.
11857         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
11858         work as possible, retaining unhandled cases.
11859         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
11860         clear out generic_type_instances at the end.
11861         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
11862         (dwarf2out_early_finish): ... here.  Do most of
11863         gen_remaining_tmpl_value_param_die_attribute here.
11865 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
11867         PR tree-optimization/67283
11868         * tree-sra.c (type_consists_of_records_p): Rename to...
11869         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11870         (completely_scalarize_record): Rename to...
11871         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11872         (scalarize_elem): New.
11873         (analyze_all_variable_accesses): Follow renamings.
11875 2015-09-18  Richard Biener  <rguenther@suse.de>
11877         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
11878         in early-dwarf.
11880 2015-09-18  Richard Biener  <rguenther@suse.de>
11882         PR tree-optimization/66142
11883         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
11884         treat MEM[&x] and x the same.
11885         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
11886         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
11887         when we simplified sth.
11888         (vn_reference_maybe_forwprop_address): Likewise.
11889         (valueize_refs_1): When we simplified through
11890         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
11891         set valueized_anything to true.
11892         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
11893         one ref kills the other instead of just a offset-based test.
11894         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
11895         for the operand_equal_p test to compare bases and also compare
11896         sizes.
11898 2015-09-17  Christian Bruel  <christian.bruel@st.com>
11900         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
11902 2015-09-17  Richard Henderson  <rth@redhat.com>
11904         PR libstdc++/65913
11905         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
11906         pointers that encode the alignment of the object.
11908 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11910         PR rtl-optimization/66790
11911         * df-problems.c (LIVE): Amend documentation.
11913 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
11915         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
11916         and optabs-tree.o.
11917         (GTFILES): Replace optabs.c with optabs-libfunc.c.
11918         * genopinit.c (main): Add an include guard to insn-opinit.h.
11919         Protect the rtx_code parts with NUM_RTX_CODE.
11920         * optabs.h: Split parts out to...
11921         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
11922         * optabs.c: Split parts out to...
11923         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
11924         * cilk-common.c: Include optabs-query.h rather than optabs.h.
11925         * fold-const.c: Likewise.
11926         * target-globals.c: Likewise.
11927         * tree-if-conv.c: Likewise.
11928         * tree-ssa-forwprop.c: Likewise.
11929         * tree-ssa-loop-prefetch.c: Likewise.
11930         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
11931         Remove unncessary include files.
11932         * tree-ssa-phiopt.c: Likewise.
11933         * tree-ssa-reassoc.c: Likewise.
11934         * tree-switch-conversion.c: Likewise.
11935         * tree-vect-data-refs.c: Likewise.
11936         * tree-vect-generic.c: Likewise.
11937         * tree-vect-loop.c: Likewise.
11938         * tree-vect-patterns.c: Likewise.
11939         * tree-vect-slp.c: Likewise.
11940         * tree-vect-stmts.c: Likewise.
11941         * tree-vrp.c: Likewise.
11942         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
11943         rather than optabs.h.
11944         * expr.c: Include optabs-tree.h.
11945         * function.c: Likewise.
11947 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
11949         PR middle-end/65958
11950         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
11951         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
11952         * config/arm/arm.c: Include common/common-target.h.
11953         (use_return_insn): Return 0 if the static chain register was saved
11954         above a non-APCS frame.
11955         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
11956         (struct scratch_reg): New.
11957         (get_scratch_register_on_entry): New function.
11958         (release_scratch_register_on_entry): Likewise.
11959         (arm_emit_probe_stack_range): Likewise.
11960         (output_probe_stack_range): Likewise.
11961         (arm_expand_prologue): Factor out code dealing with the IP register
11962         for nested function and adjust it for stack checking.
11963         Invoke arm_emit_probe_stack_range if static builtin stack checking
11964         is enabled.
11965         (thumb1_expand_prologue): Sorry out if static builtin stack checking
11966         is enabled.
11967         (arm_expand_epilogue): Add the saved static chain register, if any, to
11968         the amount of pre-pushed registers to pop.
11969         (arm_frame_pointer_required): Return true if static stack checking is
11970         enabled and we want to catch the exception with the EABI unwinder.
11971         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
11972         (UNSPEC_PROBE_STACK_RANGE): Likewise.
11973         * config/arm/arm.md (probe_stack): New insn.
11974         (probe_stack_range): Likewise.
11976 2015-09-17  Richard Biener  <rguenther@suse.de>
11978         * genmatch.c (parser::parse_expr): Improve error message
11979         for mis-placed flags.
11981 2015-09-17  Richard Biener  <rguenther@suse.de>
11983         * passes.c (rest_of_decl_compilation): Always call early_global_decl
11984         debug hook when we created a varpool node.
11985         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
11986         dwarf2out_early_global_decl, when not just add location or
11987         value attributes to existing DIEs.
11989 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
11991         * config/aarch64/aarch64.md (copysigndf3): New.
11992         (copysignsf3): Likewise.
11994 2015-09-17  David S. Miller  <davem@davemloft.net>
11996         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
11997         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
11998         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
11999         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12000         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12001         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12002         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12003         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12004         provide when flag_pic.
12006 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12008         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
12009         object_allocator change.
12011 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12013         PR tree-optimization/66388
12014         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
12015         (dump_iv): Dump no_overflow information.
12016         (alloc_iv): Initialize new field for struct iv.
12017         (mark_bivs): Count number of no_overflow bivs.
12018         (find_deriving_biv_for_expr, record_biv_for_address_use): New
12019         functions.
12020         (idx_find_step): Call new functions above.
12021         (add_candidate_1, add_candidate): New paramter.
12022         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
12023         (get_computation_aff): Simplify convertion of cand for BIV.
12024         (get_computation_cost_at): Step cand's base if necessary.
12026 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
12028         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
12029         parameter.
12030         (tree_simplify_using_condition): Ditto.
12031         (simplify_using_initial_conditions): Ditto.
12032         (loop_exits_before_overflow): Pass new argument to function
12033         simplify_using_initial_conditions.  Remove case for type conversions
12034         simplification.
12035         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
12036         parameter.
12037         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
12038         in iv base using loop initial conditions.
12040 2015-09-16  Jeff Law  <law@redhat.com>
12042         PR tree-optimization/47679
12043         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
12044         (free_all_edge_infos): Use it.
12045         (allocate_edge_info): Free preexisting edge info data.
12046         (pass_dominator::execute): Set up initial edge info structures.
12047         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
12048         thread_across_edge.
12049         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
12050         If non-null, then push/pop markers appropriately.
12051         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
12052         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
12053         thread-across_edge.
12055 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
12057         * config/ft32/ft32.c: Fix the memory address space predicate.
12059 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12061         PR target/67573
12062         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
12063         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12065 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12067         * toplev.h (check_global_declaration): Remove declaration.
12068         * toplev.c (check_global_declaration): Move to ...
12069         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
12070         (analyze_functions): Update call.
12072 2015-09-16  David S. Miller  <davem@davemloft.net>
12074         * lra-constraints.c (simplify_operand_subreg): Do not assume that
12075         lowpart of a SUBREG has offset zero.
12077 2015-09-16  Jeff Law  <law@redhat.com>
12079         PR tree-optimization/47679
12080         * tree-ssa-dom.c (enum expr_kind): Moved from here to
12081         tree-ssa-scopedtables.h.
12082         (struct hashable_expr, class expr_hash_elt): Likewise.
12083         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
12084         Move associated methods into tree-ssa-scopedtables.c.
12085         (avail_expr_hash, initialize_expr_from_cond): Similarly.
12086         (hashable_expr_equal_p, add_expr_commutative): Likewise.
12087         (add_hashable_expr): Likewise.
12088         (record_cond): Delete element directly.
12089         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
12090         private copy ctor and assignment operator methods.
12091         (expr_elt_hasher): Inline trivial methods.
12092         (initialize_expr_from_cond): Prototype.
12093         * tree-ssa-scopedtables.c: Add necessary includes, functions and
12094         methods that were previously in tree-ssa-dom.c.  Improve various
12095         comments.
12097 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
12099         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
12101 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
12103         PR bootstrap/67587
12104         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12105         fixup_partitions.
12107 2015-09-16  Richard Biener  <rguenther@suse.de>
12109         PR middle-end/67253
12110         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
12111         location of possibly shared trees.
12113 2015-09-16  Richard Biener  <rguenther@suse.de>
12115         PR middle-end/67271
12116         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
12118 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
12120         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
12121         offset and size computations instead of HOST_WIDE_INT.
12123 2015-09-16  Richard Biener  <rguenther@suse.de>
12125         PR middle-end/67442
12126         * fold-const.c (extract_muldiv_1): Properly extend multiplication
12127         result before builting a tree via wide_int_to_tree.
12129 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
12131         * Makefile.in: Add memory-block.cc
12132         (pool_allocator::initialize): Use fixed block size.
12133         (pool_allocator::release): Use memory_block_pool.
12134         (pool_allocator::allocate): Likewise.
12135         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
12136         object pools.
12137         * cfg.c (initialize_original_copy_tables): Likewise.
12138         * cselib.c (elt_list_pool, elt_loc_list_pool,
12139         cselib_val_pool): Likewise.
12140         * df-problems.c (df_chain_alloc): Likewise.
12141         * df-scan.c (df_scan_alloc): Likewise.
12142         * dse.c (cse_store_info_pool, rtx_store_info_pool,
12143         read_info_type_pool, insn_info_type_pool, bb_info_pool,
12144         group_info_pool, deferred_change_pool): Likewise.
12145         * et-forest.c (et_nodes, et_occurrences): Likewise.
12146         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
12147         ipcp_agg_lattice_pool): Likewise.
12148         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
12149         * ipa-profile.c (histogram_pool): Likewise.
12150         * ipa-prop.c (ipa_refdesc_pool): Likewise.
12151         * ira-build.c (live_range_pool, allocno_pool, object_pool,
12152         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
12153         * ira-color.c (update_cost_record_pool): Likewise.
12154         * lra-lives.c (lra_live_range_pool): Likewise.
12155         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
12156         * memory-block.cc: New file.
12157         * memory-block.h: New file.
12158         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
12159         * sched-deps.c (sched_deps_init): Likewise.
12160         * sel-sched-ir.c (sched_lists_pool): Likewise.
12161         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
12162         * tree-sra.c (access_pool): Likewise.
12163         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
12164         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
12165         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
12166         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12167         * tree-ssa-strlen.c (strinfo_pool): Likewise.
12168         * tree-ssa-structalias.c (variable_info_pool): Likewise.
12169         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
12170         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
12172 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12174         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
12175         definition.
12176         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
12177         call0 ABI.
12179 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
12181         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
12182         to pass TLS call argument, according to current ABI.
12183         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
12184         callx0 for TLS call, according to current ABI.
12186 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12188         * tree-eh.c (lower_try_finally_dup_block): Clear location information
12189         on stack restore statements.
12190         (decide_copy_try_finally): Do not consider a stack restore statement as
12191         coming from sources.
12193 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
12195         * config/alpha/alpha.c (alpha_expand_block_clear): Use
12196         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
12198 2015-09-15  Jeff Law  <law@redhat.com>
12200         PR tree-optimization/47679
12201         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
12202         methods and private members.
12203         (avail_exprs_stack): Similarly.  Change type of global
12204         from a pair of expr_hash_elt_t to the new class.
12205         (expr_elt_hasher::hash): Corresponding changes.
12206         (expr_elt_hasher::equal): Similarly.
12207         (avail_expr_hash): Similarly.
12208         (pass_dominator::execute): Similarly.
12209         (dom_opt_dom_walker::thread_across_edge): Similarly.
12210         (record_cond): Similarly.
12211         (dom_opt_dom_walker::before_dom_children): Similarly.
12212         (dom_opt_dom_walker::after_dom_children): Similarly.
12213         (lookup_avail_expr): Likewise.
12214         (initialize_hash_element): Now a expr_hash_elt constructor.
12215         (initialize_hash_element_from_expr): Similarly.
12216         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
12217         (free_expr_hash_elt): Call dtor for the element.
12218         (remove_local_expressions_from_table): Now the "pop_to_marker"
12219         method in the available_exprs_stack class.
12220         (avail_expr_stack::record_expr): Method factored out.
12221         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
12222         Fix formatting.
12223         (hashable_expr_equal_p): Fix formatting.
12225 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
12227         * input.h (location_get_source_line): Drop "expanded_location"
12228         param in favor of a file and line number.
12229         * input.c (location_get_source_line): Likewise.
12230         (dump_location_info): Update for change in signature of
12231         location_get_source_line.
12232         * diagnostic.c (diagnostic_print_caret_line): Likewise.
12234 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12236         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
12237         Bump to 4KB for SJLJ exceptions.
12238         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
12239         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
12240         * doc/tm.texi: Regenerate.
12242 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12244         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
12245         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
12246         Update prototype.
12248 2015-09-15  Richard Biener  <rguenther@suse.de>
12250         PR tree-optimization/67470
12251         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
12252         structure for PHI hoisting by inserting a forwarder block
12253         if appropriate.
12255 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12257         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
12258         (arm_option_print): New function.
12260 2015-09-15  Christian Bruel  <christian.bruel@st.com>
12262         PR target/52144
12263         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
12264         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
12265         Remove flags parameter.
12266         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
12267         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
12268         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
12269         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
12270         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
12271         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
12272         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
12273         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
12275 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12277         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
12279         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
12280         AARCH64_VALID_SIMD_DREG_MODE.
12282 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12284         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
12285         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
12286         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
12287         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
12288         aarch64_ld4_lane<mode>): Combine together, making...
12289         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12290         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12291         aarch64_st4_lane<mode>): Combine together, making...
12292         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
12293         * config/aarch64/iterators.md (nregs): Add comment.
12295 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12297         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
12298         Change operand mode from <V_TWO_ELEM> to BLK.
12299         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
12300         (aarch64_vec_store_lanesoi_lane<mode): Likewise
12301         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12302         (aarch64_ld2_lane<mode>): Likewise.
12303         (aarch64_st2_lane<VQ:mode>): Likewise.
12304         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
12306 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12308         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
12309         Change operand mode from <V_FOUR_ELEM> to BLK.
12310         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
12311         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
12312         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12313         (aarch64_ld4_lane<mode>): Likewise.
12314         (aarch64_st4_lane<mode>): Likewise.
12315         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
12317 2015-09-15  Richard Biener  <rguenther@suse.de>
12319         PR middle-end/67563
12320         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
12321         transfer EH info from old to new stmt.
12322         (replace_call_with_value): Likewise.
12323         (replace_call_with_call_and_fold): Likewise.
12324         (gimple_fold_builtin_memory_op): Likewise.
12325         (gimple_fold_builtin_memset): Likewise.
12326         (gimple_fold_builtin_stpcpy): Likewise.
12327         (gimple_fold_call): Likewise.
12329 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12331         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
12332         comment.
12333         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
12334         (aarch64_simd_intEI_type_node): Likewise.
12335         (aarch64_simd_builtin_std_type): Remove EImode case.
12336         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
12337         * config/aarch64/aarch64-modes.def: Remove EImode.
12339 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12341         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
12342         Change operand mode from <V_THREE_ELEM> to BLK.
12343         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
12344         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
12345         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
12346         (aarch64_ld3_lane<mode>): Likewise.
12347         (aarch64_st3_lane<mode>): Likewise.
12348         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
12350 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12352         * config/aarch64/aarch64-simd.md
12353         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
12354         Change all TImode operands to BLKmode.
12355         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
12356         Change all EImode operands to BLKmode.
12357         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
12358         Change all OImode operands to BLKmode.
12360         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
12361         and call set_mem_size.
12362         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
12364         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
12366 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
12368         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
12369         to...
12370         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
12372         (vec_store_lanesci_lane<mode>): Rename to...
12373         (aarch64_vec_store_lanesci_lane<mode>): ...this.
12375         (vec_store_lanesxi_lane<mode>): Rename to...
12376         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
12378         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
12379         aarch64_st4_lane<mode>): Follow renaming.
12381 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12383         * config/s390/s390.c (s390_const_operand_ok): Add missing
12384         brackets.
12386 2015-09-15  Richard Biener  <rguenther@suse.de>
12388         PR lto/67568
12389         * lto-streamer.h (lto_location_cache::current_sysp): Properly
12390         initialize.
12391         * lto-streamer-out.c (clear_line_info): Likewise.
12393 2015-09-15  Richard Biener  <rguenther@suse.de>
12395         * doc/match-and-simplify.texi: Fix wording.
12397 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
12399         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
12400         unnecessary type conversion in op1.
12402 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
12404         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
12405         (dup_block_and_redirect): Delete function.
12406         (can_dup_for_shrink_wrapping): New function.
12407         (fix_fake_fallthrough_edge): New function.
12408         (try_shrink_wrapping): Rewrite function.
12409         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
12411 2015-09-14  Rich Felker  <dalias@libc.org>
12413         * configure.ac: Change target pattern for sh TLS support
12414         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
12415         * configure: Regenerate.
12417 2015-09-14  Jeff Law  <law@redhat.com>
12419         PR tree-optimization/47679
12420         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
12421         type rather than void *.
12423 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12425         PR fortran/67460
12426         * diagnostic.c (diagnostic_initialize): Do not set
12427         some_warnings_are_errors.
12428         (diagnostic_finish): Use DK_WERROR count instead.
12429         (diagnostic_report_diagnostic): Do not set
12430         some_warnings_are_errors.
12431         * diagnostic.h (struct diagnostic_context): Remove
12432         some_warnings_are_errors.
12434 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
12436         * config/sparc/predicates.md (const_all_ones_operand): Use
12437         CONSTM1_RTX to simplify definition.
12439 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
12441         PR target/67061
12442         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
12443         Handle call insns.
12445 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
12447         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
12448         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
12449         OPT_fshow_column to handled saved option cases.
12450         (append_compiler_options): Do not skip the above added options.
12452 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12454         PR target/63304
12455         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
12456         nopcrelative_literal_loads.
12457         (aarch64_classify_address): Likewise.
12458         (aarch64_constant_pool_reload_icode): Define.
12459         (aarch64_secondary_reload): Handle secondary reloads for
12460         literal pools.
12461         (aarch64_override_options): Handle nopcrelative_literal_loads.
12462         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
12463         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
12464         Define.
12465         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
12466         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
12467         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
12468         predicate.
12469         * doc/invoke.texi (mpc-relative-literal-loads): Document.
12471 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
12473         PR middle-end/67401
12474         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
12475         sync_compare_and_swap_optab libcall to target_oval.
12477 2015-09-14  Marek Polacek  <polacek@redhat.com>
12479         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
12480         value.
12481         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
12483 2015-09-11  Mark Wielaard  <mjw@redhat.com>
12485         PR c/28901
12486         * toplev.c (check_global_declaration): Check and use
12487         warn_unused_const_variable.
12488         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
12489         (-Wunused-variable): Remove non-constant. For C implies
12490         -Wunused-const-variable.
12491         (-Wunused-const-variable): New.
12493 2015-09-14  Richard Biener  <rguenther@suse.de>
12495         * doc/match-and-simplify.texi: Update for changed syntax
12496         of inner ifs and the new switch expression.
12498 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
12500         * config/i386/haswell.md: New file describing Haswell pipeline.
12501         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
12502         haswell-like processors.
12503         (ix86_reassociation_width): Increase reassociation width for 64-bit
12504         Haswell processor family.
12505         * config/i386/i386.md: Introduce haswell cpu and include new md file.
12507 2015-09-14  Richard Biener  <rguenther@suse.de>
12509         * doc/match-and-simplify.texi: Fixup some formatting issues
12510         and document the 's' flag.
12512 2015-09-13  Olivier Hainque  <hainque@adacore.com>
12513             Eric Botcazou  <ebotcazou@adacore.com>
12515         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
12516         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
12517         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
12518         (TARGET_CPU_gr5): Likewise.
12519         (TARGET_CPU_gr6): Likewise.
12520         (MULTILIB_DEFAULTS): Likewise.
12521         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
12522         for mcpu=gr5 and mcpu=gr6.
12523         (MULTILIB_DIRNAMES): Adjust accordingly.
12525 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12527         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
12528         (mem_ref_p): Likewise.
12529         (outermost_indep_loop): Adjust.
12530         (mem_ref_in_stmt): Likewise.
12531         (determine_max_movement): Likewise.
12532         (mem_ref_alloc): Likewise.
12533         (record_mem_ref_loc): Likewise.
12534         (set_ref_stored_in_loop): Likewise.
12535         (mark_ref_stored): Likewise.
12536         (gather_mem_refs_stmt): Likewise.
12537         (mem_refs_may_alias_p): Likewise.
12538         (for_all_locs_in_loop): Likewise.
12539         (struct rewrite_mem_ref_loc): Likewise.
12540         (rewrite_mem_refs): Likewise.
12541         (struct first_mem_ref_loc_1): Likewise.
12542         (first_mem_ref_loc): Likewise.
12543         (struct sm_set_flag_if_changed): Likewise.
12544         (execute_sm_if_changed_flag_set): Likewise.
12545         (execute_sm): Likewise.
12546         (hoist_memory_references):
12547         (struct ref_always_accessed): Likewise.
12548         (ref_always_accessed_p): Likewise.
12549         (refs_independent_p): Likewise.
12550         (record_dep_loop): Likewise.
12551         (ref_indep_loop_p_1): Likewise.
12552         (ref_indep_loop_p_2): Likewise.
12553         (ref_indep_loop_p): Likewise.
12554         (can_sm_ref_p): Likewise.
12555         (find_refs_for_sm): Likewise.
12556         (tree_ssa_lim_finalize): Likewise.
12558 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12560         * dwarf2out.c (dw_attr_ref): Remove typedef.
12561         (dw_line_info_ref): Likewise.
12562         (pubname_ref): Likewise.
12563         (dw_ranges_ref): Likewise.
12564         (dw_ranges_by_label_ref): Likewise.
12565         (comdat_type_node_ref): Likewise.
12566         (get_AT): Adjust.
12567         (get_AT_low_pc): Likewise.
12568         (get_AT_hi_pc): Likewise.
12569         (get_AT_string): Likewise.
12570         (get_AT_flag): Likewise.
12571         (get_AT_unsigned): Likewise.
12572         (get_AT_ref): Likewise.
12573         (get_AT_file): Likewise.
12574         (remove_AT): Likewise.
12575         (print_die): Likewise.
12576         (check_die): Likewise.
12577         (die_checksum): Likewise.
12578         (attr_checksum_ordered): Likewise.
12579         (struct checksum_attributes): Likewise.
12580         (collect_checksum_attributes): Likewise.
12581         (die_checksum_ordered): Likewise.
12582         (same_die_p): Likewise.
12583         (is_declaration_die): Likewise.
12584         (clone_die): Likewise.
12585         (clone_as_declaration): Likewise.
12586         (copy_declaration_context): Likewise.
12587         (break_out_comdat_types): Likewise.
12588         (copy_decls_walk): Likewise.
12589         (output_location_lists): Likewise.
12590         (external_ref_hasher::hash): Likewise.
12591         (optimize_external_refs_1): Likewise.
12592         (build_abbrev_table): Likewise.
12593         (size_of_die): Likewise.
12594         (unmark_all_dies): Likewise.
12595         (size_of_pubnames): Likewise.
12596         (output_die_abbrevs): Likewise.
12597         (output_die): Likewise.
12598         (output_pubnames): Likewise.
12599         (add_ranges_num): Likewise.
12600         (add_ranges_by_labels): Likewise.
12601         (add_high_low_attributes): Likewise.
12602         (gen_producer_string): Likewise.
12603         (dwarf2out_set_name): Likewise.
12604         (new_line_info_table): Likewise.
12605         (prune_unused_types_walk_attribs): Likewise.
12606         (prune_unused_types_update_strings): Likewise.
12607         (prune_unused_types): Likewise.
12608         (resolve_addr): Likewise.
12609         (optimize_location_lists_1): Likewise.
12610         (index_location_lists): Likewise.
12611         (dwarf2out_finish): Likewise.
12613 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12615         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
12617 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12619         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
12620         (dump_asserts_for): Adjust.
12621         (register_new_assert_for): Likewise.
12622         (process_assert_insertions): Likewise.
12623         (insert_range_assertions): Likewise.
12625 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12627         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
12628         and remove typedef.
12629         (new_temp_expr_table): Adjust.
12630         (free_temp_expr_table): Likewise.
12631         (version_to_be_replaced_p): Likewise.
12632         (make_dependent_on_partition): Likewise.
12633         (add_to_partition_kill_list): Likewise.
12634         (remove_from_partition_kill_list): Likewise.
12635         (add_dependence): Likewise.
12636         (finished_with_expr): Likewise.
12637         (process_replaceable): Likewise.
12638         (kill_expr): Likewise.
12639         (kill_virtual_exprs): Likewise.
12640         (mark_replaceable): Likewise.
12641         (find_replaceable_in_bb): Likewise.
12642         (find_replaceable_exprs): Likewise.
12643         (debug_ter): Likewise.
12645 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12647         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
12648         (struct btr_user): Rename from btr_user_s.
12649         (struct btr_def): Rename from btr_def_s.
12650         (find_btr_def_group): Adjust.
12651         (add_btr_def): Likewise.
12652         (new_btr_user): Likewise.
12653         (note_other_use_this_block): Likewise.
12654         (compute_defs_uses_and_gen): Likewise.
12655         (link_btr_uses): Likewise.
12656         (build_btr_def_use_webs): Likewise.
12657         (block_at_edge_of_live_range_p): Likewise.
12658         (btr_def_live_range): Likewise.
12659         (combine_btr_defs): Likewise.
12660         (move_btr_def): Likewise.
12661         (migrate_btr_def): Likewise.
12662         (migrate_btr_defs): Likewise.
12664 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12666         * var-tracking.c (shared_hash_def): Rename to shared_hash.
12667         (shared_hash): Remove typedef.
12668         (struct dataflow_set): Adjust.
12669         (shared_hash_unshare): Likewise.
12670         (dataflow_set_merge): Likewise.
12671         (vt_initialize): Likewise.
12672         (vt_finalize): Likewise.
12674 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12676         * var-tracking.c (struct location_chain): Rename from
12677         location_chain_def.
12678         (struct variable_part): Adjust.
12679         (variable_htab_free): Likewise.
12680         (unshare_variable): Likewise.
12681         (get_init_value): Likewise.
12682         (get_addr_from_local_cache): Likewise.
12683         (drop_overlapping_mem_locs): Likewise.
12684         (val_reset): Likewise.
12685         (struct variable_union_info): Likewise.
12686         (variable_union): Likewise.
12687         (find_loc_in_1pdv): Likewise.
12688         (insert_into_intersection): Likewise.
12689         (intersect_loc_chains): Likewise.
12690         (canonicalize_loc_order_check): Likewise.
12691         (canonicalize_values_mark): Likewise.
12692         (canonicalize_values_star): Likewise.
12693         (canonicalize_vars_star): Likewise.
12694         (variable_merge_over_cur): Likewise.
12695         (remove_duplicate_values): Likewise.
12696         (variable_post_merge_new_vals): Likewise.
12697         (variable_post_merge_perm_vals): Likewise.
12698         (find_mem_expr_in_1pdv): Likewise.
12699         (dataflow_set_preserve_mem_locs): Likewise.
12700         (dataflow_set_remove_mem_locs): Likewise.
12701         (variable_part_different_p): Likewise.
12702         (onepart_variable_different_p): Likewise.
12703         (find_src_set_src): Likewise.
12704         (dump_var): Likewise.
12705         (set_slot_part): Likewise.
12706         (clobber_slot_part): Likewise.
12707         (delete_slot_part): Likewise.
12708         (vt_expand_var_loc_chain): Likewise.
12709         (emit_note_insn_var_location): Likewise.
12710         (vt_finalize): Likewise.
12712 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12714         * dse.c (store_info_t): Remove typedef.
12715         (group_info_t): Likewise.
12716         (const_group_info_t): Likewise.
12717         (deferred_change_t): Likewise.
12718         (get_group_info): Adjust.
12719         (free_store_info): Likewise.
12720         (canon_address): Likewise.
12721         (clear_rhs_from_active_local_stores): Likewise.
12722         (record_store): Likewise.
12723         (replace_read): Likewise.
12724         (check_mem_read_rtx): Likewise.
12725         (scan_insn): Likewise.
12726         (remove_useless_values): Likewise.
12727         (dse_step1): Likewise.
12728         (dse_step2_init): Likewise.
12729         (dse_step2_nospill): Likewise.
12730         (scan_stores_nospill): Likewise.
12731         (scan_reads_nospill): Likewise.
12732         (dse_step3_exit_block_scan): Likewise.
12733         (dse_step3): Likewise.
12734         (dse_step5_nospill): Likewise.
12735         (dse_step6): Likewise.
12737 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12739         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
12740         (alias_set_entry): Remove typedef.
12741         (alias_set_subset_of): Adjust.
12742         (alias_sets_conflict_p): Likewise.
12743         (init_alias_set_entry): Likewise.
12744         (get_alias_set): Likewise.
12745         (new_alias_set): Likewise.
12746         (record_alias_subset): Likewise.
12748 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
12750         * doc/install.texi (Downloading the source): Mark up
12751         contrib/download_prerequisites properly and drop leading "./".
12753 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12755         * config/arc/arc.h: Remove define of STRUCT_VALUE.
12756         * config/lm32/lm32.h: Likewise.
12757         * config/mep/mep.h: Likewise.
12758         * config/visium/visium.h: Likewise.
12759         * system.h: Poison STRUCT_VALUE macro.
12761 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
12763         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
12764         CONSTANT_P operands.
12766 2015-09-11  David S. Miller  <davem@davemloft.net>
12768         * config/sparc/constraints.md: Make "U" constraint a real register
12769         constraint.
12770         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12771         (D_MODES, DF_MODES): Add missing cast.
12772         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12773         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12774         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12775         cost to 8.
12776         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12777         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12778         provide these insn when flag_pic.
12780 2015-09-11  Jeff Law  <law@redhat.com>
12782         PR tree-optimization/47679
12783         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
12784         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
12785         member with m_.  Update inline member functions as necessary.  Add
12786         toplevel comment.
12787         * tree-ssa-scopedtables.c: Update const_and_copies's member
12788         functions to use m_ prefix to access the stack.
12790 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12792         * graphite-optimize-isl.c (disable_tiling): Remove.
12793         (get_schedule_for_band): Do not use disable_tiling.
12794         (get_prevector_map): Delete function.
12795         (enable_polly_vector): Remove.
12796         (get_schedule_for_band_list): Remove dead code.
12798 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
12800         * graphite-optimize-isl.c (get_tile_map): Refactor.
12801         (get_schedule_for_band): Same.
12802         (getScheduleForBand): Same.
12803         (get_prevector_map): Same.
12804         (get_schedule_for_band_list): Same.
12805         (get_schedule_map): Same.
12806         (get_single_map): Same.
12807         (apply_schedule_map_to_scop): Same.
12808         (optimize_isl): Same.
12810 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12812         PR target/63304
12813         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
12814         (movtf): Delete.
12815         * config/aarch64/iterators.md (GPF_TF_F16): New.
12816         (GPF_F16): Delete.
12818 2015-09-10  Nathan Sidwell  <nathan@acm.org>
12820         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
12821         (nvptx_reorg): Adjust comments.
12823 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
12825         PR bootstrap/67363
12826         * configure.ac: Check if setenv and unsetenv are declared.
12827         * configure: Rebuild.
12828         * config.in: Rebuild.
12829         * system.h: Declare setenv and unsetenv if not declared.
12831 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12833         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
12834         commentary to simplify permute mask adjustment equation.
12835         (special_handling_values): Add SH_VPERM.
12836         (const_load_sequence_p): New function.
12837         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
12838         the mask loaded from the constant pool.
12839         (adjust_vperm): New function.
12840         (handle_special_swappables): Call adjust_vperm.
12841         (dump_swap_insn_table): Handle SH_VPERM.
12843 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12845         * shrink-wrap.c (requires_stack_frame_p): Remove static.
12846         * shrink-wrap.h (requires_stack_frame_p): Put back.
12848 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
12850         * reload1.c (elimination_costs_in_insn): Locally turn
12851         -Wmaybe-uninitialized into a warning.
12853 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
12855         * shrink-wrap.c (requires_stack_frame_p): Make static.
12856         (prepare_shrink_wrap): Likewise.
12857         (dup_block_and_redirect): Likewise.
12858         * shrink-wrap.h: Remove declarations of those functions.
12860 2015-09-10  Mark Wielaard  <mjw@redhat.com>
12862         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
12864 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
12866         PR target/67506
12867         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
12868         missing simplify_gen_subreg.
12870 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12872         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
12873         the vector element is bigger than 64 bit.
12875 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12877         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
12878         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
12880 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12882         * config/s390/s390.c: Add V1TImode to constant pool modes.
12884 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12886         PR target/67439
12887         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
12888         predicate.  Set predicable_short_it attr to "no".
12890 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
12892         PR rtl-optimization/67421
12893         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
12894         left wide shift tranformation.
12896 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
12898         * common/config/arc/arc-common.c: Remove references to A5.
12899         * config/arc/arc-opts.h: Likewise.
12900         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
12901         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
12902         * config/arc/t-arc-newlib: Likewise.
12904 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
12906         * config/arc/arc.md (length): Fix attribute length for conditional
12907         executed instructions with long immediate.
12909 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12911         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
12912         type for second alternative.
12914 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
12916         * doc/invoke.texi (Downloading GCC): Mention
12917         contrib/download_prerequisites script.
12919 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
12921         PR c++/67523
12922         * gimplify.c (gimplify_omp_for): If inner stmt is not found
12923         for combined loop, assert seen_error () and return GS_ERROR.
12925         PR middle-end/67521
12926         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
12927         if decl is already in outer->variables.
12929         PR middle-end/67517
12930         * gimplify.c (gimplify_scan_omp_clauses): Instead of
12931         asserting that decl is not specified in octx->variables,
12932         break out of the loop if it is.
12934         PR c++/67514
12935         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
12936         iterator is not explicitly determined, but is defined inside
12937         of the combined workshare region, handle it like if it has
12938         DECL_EXPR in OMP_FOR_PRE_BODY.
12940 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12942         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
12943         (*cmp<mode>): Add assembler spacing.
12944         (setcc_int<mode>, set_cc_float<mode>): Likewise.
12945         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
12946         level.
12947         (write_func_decl_from_insn): Refactor argument loops & comma emission.
12948         (nvptx_expand_call): Likewise.
12949         (nvptx_output_call_insn): Likewise.
12950         (nvptx_reorg_subreg): Add spacing.
12952 2015-09-09  Marek Polacek  <polacek@redhat.com>
12954         PR middle-end/67512
12955         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
12956         for comparisons.
12958 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
12960         PR c++/53184
12961         * doc/invoke.texi ([Wsubobject-linkage]): Document.
12963 2015-09-09  Tom de Vries  <tom@codesourcery.com>
12965         * params-list.h: Add missing copyright notice.
12967 2015-09-09  Nathan Sidwell  <nathan@acm.org>
12969         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
12970         sel_truesi, not andsi.
12972 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12974         * config/arm/arm.md (*subsi3_compare0): Rename to...
12975         (subsi3_compare0): ... This.
12976         (modsi3): New define_expand.
12977         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
12978         when operand is power of 2.
12980 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12982         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
12983         (*neg<mode>2_compare0): Rename to...
12984         (neg<mode>2_compare0): ... This.
12985         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
12986         Move check for speed inside the if-then-elses.  Reflect
12987         CSNEG sequence in MOD by power of 2 case.
12989 2015-09-09  Alan Modra  <amodra@gmail.com>
12991         PR target/67378
12992         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
12993         reload replacement for PRE_MODIFY address reg.
12995 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
12997         PR tree-optimization/53852
12998         * config.in: Regenerate.
12999         * configure: Regenerate.
13000         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
13001         * graphite-optimize-isl.c (optimize_isl): Stop computation when
13002         PARAM_MAX_ISL_OPERATIONS is reached.
13003         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
13004         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
13005         result equal to isl_stat_ok as the status now can be isl_error_quota.
13006         (subtract_commutative_associative_deps): Same.
13007         (compute_deps): Same.
13009 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
13010             Sebastian Pop  <s.pop@samsung.com>
13012         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13013         Return the parameter if it was saved in corresponding
13014         parameter_rename_map of the region.
13015         (copy_def): Copy def from sese region to the newly created region.
13016         (copy_internal_parameters): Copy all the internal parameters defined
13017         within a region to the newly created region.
13018         (graphite_regenerate_ast_isl): Copy parameters to the new region before
13019         translating isl to gimple.
13020         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
13021         the loop-nest does not have any data-references.
13022         (build_graphite_scops): Create a scop only when there is at least one
13023         loop inside it.
13024         (contains_only_close_phi_nodes): Deleted.
13025         (print_graphite_scop_statistics): Deleted
13026         (print_graphite_statistics): Deleted
13027         (limit_scops): Deleted.
13028         (build_scops): Removed call to limit_scops.
13029         * sese.c (new_sese): Construct.
13030         (free_sese): Destruct.
13031         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
13032         added.
13033         (set_rename): Pass sese region so that parameters inside the region can
13034         be added to its parameter_rename_map.
13035         (rename_uses): Pass sese region.
13036         (graphite_copy_stmts_from_block): Do not copy parameters that have been
13037         generated in the header of the scop. For each SSA_NAME in the
13038         parameter_rename_map rename its usage.
13039         (invariant_in_sese_p_rec): Return false if tree t is defined outside
13040         sese region.
13041         (scalar_evolution_in_region): If the tree t is invariant just return t.
13042         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
13043         struct sese to keep track of all the parameters which need renaming.
13044         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
13045         any data-refs.
13046         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
13048 2015-09-08  Tom de Vries  <tom@codesourcery.com>
13050         * Makefile.in (generated_files): Add params.list.
13051         (params.list, s-params.list): Add rule.
13052         * params.h (enum compiler_param): Include params-list.h.  Move define
13053         DEFPARAM, include params.def and undef DEFPARAM ...
13054         * params-list.h: ... here.  New file.
13056 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
13058         * pretty-print.h (printer_fn): Fix typo in comment.
13060 2015-09-07  Jeff Law  <law@redhat.com>
13062         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
13064 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13066         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
13067         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
13068         (arm_neon_fp16_hw): New.
13070 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13072         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
13073         UNITS_PER_WORD >= 4.
13075 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13077         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
13078         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
13079         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
13080         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
13081         (aarch64_float_extend_lo_v2df): Rename to...
13082         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
13084         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
13085         (float_extend_lo): Add v4sf.
13087         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
13088         * config/aarch64/iterators.md (VQ_HSF): New iterator.
13089         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
13090         (Vwide): New mode_attr.
13092 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13094         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
13095         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
13096         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
13097         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
13098         V4HF and V8HF variants to iterator.
13100         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
13102         * config/aarch64/iterators.md (VDQF_F16): New.
13103         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
13105 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13107         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
13108         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13109         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
13110         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
13111         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
13112         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13113         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
13114         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
13115         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
13116         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
13117         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
13118         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13119         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
13120         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
13121         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
13122         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
13123         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
13124         vld1q_dup_f16): New.
13126 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13128         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
13129         Reparameterize to...
13130         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
13131         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
13132         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
13134         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
13135         v8hf variant.
13136         (float_truncate_lo_): Use BUILTIN_VDF iterator.
13138         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
13140         * config/aarch64/iterators.md (VDF, Vdtype): New.
13141         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
13143 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13145         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
13146         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
13147         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
13148         Add __builtin_aarch64_simd_hf.
13149         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
13150         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
13151         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
13152         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
13153         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
13154         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
13155         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
13156         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
13157         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
13159         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
13160         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
13161         (VDC, Vdbl): Add V4HF.
13163 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13165         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
13166         V4HFmode and V8HFmode.
13167         (aarch64_split_simd_move): Add case for V8HFmode.
13168         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
13169         (aarch64_simd_builtin_std_type): Handle HFmode.
13170         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
13172         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
13173         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
13174         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
13176         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
13177         Float16x8_t.
13179         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
13180         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
13181         New typedefs.
13182         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
13183         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
13184         vst1q_lane_f16): New.
13185         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
13186         (VALLDI_F16, VALL_F16): New.
13187         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
13188         Add cases for V4HF and V8HF.
13189         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
13191 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13193         * config/arm/arm-builtins.c (VAR11, VAR12): New.
13194         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
13195         vld4_dup): Add v4hf variant.
13196         (vget_high, vget_low): Add v8hf variant.
13197         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
13198         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
13199         v4hf and v8hf variants.
13201         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
13202         (VDX): Add V4HF.
13203         (V_DOUBLE): Add case for V4HF.
13204         (VQX): Add V8HF.
13205         (V_HALF): Add case for V8HF.
13206         (VDQX): Add V4HF, V8HF.
13207         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
13208         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
13210         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
13211         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
13212         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
13213         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
13214         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
13215         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
13216         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
13217         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
13218         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
13220         (neon_vcreate, neon_vreinterpretv8qi<mode>,
13221         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13222         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
13223         Change VDX to VD_RE.
13225         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
13226         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
13227         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
13229         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
13230         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
13231         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
13232         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
13233         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
13234         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
13235         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
13236         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
13237         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
13239 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13241         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
13242         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
13243         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
13244         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
13245         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
13246         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
13247         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
13248         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
13249         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
13250         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
13251         New.
13253 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13255         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
13257         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
13259         * config/arm/arm-builtins.c (v8hf_UP): New.
13260         (arm_init_simd_builtin_types): Initialise Float16x8_t.
13262         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
13264         * config/arm/arm_neon.h (float16x8_t): New typedef.
13266 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
13268         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
13269         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
13270         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
13271         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
13272         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
13273         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
13274         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
13275         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
13276         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
13277         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
13279 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
13281         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
13282         non-alphanumeric characters in the symbol name.
13284 2015-09-07  Marek Polacek  <polacek@redhat.com>
13286         PR inline-asm/67448
13287         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
13288         a memory input.
13290 2015-09-07  Marek Polacek  <polacek@redhat.com>
13292         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
13294 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
13296         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
13297         not warn.
13299 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
13301         PR middle-end/67452
13302         * tree-ssa-live.c: Include cfgloop.h.
13303         (remove_unused_locals): Clear loop->simduid if simduid is about
13304         to be removed from cfun->local_decls.
13306 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13308         PR target/65210
13309         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
13310         attribute as well.
13312 2015-09-04  Tom de Vries  <tom@codesourcery.com>
13314         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
13316 2015-09-04  Jeff Law  <law@redhat.com>
13318         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
13319         unnecessary constructor.  It's now trivial and implemented inside...
13320         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
13321         constructor.  Add comments to various methods.  Remove unused
13322         private fields.
13323         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
13324         * tree-vrp.c (identify_jump_threads): Likewise.
13325         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
13326         indentation issues.
13327         (thread_across_edge): Similarly.
13328         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
13329         arguments in constructor call.
13331 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
13333         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
13334         temp path contains a '-'.
13336 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13337             Petr Murzin  <petr.murzin@intel.com>
13338             Kirill Yukhin  <kirill.yukhin@intel.com>
13340         * config/i386/i386-builtin-types.def
13341         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
13342         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
13343         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
13344         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
13345         * config/i386/i386.c
13346         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
13347         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13348         IX86_BUILTIN_SCATTERALTDIV16SI.
13349         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
13350         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
13351         __builtin_ia32_scatteraltdiv8si.
13352         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
13353         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
13354         IX86_BUILTIN_SCATTERALTDIV16SI.
13355         (ix86_vectorize_builtin_scatter): New.
13356         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
13357         ix86_vectorize_builtin_scatter.
13359 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13360             Petr Murzin  <petr.murzin@intel.com>
13361             Kirill Yukhin  <kirill.yukhin@intel.com>
13363         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
13364         * doc/tm.texi: Regenerate.
13365         * target.def: Add scatter builtin.
13366         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
13367         for loads/stores in case of gather/scatter accordingly.
13368         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13369         STMT_VINFO_GATHER_P(S).
13370         (vect_check_gather): Rename to ...
13371         (vect_check_gather_scatter): this.
13372         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
13373         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
13374         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13375         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
13376         variable and new checkings for it accordingly.
13377         * tree-vect-stmts.c
13378         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
13379         STMT_VINFO_GATHER_P(S).
13380         (vect_check_gather_scatter): Use it instead of vect_check_gather.
13381         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
13383 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13385         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
13386         define_insn.
13387         (mulv16qi3): New define_expand.
13389 2015-09-03  Martin Sebor  <msebor@redhat.com>
13391         PR c/66516
13392         * doc/extend.texi (Other Builtins): Document when the address
13393         of a built-in function can be taken.
13395 2015-09-03  Richard Biener  <rguenther@suse.de>
13397         * dwarf2out.c (flush_limbo_die_list): Split out from ...
13398         (dwarf2out_early_finish): ... here.
13399         (dwarf2out_finish): Do not call dwarf2out_early_finish but
13400         flush_limbo_die_list.  Assert we have no deferred asm names.
13402 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13404         * optabs.c (expand_binop): Don't create a broadcast vector with a
13405         source element wider than the inner mode.
13407 2015-09-03  Richard Biener  <rguenther@suse.de>
13409         * varasm.c (output_constant): Use fold_convert instead of
13410         wide_int_to_tree.
13412 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13414         PR tree-optimization/65637
13415         * omp-low.c (expand_omp_for_static_chunk): Handle case that
13416         fin_bb has 2 predecessors.
13418 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13420         PR tree-optimization/65637
13421         * omp-low.c (find_phi_with_arg_on_edge): New function.
13422         (expand_omp_for_static_chunk): Fix inner loop phi.
13424 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13426         PR tree-optimization/65637
13427         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
13428         that head is NULL.
13430 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13432         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
13434 2015-09-03  Tom de Vries  <tom@codesourcery.com>
13436         * doc/invoke.texi (parloops-chunk-size): Add item.
13437         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
13438         * tree-parloops.c: Include params.h.
13439         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
13440         param parloops-chunk-size is used.
13442 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13444         PR middle-end/67351
13445         * fold-const.c (fold_binary_loc) : Move
13446         Transform (x >> c) << c into x & (-1<<c) or
13447         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
13448         types using simplify and match.
13449         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
13450         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
13452 2015-09-03  Richard Biener  <rguenther@suse.de>
13454         PR ipa/66705
13455         * tree-ssa-structalias.c (ctor_for_analysis): New function.
13456         (create_variable_info_for_1): Use ctor_for_analysis instead
13457         of get_constructor.
13458         (create_variable_info_for): Likewise.
13460 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
13462         PR ipa/67280
13463         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
13464         in new callgraph edge.
13466 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
13468         PR target/59810
13469         PR target/63652
13470         PR target/63653
13471         * config/aarch64/aarch64-simd.md
13472         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
13473         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
13474         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
13475         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
13477 2015-09-02  Alan Modra  <amodra@gmail.com>
13479         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
13480         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
13481         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
13483 2015-09-02  Alan Modra  <amodra@gmail.com>
13485         PR target/67417
13486         * config/rs6000/predicates.md (current_file_function_operand): Don't
13487         return true for weak symbols.
13488         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
13490 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13491             Andrew Bennett  <andrew.bennett@imgtec.com>
13493         * config/mips/mips-opts.h (mips_cb_setting): New enum.
13494         * config/mips/mips-protos.h: Add definitions for
13495         mips_output_jump and mips_output_equal_conditional_branch
13496         * config/mips/mips.c (MIPS_JR): Change to support the
13497         JIC instruction.
13498         (mips_emit_compare): Add support for the MIPS R6 conditional
13499         compact branches.
13500         (mips_process_sync_loop): Likewise.
13501         (mips_output_order_conditional_branch): Likewise.
13502         (mips16_build_call_stub): Change MIPS_CALL to
13503         mips_output_jump.
13504         (mips_print_operand_punctuation): Update 's' case to only
13505         apply to micromips r2.
13506         (mips_adjust_insn_length): Add support for forbidden slot
13507         hazards.
13508         (mips_avoid_hazard): Likewise.
13509         (mips_reorg_process_insns): Likewise.
13510         (mips_output_jump): New function.
13511         (mips_output_equal_conditional_branch): Likewise.
13512         (mips_output_conditional_branch): Use jrc/bc if compact
13513         branch support is enabled.  Ensure the forbidden slots
13514         between the two branch instructions is filled with a nop.
13515         (mips_option_override): Add support to process the compact
13516         branch option and set the correct defaults.  Prevent
13517         non-explict relocs being using for MIPS R6.
13518         (mips_trampoline_init): Add compact branch support.
13519         (mips_mult_zero_zero_cost): Allow zero initialisation of
13520         accumulators with TARGET_DSP.
13521         * config/mips/mips.h (TARGET_CB_NEVER): New define.
13522         (TARGET_CB_MAYBE): New define.
13523         (TARGET_CB_ALWAYS): New define.
13524         (ISA_HAS_DELAY_SLOTS): New define.
13525         (ISA_HAS_COMPACT_BRANCHES): New define.
13526         (ISA_HAS_JRC): New define.
13527         (MIPS_BRANCH_C): New define.
13528         (MIPS_CALL): Removed.
13529         (MICROMIPS_J): Removed.
13530         * config/mips/mips.md (compact_form): New attr.
13531         (hazard): Add support for forbidden slots.
13532         (define_delay): Add support for compact branches.
13533         (*branch_order<mode>): Likewise.
13534         (*branch_order<mode>_inverted): Likewise.
13535         (*branch_equality<mode>): Likewise.
13536         (*branch_equality<mode>_inverted): Likewise.
13537         (*jump_absolute): Likewise.
13538         (*jump_pic): Likewise.
13539         (indirect_jump): Use mips_output_jump to produce assembly output.
13540         (tablejump_<mode>"): Likewise.
13541         (*<optab>"): Likewise.
13542         (<optab>_internal): Likewise.
13543         (sibcall_internal): Likewise.
13544         (sibcall_value_internal): Likewise.
13545         (sibcall_value_multiple_internal): Likewise.
13546         (call_internal): Likewise.
13547         (call_split): Likewise.
13548         (call_internal_direct): Likewise.
13549         (call_direct_split): Likewise.
13550         (call_value_internal): Likewise.
13551         (call_value_split): Likewise.
13552         (call_value_internal_direct): Likewise.
13553         (call_value_direct_split): Likewise.
13554         (call_value_multiple_internal): Likewise.
13555         (call_value_multiple_split): Likewise.
13556         (mips_get_fcsr_mips16_<mode>): Likewise.
13557         (mips_set_fcsr_mips16_<mode>): Likewise.
13558         (tls_get_tp_mips16_<mode>): Likewise.
13559         * config/mips/mips.opt: Add -mcompact-branches option.
13560         * config/mips/predicates.md (order_operator): Ensure the
13561         conditional compact branches are only used if the ISA them.
13562         * doc/invoke.texi: Document -mcompact-branches option.
13564 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
13566         PR target/61578
13567         * lra-lives.c (process_bb_lives): Process move pseudos with the
13568         same value for copies and preferences
13569         * lra-constraints.c (match_reload): Create match reload pseudo
13570         with the same value from single dying input pseudo.
13572 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13574         PR target/67405
13575         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
13577 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
13579         * trans-mem.c: Add contributed-by.
13580         * trans-mem.h: Same.
13582 2015-09-01  Richard Biener  <rguenther@suse.de>
13584         * expr.c (expand_expr_real_1): For expanding TERed defs
13585         set the current location to that of the def if not UNKNOWN.
13587 2015-09-01  David Sherwood  <david.sherwood@arm.com>
13589         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
13591 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13593         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
13594         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
13595         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
13596         Include rtl-iter.h.
13597         (noce_simple_bbs): New function.
13598         (noce_try_move): Bail if basic blocks are not simple.
13599         (noce_try_store_flag): Likewise.
13600         (noce_try_store_flag_constants): Likewise.
13601         (noce_try_addcc): Likewise.
13602         (noce_try_store_flag_mask): Likewise.
13603         (noce_try_cmove): Likewise.
13604         (noce_try_minmax): Likewise.
13605         (noce_try_abs): Likewise.
13606         (noce_try_sign_mask): Likewise.
13607         (noce_try_bitop): Likewise.
13608         (bbs_ok_for_cmove_arith): New function.
13609         (noce_emit_all_but_last): Likewise.
13610         (noce_emit_insn): Likewise.
13611         (noce_emit_bb): Likewise.
13612         (noce_try_cmove_arith): Handle non-simple basic blocks.
13613         (insn_valid_noce_process_p): New function.
13614         (contains_mem_rtx_p): Likewise.
13615         (bb_valid_for_noce_process_p): Likewise.
13616         (noce_process_if_block): Allow non-simple basic blocks
13617         where appropriate.
13619 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
13621         * tree-ssa-dom.c (record_equivalences_from_phis,
13622         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
13623         (lookup_avail_expr): Likewise, and remove comment and unused temp.
13625 2015-09-01  Nick Clifton  <nickc@redhat.com>
13627         * config/msp430/msp430.opt (mcpu): Fix typo.
13629 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13631         * config/aarch64/aarch64.c (aarch64_set_current_function):
13632         Re-layout any vector parameters have non-simd layout.
13633         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
13634         Delete.
13635         (aarch64_simd_expand_args): Delete call to the above.
13637 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
13639         * doc/invoke.texi (asan-stack): Add space before option.
13641 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13643         * tree.h (zerop): New function.
13644         * tree.c (zerop): Likewise.
13645         (element_precision): Handle expressions.
13646         * match.pd (define_predicates): Add zerop.
13647         (x <= +Inf): Fix comment.
13648         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
13649         * fold-const.c (fold_binary_loc): ... here. Remove.
13651 2015-08-31  Richard Biener  <rguenther@suse.de>
13653         PR middle-end/67381
13654         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
13656 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
13658         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
13659         (CEXPI): New operator list.
13660         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
13661         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
13662         Converted from ...
13663         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
13665 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13667         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
13668         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
13669         parameter.
13670         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
13671         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
13672         (rewrite_into_loop_closed_ssa): ... here.
13673         (replace_uses_in_dominated_bbs): Remove function.
13674         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
13675         rewrite_into_loop_closed_ssa_1.
13677 2015-08-31  Michael Matz  <matz@suse.de>
13679         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
13680         enter entry and exit blocks for reverse post order.
13682 2015-08-31  Richard Biener  <rguenther@suse.de>
13684         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
13685         (lto_location_cache::current_sysp): Likewise.
13686         (output_block::current_sysp): Likewise.
13687         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
13688         (lto_location_cache::apply_location_cache): Properly record
13689         system header locations.
13690         (lto_location_cache::input_location): Input whether a file
13691         is a system header.
13692         * lto-streamer-out.c (lto_output_location): Stream whether a file
13693         is a system header.
13695 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13697         PR bootstrap/67363
13698         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
13700 2015-08-31  Tom de Vries  <tom@codesourcery.com>
13702         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
13703         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
13704         Improve function header comments.
13706 2015-08-30  Michael Collison  <michael.collison@linaro.org>
13708         PR other/67320
13709         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
13710         standard names
13712 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13714         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
13715         special_handling bitfield.
13716         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
13717         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
13718         that represents a general xxpermdi.
13719         (insn_is_swappable_p): Add handling for vec_concat of two
13720         doublewords, which maps to a specific xxpermdi.
13721         (adjust_xxpermdi): New function.
13722         (adjust_concat): Likewise.
13723         (handle_special_swappables): Call adjust_xxpermdi and
13724         adjust_concat.
13725         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
13727 2015-08-30  Rich Felker <dalias@libc.org>
13729         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
13730         case instead of sh[123456ble]-*-*.
13732 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
13734         * ira.c (print_unform_and_important_classes,
13735         print_translated_classes): Remove reg_class_names static array.
13736         (print_unform_and_important_classes): Rename to ...
13737         (print_uniform_and_important_classes): ... this.
13738         (ira_debug_allocno_classes): Update accordingly.
13740 2015-08-29  Tom de Vries  <tom@codesourcery.com>
13742         PR tree-optimization/46193
13743         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
13744         clause.
13746 2015-08-28  Jeff Law  <law@redhat.com>
13748         PR lto/66752
13749         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13750         unable to find X NE 0 in the tables, return X as the simplified
13751         condition.
13752         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13753         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13754         to VISISTED_BBS.
13755         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13756         after removing the control flow statement and unnecessary edges.
13758 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
13760         Revert:
13761         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
13763         PR tree-optimization/67283
13764         * tree-sra.c (type_consists_of_records_p): Rename to...
13765         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13767         (completely_scalarize_record): Rename to...
13768         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
13769         code to:
13770         (scalarize_elem): New.
13772 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
13774         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
13775         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
13776         (aarch64_symbol_type): Likewise.
13777         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13778         Likewise.
13779         (aarch64_expand_mov_immediate): Likewise.
13780         (aarch64_print_operand): Likewise.
13781         (aarch64_classify_tls_symbol): Likewise.
13783 2015-08-28  Richard Biener  <rguenther@suse.de>
13785         * cgraphunit.c (symbol_table::compile): Move early debug generation
13786         and finish...
13787         (symbol_table::finalize_compilation_unit): ... back here and
13788         add a !seen_error () guard.
13790 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13792         * toplev.c (process_options): Do not use flag_loop_block,
13793         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
13794         flag_loop_optimize_isl.
13796 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13798         * Makefile.in (OBJS): Remove graphite-blocking.o and
13799         graphite-interchange.o.
13800         * common.opt (floop-strip-mine, floop-interchange, floop-block):
13801         Alias of floop-nest-optimize.
13802         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
13803         Document as alias of -floop-nest-optimize.
13804         * graphite-blocking.c: Remove.
13805         * graphite-interchange.c: Remove.
13806         * graphite-optimize-isl.c: Include dumpfile.h.
13807         (getScheduleForBand): Add dump for tiled loops.  Use
13808         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
13809         * graphite-poly.c (scop_max_loop_depth): Remove.
13810         (print_scattering_function_1): Remove.
13811         (print_scattering_function): Remove.
13812         (print_scattering_functions): Remove.
13813         (debug_scattering_function): Remove.
13814         (debug_scattering_functions): Remove.
13815         (apply_poly_transforms): Remove use of flag_loop_block,
13816         flag_loop_strip_mine, and flag_loop_interchange.
13817         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
13818         PBB_ORIGINAL.
13819         (print_pdr_access_layout): Remove.
13820         (print_pdr): Print ISL representation.
13821         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
13822         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
13823         (free_scop): Same.
13824         (openscop_print_pbb_domain): Remove.
13825         (print_pbb): Remove call to print_scattering_function.
13826         (openscop_print_scop_context): Remove.
13827         (print_scop_context): Do not print matrices anymore.
13828         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
13829         SCOP_TRANSFORMED_SCHEDULE.
13830         (print_isl_set): Add printing of a new line.
13831         (print_isl_map): Same.
13832         (print_isl_aff): Same.
13833         (print_isl_constraint): Same.
13834         (loop_to_lst): Remove.
13835         (scop_to_lst): Remove.
13836         (lst_indent_to): Remove.
13837         (print_lst): Remove.
13838         (debug_lst): Remove.
13839         (dot_lst_1): Remove.
13840         (dot_lst): Remove.
13841         (reverse_loop_at_level): Remove.
13842         (reverse_loop_for_pbbs): Remove.
13843         * graphite-poly.h (pdr_dim_iter_domain): Remove.
13844         (pdr_nb_params): Remove.
13845         (pdr_alias_set_dim): Remove.
13846         (pdr_subscript_dim): Remove.
13847         (pdr_iterator_dim): Remove.
13848         (pdr_parameter_dim): Remove.
13849         (same_pdr_p): Remove.
13850         (struct poly_scattering): Remove.
13851         (struct poly_bb): Remove _original, _transformed, _saved.
13852         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
13853         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
13854         (PBB_NB_LOCAL_VARIABLES): Remove.
13855         (PBB_NB_SCATTERING_TRANSFORM): Remove.
13856         (schedule_to_scattering): Remove.
13857         (number_of_write_pdrs): Remove.
13858         (pbb_dim_iter_domain): Remove.
13859         (pbb_nb_params): Remove.
13860         (pbb_nb_scattering_orig): Remove.
13861         (pbb_nb_scattering_transform): Remove.
13862         (pbb_nb_dynamic_scattering_transform): Remove.
13863         (pbb_nb_local_vars): Remove.
13864         (pbb_iterator_dim): Remove.
13865         (pbb_parameter_dim): Remove.
13866         (psco_scattering_dim): Remove.
13867         (psct_scattering_dim): Remove.
13868         (psct_local_var_dim): Remove.
13869         (psco_iterator_dim): Remove.
13870         (psct_iterator_dim): Remove.
13871         (psco_parameter_dim): Remove.
13872         (psct_parameter_dim): Remove.
13873         (psct_dynamic_dim): Remove.
13874         (psct_static_dim): Remove.
13875         (psct_add_local_variable): Remove.
13876         (new_lst_loop): Remove.
13877         (new_lst_stmt): Remove.
13878         (free_lst): Remove.
13879         (copy_lst): Remove.
13880         (lst_add_loop_under_loop): Remove.
13881         (lst_depth): Remove.
13882         (lst_dewey_number): Remove.
13883         (lst_dewey_number_at_depth): Remove.
13884         (lst_pred): Remove.
13885         (lst_succ): Remove.
13886         (lst_find_pbb): Remove.
13887         (find_lst_loop): Remove.
13888         (lst_find_first_pbb): Remove.
13889         (lst_empty_p): Remove.
13890         (lst_find_last_pbb): Remove.
13891         (lst_contains_p): Remove.
13892         (lst_contains_pbb): Remove.
13893         (lst_create_nest): Remove.
13894         (lst_remove_from_sequence): Remove.
13895         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
13896         (lst_niter_for_loop): Remove.
13897         (pbb_update_scattering): Remove.
13898         (lst_update_scattering_under): Remove.
13899         (lst_update_scattering): Remove.
13900         (lst_insert_in_sequence): Remove.
13901         (lst_replace): Remove.
13902         (lst_substitute_3): Remove.
13903         (lst_distribute_lst): Remove.
13904         (lst_remove_all_before_including_pbb): Remove.
13905         (lst_remove_all_before_excluding_pbb): Remove.
13906         (struct scop): Remove original_schedule, transformed_schedule, and
13907         saved_schedule.
13908         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
13909         (SCOP_SAVED_SCHEDULE): Remove.
13910         (poly_scattering_new): Remove.
13911         (poly_scattering_free): Remove.
13912         (poly_scattering_copy): Remove.
13913         (store_scattering_pbb): Remove.
13914         (store_lst_schedule): Remove.
13915         (restore_lst_schedule): Remove.
13916         (store_scattering): Remove.
13917         (restore_scattering_pbb): Remove.
13918         (restore_scattering): Remove.
13919         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13920         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
13921         compute the scattering polyhedron dimension from the dimension of
13922         pbb->domain.
13923         (build_scop_scattering): Update call to
13924         build_pbb_scattering_polyhedrons.
13925         (build_poly_scop): Remove call to scop_to_lst.
13926         * graphite.c (graphite_transform_loops): Add call to print_scop.
13927         (gate_graphite_transforms): Remove use of flag_loop_block,
13928         flag_loop_interchange, and flag_loop_strip_mine.
13930 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
13932         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
13933         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
13934         -floop-nest-optimize.
13935         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
13936         (generate_luj_sepclass): Remove.
13937         (generate_luj_options): Remove.
13938         (set_options): Remove opt_luj.
13939         (scop_to_isl_ast): Remove opt_luj.
13940         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
13941         flag_loop_unroll_jam.
13942         (getPrevectorMap_full): Remove.
13943         (getScheduleForBandList): Remove map_sepcl.
13944         (getScheduleMap): Same.
13945         (apply_schedule_map_to_scop): Remove sepcl.
13946         (optimize_isl): Same.
13947         * graphite-poly.c (apply_poly_transforms): Remove check for
13948         flag_loop_unroll_jam.
13949         (new_poly_bb): Remove map_sepclass.
13950         * graphite-poly.h (struct poly_bb): Same.
13951         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
13952         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
13953         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
13954         * toplev.c (process_options): Remove flag_loop_unroll_jam.
13956 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
13958         PR target/67317
13959         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
13960         (addqi3_cc): Ditto.
13961         (UNSPEC_ADD_CARRY): Remove.
13962         (addqi3_cconly_overflow): New expander.
13963         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
13964         Adjust for changed add<mode>3_carry.
13965         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
13966         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
13967         (<plusminus_insn><mode>3_carry): Remove expander.
13968         (*<plusminus_insn><mode>3_carry): Split insn pattern to
13969         add<mode>3_carry and sub<mode>3_carry.
13970         (plusminus_carry_mnemonic): Remove code attribute.
13971         (add<mode>3_carry): Canonicalize insn pattern.
13972         (*addsi3_carry_zext): Ditto.
13973         (sub<mode>3_carry): Ditto.
13974         (*subsi3_carry_zext): Ditto.
13975         (adcx<mode>3): Remove insn pattern.
13976         (addcarry<mode>): New insn pattern.
13977         (subborrow<mode>): Ditto.
13978         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
13979         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
13980         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
13981         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
13982         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
13983         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
13984         Rewrite expander to not clobber carry flag chains.
13986 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
13988         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
13989         instead of a rotate.
13991 2015-08-27  Marek Polacek  <polacek@redhat.com>
13993         PR middle-end/67005
13994         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
13995         an entry into an irreducible region.
13997 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13999         * configure: Regenerate.
14001 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14003         PR tree-optimization/67283
14004         * tree-sra.c (type_consists_of_records_p): Rename to...
14005         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14007         (completely_scalarize_record): Rename to...
14008         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14009         (scalarize_elem): New.
14011 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
14013         * tree-sra.c (completely_scalarize_var): Rename to...
14014         (create_total_scalarization_access): ... Here. Drop call to
14015         completely_scalarize_record.
14017         (analyze_all_variable_accesses): Replace completely_scalarize_var
14018         with create_total_scalarization_access and completely_scalarize_record.
14020 2015-08-27  Alan Modra  <amodra@gmail.com>
14022         PR target/67356
14023         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
14024         for operand 1.
14026 2015-08-27  Richard Biener  <rguenther@suse.de>
14028         * passes.c (rest_of_decl_compilation): Guard early_global_decl
14029         call with !seen_error ().
14030         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
14031         early debug generation and finish...
14032         (symbol_table::compile): ... here to put it after a !seen_error ()
14033         guard.
14035 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14037         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
14038         Solaris 12+.
14040 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14041             Andre Vieira  <andre.simoesdiasvieira@arm.com>
14043         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
14044         (*cb<optab><mode>1): Likewise.
14045         (*tb<optab><mode>1): Likewise.
14046         (*cb<optab><mode>1): Likewise.
14047         * config/aarch64/iterators.md (inv_cb): New code attribute.
14048         (inv_tb): Likewise.
14049         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
14050         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
14052 2015-08-27  Richard Biener  <rguenther@suse.de>
14054         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
14056 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14058         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
14059         trap to fix ICE.
14061 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14063         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
14064         Add declaration.
14066         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
14067         comment.
14068         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
14069         floating point in VSX registers.
14070         (rs6000_output_move_128bit): Always print out the set insn if we
14071         can't generate an appropriate 128-bit move.
14072         (rs6000_generate_compare): Add support for IEEE 128-bit floating
14073         point in VSX registers comparisons.
14074         (rs6000_expand_float128_convert): Likewise.
14076         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
14077         predicate for only GPR hard registers.
14079         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
14080         modes to iterators. Add new iterators for moving 128-bit values in
14081         scalar FPR registers and VSX registers.
14082         (FMOVE128): Likewise.
14083         (FMOVE128_FPR): Likewise.
14084         (FMOVE128_GPR): Likewise.
14085         (FMOVE128_VSX): Likewise.
14086         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
14087         in VSX registers.
14088         (IFKF): Likewise.
14089         (IBM128): Likewise.
14090         (TFIFKF): Likewise.
14091         (RELOAD): Add IEEE 128-bit floating point modes.
14092         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
14093         floating point in VSX registers modes.
14094         (signbit<mode>2, IBM128 iterator): Likewise.
14095         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
14096         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14097         (negtf2): Likewise.
14098         (neg<mode>2, TFIFKF iterator): Likewise.
14099         (negtf2_internal): Likewise.
14100         (abstf2): Likewise.
14101         (abs<mode>2, TFIFKF iterator): Likewise.
14102         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
14103         VSX insn support for negate, absolute value, and negative absolute
14104         value.
14105         (ieee_128bit_vsx_neg<mode>2): Likewise.
14106         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
14107         (ieee_128bit_vsx_abs<mode>2): Likewise.
14108         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14109         (ieee_128bit_vsx_nabs<mode>2): Likewise.
14110         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14111         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
14112         floating point in VSX registers.
14113         (unpack<mode>_dm): Likewise.
14114         (unpack<mode>_nodm): Likewise.
14115         (pack<mode>): Likewise.
14116         (unpackv1ti): Likewise.
14117         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
14118         (packv1ti): Likewise.
14119         (pack<mode>, FMOVE128_VSX iterator): Likewise.
14120         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
14121         registers.
14122         (extenddftf2_internal): Likewise.
14123         (trunctfdf2): Likewise.
14124         (trunctfdf2_internal2): Likewise.
14125         (fix_trunc_helper): Likewise.
14126         (fix_trunctfdi2"): Likewise.
14127         (floatditf2): Likewise.
14128         (floatuns<mode>tf2): Likewise.
14129         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
14130         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
14131         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
14132         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
14133         (float<SDI:mode><IFKF:mode>2): Likewise.
14134         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
14136 2015-08-26  Renlin Li  <renlin.li@arm.com>
14138         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
14140 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14141             Jiong Wang  <jiong.wang@arm.com>
14143         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
14144         (tlsie_tiny_<mode>): New define_insn.
14145         (tlsie_tiny_sidi): Likewise.
14146         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
14147         SYMBOL_TINY_TLSIE.
14148         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
14149         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14150         SYMBOL_TINY_TLSIE.
14151         (aarch64_expand_mov_immediate): Likewise.
14152         (aarch64_print_operand): Likewise.
14153         (arch64_classify_tls_symbol): Likewise.
14155 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14157         * config/arm/arm-arches.def: Replace single value flags with
14158         an initializer built from ARM_FSET_MAKE_CPU1.
14159         * config/arm/arm-cores.def: Likewise.
14160         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
14161         derivation from the ARM_CORE macro definition, use the given value
14162         instead.
14163         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
14164         ARM_ARCH macro definition, use the given value instead.
14166 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14168         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
14169         feature set.
14170         (struct builtin_description): Replace field mask with field
14171         features.
14172         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
14173         (IWMMXT2_BUILTIN): Likewise.
14174         (IWMMXT2_BUILTIN2): Likewise.
14175         (FP_BUILTIN): Likewise.
14176         (CRC32_BUILTIN): Likewise.
14177         (CRYPTO_BUILTIN): Likewise.
14178         (iwmmx_mbuiltin): Likewise.
14179         (iwmmx2_mbuiltin): Likewise.
14180         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
14181         struct builtin_description.
14183 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14185         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
14186         (struct builtin_description): Change type of mask to unsigned
14187         long.
14188         * config/arm/arm-protos.h (insn_flags): Declare as type
14189         arm_feature_set.
14190         (tune_flags): Likewise.
14191         * config/arm/arm.c (feature_count): New.
14192         (insn_flags): Define as type arm_feature_set.
14193         (tune_flags): Likewise.
14194         (struct processors): Define field flags as type arm_feature_set.
14195         (all_cores): Update for change to struct processors.
14196         (all_architectures): Likewise.
14197         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
14198         macros.
14199         (arm_option_override_internal): Likewise.
14200         (arm_option_override): Likewise.
14202 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14203             Jiong Wang  <jiong.wang@arm.com>
14205         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
14206         tls size for tiny, small, large memory model.
14207         (aarch64_load_symref_appropriately): Support new symbol types.
14208         (aarch64_expand_mov_immediate): Likewise.
14209         (aarch64_print_operand): Likewise.
14210         (aarch64_classify_tls_symbol): Likewise.
14211         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
14212         (aarch64_symbol_type): Likewise.
14213         * config/aarch64/aarch64.md (tlsle): Deleted.
14214         (tlsle12_<mode>): New define_insn.
14215         (tlsle24_<mode>): Likewise.
14216         (tlsle32_<mode>): Likewise.
14217         (tlsle48_<mode>): Likewise.
14218         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14219         "aarch64_tlsle32".
14221 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14223         * config/arm/arm-protos.h (FL_NONE): New.
14224         (FL_ANY): New.
14225         (arm_feature_set): New.
14226         (ARM_FSET_MAKE): New.
14227         (ARM_FSET_MAKE_CPU1): New.
14228         (ARM_FSET_MAKE_CPU2): New.
14229         (ARM_FSET_CPU1): New.
14230         (ARM_FSET_CPU2): New.
14231         (ARM_FSET_EMPTY): New.
14232         (ARM_FSET_ANY): New.
14233         (ARM_FSET_HAS_CPU1): New.
14234         (ARM_FSET_HAS_CPU2): New.
14235         (ARM_FSET_HAS_CPU): New.
14236         (ARM_FSET_ADD_CPU1): New.
14237         (ARM_FSET_ADD_CPU2): New.
14238         (ARM_FSET_DEL_CPU1): New.
14239         (ARM_FSET_DEL_CPU2): New.
14240         (ARM_FSET_UNION): New.
14241         (ARM_FSET_INTER): New.
14242         (ARM_FSET_XOR): New.
14243         (ARM_FSET_EXCLUDE): New.
14244         (AFM_FSET_IS_EMPTY): New.
14245         (ARM_FSET_CPU_SUBSET): New.
14247 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14249         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14250         SYMBOL_TLSLE to SYMBOL_TLSLE24.
14251         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14252         Likewise.
14253         (aarch64_expand_mov_immediate): Likewise.
14254         (aarch64_print_operand): Likewise.
14255         (aarch64_classify_symbol): Likewise.
14257 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
14259         * config/aarch64/aarch64.opt (mtls-size): New entry.
14260         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
14261         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
14262         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
14264 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
14266         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
14267         ARM_CORE entry.  Fix some white-space.
14268         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
14269         ARM_CORE definition.
14271 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14273         * fold-const.c (fold_binary_loc) : Move Optimize
14274         root(x)*root(y) as root(x*y) to match.pd.
14275         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
14276         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
14277         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
14278         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
14279         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
14280         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
14281         (mult (exps:s @0) (exps:s @1)) : New simplifier.
14282         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
14283         (rdiv @0 (exps:s @1)) : New simplifier.
14285 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
14287         * gcc.c (driver::finalize): Only assign to extra_specs if
14288         [EXTRA_SPECS].
14290 2015-08-25  Marek Polacek  <polacek@redhat.com>
14292         PR middle-end/67330
14293         * varasm.c (declare_weak): Return after giving an error.
14295 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
14297         * gcc-main.c (main): Add params to driver ctor.
14298         * gcc.c (class env_manager): New.
14299         (env): New global.
14300         (env_manager::init): New.
14301         (env_manager::get): New.
14302         (env_manager::xput): New.
14303         (env_manager::restore): New.
14304         Poison getenv and putenv.
14305         (DEFAULT_TARGET_SYSTEM_ROOT): New.
14306         (target_system_root): Update initialization to use
14307         DEFAULT_TARGET_SYSTEM_ROOT.
14308         (struct spec_list): Add field "default_ptr".
14309         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
14310         (init_spec): Likewise.
14311         (set_spec): Clear field "default_ptr".
14312         (read_specs): Free "spec" and "buffer".
14313         (xputenv): Reimplement in terms of env_manager.
14314         (process_command): Replace ::getenv calls with calls to the
14315         env_manager singleton.
14316         (process_brace_body): Free string in three places.
14317         (driver::driver): New.
14318         (driver::~driver): New.
14319         (used_arg): Convert from a function to...
14320         (class used_arg_t): ...this class, and...
14321         (used_arg): ...this new global instance.
14322         (used_arg_t::finalize): New function.
14323         (getenv_spec_function): Add "const" to local "value".  Replace
14324         ::getenv call with call to the env_manager singleton.
14325         (path_prefix_reset): New function.
14326         (driver::finalize): New function.
14327         * gcc.h (driver::driver): New.
14328         (driver::~driver): New.
14329         (driver::finalize): New.
14331 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14333         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
14334         target doesn't have one.
14336 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14338         PR target/67346
14339         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
14341 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
14343         PR target/67344
14344         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
14345         a define_insn, remove second alternative.
14347 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
14348             Joseph Myers  <joseph@codesourcery.com>
14350         * gcc.c (struct switchstr): Expand comment.
14352 2015-08-25  Nathan Sidwell  <nathan@acm.org>
14354         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
14355         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
14357 2015-08-25  Richard Biener  <rguenther@suse.de>
14359         PR middle-end/67306
14360         * genmatch.c (expr::gen_transform): Verify the result of
14361         builtin_decl_implicit.
14362         (dt_simplify::gen_1): Likewise.
14364 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14366         * config/arm/constraints.md: Also list Cs and US ARM-specific
14367         constraints as used.
14369 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14371         PR target/66609
14372         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
14373         UNSPEC_PCREL.
14374         (nonpic_symbol_mentioned_p): Likewise.
14375         (sh_delegitimize_address): Likewise.
14376         (sh_function_ok_for_sibcall): Take into account weak symbols.
14377         (sh_expand_sym_label2reg): New.
14378         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
14379         * config/sh/sh.md (UNSPEC_PCREL): New enum.
14380         (call_pcrel): Use sh_expand_sym_label2reg.
14381         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14382         (symPCREL_label2reg) New expand.
14384 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14386         * graphite-poly.c: Change type of region from void* to sese.
14387         * graphite-poly.h (struct scop): Changing the type of scop::region
14388         from void* to sese. Change accessor macro accordingly.
14389         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
14391 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
14393         * graphite-scop-detection.c (stmt_simple_for_scop_p):
14394         Constrain only on INTEGER_TYPE.
14396 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14398         PR target/67211
14399         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
14400         -mefficient-unaligned-vsx on ISA 2.7.
14402         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
14403         option to a masked option.
14405         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
14406         logic for -mefficient-unaligned-vsx so that it is set via an arch
14407         ISA option, instead of being set if -mtune=power8 is set. Move
14408         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
14409         near other default option handling.
14411 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14413         * genflags.c (gen_macro): Delete.
14414         (gen_proto): Don't create GEN.*CALL.* macros.
14415         * gensupport.h (get_file_location): Declare.
14416         * gensupport.c (rtx_locs): New variable.
14417         (read_md_rtx): Record rtx locations.
14418         (get_file_location): New function.
14419         * target-insns.def (call, call_pop, call_value, call_value_pop)
14420         (sibcall, sibcall_value): New patterns.
14421         * gentarget-def.c (parse_argument): New function.
14422         (def_target_insn): Use it.  Handle optional operands.  Raise an
14423         error if an .md pattern has the wrong number of operands for the
14424         pattern name.  Remove the names of unused operands from the prototype.
14425         * builtins.c (expand_builtin_apply): Use targetm functions
14426         instead of HAVE_call_value and GEN_CALL_VALUE.
14427         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
14428         and sibcall_value_pop.
14429         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
14430         of GEN_CALL.
14431         * config/alpha/alpha.md (untyped_call): Likewise.
14432         * config/iq2000/iq2000.md (untyped_call): Likewise.
14433         * config/m68k/m68k.md (untyped_call): Likewise.
14434         * config/mips/mips.md (untyped_call): Likewise.
14435         * config/pa/pa.md (untyped_call): Likewise.
14436         * config/rs6000/rs6000.md (untyped_call): Likewise.
14437         * config/sparc/sparc.md (untyped_call): Likewise.
14438         * config/tilegx/tilegx.md (untyped_call): Likewise.
14439         * config/tilepro/tilepro.md (untyped_call): Likewise.
14440         * config/visium/visium.md (untyped_call): Likewise.
14441         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
14442         gen_call_value instead of GEN_CALL_VALUE.
14443         * config/arm/arm.md (untyped_call): Likewise.
14444         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
14445         GEN_CALL.
14447 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14449         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
14450         (have_cbranchcc4): New variable.
14451         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
14452         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
14453         (if_convert): Initialize have_cbranchcc4.
14455 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14457         * builtins.c (expand_cmpstrn): Rename to...
14458         (expand_cmpstrn_or_cmpmem): ...this.
14459         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
14460         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
14461         Remove mode argument.
14462         (expand_builtin): Update accordingly.
14464 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14466         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
14467         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
14468         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
14469         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
14470         Add predicates for operands 0 and 3.
14471         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
14472         operand.
14473         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
14474         immediate_operand to nonmemory_operand.
14476 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14478         * df-scan.c (df_insn_info_init_fields): New function, split out
14479         from...
14480         (df_insn_create_insn_record): ...here.
14481         (df_insn_info_free_fields): New function, split out from...
14482         (df_insn_info_delete): ...here.
14483         (df_insn_rescan): Use the new functions instead of freeing and
14484         reallocating the df_insn_info.
14486 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14488         * doc/install.texi (Binaries): Remove links no longer valid.
14490 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14492         * config/nvptx/mkoffload.c (process): Replace
14493         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
14495 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
14497         PR target/67329
14498         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
14500 2015-08-24  Renlin Li  <renlin.li@arm.com>
14502         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
14503         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
14504         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
14505         * config/arm/constraints.md ("j"): Add check for high code.
14507 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14509         PR tree-optimization/65468
14510         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
14511         chunk_size is one.
14513 2015-08-24  Nathan Sidwell  <nathan@acm.org>
14515         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
14516         change to nvptx_type_from_mode call. Use arg_promotion for both
14517         split and non-split args.
14519 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14521         * target-insns.def (movstr): New pattern.
14522         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
14523         (expand_movstr): Use targetm rather than HAVE_movstr/
14524         CODE_FOR_movstr.
14526 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
14528         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
14529         cast syntax.
14531 2015-08-24  Andrew Pinski  <apinski@cavium.com>
14533         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
14534         AARCH64_EXTRA_TUNING_OPTION.
14535         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
14536         New enum.
14537         (aarch64_extra_tuning_flags): Base the shifted value on the index
14538         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
14539         * config/aarch64/aarch64.c: Remove the last argument to
14540         AARCH64_EXTRA_TUNING_OPTION.
14542 2015-08-23  Nathan Sidwell  <nathan@acm.org>
14544         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
14545         decls.
14546         (nvptx_declare_function_name): Insert formatting tabs for
14547         consistency.
14549 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14551         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
14552         parm_decl, rather than generating a dummy default def in cfun.
14553         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
14554         ssa_name from cfun and child_fn do not share a stmt as def stmt.
14555         (move_stmt_op): Handle PARM_DECl.
14556         (gather_ssa_name_hash_map_from): New function.
14557         (move_sese_region_to_fn): Add default defs for function params, and add
14558         them to vars_map.  Release copied ssa names.
14559         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
14561 2015-08-23  Tom de Vries  <tom@codesourcery.com>
14563         * doc/sourcebuild.texi: Rename vect_no_int_max with
14564         vect_no_int_min_max.  Update description.
14566 2015-08-22  Andrew Pinski  <apinski@cavium.com>
14568          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
14569         * config/aarch64/aarch64-protos.h
14570         (aarch64_fusion_pairs_index): New enum.
14571         (aarch64_fusion_pairs): Base the shifted value on the index instead
14572         Rewrite AARCH64_FUSE_ALL to be based on the end index.
14573         of the argument to AARCH64_FUSION_PAIR.
14574         * config/aarch64/aarch64.c: Remove the last argument to
14575         AARCH64_FUSION_PAIR.
14577 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
14579         * dominance.c (new_zero_array): Define.
14580         (dom_info): Redefine as class with proper encapsulation.
14581         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
14582         Add new members.
14583         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
14584         allocations/deallocations.  Pass function as parameter (instead of
14585         using cfun).
14586         (dom_info::get_idom): Define accessor method.
14587         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
14588         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
14589         (calculate_dominance_info): Adjust to use dom_info class.
14590         (verify_dominators): Likewise.
14592 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
14594         * print-rtl.c (print_rtx): Check the correct range for
14595         flag_dump_unnumbered_links to behave as documented.
14597         PR rtl-optimization/67227
14598         PR rtl-optimization/64164
14599         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
14600         (nonoverlapping_memrefs_p): Test offsets and sizes when given
14601         identical gimple_reg exprs.
14603 2015-08-21  Nathan Sidwell  <nathan@acm.org>
14605         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
14606         expansion.
14607         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
14608         crtl->stack_alignment_needed to determine alignment.
14609         (nvptx_get_drap_rtx): New.
14610         (TARGET_GET_DRAP_RTX): Override.
14611         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
14613 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14615         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
14617 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14619         * configure.ac: Remove uwin* cases.
14620         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
14621         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
14622         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
14623         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
14624         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
14625         i[34567]86-*-uwin*, powerpc-*-beos*.
14627 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
14629         * gencodes.c (gencodes): Print the comma for the preceding
14630         enum value rather than the current one.  Use aliased enum values
14631         rather than #defines for compiled-out patterns.
14632         (main): Update accordingly.  Replace LAST_INSN_CODE with
14633         NUM_INSN_CODES.
14634         * lra.c (insn_code_data): Update accordingly.
14635         (finish_insn_code_data_once, get_static_insn_data): Likewise.
14636         * recog.h (target_recog): Likewise.
14637         (preprocess_insn_constraints): Change parameter to unsigned int.
14638         * recog.c (preprocess_insn_constraints): Likewise.
14639         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
14640         * tree-vect-stmts.c (vectorizable_operation): Simplify.
14642 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14644         PR rtl-optimization/61657
14645         * loop-iv.c (iv_number_of_iterations): Declare up and down as
14646         unsigned.  Remove superflous uint64_t cast.
14648 2014-08-21  Felix Yang  <felix.yang@huawei.com>
14649             Jiji Jiang  <jiangjiji@huawei.com>
14651         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
14652         argument and get builtin function code directly from CALL.
14653         (gimple_stringop_fixed_value): Modified accordingly.
14654         (gimple_stringops_transform, gimple_stringops_values_to_profile):
14655         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
14657 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14659         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
14661 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14663         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
14664         to match.pd.
14665         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
14666         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
14667         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
14668         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
14669         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
14670         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
14671         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
14672         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
14673         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
14674         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
14676         * match.pd (SIN ) : New Operator.
14677         (TAN) : New Operator.
14678         (mult (SQRT@1 @0) @1) : New simplifier.
14679         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
14680         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14681         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
14682         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
14683         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
14684         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
14685         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
14686         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
14687         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
14688         (rdiv @0 (POW:s @1 @2)) : New simplifier.
14690 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
14692         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
14693         loop if EXPR is simplified to const value.
14695 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
14697         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
14698         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
14700 2015-08-21  Richard Biener  <rguenther@suse.de>
14702         PR middle-end/67285
14703         * gimple-fold.c (replace_stmt_with_simplification): Assert
14704         seq is empty when replacing a call with itself but different
14705         arguments.
14706         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
14707         a call require that it is const.
14709 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14711         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
14712         * builtins.c (get_object_alignment_2): Adjust.
14713         * varasm.c (align_variable): Likewise.
14714         (get_variable_align): Likewise.
14715         (build_constant_desc): Likewise.
14716         (force_const_mem): Likewise.
14717         * doc/tm.texi.in: Likewise.
14718         * doc/tm.texi: Regenerate.
14720 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14722         * genconfig.c (main): Always define HAVE_cc0.
14723         * recog.c (rest_of_handle_peephole2): Adjust.
14725 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14727         * reorg.c (relax_delay_slots): Don't use #if to check value of
14728         HAVE_cc0.
14730 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14732         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
14733         * targhooks.c (default_have_conditional_execution): Adjust.
14735 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14737         * rtl.h (rtvec_all_equal_p): Declare.
14738         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
14739         * rtl.c (rtvec_all_equal_p): New function.
14740         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
14741         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
14742         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
14743         * config/arm/arm.c (neon_vdup_constant): Likewise.
14744         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
14745         * config/tilegx/constraints.md (W, Y): Likewise.
14746         * config/tilepro/constraints.md (W, Y): Likewise.
14747         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
14748         (classify_immediate): Use unwrap_const_vec_duplicate.
14749         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
14750         (reg_or_v2s8bit_operand): Likewise.
14751         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
14752         (reg_or_v4s8bit_operand): Likewise.
14754 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14756         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
14757         (vec_shasigma_be): New #define.
14758         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
14759         (VPMSUMH): Likewise.
14760         (VPMSUMW): Likewise.
14761         (VPMSUMD): Likewise.
14762         (VPMSUM): New BU_P8V_OVERLOAD_2.
14763         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
14764         entries for VEC_MADD and VEC_VPMSUM.
14766 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
14768         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
14769         Multiply argument avr_n_flash by 64 to match unit of "KiB".
14770         (avr_pgm_check_var_decl): Same.
14772 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
14774         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
14775         initialization of HFmode scalar type (float16_t) to...
14776         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
14777         code.
14779         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
14781         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
14782         having an -mfp16-format.
14784 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
14786         * config/i386/predicates.md (vector_all_ones_operand): Use
14787         CONSTM1_RTX to simplify definition.
14789 2015-08-20  Richard Biener  <rguenther@suse.de>
14791         * toplev.c (compile_file): Remove loop calling late_global_decl
14792         on all symbols.
14793         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
14794         on decls we assembled.
14796 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
14798         * common/config/aarch64/aarch64-common.c
14799         (AARCH64_CPU_NAME_LENGTH): Delete.
14800         (aarch64_option_extension): New.
14801         (all_extensions): Likewise.
14802         (processor_name_to_arch): Likewise.
14803         (arch_to_arch_name): Likewise.
14804         (all_cores): New.
14805         (all_architectures): Likewise.
14806         (aarch64_get_extension_string_for_isa_flags): Likewise.
14807         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
14808         architecture names.
14809         * config/aarch64/aarch64-protos.h
14810         (aarch64_get_extension_string_for_isa_flags): New.
14811         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
14812         (aarch64_option_print): Get the string to print from
14813         aarch64_get_extension_string_for_isa_flags.
14814         (aarch64_declare_function_name): Likewise.
14815         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
14816         (MCPU_TO_MARCH_SPEC): This.
14817         (ASM_CPU_SPEC): Use it.
14818         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
14819         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
14820         (EXTRA_SPEC_FUNCTIONS): Use it.
14822 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
14824         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
14825         expansion when !ISA_HAS_LWL_LWR.
14826         (mips_block_move_straight): Update the size of elements copied to
14827         account for alignment when !ISA_HAS_LWL_LWR.
14828         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
14830 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14832         * expr.c (expand_expr_real_2): Check gimple statement during
14833         LSHIFT_EXPR expand.
14835 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
14837         * common.opt (fstack-protector): Initialize to -1.
14838         (fstack-protector-all): Likewise.
14839         (fstack-protector-strong): Likewise.
14840         (fstack-protector-explicit): Likewise.
14841         * configure.ac: Add --enable-default-ssp.
14842         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
14843         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
14844         -1.
14845         * doc/install.texi: Document --enable-default-ssp.
14846         * config.in: Regenerated.
14847         * configure: Likewise.
14849 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
14851         PR rtl-optimization/64164
14852         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
14853         (parm_in_stack_slot_p): ... this.  Disregard mode, what
14854         matters is whether the parm will live in a pseudo or a stack
14855         slot.
14856         (expand_one_ssa_partition): Deal with params without a default
14857         def.  Disregard mode.
14858         * cfgexpand.h: Renamed function declaration.
14859         * tree-ssa-coalesce.c: Adjust.
14860         * function.c (split_complex_args): Allocate stack slot for
14861         unassigned parms before splitting.
14862         (parm_in_unassigned_mem_p): New.  Use it instead of
14863         parm_maybe_byref_p throughout this file.
14864         (assign_parm_setup_block): Use it.  Accept pseudos in the
14865         expand-assigned rtl.
14866         (assign_parm_setup_reg): Drop BLKmode requirement.
14867         (assign_parm_setup_stack): Allocate and fill in the address of
14868         unassigned MEM parms.
14870 2015-08-19  David Sherwood  <david.sherwood@arm.com>
14872         * genmodes.c (emit_mode_unit_size_inline): New function.
14873         (emit_mode_unit_precision_inline): New function.
14874         (emit_insn_modes_h): Emit new #define.  Emit new functions.
14875         (emit_mode_unit_size): New function.
14876         (emit_mode_unit_precision): New function.
14877         (emit_mode_adjustments): Add mode_unit_size adjustments.
14878         (emit_insn_modes_c): Emit new arrays.
14879         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
14880         use new inline methods.
14882 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14884         * config/aarch64/aarch64.c (bit_count): Delete prototype
14885         and definition.
14886         (aarch64_print_operand): Use popcount_hwi instead of the above.
14888 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14890         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
14891         comment.
14893 2015-08-19  Marek Polacek  <polacek@redhat.com>
14895         PR middle-end/67133
14896         * gimple-ssa-isolate-paths.c
14897         (insert_trap_and_remove_trailing_statements): Rename to ...
14898         (insert_trap): ... this.  Don't remove trailing statements; split
14899         block instead.
14900         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
14902 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
14904         PR other/67042
14905         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
14906         conditionalize the whole on __GNUC__.  Add fallback code
14907         depending neither on undefined nor implementation-defined behaviour.
14909 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
14911         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
14912         whitespaces with tab.
14914 2015-08-19  Florian Weimer  <fweimer@redhat.com>
14916         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
14917         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
14918         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
14919         Move Name_Ids instantiation to the Prj.Proc package, to avoid
14920         trampolines.
14922 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14924         * config/arm/arm.c (bounds_check): Use %wd print format
14925         for HOST_WIDE_INT arguments.
14927 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
14929         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
14930         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
14931         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
14932         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
14933         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
14934         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
14935         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
14936         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
14937         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
14938         typedefs.
14940 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
14942         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
14943         function.c, graphite-scop-detection.c, haifa-sched.c,
14944         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
14945         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
14946         varasm.c: Remove typedefs of structs.
14948 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14950         * config/rs6000/altivec.h (vec_adde): New define.
14951         (vec_addec): Likewise.
14952         (vec_double): Likewise.
14953         (vec_bperm): Likewise.
14954         (vec_gb): Likewise.
14955         * config/rs6000/rs6000-builtin.def (ADDE): New
14956         BU_ALTIVEC_OVERLOAD_3.
14957         (ADDEC): Likewise.
14958         (DOUBLE): New BU_VSX_OVERLOAD_1.
14959         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
14960         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
14961         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
14962         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
14963         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
14964         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
14965         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
14966         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
14967         and P8V_BUILTIN_VEC_VBPERMQ.
14969 2015-08-18  Jason Merrill  <jason@redhat.com>
14971         * print-tree.c (print_node): Handle TREE_BINFO.
14973 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14975         PR middle-end/36757
14976         * builtins.c (expand_builtin_signbit): Add asserts to make sure
14977         we can expand BUILT_IN_SIGNBIT inline.
14978         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
14979         * doc/extend.texi: Document the type-generic __builtin_signbit.
14981 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
14983         PR rtl-optimization/67218
14984         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
14985         (simplify_unary_operation_1): Use it.
14987 2015-08-18  Marek Polacek  <polacek@redhat.com>
14989         PR middle-end/67222
14990         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
14991         if the call isn't valid.
14992         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
14993         gimple_call_builtin_p.
14994         (call_may_clobber_ref_p_1): Likewise.
14995         (stmt_kills_ref_p): Likewise.
14997 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
14999         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
15000         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
15001         (mips_hard_regno_scratch_ok): Likewise.
15002         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
15003         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
15005 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
15007         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
15008         (determine_value_range): Call refine_value_range_using_guard for
15009         each loop initial condition to improve value range.
15011 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
15013         * config/i386/i386.c: Remove include of fibheap.h.
15015 2015-08-17  Richard Biener  <rguenther@suse.de>
15017         PR tree-optimization/67221
15018         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
15019         (sccvn_dom_walker::before_dom_children): Mark backedges of
15020         non-executable blocks as not executable.
15022 2015-08-17  David Sherwood  <david.sherwood@arm.com>
15024         * config/arm/arm.c (neon_element_bits): Replace call to
15025         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
15026         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
15027         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
15028         (neon_vdup_lane<mode>): Likewise.
15029         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
15030         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
15031         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
15032         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
15033         * config/spu/spu.c (arith_immediate_p): Likewise.
15034         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
15035         * expr.c (expand_expr_real_2): Likewise.
15036         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
15037         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15038         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
15039         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
15040         New variable.
15041         * fold-const.c (fold_binary_loc): Replace call to
15042         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
15043         GET_MODE_UNIT_PRECISION (m).
15045 2015-08-17  Mike Stump  <mikestump@comcast.net>
15047         * config/arm/arm.c (arm_block_move_unaligned_straight):
15048         Emit normal move instead of unaligned load when source or destination
15049         are appropriately aligned.
15051 2015-08-17  Richard Biener  <rguenther@suse.de>
15052             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15054         PR middle-end/16107
15055         * match.pd (div (coss (op @0) : New simplifier.
15057 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
15059         PR rtl-optimization/64164
15060         PR bootstrap/66978
15061         PR middle-end/66983
15062         PR rtl-optimization/67000
15063         PR middle-end/67034
15064         PR middle-end/67035
15065         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15066         * tree-ssa-copyrename.c: Removed.
15067         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15068         -ftree-coalesce-vars.
15069         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15070         * common.opt (ftree-copyrename): Ignore.
15071         (ftree-coalesce-inlined-vars): Likewise.
15072         * doc/invoke.texi: Remove the ignored options above.
15073         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15074         * tree-ssa-coalesce.h: ... here.
15075         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15076         headers required by it.
15077         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15078         across variables when flag_tree_coalesce_vars.  Check register
15079         use and promoted modes to allow coalescing.  Do not coalesce
15080         maybe-byref parms with SSA_NAMEs of other variables, or
15081         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
15082         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15083         with its member functions to tree-ssa-coalesce.c.
15084         (var_map_base_init): Likewise.  Renamed to
15085         compute_samebase_partition_bases.
15086         (partition_view_normal): Drop want_bases parameter.
15087         (partition_view_bitmap): Likewise.
15088         * tree-ssa-live.h: Adjust declarations.
15089         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
15090         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15091         default defs at the entry point.
15092         (dump_part_var_map): New.
15093         (compute_optimized_partition_bases): New, called by...
15094         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15095         of compute_samebase_partition_bases.  Adjust.
15096         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15097         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
15098         (ssa_default_def_partition): New.
15099         (get_rtl_for_parm_ssa_default_def): New.
15100         (align_local_variable, add_stack_var): Support anonymous SSA
15101         names.
15102         (defer_stack_allocation): Likewise.  Declare earlier.
15103         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15104         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15105         Do no record deferred-allocation marker in
15106         SA.partition_to_pseudo.
15107         (expand_stack_vars): Adjust check for the marker in it.
15108         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15109         redundant MEM attr setting.
15110         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15111         from...
15112         (expand_one_stack_var): ... this.  New wrapper to check and
15113         skip already expanded SSA partitions.
15114         (record_alignment_for_reg_var): New, factored out of...
15115         (expand_one_var): ... this.
15116         (expand_one_ssa_partition): New.
15117         (adjust_one_expanded_partition_var): New.
15118         (expand_one_register_var): Check and skip already expanded SSA
15119         partitions.
15120         (expand_used_vars): Don't create DECLs for anonymous SSA
15121         names.  Expand all SSA partitions, then adjust all SSA names.
15122         (pass::execute): Replace the loops that set
15123         SA.partition_to_pseudo from partition leaders and cleared
15124         DECL_RTL for multi-location variables, and that which used to
15125         rename vars and set attrs, with one that clears DECL_RTL and
15126         checks that PARMs and RESULTs default_defs match DECL_RTL.
15127         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15128         * emit-rtl.c: Include stor-layout.h.
15129         (set_reg_attrs_for_parm): Handle NULL decl.
15130         (set_reg_attrs_for_decl_rtl): Take mode from expression if
15131         it's not a DECL.
15132         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
15133         rather than its possibly-NULL DECL.
15134         * explow.c (promote_ssa_mode): New.
15135         * explow.h (promote_ssa_mode): Declare.
15136         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15137         (read_complex_part): Export.
15138         * expr.h (read_complex_part): Declare.
15139         * cfgexpand.h (parm_maybe_byref_p): Declare.
15140         * function.c: Include cfgexpand.h.
15141         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15142         (use_register_for_parm_decl): Wrapper for the above to
15143         special-case the result_ptr.
15144         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15145         (split_complex_args): Take assign_parm_data_all argument.
15146         Pass it to rtl_for_parm.  Set up rtl and context for split
15147         args.  Reset complex parm before fetching its default decl
15148         rtl.
15149         (assign_parms_unsplit_complex): Use the default-def complex
15150         parm rtl if it matches the components.
15151         (assign_parms_augmented_arg_list): Adjust.
15152         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15153         multiple locations.  Recognize split complex args.
15154         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15155         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15156         (assign_parm_setup_block): Prefer SSA-assigned location, and
15157         fill in its address if the memory location of a maybe-byref
15158         parm was not assigned by cfgexpand.
15159         (assign_parm_setup_reg): Likewise.  Adjust its mode as
15160         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
15161         sure passed_pointer parms don't need conversion.  Copy address
15162         or value as needed.
15163         (assign_parm_setup_stack): Prefer SSA-assigned location.
15164         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15165         rtl before testing for pointer bounds.  Special-case result_ptr.
15166         (expand_function_start): Maybe reset DECL_RTL of result.
15167         Prefer SSA-assigned location for result and static chain.
15168         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
15169         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
15170         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15171         anonymous SSA names.  Use promote_ssa_mode.
15172         (get_temp_reg): Likewise.
15173         (remove_ssa_form): Adjust.
15174         * stor-layout.c (layout_decl): Don't set mem attributes of
15175         non-MEMs.
15176         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15177         and get its reg_usage for reg invalidation.
15178         (compute_bb_dataflow): Pass it insn.
15179         (emit_notes_in_bb): Likewise.
15181 2015-08-14  Marek Polacek  <polacek@redhat.com>
15183         * tree-core.h (tree_base): Fix typo.
15185 2015-08-14  Marek Polacek  <polacek@redhat.com>
15187         PR middle-end/67133
15188         * gimple.c (infer_nonnull_range_by_attribute): Check that the
15189         nonnull argument position is not outside function arguments.
15191 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
15193         PR target/67143
15194         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
15195         'lconst_atomic' with 'const_atomic'.
15196         (atomic_fetch_<optab><mode>): Likewise.
15197         (atomic_<optab>_fetch<mode>): Likewise.
15198         * config/aarch64/iterators.md (lconst-atomic): Move below
15199         'const_atomic'.
15200         (const_atomic): New.
15202 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
15203             Bernd Schmidt  <bernds@codesourcery.com>
15205         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
15206         debug options.
15207         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
15208         (DWARF2_DEBUGGING_INFO): Don't define.
15209         * debug.h (dwarf2_lineno_debug_hooks): Declare.
15210         * toplev.c (process_options): Add a case for it.
15211         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
15212         (dwarf2out_init): Skip most initializations if
15213         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
15214         case.
15215         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
15216         DWARF2_LINENO_DEBUGGING_INFO.
15217         * opts.c (set_debug_level): Likewise.
15219 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
15221         * config/arm/types.md (is_neon_type): Add missing types.
15223 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15225         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
15226         for skylake.
15227         * config/i386/i386.c (PTA_SKYLAKE): New macros.
15228         (processor_alias_table): Add skylake description.
15229         (enum processor_model): Add skylake processor.
15230         (arch_names_table): Add skylake record.
15231         * doc/invoke.texi: Add skylake item.
15233 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
15235         * ira-int.h: Include recog.h.
15236         * ira-build.c: Don't include recog.h.
15237         * ira-color.c: Likewise.
15238         * ira-conflicts.c: Likewise.
15239         * ira-costs.c: Likewise.
15240         * ira-emit.c: Likewise.
15241         * ira-lives.c: Likewise.
15242         * ira.c: Likewise.
15243         * sched-deps.c: Likewise.
15244         * sel-sched.c: Likewise.
15245         * target-globals.c: Likewise.
15247 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
15249         PR bootstrap/55035
15250         * reload1.c (elimination_costs_in_insn): Make it obvious to the
15251         compiler that the n_dups and n_operands loop bounds are invariant.
15253 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15255         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
15256         expressions in A and B.
15258 2015-08-13  Richard Biener  <rguenther@suse.de>
15260         * tree.c (nonnull_arg_p): Move from ...
15261         * tree-vrp.c (nonnull_arg_p): ... here.
15262         * tree.h (nonnull_arg_p): Declare.
15263         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
15264         here, register ptr != 0 for nonnull_arg_p pointer arguments.
15265         Properly initialize static chain and by-reference result pointer.
15266         (run_scc_vn): Adjust.
15268 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15270         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
15271         TUNE_I6400.
15273 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15275         * config/aarch64/aarch64-protos.h
15276         (aarch64_gen_atomic_cas): Declare.
15277         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
15278         Choose appropriate instruction pattern for the target.
15279         (aarch64_gen_atomic_cas): New.
15280         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
15281         (atomic_compare_and_swap<mode>_1): Rename to
15282         aarch64_compare_and_swap<mode>.  Fix some indentation.
15283         (aarch64_compare_and_swap<mode>_lse): New.
15284         (aarch64_atomic_cas<mode>): New.
15286 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
15288         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
15289         (TARGET_LSE): New.
15291 2015-08-13  Richard Biener  <rguenther@suse.de>
15293         PR tree-optimization/67191
15294         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
15295         assert we value-numbered last stmts operand because it can validly
15296         trigger for unreachable code.
15298 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15300         PR rtl-optimization/67103
15301         * ifcvt.c (noce_try_store_flag_constants): Move
15302         x = (-(test != 0) & (b - a)) + a transformation to...
15303         (noce_try_cmove): ... Here.  Try it if normal conditional
15304         move fails.
15306 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
15308         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
15309         pseudo-processors.
15310         * config/mips/mips.md (processor): Remove w32 and w64.
15312 2015-08-13  Richard Biener  <rguenther@suse.de>
15314         PR tree-optimization/66502
15315         PR tree-optimization/67167
15316         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
15317         backedge arguments.
15318         (vn_phi_lookup): Adjust.
15319         (vn_phi_insert): Likewise.
15320         (visit_phi): Prefer to value-number to another PHI node
15321         over value-numbering to a PHI argument.
15322         (init_scc_vn): Mark DFS back edges.
15324 2015-08-13  Richard Biener  <rguenther@suse.de>
15326         * gimple.h (gcall::code_): New constant static member.
15327         (gcond::code_): Likewise.
15328         * gimple.c (gcall::code_): Define.
15329         (gcond::code_): Likewise.
15330         (is_a_helper <const gcond *>): Add.
15331         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
15332         and forward to a new gcall overload with less checking and a
15333         cheaper way to access the operand.
15334         (gimple_call_lhs_ptr): Likewise.
15335         (gimple_call_set_lhs): Likewise.
15336         (gimple_call_internal_p): Likewise.
15337         (gimple_call_with_bounds_p): Likewise.
15338         (gimple_call_set_with_bounds): Likewise.
15339         (gimple_call_internal_fn): Likewise.
15340         (gimple_call_set_ctrl_altering): Likewise.
15341         (gimple_call_ctrl_altering_p): Likewise.
15342         (gimple_call_fntype): Likewise.
15343         (gimple_call_fn): Likewise.
15344         (gimple_call_fn_ptr): Likewise.
15345         (gimple_call_set_fndecl): Likewise.
15346         (gimple_call_fndecl): Likewise.
15347         (gimple_call_chain): Likewise.
15348         (gimple_call_num_args): Likewise.
15349         (gimple_call_arg): Likewise.
15350         (gimple_call_arg_ptr): Likewise.
15351         (gimple_call_set_arg): Likewise.
15352         (gimple_call_noreturn_p): Likewise.
15353         (gimple_cond_code): Likewise.
15354         (gimple_cond_lhs): Likewise.
15355         (gimple_cond_rhs): Likewise.
15356         (gimple_has_lhs): Reduce checking.
15358 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15360         PR middle-end/25529
15361         * match.pd (div (mult @0 @1) @1) : New simplifier.
15363 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15365         PR target/67071
15366         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
15367         predicate to allow construction of vector constants using the
15368         VSLDOI vector shift instruction.
15370         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
15371         declaration.
15373         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
15374         the number of bytes to be shifted left and filled in with either
15375         all zero or all one bits.
15376         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
15377         methods exist.
15378         (output_vec_const_move): On power8, generate XXLORC to generate
15379         a vector constant with all 1's. Do a split if we need to use a
15380         VSLDOI instruction.
15382         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
15383         properly test for the MSB.
15385         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
15386         vector constants that can be created with VSLDOI.
15388 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15390         revert:
15391         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15392         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15393         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15394         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15395         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15396         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15397         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15398         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15399         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15401 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
15403         * config/xtensa/constraints.md (define_constraint "Y"): New
15404         constraint.
15405         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
15406         * config/xtensa/linux.h (ASM_SPEC): Likewise.
15407         * config/xtensa/predicates.md (move_operand): Match constants
15408         and symbols in the presence of TARGET_AUTO_LITPOOLS.
15409         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
15410         immediate references to TLS data.
15411         (xtensa_emit_move_sequence): Don't force constants to memory in
15412         the presence of TARGET_AUTO_LITPOOLS.
15413         (print_operand): Add 'y' format, same as default, but capable of
15414         printing SF mode constants as well.
15415         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
15416         (movsf_internal): Add movi pattern that loads literal.
15417         (movsf, movdf): Don't force constants to memory in the presence
15418         of TARGET_AUTO_LITPOOLS.
15419         (movdf_internal): Add 'Y' constraint.
15420         * config/xtensa/xtensa.opt (mauto-litpools): New option.
15421         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
15423 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15425         * config/arm/arm-fpus.def: Replace booleans with feature flags.
15426         Update comment.
15427         * config/arm/arm.c (ARM_FPU): Update macro.
15428         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
15429         (TARGET_FP16): Likewise.
15430         (TARGET_CRYPTO): Likewise.
15431         (TARGET_NEON): Likewise.
15432         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
15433         field features.
15435 2015-08-12  Tom de Vries  <tom@codesourcery.com>
15437         PR other/67092
15438         PR other/67098
15439         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
15440         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
15441         accordingly.  Mention default for --with-stage1-ldflags.
15443 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
15445         * config/arm/arm.h (arm_fpu_feature_set): New.
15446         (ARM_FPU_FSET_HAS): New.
15447         (FPU_FL_NONE): New.
15448         (FPU_FL_NEON): New.
15449         (FPU_FL_FP16): New.
15450         (FPU_FL_CRYPTO): New.
15452 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15454         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
15455         after -mcmodel=large -fPIC sorry.
15457 2015-08-12  Richard Biener  <rguenther@suse.de>
15459         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
15460         comparison operand order and commutative ternary op operand order.
15461         (sccvn_dom_walker::cond_stack): New state to track temporary
15462         expressions.
15463         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
15464         no longer valid.
15465         (sccvn_dom_walker::record_cond): Add a single temporary conditional
15466         expression.
15467         (sccvn_dom_walker::record_conds): Add a temporary conditional
15468         expressions and all related expressions also true/false.
15469         (sccvn_dom_walker::before_dom_children): Record temporary
15470         expressions based on the controlling condition of a single
15471         predecessor.  When trying to simplify a conditional statement
15472         lookup expressions we might have inserted earlier.
15474 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
15476         PR target/67127
15477         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
15478         to ARM core registers.
15480 2015-08-12  Nathan Sidwell  <nathan@acm.org>
15482         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
15483         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
15485 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
15487         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
15488         line with comments.
15489         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
15491 2015-08-12  Richard Biener  <rguenther@suse.de>
15493         * gimple.h (remove_pointer): New trait.
15494         (GIMPLE_CHECK2): New inline template function.
15495         (gassign::code_): New constant static member.
15496         (is_a_helper<const gassign *>): Add.
15497         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
15498         and forward to a new gassign overload with less checking and a
15499         cheaper way to access the operand.
15500         (gimple_assign_lhs_ptr): Likewise.
15501         (gimple_assign_set_lhs): Likewise.
15502         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
15503         Likewise.
15504         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
15505         Likewise.
15506         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
15507         Likewise.
15508         (gimple_assign_rhs_code): Likewise.
15509         * gimple.c (gassign::code_): Define.
15511 2015-08-12  Richard Biener  <rguenther@suse.de>
15513         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15514         Eliminate edges marked as not executable by SCCVN.
15515         * tree-ssa-sccvn.c: Include gimple-iterator.h.
15516         (cond_dom_walker): Rename to sccvn_dom_walker.
15517         (sccvn_dom_walker::before_dom_children): Value-number defs
15518         of all stmts.
15519         (run_scc_vn): Remove loop value-numbering all SSA names.
15520         Drop not visited SSA names to varying.
15522 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
15524         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
15525         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
15526         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
15527         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
15528         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15529         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15530         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
15531         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
15532         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
15534 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
15536         PR target/66954
15537         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
15538         to enum feature_priority and feature_list.
15539         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
15540         and isa_names_table.
15542 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15544         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
15545         vect_induction_def.
15547 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15549         PR c/66098
15550         PR c/66711
15551         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
15552         account when deciding what was the command-line status.
15554 2015-08-11  Nathan Sidwell  <nathan@acm.org>
15556         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
15558         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
15559         we're not the only contributor to target phi.
15561 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
15563         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
15564         FIXED_REG0.
15566 2015-08-11  Tom de Vries  <tom@codesourcery.com>
15568         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
15570 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
15572         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
15573         with CPU_SLM.
15574         * config/i386/i386.md (cpu): Remove knl.
15576 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15578         PR libgomp/65742
15579         PR middle-end/66332
15580         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
15581         open-coded sequence.
15582         * omp-low.c (oacc_process_reduction_data): Remove handline of
15583         GOMP_DEVICE_HOST_NONSHM.
15585         * lto-streamer-in.c (lto_input_mode_table): Adjust to
15586         GET_MODE_INNER changes.
15588 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15589             Ilya Verbin  <ilya.verbin@intel.com>
15591         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
15593 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15595         * doc/options.texi (EnabledBy): Document that the argument must be
15596         a Common option.
15597         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
15598         Not enabled by -Wall.
15599         * optc-gen.awk: Give nicer error messages. Detect if the argument
15600         of EnabledBy is not a Common option.
15601         * common.opt (Wnull-dereference): Not enabled by -Wall.
15602         * opt-functions.awk (lang_enabled_by): Nicer error messages.
15604 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15606         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
15607         model == 0x4f as Broadwell.
15609 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
15611         PR rtl-optimization/67028
15612         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
15613         Add test to see if a const_int fits in the new mode.
15615 2015-08-07  DJ Delorie  <dj@redhat.com>
15617         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
15619 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
15621         PR rtl-optimization/67029
15622         * ira-color.c: Include "recog.h" before including "ira-int.h".
15623         * target-globals.c: Likewise.
15624         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
15625         adds an alternative_mask argument and use it instead of
15626         preferred_alternatives.
15627         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
15628         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
15629         * sched-deps.c: Include "ira-int.h" after including "ira.h".
15630         (sched_analyze_insn): Update call to
15631         ira_implicitly_set_insn_hard_regs.
15632         * sel-sched.c: Include "ira-int.h" after including "ira.h".
15633         (implicit_clobber_conflict_p): Update call to
15634         ira_implicitly_set_insn_hard_regs.
15636 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15638         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
15640 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15642         PR target/67002
15643         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
15644         currently_expanding_to_rtl is set.
15646 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
15648         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
15649         * configure: Regenerate.
15651 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15652             Jiong Wang  <jiong.wang@arm.com>
15654         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
15655         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
15656         (REG_CLASS_NAMES): Likewise.
15657         (REG_CLASS_CONTENTS): Likewise.
15658         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
15659         (aarch64_register_move_cost): Likewise.
15660         (aarch64_load_symref_appropriately): Invoke the new added pattern if
15661         possible.
15662         * config/aarch64/constraints.md (Uc0): New constraint.
15664 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15666         * config/aarch64/constraints.md (Usf): Add the test of
15667         aarch64_is_noplt_call_p.
15669 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
15671         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
15672         declaration.
15673         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
15674         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
15675         (call_symbol): Likewise.
15677 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
15679         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
15680         for vectorizing multiplication patterns.
15681         * tree-vectorizer.h: Adjust the number of patterns.
15683 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
15685         * config/i386/sse.md (*vec_concatv2df): Declare added
15686         alternatives as sselog type.
15688 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15690         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
15691         all GPRs.
15693 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15695         * config/s390/s390.c (s390_expand_tbegin): Expand either
15696         tbegin_1_z13 or tbegin_1 depending on VX flag.
15697         * config/s390/s390.md ("tbegin_1_z13"): New expander.
15699 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15701         * config/s390/s390.opt: Clarify description for -mzvector
15702         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
15703         -mzvector.
15705 2015-08-06  Richard Biener  <rguenther@suse.de>
15707         * gimple.h (gimple_call_set_fn): Access op member directly.
15708         (gimple_call_chain_ptr): Likewise.
15709         (gimple_call_set_chain): Likewise.
15710         (gimple_cond_lhs_ptr): Likewise.
15711         (gimple_cond_set_lhs): Likewise.
15712         (gimple_cond_rhs_ptr): Likewise.
15713         (gimple_cond_set_rhs): Likewise.
15714         (gimple_cond_true_label): Likewise.
15715         (gimple_cond_set_true_label): Likewise.
15716         (gimple_cond_set_false_label): Likewise.
15717         (gimple_cond_false_label): Likewise.
15718         (gimple_label_label): Likewise.
15719         (gimple_label_set_label): Likewise.
15720         (gimple_goto_set_dest): Likewise.
15721         (gimple_asm_input_op): Likewise.
15722         (gimple_asm_input_op_ptr): Likewise.
15723         (gimple_asm_set_input_op): Likewise.
15724         (gimple_asm_output_op): Likewise.
15725         (gimple_asm_output_op_ptr): Likewise.
15726         (gimple_asm_set_output_op): Likewise.
15727         (gimple_asm_clobber_op): Likewise.
15728         (gimple_asm_set_clobber_op): Likewise.
15729         (gimple_asm_label_op): Likewise.
15730         (gimple_asm_set_label_op): Likewise.
15731         (gimple_switch_index): Likewise.
15732         (gimple_switch_index_ptr): Likewise.
15733         (gimple_return_retval_ptr): Likewise.
15734         (gimple_return_retval): Likewise.
15735         (gimple_return_set_retval): Likewise.
15736         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
15737         (gimple_switch_label): Likewise.
15738         (gimple_switch_set_label): Likewise.
15740 2015-08-06  Richard Biener  <rguenther@suse.de>
15742         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
15743         bool comparison canonicalization and restrict to integers.
15745 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
15747         * coretypes.h (enum symbol_visibility): Relocate here.
15748         * flag-types.h (enum symbol_visibility): Remove.
15749         * tree-core.h (enum symbol_visibility): Remove.
15751 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
15753         PR target/66870
15754         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
15755         for no_split_stack function attribute along with
15756         flag_split_stack.
15757         (rs6000_expand_split_stack_prologue): Likewise.
15759 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15760             Jeff Law  <law@redhat.com>
15762         PR c/16351
15763         * doc/invoke.texi (Wnull-dereference): New.
15764         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
15765         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
15766         Warn for potential NULL dereferences.
15767         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
15768         * ubsan.c (instrument_nonnull_arg): Call
15769         infer_nonnull_range_by_attribute.
15770         (instrument_nonnull_return): Likewise.
15771         * common.opt (Wnull-dereference); New.
15772         * gimple.c (infer_nonnull_range): Remove bool arguments.
15773         (infer_nonnull_range_by_dereference): New.
15774         (infer_nonnull_range_by_attribute): New.
15775         * gimple.h: Update declarations.
15777 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15779         * gensupport.c (sequence_num): Replace with...
15780         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
15781         ...these new variables.
15782         (init_rtx_reader_args_cb): Update accordingly.
15783         (get_num_code_insns): Likewise.
15784         (read_md_rtx): Rework to use a while loop and get_c_test.
15785         Use the new counters.  Remove redundant DEFINE_SUBST case.
15786         * genoutput.c (gen_split): Delete.
15787         (main): Don't call it.
15789 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15791         * gensupport.h (get_c_test): Declare.
15792         * gensupport.c (get_c_test): New function.
15793         * genconditions.c (main): Use it.
15794         * genrecog.c (validate_pattern): Likewise.
15795         (match_pattern_1): Likewise.  Remove c_test argument.
15796         (match_pattern): Update accordingly and remove c_test argument.
15797         (main): Update accordingly.
15799 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15801         * gensupport.h (get_num_insn_codes): Declare.
15802         * gensupport.c (get_num_insn_codes): New function.
15803         * genattrtab.c (optimize_attrs): Rename max_insn_code to
15804         num_insn_codes.
15805         (main): Likewise.  Use get_num_insn_codes.
15806         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
15808 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15810         PR middle-end/66311
15811         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
15812         is zero- rather than sign-extended.
15814 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
15816         * target-insns.def (can_extend): Delete.
15818 2015-08-05  Richard Biener  <rguenther@suse.de>
15820         PR tree-optimization/67121
15821         * tree-if-conv.c (combine_blocks): Clear range-info produced
15822         by stmts no longer executed conditionally.
15824 2015-08-05  Nick Clifton  <nickc@redhat.com>
15826         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
15827         to allow identical far pointers to remain.
15829 2015-08-05  Richard Biener  <rguenther@suse.de>
15831         PR middle-end/67120
15832         * match.pd: Compare address bases with == if they are decls
15833         or SSA names, not operand_equal_p.  Otherwise fail.
15835 2015-08-05  Richard Biener  <rguenther@suse.de>
15837         PR tree-optimization/67055
15838         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
15839         NULL gimple_block.
15841         * g++.dg/torture/pr67055.C: New testcase.
15843 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15845         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
15846         noavx512vl.
15847         (define_attr "enabled"): Handle avx521vl and noavx512vl.
15848         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
15849         AVX-512 alternative out of SSE.
15850         (define_insn "*vec_concatv2df"): Ditto.
15852 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
15854         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
15855         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
15856         CODE_FOR_avx_ptestv4di.
15857         * config/i386/sse.md (define_mode_iterator V_AVX): New.
15858         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
15859         (define_insn "avx_ptest256"): Merge this ...
15860         (define_insn "sse4_1_ptest"): And this ...
15861         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
15863 2015-08-05  Richard Biener  <rguenther@suse.de>
15865         PR tree-optimization/67109
15866         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
15867         against too big groups.  Print whether this is a load or store
15868         group.  Rename from ...
15869         (vect_analyze_group_access): ... this which is now a wrapper
15870         dissolving an invalid group.
15871         (vect_analyze_data_ref_accesses): Print whether this is a load
15872         or store group.
15874 2015-08-05  Richard Biener  <rguenther@suse.de>
15876         PR middle-end/67107
15877         * match.pd: Guard const_binop result checking against NULL_TREE
15878         result.
15880 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
15882         * cse.c (cse_insn): Restoring old behaviour for src_eqv
15883          when dest and value in the REG_EQUAL are same and dest
15884          is STRICT_LOW_PART.
15886 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
15888         * config/moxie/moxie.h (PRINT_OPERAND,
15889           PRINT_OPERAND_ADDRESS): Remove macros.
15890         * config/moxie/moxie-protos.h (moxie_print_operand,
15891           moxie_print_operand_address): Remove declaration.
15892         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
15893           TARGET_PRINT_OPERAND_ADDRESS): Define.
15894           (moxie_print_operand, moxie_print_operand_address): Make static.
15896 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15898         PR target/66731
15899         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
15900         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
15902 2015-08-04  Richard Biener  <rguenther@suse.de>
15904         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
15905         generated code.
15906         (dt_operand::gen_gimple_expr): Adjust.
15908 2015-08-04  Richard Biener  <rguenther@suse.de>
15910         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
15911         bool compares on RHS.
15912         * match.pd: Add X ==/!= !X is false/true pattern.
15914 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
15916         * config/aarch64/aarch64.c: Change inner loop statement cost
15917         to be consistent with other targets.
15919 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
15921         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
15922         targets.
15924 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
15926         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
15927         (machine_function): Remove pseudos field.
15929 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15931         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15932         Exit early and use target_option_current_node if processing current
15933         pragma.
15935 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15937         * doc/extend.texi (AArch64 Function Attributes): New node.
15938         (AArch64 Pragmas): Likewise.
15940 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15942         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
15943         Initialize simd builtins if TARGET_SIMD.
15944         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
15945         Make sure that the builtins are initialized only once no matter how
15946         many times the function is called.
15947         (aarch64_init_builtins): Unconditionally initialize crc builtins.
15948         (aarch64_relayout_simd_param): New function.
15949         (aarch64_simd_expand_args): Use above during argument expansion.
15950         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
15951         simd builtins if TARGET_SIMD.
15952         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
15953         prototype.
15954         (aarch64_relayout_simd_types): Likewise.
15956 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15958         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
15959         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
15960         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
15961         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
15962         static keyword.
15963         (aarch64_reset_previous_fndecl): New function.
15964         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
15965         the string.
15966         * config/aarch64/aarch64-c.c: New file.
15967         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
15968         Push and pop options at beginning and end.  Remove ifdef
15969         __ARM_FEATURE_CRC32.
15970         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
15971         Add pragma +nothing+simd and +nothing+crypto where appropriate.
15972         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
15973         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
15974         Define prototype.
15975         (aarch64_register_pragmas): Likewise.
15976         (aarch64_reset_previous_fndecl): Likewise.
15977         (aarch64_process_target_attr): Likewise.
15978         (aarch64_override_options_internal): Likewise.
15980 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15982         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
15983         New function.
15984         (aarch64_can_inline_p): Likewise.
15985         (TARGET_CAN_INLINE_P): Define.
15987 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15989         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15990         Remove static.  Handle OPT_mgeneral_regs_only,
15991         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
15992         OPT_momit_leaf_frame_pointer.
15993         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
15994         (aarch64_attr_opt_type): New enum.
15995         (aarch64_attribute_info): New struct.
15996         (aarch64_handle_attr_arch): New function.
15997         (aarch64_handle_attr_cpu): Likewise.
15998         (aarch64_handle_attr_tune): Likewise.
15999         (aarch64_handle_attr_isa_flags): Likewise.
16000         (aarch64_attributes): New table.
16001         (aarch64_process_one_target_attr): New function.
16002         (num_occurences_in_str): Likewise.
16003         (aarch64_process_target_attr): Likewise.
16004         (aarch64_option_valid_attribute_p): Likewise.
16005         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16006         * config/aarch64/aarch64-protos.h: Include input.h
16007         (aarch64_handle_option): Declare prototype.
16009 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16011         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
16012         * config/aarch64/aarch64.c: Include target-globals.h
16013         (aarch64_previous_fndecl): New variable.
16014         (aarch64_set_current_function): New function.
16015         (TARGET_SET_CURRENT_FUNCTION): Define.
16017 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16019         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
16020         (explicit_arch): Likewise.
16021         (x_aarch64_isa_flags): Likewise.
16022         (mgeneral-regs-only): Mark as Save.
16023         (mfix-cortex-a53-835769): Likewise.
16024         (mcmodel=): Likewise.
16025         (mstrict-align): Likewise.
16026         (momit-leaf-frame-pointer): Likewise.
16027         (mtls-dialect): Likewise.
16028         (master=): Likewise.
16029         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
16030         (aarch64_isa_flags): Remove extern declaration.
16031         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
16032         to indicate success or failure.
16033         (aarch64_validate_march): Likewise.
16034         (aarch64_validate_mtune): Likewise.
16035         (aarch64_isa_flags): Delete.
16036         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
16037         instead of aarch64_isa_flags.
16038         (aarch64_get_tune_cpu): New function.
16039         (aarch64_get_arch): Likewise.
16040         (aarch64_override_options): Use above and set up explicit_tune_core
16041         and explicit_arch.
16042         (aarch64_print_extension): Move earlier in file.  Add isa_flags
16043         argument and use that instead of the global aarch64_isa_flags.
16044         (aarch64_option_save): New function.
16045         (aarch64_option_restore): Likewise.
16046         (aarch64_option_print): Likewise.
16047         (aarch64_declare_function_name): Likewise.
16048         (aarch64_start_file): Delete.
16049         (TARGET_ASM_FILE_START): Do not define.
16050         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
16051         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
16052         Declare prototype.
16054 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16056         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
16057         flag_omit_leaf_frame_pointer to 2.
16059 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16061         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
16062         define to 0 or 1.
16063         (TARGET_FIX_ERR_A53_835769): New macro.
16064         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
16065         handling of opts->x_aarch64_fix_a53_err835769.
16066         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
16067         than aarch64_fix_a53_err835769.
16068         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
16069         * config/aarch64/aarch64-linux.h: Likewise.
16071 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
16073         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
16074         ix86_expand_int_movcc as boolean.
16076 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16078         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
16079         (aarch64_cpu_string): Likewise.
16080         (aarch64_tune_string): Likewise.
16081         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
16082         (aarch64_parse_extension): Return aarch64_parse_opt_result.
16083         Add extra argument to put result into.
16084         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
16085         (aarch64_parse_cpu): Add arguments to put results into. Return
16086         aarch64_parse_opt_result.
16087         (aarch64_parse_tune): Likewise.
16088         (aarch64_override_options_after_change_1): New function.
16089         (aarch64_override_options_internal): New function.
16090         (aarch64_validate_mcpu): Likewise.
16091         (aarch64_validate_march): Likewise.
16092         (aarch64_validate_mtune): Likewise.
16093         (aarch64_override_options): Update to reflect above changes.
16094         Move some logic into aarch64_override_options_internal.
16095         Initialize target_option_default_node and target_option_current_node.
16096         (aarch64_override_options_after_change): Move logic into
16097         aarch64_override_options_after_change_1 and call it with global_options.
16098         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
16099         flag values from that.
16101 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16103         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16104         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
16105         * config/aarch64/aarch64.c (struct processor): Add arch field.
16106         (all_architectures): Handle above, move above all_cores.
16107         (all_cores): Handle above.
16108         (aarch64_parse_arch): Handle above changes.
16109         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
16110         above.  Update comments.
16111         (armv8.1-a): Likewise.
16112         * config/aarch64/aarch64-cores.def: Update according to above.
16113         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
16114         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
16115         aarch64_arch_driver_info.
16117 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16119         * config/aarch64/aarch64.c (struct processor): Add ident field.
16120         Rename core sched_core.
16121         (all_cores): Handle above changes.
16122         (all_architectures): Likewise.
16123         (aarch64_parse_arch): Likewise.
16124         (aarch64_override_options): Likewise.
16126 2015-08-04  Richard Biener  <rguenther@suse.de>
16128         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16129         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
16130         comparisons embedded in [VEC_]COND_EXPRs.
16132 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
16134         * tree-if-conv.c: Fix various typos in comments.
16135         * tree-vect-stmts.c: Likewise.
16137 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16139         PR tree-optimization/67043
16140         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
16141         preheader after hoisting invariant in it.
16142         (find_defs): Force recomputation of all luids.
16144 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
16146         * config/rs6000/htm.md (tabort.): Restrict the source operand to
16147         using a base register.
16149 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
16151         * main.c (main): Pass in NULL for toplev's external_timer.
16152         * timevar.c: Include coretypes.h.
16153         (class timer::named_items): New.
16154         (timer::named_items::named_items): New.
16155         (timer::named_items::~named_items): New.
16156         (timer::named_items::push): New.
16157         (timer::named_items::pop): New.
16158         (timer::named_items::print): New.
16159         (timer::timer): Initialize field "m_jit_client_items".
16160         (timer::~timer): New.
16161         (timer::push): Move bulk of implementation to...
16162         (timer::push_internal): ...here.  New function.
16163         (timer::pop): Move bulk of implementation to...
16164         (timer::pop_internal): ...here.  New function.
16165         (timer::push_client_item): New.
16166         (timer::pop_client_item): New.
16167         (timer::print_row): New function, taken from timer::print.
16168         (timer::print): Print "GCC items" header if we also have client
16169         items.  Move row-printing to timer::print_row.  Print any client
16170         items.
16171         (timer::get_topmost_item_name): New method.
16172         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
16173         (TV_JIT_CLIENT_CODE): New.
16174         * timevar.h (timer::push_client_item): New declaration.
16175         (timer::pop_client_item): New declaration.
16176         (timer::get_topmost_item_name): New method.
16177         (timer::push_internal): New declaration.
16178         (timer::pop_internal): New declaration.
16179         (timer::print_row): New declaration.
16180         (timer::named_items): New declaration.
16181         (timer::m_jit_client_items): New field.
16182         (timer): Add friend class named_items.
16183         (auto_timevar::auto_timevar): Add timer param.
16184         (auto_timevar::~auto_timevar): Use field "m_timer".
16185         (auto_timevar::m_timer): New field.
16186         * toplev.c (initialize_rtl): Add g_timer as param when
16187         constructing auto_timevar instance.
16188         (toplev::toplev): Add "external_timer" param, and use it to
16189         initialize the "g_timer" global if non-NULL.
16190         (toplev::~toplev): If this created "g_timer", delete it.
16191         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
16192         with "external_timer" timer *.
16194 2015-08-03  Alexander Basov <coohpt@gmail.com>
16196         PR middle-end/64744
16197         PR middle-end/48470
16198         PR middle-end/43404
16199         * cfgexpand.c (expand_one_var): Add check if stack is going to
16200         be used in naked function.
16201         * expr.c (expand_expr_addr_expr_1): Remove excess checking
16202         whether expression should not reside in MEM.
16203         * function.c (use_register_for_decl): Do not use registers for
16204         non-register things (volatile, float, BLKMode) in naked functions.
16206 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
16208         PR target/67060
16209         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
16210         Adjust splits to match new pattern.
16212 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16214         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
16215         (VEC_M): Likewise.
16216         (VEC_N): Likewise.
16217         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
16218         point in VSX registers.
16220         * config/rs6000/constraints.md (wb constraint): Document unused
16221         w<x> constraint.
16222         (we constraint): Likewise.
16223         (wo constraint): Likewise.
16224         (wp constraint): New constraint for IEEE 128-bit floating point in
16225         VSX registers.
16226         (wq constraint): Likewise.
16228         * config/rs6000/predicates.md (easy_fp_constant): Add support for
16229         IEEE 128-bit floating point in VSX registers.
16230         (easy_scalar_constant): Likewise.
16232         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
16233         constraints (wp, wq) for IEEE 128-bit floating point in VSX
16234         registers.
16235         (rs6000_init_hard_regno_mode_ok): Likewise.
16237         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
16238         floating point in VSX registers.
16239         (VSX_L): Likewise.
16240         (VSX_M): Likewise.
16241         (VSX_M2): Likewise.
16242         (VSm): Likewise.
16243         (VSs): Likewise.
16244         (VSr): Likewise.
16245         (VSa): Likewise.
16246         (VSv): Likewise.
16247         (vsx_le_permute_<mode>): Add support to properly swap bytes for
16248         IEEE 128-bit floating point in VSX registers on little endian.
16249         (vsx_le_undo_permute_<mode>): Likewise.
16250         (vsx_le_perm_load_<mode>): Likewise.
16251         (vsx_le_perm_store_<mode>): Likewise.
16252         (splitters for IEEE 128-bit fp moves): Likewise.
16254         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
16255         wq constraints.
16257         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
16258         floating point in VSX registers.
16259         (VM2): Likewise.
16261         * doc/md.text (Machine Constraints): Document wp and wq
16262         constraints on PowerPC.
16264 2015-08-03  Jeff Law  <law@redhat.com>
16266         PR middle-end/66314
16267         PR gcov-profile/66899
16268         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
16269         iterate over the jump threading paths when an element in the
16270         jump threading paths array is eliminated.
16272 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
16274         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
16276 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
16278         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
16279         is_use_properly_guarded the variable def_preds.  Free its
16280         contents before returning.
16281         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
16282         (is_use_properly_guarded): Replace local variable def_preds with
16283         a parameter.  Adjust accordingly.  Only update *def_preds if it's
16284         the empty vector.
16286 2015-08-03  Richard Biener  <rguenther@suse.de>
16288         * genmatch.c (simplify::for_subst_vec): New member.
16289         (binary_ok): New helper for for lowering.
16290         (lower_for): Delay substituting operators into result expressions
16291         if we can merge the results eventually again.
16292         (capture_info::walk_result): Adjust for user_id appearing as
16293         result expression operator.
16294         (expr::gen_transform): Likewise.
16295         (dt_simplify::gen_1): Likewise.
16296         (dt_simplify::gen): Pass not substituted operators to tail
16297         functions or initialize local variable with it.
16298         (decision_tree::gen): Adjust function signature.
16299         * match.pd: Fix tests against global code and add default
16300         cases to switch stmts.
16302 2015-08-03  Richard Biener  <rguenther@suse.de>
16304         * genmatch.c (dt_simplify::gen): Create captures array
16305         with an initializer.
16307 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16309         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
16310         the host compiler is affected by placement new aliasing bug.
16311         * configure: Regenerate.
16312         * Makefile.in (ALIASING_FLAGS): New variable.
16313         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
16315 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16317         PR target/66731
16318         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
16319         (negmulsf3_vfp): Likewise.
16320         (muldf3negdf_vfp): Disable for -frounding-math.
16321         (mulsf3negsf_vfp): Likewise.
16322         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
16323         fix MULT cost with -frounding-math.
16325 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16327         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
16328         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
16329         explicit.  Prefer to add the flag whenever possible.
16330         (noce_process_if_block): Try noce_try_store_flag_constants before
16331         noce_try_cmove.
16333 2015-08-03  Richard Biener  <rguenther@suse.de>
16335         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
16336         New hash-map to record equivalent transforms.
16337         (dt_node::analyze): Populate the equivalent transforms hash-map.
16338         (dt_simplify::info): Add reference to hash-map entry.
16339         (dt_simplify::gen): If we have split out a function for the
16340         transform, generate a call to it.
16341         (sinfo_hashmap_traits::hash): New function.
16342         (compare_op): New helper function for ...
16343         (sinfo_hashmap_traits::equal_keys): ... this new function.
16344         (decision_tree::gen): Split out common equivalent transforms
16345         into functions.
16347 2015-08-03  Richard Biener  <rguenther@suse.de>
16349         * gimple-fold.c (fold_gimple_assign): Remove folding of
16350         the comparison in COND_EXPRs.
16352 2015-08-03  Richard Biener  <rguenther@suse.de>
16354         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
16355         on the rhs of assignments first simplify the embedded
16356         GENERIC condition.
16358 2015-08-03  Richard Biener  <rguenther@suse.de>
16360         PR tree-optimization/66917
16361         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
16362         field.
16363         (DR_VECT_AUX): New macro.
16364         (set_dr_misalignment): Adjust.
16365         (dr_misalignment): Likewise.
16366         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16367         Compute whether the base is at least element aligned.
16368         * tree-vect-stmts.c (ensure_base_align): Adjust.
16369         (vectorizable_store): If the base is not element aligned
16370         preserve alignment of the original access if misalignment is unknown.
16371         (vectorizable_load): Likewise.
16373 2015-08-02  Martin Sebor  <msebor@redhat.com>
16375         * c-family/c.opt (-Wframe-address): New warning option.
16376         * doc/invoke.texi (Wframe-address): Document it.
16377         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
16378         Clarify possible effects of calling the functions with non-zero
16379         arguments and mention -Wframe-address.
16380         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
16382 2015-08-01  Michael Collison  <michael.collison@linaro.org
16383             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16385         * config/arm/arm.md (*arm_smin_cmp): New pattern.
16386         (*arm_umin_cmp): Likewise.
16388 2015-08-01  Caroline Tice  <cmtice@google.com>
16390         PR 66521
16391         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
16392         global variables.
16393         (vtbl_find_mangled_name):  New function.
16394         (vtbl_register_mangled_name):  New function.
16395         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
16396         mangled name in mangled name vectors.
16397         (find_or_create_vtbl_map_node):  Ditto.
16398         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
16399         update recursion_depth on function entry; pass it to every recursive
16400         call; automatically exit if depth > 25 (give up looking at that point).
16401         (verify_bb_vtables):  Initialize recursion_depth and pass it to
16402         var_is_used_for_virtual_call_p.
16403         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
16404         global variable decls.
16405         (vtbl_register_mangled_name): New extern function decl.
16407 2015-08-01  Tom de Vries  <tom@codesourcery.com>
16409         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
16410         function.
16411         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
16412         Declare.
16413         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
16414         operation_no_trapping_overflow.  Allow non-overflow operations.
16415         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
16416         operations.
16418 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16420         PR target/67049
16421         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
16423 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16425         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
16426         Enable for TARGET_32BIT.
16427         (*if_move_neg): Likewise.
16429 2015-07-31  Nick Clifton  <nickc@redhat.com>
16431         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
16432         Returns true for __model__.
16433         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16435 2015-07-31  Alan Modra  <amodra@gmail.com>
16437         PR target/66870
16438         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
16439         (rs6000_emit_prologue): Set it.
16440         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
16442 2015-07-31  Richard Biener  <rguenther@suse.de>
16444         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
16445         -> X == (C1 ^ C2) which is already implemented in match.pd.
16446         Remove redundant dispatching to fold_relational_const.
16447         Move unordered self and NaN compares ...
16448         * match.pd: ... as patterns here.  Remove some stray captures
16449         and add a comment.
16451 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
16453         * config/i386/i386.c
16454         (bdesc_special_args): Convert mask type from signed to unsigned for
16455         masked builtins.
16456         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
16457         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
16458         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
16459         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
16460         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
16461         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
16462         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
16463         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
16464         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
16465         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
16466         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
16467         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
16468         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
16469         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
16470         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
16471         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
16472         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
16473         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
16474         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
16475         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
16476         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
16477         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
16478         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
16479         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
16480         * config/i386/i386-builtin-types.def
16481         (V16QI_FTYPE_V16SI): Remove.
16482         (V8DF_FTYPE_V8SI): Ditto.
16483         (V8HI_FTYPE_V8DI): Ditto.
16484         (V8SI_FTYPE_V8DI): Ditto.
16485         (V8SF_FTYPE_V8DF): Ditto.
16486         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
16487         (V16HI_FTYPE_V16SI): Ditto.
16488         (V16SF_FTYPE_V16HI): Ditto.
16489         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
16490         (V16SF_FTYPE_V16SI): Ditto.
16491         (V4DI_FTYPE_V4DI): Ditto.
16492         (V16SI_FTYPE_V16SF): Ditto.
16493         (V16SF_FTYPE_FLOAT): Ditto.
16494         (V8DF_FTYPE_DOUBLE): Ditto.
16495         (V8DI_FTYPE_INT64): Ditto.
16496         (V8DI_FTYPE_V4DI): Ditto.
16497         (V16QI_FTYPE_V8DI): Ditto.
16498         (UINT_FTYPE_V4SF): Ditto.
16499         (UINT64_FTYPE_V4SF): Ditto.
16500         (UINT_FTYPE_V2DF): Ditto.
16501         (UINT64_FTYPE_V2DF): Ditto.
16502         (V16SI_FTYPE_V16SI): Ditto.
16503         (V8DI_FTYPE_V8DI): Ditto.
16504         (V16SI_FTYPE_PV4SI): Ditto.
16505         (V16SF_FTYPE_PV4SF): Ditto.
16506         (V8DI_FTYPE_PV2DI): Ditto.
16507         (V8DF_FTYPE_PV2DF): Ditto.
16508         (V4DI_FTYPE_PV2DI): Ditto.
16509         (V4DF_FTYPE_PV2DF): Ditto.
16510         (V16SI_FTYPE_PV2SI): Ditto.
16511         (V16SF_FTYPE_PV2SF): Ditto.
16512         (V8DI_FTYPE_PV4DI): Ditto.
16513         (V8DF_FTYPE_PV4DF): Ditto.
16514         (V8SF_FTYPE_FLOAT): Ditto.
16515         (V4SF_FTYPE_FLOAT): Ditto.
16516         (V4DF_FTYPE_DOUBLE): Ditto.
16517         (V8SF_FTYPE_PV4SF): Ditto.
16518         (V8SI_FTYPE_PV4SI): Ditto.
16519         (V4SI_FTYPE_PV2SI): Ditto.
16520         (V8SF_FTYPE_PV2SF): Ditto.
16521         (V8SI_FTYPE_PV2SI): Ditto.
16522         (V16SF_FTYPE_PV8SF): Ditto.
16523         (V16SI_FTYPE_PV8SI): Ditto.
16524         (V8DI_FTYPE_V8SF): Ditto.
16525         (V4DI_FTYPE_V4SF): Ditto.
16526         (V2DI_FTYPE_V4SF): Ditto.
16527         (V64QI_FTYPE_QI): Ditto.
16528         (V32HI_FTYPE_HI): Ditto.
16529         (V8UHI_FTYPE_V8UHI): Ditto.
16530         (V16UHI_FTYPE_V16UHI): Ditto.
16531         (V32UHI_FTYPE_V32UHI): Ditto.
16532         (V2UDI_FTYPE_V2UDI): Ditto.
16533         (V4UDI_FTYPE_V4UDI): Ditto.
16534         (V8UDI_FTYPE_V8UDI): Ditto.
16535         (V4USI_FTYPE_V4USI): Ditto.
16536         (V8USI_FTYPE_V8USI): Ditto.
16537         (V16USI_FTYPE_V16USI): Ditto.
16538         (V2DF_FTYPE_V2DF_UINT64): Ditto.
16539         (V2DI_FTYPE_V2DF_V2DF): Ditto.
16540         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
16541         (V8DF_FTYPE_V8DF_V8DI): Ditto.
16542         (V4SF_FTYPE_V4SF_UINT64): Ditto.
16543         (V4SI_FTYPE_V4SF_V4SF): Ditto.
16544         (V16SF_FTYPE_V16SF_V16SI): Ditto.
16545         (V64QI_FTYPE_V32HI_V32HI): Ditto.
16546         (V32HI_FTYPE_V16SI_V16SI): Ditto.
16547         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
16548         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
16549         (V32HI_FTYPE_V64QI_V64QI): Ditto.
16550         (V32HI_FTYPE_V32HI_V32HI): Ditto.
16551         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
16552         (V16SI_FTYPE_V16SI_V4SI): Ditto.
16553         (V16SI_FTYPE_V16SI_V16SI): Ditto.
16554         (V16SI_FTYPE_V32HI_V32HI): Ditto.
16555         (V16SI_FTYPE_V16SI_SI): Ditto.
16556         (V8DI_FTYPE_V8DI_V8DI): Ditto.
16557         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
16558         (V8DI_FTYPE_V16SI_V16SI): Ditto.
16559         (V8DI_FTYPE_V8DI_V2DI): Ditto.
16560         (QI_FTYPE_QI): Ditto.
16561         (SI_FTYPE_SI): Ditto.
16562         (DI_FTYPE_DI): Ditto.
16563         (QI_FTYPE_QI_QI): Ditto.
16564         (QI_FTYPE_QI_INT): Ditto.
16565         (HI_FTYPE_HI_INT): Ditto.
16566         (SI_FTYPE_SI_INT): Ditto.
16567         (DI_FTYPE_DI_INT): Ditto.
16568         (HI_FTYPE_V16QI_V16QI): Ditto.
16569         (SI_FTYPE_V32QI_V32QI): Ditto.
16570         (DI_FTYPE_V64QI_V64QI): Ditto.
16571         (QI_FTYPE_V8HI_V8HI): Ditto.
16572         (HI_FTYPE_V16HI_V16HI): Ditto.
16573         (SI_FTYPE_V32HI_V32HI): Ditto.
16574         (QI_FTYPE_V4SI_V4SI): Ditto.
16575         (QI_FTYPE_V8SI_V8SI): Ditto.
16576         (QI_FTYPE_V2DI_V2DI): Ditto.
16577         (QI_FTYPE_V4DI_V4DI): Ditto.
16578         (QI_FTYPE_V8DI_V8DI): Ditto.
16579         (HI_FTYPE_V16SI_V16SI): Ditto.
16580         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
16581         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
16582         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
16583         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
16584         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
16585         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
16586         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
16587         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
16588         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
16589         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
16590         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
16591         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
16592         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
16593         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
16594         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
16595         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
16596         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
16597         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
16598         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
16599         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
16600         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
16601         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
16602         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
16603         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
16604         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
16605         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
16606         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
16607         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
16608         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
16609         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
16610         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
16611         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
16612         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
16613         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
16614         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
16615         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
16616         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
16617         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
16618         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
16619         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
16620         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
16621         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
16622         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
16623         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
16624         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
16625         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
16626         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
16627         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
16628         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
16629         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
16630         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
16631         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
16632         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
16633         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
16634         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
16635         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
16636         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
16637         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
16638         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
16639         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
16640         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
16641         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
16642         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
16643         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
16644         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
16645         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
16646         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
16647         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
16648         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
16649         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
16650         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
16651         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
16652         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
16653         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
16654         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
16655         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
16656         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
16657         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
16658         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
16659         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
16660         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
16661         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
16662         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
16663         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
16664         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
16665         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
16666         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
16667         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
16668         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
16669         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
16670         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
16671         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
16672         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
16673         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
16674         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
16675         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
16676         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
16677         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
16678         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
16679         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
16680         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
16681         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
16682         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
16683         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
16684         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
16685         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
16686         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
16687         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
16688         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
16689         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
16690         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
16691         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
16692         (HI_FTYPE_HI): Ditto.
16693         (HI_FTYPE_V16QI): Ditto.
16694         (SI_FTYPE_V32QI): Ditto.
16695         (DI_FTYPE_V64QI): Ditto.
16696         (QI_FTYPE_V8HI): Ditto.
16697         (HI_FTYPE_V16HI): Ditto.
16698         (SI_FTYPE_V32HI): Ditto.
16699         (QI_FTYPE_V4SI): Ditto.
16700         (QI_FTYPE_V8SI): Ditto.
16701         (HI_FTYPE_V16SI): Ditto.
16702         (QI_FTYPE_V2DI): Ditto.
16703         (QI_FTYPE_V4DI): Ditto.
16704         (QI_FTYPE_V8DI): Ditto.
16705         (V16QI_FTYPE_HI): Ditto.
16706         (V32QI_FTYPE_SI): Ditto.
16707         (V64QI_FTYPE_DI): Ditto.
16708         (V8HI_FTYPE_QI): Ditto.
16709         (V16HI_FTYPE_HI): Ditto.
16710         (V32HI_FTYPE_SI): Ditto.
16711         (V4SI_FTYPE_QI): Ditto.
16712         (V4SI_FTYPE_HI): Ditto.
16713         (V8SI_FTYPE_QI): Ditto.
16714         (V8SI_FTYPE_HI): Ditto.
16715         (V2DI_FTYPE_QI): Ditto.
16716         (V4DI_FTYPE_QI): Ditto.
16717         (HI_FTYPE_HI_HI): Ditto.
16718         (SI_FTYPE_SI_SI): Ditto.
16719         (DI_FTYPE_DI_DI): Ditto.
16720         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
16721         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
16722         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
16723         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
16724         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
16725         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
16726         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
16727         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
16728         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
16729         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
16730         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
16731         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
16732         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
16733         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
16734         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
16735         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
16736         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
16737         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
16738         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
16739         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
16740         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
16741         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
16742         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
16743         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
16744         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
16745         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
16746         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
16747         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
16748         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
16749         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
16750         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
16751         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
16752         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
16753         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
16754         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
16755         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
16756         (V16SI_FTYPE_HI): Ditto.
16757         (V8DI_FTYPE_QI): Ditto.
16758         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
16759         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
16760         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
16761         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
16762         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
16763         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
16764         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
16765         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
16766         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
16767         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
16768         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
16769         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
16770         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
16771         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
16772         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
16773         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
16774         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
16775         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
16776         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
16777         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
16778         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
16779         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
16780         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
16781         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
16782         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
16783         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
16784         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
16785         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
16786         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
16787         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
16788         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
16789         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
16790         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
16791         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
16792         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
16793         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
16794         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
16795         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
16796         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
16797         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
16798         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
16799         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
16800         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
16801         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
16802         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
16803         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
16804         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
16805         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
16806         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
16807         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
16808         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
16809         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
16810         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
16811         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
16812         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
16813         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
16814         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
16815         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
16816         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
16817         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
16818         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
16819         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
16820         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
16821         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
16822         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
16823         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
16824         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
16825         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
16826         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
16827         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
16828         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
16829         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
16830         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
16831         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
16832         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
16833         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
16834         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
16835         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
16836         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
16837         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
16838         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
16839         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
16840         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
16841         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
16842         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
16843         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
16844         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
16845         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
16846         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
16847         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
16848         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
16849         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
16850         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
16851         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
16852         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
16853         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
16854         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
16855         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
16856         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
16857         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
16858         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
16859         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
16860         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
16861         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
16862         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
16863         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
16864         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
16865         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
16866         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
16867         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
16868         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
16869         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
16870         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
16871         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
16872         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
16873         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
16874         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
16875         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
16876         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
16877         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
16878         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
16879         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
16880         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
16881         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
16882         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
16883         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
16884         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
16885         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
16886         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
16887         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
16888         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
16889         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
16890         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
16891         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
16892         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
16893         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
16894         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
16895         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
16896         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
16897         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
16898         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
16899         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
16900         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
16901         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
16902         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
16903         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
16904         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
16905         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
16906         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
16907         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
16908         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
16909         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
16910         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
16911         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
16912         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
16913         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
16914         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
16915         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
16916         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
16917         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
16918         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
16919         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
16920         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
16921         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
16922         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
16923         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
16924         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
16925         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
16926         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
16927         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
16928         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
16929         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
16930         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
16931         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
16932         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
16933         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
16934         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
16935         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
16936         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
16937         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
16938         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
16939         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
16940         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
16941         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
16942         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
16943         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
16944         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
16945         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
16946         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
16947         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
16948         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
16949         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
16950         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
16951         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
16952         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
16953         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
16954         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
16955         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
16956         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
16957         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
16958         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
16959         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
16960         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
16961         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
16962         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
16963         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
16964         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
16965         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
16966         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
16967         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
16968         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
16969         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
16970         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
16971         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
16972         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
16973         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
16974         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
16975         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
16976         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
16977         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
16978         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
16979         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
16980         (QI_FTYPE_V8DF_INT_QI): Ditto.
16981         (QI_FTYPE_V4DF_INT_QI): Ditto.
16982         (QI_FTYPE_V2DF_INT_QI): Ditto.
16983         (HI_FTYPE_V16SF_INT_HI): Ditto.
16984         (QI_FTYPE_V8SF_INT_QI): Ditto.
16985         (QI_FTYPE_V4SF_INT_QI): Ditto.
16986         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
16988 2015-07-31  Richard Biener  <rguenther@suse.de>
16990         * gimple-fold.c (fold_gimple_assign): Remove folding of
16991         GIMPLE_BINARY_RHS.
16993 2015-07-31  Tom de Vries  <tom@codesourcery.com>
16995         PR tree-optimization/66846
16996         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
16997         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
16998         (expand_omp_target) [ENABLE_CHECKING]: Same.
16999         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
17000         cfun if !LOOPS_NEED_FIXUP.
17001         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
17002         that omp_for already has its own loop struct.
17003         * tree-parloops.c (create_phi_for_local_result)
17004         (create_call_for_reduction): Handle simple latch bb.
17005         (create_parallel_loop): Add simple latch bb to preserve
17006         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
17007         (gen_parallel_loop): Remove call to cancel_loop_tree.
17008         (parallelize_loops): Skip loops that are inner loops of parallelized
17009         loops.
17010         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
17011         verify_loop_structure.
17013 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17015         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
17016         * config/v850/v850.md (RV_REGNUM): New constants.
17017         * config/v850/v850.c (v850_libcall_value): New functions.
17018         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
17019         (TARGET_LIBCALL_VALUE): Define.
17021 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
17023         * rtl.h (lowpart_subreg): Move in file.
17024         * loop-iv.c (lowpart_subreg): Move to...
17025         * simplify-rtx.c (lowpart_subreg): ...here.
17026           (simplify_binary_operation_1): Use lowpart_subreg instead of
17027           simplify_gen_subreg.
17028         * expr.c (expand_expr_real_2): Ditto.
17029         * emit-rtl.c (gen_lowpart_common): Ditto.
17030         * combine.c (gen_lowpart_for_combine): Ditto.
17031         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
17032           expand_debug_source_expr): Ditto.
17034 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
17036         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
17037         (expand_builtin_atomic_clear): Remove support for atomic_clear
17038         pattern.
17040 2015-07-30  Richard Biener  <rguenther@suse.de>
17042         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
17043         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
17044         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
17045         redundant operand canonicalization.
17047 2015-07-30  David Sherwood  <david.sherwood@arm.com>
17049         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
17050         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
17051         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
17052         * config/arm/arm.c (neon_valid_immediate): Likewise.
17053         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
17054         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
17055         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
17056         (expand_vec_perm_vpshufb2_vpermq): Likewise.
17057         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
17058         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
17059         * config/i386/sse.md
17060         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
17061         (*ssse3_palignr<mode>_perm): Likewise.
17062         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
17063         * config/spu/spu.c (arith_immediate_p): Likewise.
17064         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17065         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
17067 2015-07-30  Richard Biener  <rguenther@suse.de>
17069         * genmatch.c (decision_tree::gen_gimple): Merge with ...
17070         (decision_tree::gen_generic): ... this into ...
17071         (decision_tree::gen): ... this.
17072         (main): Adjust callers.
17074 2015-07-30  Richard Biener  <rguenther@suse.de>
17076         * genmatch.c (verbose): New global.
17077         (warning_at): Add overload with source_location.
17078         (capture_info::capture_info): Add bool whether generating gimple
17079         or generic.  Add gimple member.
17080         (capture_info::cinfo): Add capture member.
17081         (capture_info::walk_match): Record capture.  Warn on
17082         non-captured leafs.
17083         (capture_info::walk_c_expr): Add more fragments captures cannot
17084         escape through.  Warn on escaped captures.
17085         (dt_simplify::gen_1): Warn on operands we force to have no
17086         side-effects.
17087         (main): Initialize verbose.
17088         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
17090 2015-07-30  Richard Biener  <rguenther@suse.de>
17092         PR middle-end/67053
17093         * match.pd: Allow both operands to independently have conversion
17094         when simplifying compares of addresses.
17096 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
17098         PR target/66217
17099         PR target/67045
17100         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
17101         around those cases that need one.
17103 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
17105         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
17107 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17109         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
17110         New.  Copied from config/i386/gnu-user.h.
17111         (ASM_COMMENT_START): Likewise.
17112         (DBX_REGISTER_NUMBER): Likewise.
17114 2015-07-29  Richard Biener  <rguenther@suse.de>
17116         * gimple-fold.c (fold_gimple_cond): Remove.
17117         (fold_stmt_1): Do not call it.
17119 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
17121         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
17122         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
17124         * config/aarch64/aarch64-modes.def: Add HFmode.
17126         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17127         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
17129         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
17130         aarch64_promoted_type): New.
17132         (aarch64_float_const_representable_p): Disable HFmode.
17133         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
17134         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
17135         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
17137         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
17138         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
17140         * config/aarch64/iterators.md (GPF_F16): New.
17142 2015-07-29  Richard Biener  <rguenther@suse.de>
17144         * match.pd: Merge address comparison patterns and make them
17145         handle some more cases.
17147 2015-07-29  Richard Biener  <rguenther@suse.de>
17149         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
17150         (parser::parse_capture): Add bool argument on whether to reject
17151         unknown captures.
17152         (parser::parse_expr): Adjust.
17153         (parser::parse_op): Likewise.
17154         (parser::parse_pattern): Likewise.
17156 2015-07-29  Richard Biener  <rguenther@suse.de>
17158         * gimple-fold.c (has_use_on_stmt): New function.
17159         (replace_stmt_with_simplification): Use it to allow
17160         abnormals originally referenced in the stmt.
17161         (fold_stmt_1): Canonicalize operand order.
17163 2015-07-28  David Sherwood  <david.sherwood@arm.com>
17165         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
17166         GET_MODE_INNER unconditionally.
17167         * config/spu/spu.c (arith_immediate_p): Likewise.
17168         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
17169         * expmed.c (synth_mult): Remove check for VOIDmode result from
17170         GET_MODE_INNER.
17171         (expand_mult_const): Likewise.
17172         * fold-const.c (fold_binary_loc): Replace call to element_precision
17173         with call to GET_MODE_PRECISION.
17174         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
17175         m->name.
17176         (emit_mode_inner): Likewise.
17177         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
17178         result check.
17179         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
17180         (GET_MODE_UNIT_PRECISION): Likewise.
17181         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
17182         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17183         * stor-layout.c (bitwise_type_for_mode): Update assert.
17184         (element_precision): Remove.
17186 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17188         * target-insns.def (reload_load_address): New targetm instruction
17189         pattern.
17190         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
17192 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17194         * target-insns.def (atomic_test_and_set): New targetm instruction
17195         pattern.
17196         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
17197         HAVE_*/gen_* interface.
17199 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17201         * target-insns.def (can_extend, ptr_extend): New targetm instruction
17202         patterns.
17203         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
17204         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
17205         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17206         * rtlanal.c (nonzero_bits1): Likewise.
17207         (num_sign_bit_copies1): Likewise.
17209 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17211         * target-insns.def (eh_return): New targetm instruction pattern.
17212         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
17213         interface.
17214         * function.c (thread_prologue_and_epilogue_insns): Remove
17215         preprocessor condition.
17217 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17219         * target-insns.def (indirect_jump): New targetm instruction pattern.
17220         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
17221         interface.
17223 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
17225         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
17226         instead of nonimmediate_operand.  Remove C condiition.
17228 2015-07-28  Richard Biener  <rguenther@suse.de>
17230         * match.pd: Add more simplification of address comparisons.
17232 2015-07-28  Richard Biener  <rguenther@suse.de>
17234         * match.pd: Re-order two cases in comparison with max/min
17235         value simplification to make it apply for bools.
17237 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17239         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
17240         Handle simple SIGN_EXTEND or ZERO_EXTEND.
17241         (aarch64_rtx_costs): Properly strip extend or extract before
17242         passing down to rtx costs again.
17244 2015-07-28  Nick Clifton  <nickc@redhat.com>
17246         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
17247         Optimizes the case where -mes0 is active and a constant symbolic
17248         address is used.
17249         * config/rl78/rl78-protos.h: Prototype the new function.
17250         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
17252 2015-07-28  Tom de Vries  <tom@codesourcery.com>
17254         * tree-parloops.c (reduc_stmt_res): New function.
17255         (initialize_reductions, add_field_for_reduction)
17256         (create_phi_for_local_result, create_loads_for_reductions)
17257         (create_stores_for_reduction, build_new_reduction): Handle case that
17258         reduc_stmt is a phi.
17259         (gather_scalar_reductions): Allow double_reduc reductions.
17261 2015-07-28  Richard Biener  <rguenther@suse.de>
17263         * fold-const.c (fold_comparison): Remove equality folding
17264         of decl addresses ...
17265         * match.pd: ... here and merge with existing pattern.
17267 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17269         PR tree-optimization/66828
17270         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
17271         from int64_t to uint64_t.
17273 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17275         * opts-common.c (read_cmdline_option): List DriverOnly enum values
17276         as valid only in the error message of the driver, not in the
17277         messages of the language compilers.
17279 2015-07-27  Tom de Vries  <tom@codesourcery.com>
17281         * tree-parloops.c (gather_scalar_reductions): Simplify function
17282         structure.
17284 2015-07-27  Marek Polacek  <polacek@redhat.com>
17286         * ipa-devirt.c (types_same_for_odr): Fix typo.
17288 2015-07-27  Jason Merrill  <jason@redhat.com>
17290         PR debug/66468
17291         * dwarf2out.c (gen_inlined_subroutine_die): Check
17292         cgraph_function_possibly_inlined_p.
17294 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17296         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
17297         Place integer variant first.
17298         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17300 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17302         PR/63870
17303         * config/arm/arm-builtins.c (enum arm_builtins):
17304         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
17305         (ARM_BUILTIN_NEON_BASE): Rename macro to....
17306         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
17307         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
17308         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
17310 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
17312         PR/63870
17313         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
17314         Add qualifier_lane_index.
17315         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
17316         (arm_getlane_qualifiers): Use qualifier_lane_index.
17317         (arm_lanemac_qualifiers): Rename to...
17318         (arm_mac_n_qualifiers): ...this.
17319         (LANEMAC_QUALIFIERS): Rename to...
17320         (MAC_N_QUALIFIERS): ...this.
17321         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
17322         (arm_setlane_qualifiers): Use qualifier_lane_index.
17323         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
17324         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
17325         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
17326         (arm_expand_neon_builtin): Handle qualifier_lane_index.
17328         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
17329         * config/arm/arm.c (bounds_check): Likewise, improve error message.
17330         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
17331         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
17332         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
17333         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
17334         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
17335         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
17336         qualifiers to TERNOP_IMM.
17337         (vdup_lane): Change qualifiers to GETLANE.
17338         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
17339         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
17340         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
17341         vqdmlsl_n): Change qualifiers to MAC_N.
17343         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
17344         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
17345         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
17346         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
17347         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
17348         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
17349         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
17350         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
17351         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
17352         Remove call to neon_lane_bounds.
17354 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
17356         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
17357         Place integer variant first.
17359 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
17361         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
17362         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
17363         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
17364         for armv6kz targets.
17365         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
17366         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
17367         (FL_FOR_ARCH6ZK): Remove.
17368         (FL_FOR_ARCH6KZ): New.
17369         (arm_arch6zk): New declaration.
17370         * config/arm/arm-tables.opt: Regenerate.
17371         * config/arm/arm.c (arm_arch6kz): New.
17372         (arm_option_override): Set arm_arch6kz.
17373         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
17374         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
17375         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
17377 2015-07-27  Marek Polacek  <polacek@redhat.com>
17379         PR c++/66555
17380         PR c/54979
17381         * doc/invoke.texi: Document -Wtautological-compare.
17383 2015-07-27  Richard Biener  <rguenther@suse.de>
17385         * genmatch.c (decision_tree::gen_gimple): Split out large
17386         subtrees into separate functions.
17387         (decision_tree::gen_generic): Likewise.
17389 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
17391         * config/alpha/alpha.c: Use SUBREG_P predicate.
17392         * config/alpha/predicates.md: Ditto.
17394 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17396         * config.host (s390*-*-*): Include driver-native.c only when
17397         building with s390* as host *and* target.
17399 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
17401         PR target/66930
17402         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
17403         T bit register modified_between_p check.
17405 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17407         * config/i386/i386.c: Use SUBREG_P predicate.
17408         * config/i386/i386.md: Ditto.
17409         * config/i386/sse.md: Ditto.
17410         * config/i386/predicates.md: Ditto.
17412 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17414         PR target/67004
17415         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
17416         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
17418 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17420         * Makefile.in: Remove use of TREEBROWSER.
17421         * config.in: Regenerated.
17422         * configure: Regenerated.
17423         * configure.ac: Remove definition of TREEBROWSER.
17424         * tree-browser.c: Removed.
17425         * tree-browser.def: Removed.
17427 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17429         * graphite-scop-detection.c: Include gimple-pretty-print.h.
17430         (stmt_simple_for_scop_p): Print when a stmt is not handled in
17431         Graphite.
17432         (scopdet_basic_block_info): Print when a loop or bb cannot be
17433         represented in Graphite.
17435 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17437         PR target/66648
17438         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
17439         execution guard when min_size is less than size_needed.
17441 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
17443         * doc/install.texi: Document supported versions of ISL.
17445 2015-07-25  Jeff Law  <law@redhat.com>
17447         Revert:
17448         PR lto/66752
17449         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17450         unable to find X NE 0 in the tables, return X as the simplified
17451         condition.
17452         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17453         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17454         to VISISTED_BBS.  */
17455         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17456         after removing the control flow statement and unnecessary edges.
17458 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
17460         Revert:
17461         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17463         PR rtl-optimization/64164
17464         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17465         * tree-ssa-copyrename.c: Removed.
17466         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17467         -ftree-coalesce-vars.
17468         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17469         * common.opt (ftree-copyrename): Ignore.
17470         (ftree-coalesce-inlined-vars): Likewise.
17471         * doc/invoke.texi: Remove the ignored options above.
17472         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17473         * tree-ssa-coalesce.h: ... here.
17474         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17475         headers required by it.
17476         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17477         across variables when flag_tree_coalesce_vars.  Check register
17478         use and promoted modes to allow coalescing.  Moved to
17479         tree-ssa-coalesce.c.
17480         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17481         with its member functions to tree-ssa-coalesce.c.
17482         (var_map_base_init): Likewise.  Renamed to
17483         compute_samebase_partition_bases.
17484         (partition_view_normal): Drop want_bases parameter.
17485         (partition_view_bitmap): Likewise.
17486         * tree-ssa-live.h: Adjust declarations.
17487         * tree-ssa-coalesce.c: Include explow.h.
17488         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17489         default defs at the entry point.
17490         (dump_part_var_map): New.
17491         (compute_optimized_partition_bases): New, called by...
17492         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17493         of compute_samebase_partition_bases.  Adjust.
17494         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17495         * cfgexpand.c (leader_merge): New.
17496         (get_rtl_for_parm_ssa_default_def): New.
17497         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17498         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17499         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17500         redundant MEM attr setting.
17501         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17502         from...
17503         (expand_one_stack_var): ... this.  New wrapper to check and
17504         skip already expanded SSA partitions.
17505         (record_alignment_for_reg_var): New, factored out of...
17506         (expand_one_var): ... this.
17507         (expand_one_ssa_partition): New.
17508         (adjust_one_expanded_partition_var): New.
17509         (expand_one_register_var): Check and skip already expanded SSA
17510         partitions.
17511         (expand_used_vars): Don't create DECLs for anonymous SSA
17512         names.  Expand all SSA partitions, then adjust all SSA names.
17513         (pass::execute): Replace the loops that set
17514         SA.partition_to_pseudo from partition leaders and cleared
17515         DECL_RTL for multi-location variables, and that which used to
17516         rename vars and set attrs, with one that clears DECL_RTL and
17517         checks that PARMs and RESULTs default_defs match DECL_RTL.
17518         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17519         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17520         * explow.c (promote_ssa_mode): New.
17521         * explow.h (promote_ssa_mode): Declare.
17522         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17523         * function.c: Include cfgexpand.h.
17524         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17525         (use_register_for_parm_decl): Wrapper for the above to
17526         special-case the result_ptr.
17527         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17528         (split_complex_args): Take assign_parm_data_all argument.
17529         Pass it to rtl_for_parm.  Set up rtl and context for split
17530         args.
17531         (assign_parms_augmented_arg_list): Adjust.
17532         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17533         multiple locations.  Recognize split complex args.
17534         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17535         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17536         (assign_parm_setup_block): Prefer SSA-assigned location.
17537         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17538         if stack_parm is NULL.
17539         (assign_parm_setup_stack): Prefer SSA-assigned location.
17540         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17541         rtl before testing for pointer bounds.  Special-case result_ptr.
17542         (expand_function_start): Maybe reset DECL_RTL of result.
17543         Prefer SSA-assigned location for result and static chain.
17544         Factor out DECL_RESULT and SET_DECL_RTL.
17545         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17546         anonymous SSA names.  Use promote_ssa_mode.
17547         (get_temp_reg): Likewise.
17548         (remove_ssa_form): Adjust.
17549         * stor-layout.c (layout_decl): Don't set mem attributes of
17550         non-MEMs.
17551         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17552         and get its reg_usage for reg invalidation.
17553         (compute_bb_dataflow): Pass it insn.
17554         (emit_notes_in_bb): Likewise.
17556 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
17558         * config/i386/i386.c (ix86_va_start): Remove
17559         unneeded !TARGET_64BIT check.
17560         (ix86_gimplify_va_arg): Ditto.
17562 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17564         * graphite-sese-to-poly.c (build_poly_scop): Always call
17565         rewrite_commutative_reductions_out_of_ssa.
17567 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17569         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
17570         flag_associative_math to FLOAT_TYPE_P.  Honour
17571         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
17573 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17575         PR c++/64079
17576         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
17577         and "%qD" in warning_at instead of "%q+D" in warning.
17579 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17581         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
17582         (ix86_function_abi): Cleanup.
17584 2015-07-24  Michael Darling  <darlingm@gmail.com>
17586         PR other/66259
17587         * acinclude.m4: Reflects renaming of configure.in to configure.ac
17588         * configure: Likewise
17589         * configure.ac: Likewise
17590         * doc/install.texi: Likewise
17591         * doc/tm.texi: Likewise
17592         * doc/tm.texi.in: Likewise
17594 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17596         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
17597         manually swapping values.
17598         * cse.c (fold_rtx): Likewise.
17599         * lra-eliminations.c (form_sum): Likewise.
17601 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
17603         PR target/64003
17604         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
17605         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
17606         (*jcc_1, *jcc_2, jump, simple_return_internal)
17607         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
17608         Set length_nobnd attribute instead of length attribute.
17609         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
17610         (length_nobnd): Remove attribute.
17611         (length): Remove length_nobnd processing.
17613 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
17615         * gimplify.c (omp_default_clause): New function.  Reorganize flow
17616         for clarity. Broken out of ...
17617         (omp_notice_variable): ... here.
17619 2015-07-24  Gary Funck  <gary@intrepid.com>
17621         PR middle-end/66984
17622         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
17623         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
17625 2015-07-24  Tom de Vries  <tom@codesourcery.com>
17627         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
17628         exit-first loop transform.
17630 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
17632         PR 66714
17633         * tree-cfg.c (struct replace_decls_d): New struct.
17634         (replace_block_vars_by_duplicates_1): New function.
17635         (replace_block_vars_by_duplicates): Use it to replace the decls
17636         in the value exprs by duplicates.
17638 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17640         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17641         -shared, -symbolic, -rdynamic.
17643 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17645         PR target/65711
17646         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
17647         -dynamic-linker within %{!static %{!shared, and -rdynamic within
17648         %{!static.
17650 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
17652         PR ipa/66566
17653         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
17654         edge summary is available.
17656 2015-07-24  Richard Biener  <rguenther@suse.de>
17658         * genmatch.c (struct dt_node): Add statistic fields.
17659         (dt_node::analyze): New method.
17660         (decision_tree::gen_gimple): Call analyze on the root node
17661         and print statistics to stderr.
17662         (decision_tree::gen_generic): Likewise.
17664 2015-07-24  Richard Biener  <rguenther@suse.de>
17666         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
17667         against the highest or lowest possible integer ...
17668         * match.pd: ... as patterns here.
17670 2015-07-24  Richard Biener  <rguenther@suse.de>
17672         * genmatch.c (struct capture_info): Add same_as field.
17673         (capture_info::capture_info): Initialize same_as.
17674         (capture_info::walk_match): Compute same_as.
17675         (capture_info::walk_result): Compute stuff for the leader.
17676         (capture_info::walk_c_expr): Likewise.
17677         (dt_simplify::gen_1): Only look at leaders when deciding
17678         to force no side-effects or emit side-effects of omitted operands.
17680 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17682         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
17683         reg note to the GPR -> FPR save instructions.
17685 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17687         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
17688         cheaper.
17689         (s390_expand_insv): Don't generate risbg pattern for constant zero
17690         sources.
17691         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
17692         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
17693         splitters.
17695 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17697         * config/s390/s390.c (s390_reorg): Clean up handling of processors
17698         with
17699         -mtune=
17700         (s390_issue_rate): Likewise.
17701         (s390_sched_reorder): Likewise.
17702         (s390_sched_variable_issue): Likewise.
17703         (s390_loop_unroll_adjust): Likewise.
17704         (s390_option_override):  Likewise.
17706 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17708         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
17709         processor capabilities with -march=native.
17710         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
17711         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
17712         (S390_TARGET_BITS_STRING): Macro to simplify specs.
17714 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17716         * config/s390/s390.c (s390_issue_rate): Handle
17717         PROCESSOR_2094_Z9_EC.
17718         (s390_option_override): Likewise.
17719         (s390_adjust_priority): Likewise.
17721 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17723         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
17724         when cross compiling.
17726 2015-07-24  Richard Biener  <rguenther@suse.de>
17728         * fold-const.c (maybe_canonicalize_comparison_1): Move
17729         A code CST canonicalization ...
17730         * match.pd: ... to a pattern here.
17732 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
17734         Revert:
17735         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
17736         PR target/63521
17737         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
17738         (HONOR_REG_ALLOC_ORDER): Define.
17740 2015-07-24  Richard Biener  <rguenther@suse.de>
17742         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
17743         * fold-const.c (fold_comparison): Move parameter does not
17744         alias &local simplification ...
17745         * match.pd: ... as a pattern here.
17747 2015-07-24  Richard Biener  <rguenther@suse.de>
17749         * gimple-fold.c (replace_stmt_with_simplification): Special-case
17750         valueizing call operands.
17751         * gimple-match-head.c (maybe_push_res_to_seq): Take
17752         number of call arguments from ops array.
17753         (do_valueize): New function.
17754         (gimple_simplify): Return true if valueization changed
17755         any operand even if the result didn't simplify further.
17757 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17759         PR middle-end/25530
17760         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
17762 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17764         PR middle-end/25529
17765         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
17767 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17769         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
17770         instruction.
17772 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17774         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
17775         clean up.
17777 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
17779         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
17780         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
17781         targets here.
17782         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
17783         ms_va_list_type_node initialization.
17785 2015-07-23  Jeff Law  <law@redhat.com>
17787         PR lto/66752
17788         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17789         unable to find X NE 0 in the tables, return X as the simplified
17790         condition.
17791         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17792         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
17793         to VISISTED_BBS.  */
17794         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17795         after removing the control flow statement and unnecessary edges.
17797 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17799         * tree-pass.h (get_current_pass_name): Removed.
17801 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
17803         PR rtl-optimization/64164
17804         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17805         * tree-ssa-copyrename.c: Removed.
17806         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17807         -ftree-coalesce-vars.
17808         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17809         * common.opt (ftree-copyrename): Ignore.
17810         (ftree-coalesce-inlined-vars): Likewise.
17811         * doc/invoke.texi: Remove the ignored options above.
17812         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17813         * tree-ssa-coalesce.h: ... here.
17814         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17815         headers required by it.
17816         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17817         across variables when flag_tree_coalesce_vars.  Check register
17818         use and promoted modes to allow coalescing.  Moved to
17819         tree-ssa-coalesce.c.
17820         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17821         with its member functions to tree-ssa-coalesce.c.
17822         (var_map_base_init): Likewise.  Renamed to
17823         compute_samebase_partition_bases.
17824         (partition_view_normal): Drop want_bases parameter.
17825         (partition_view_bitmap): Likewise.
17826         * tree-ssa-live.h: Adjust declarations.
17827         * tree-ssa-coalesce.c: Include explow.h.
17828         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17829         default defs at the entry point.
17830         (dump_part_var_map): New.
17831         (compute_optimized_partition_bases): New, called by...
17832         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17833         of compute_samebase_partition_bases.  Adjust.
17834         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17835         * cfgexpand.c (leader_merge): New.
17836         (get_rtl_for_parm_ssa_default_def): New.
17837         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17838         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17839         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17840         redundant MEM attr setting.
17841         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17842         from...
17843         (expand_one_stack_var): ... this.  New wrapper to check and
17844         skip already expanded SSA partitions.
17845         (record_alignment_for_reg_var): New, factored out of...
17846         (expand_one_var): ... this.
17847         (expand_one_ssa_partition): New.
17848         (adjust_one_expanded_partition_var): New.
17849         (expand_one_register_var): Check and skip already expanded SSA
17850         partitions.
17851         (expand_used_vars): Don't create DECLs for anonymous SSA
17852         names.  Expand all SSA partitions, then adjust all SSA names.
17853         (pass::execute): Replace the loops that set
17854         SA.partition_to_pseudo from partition leaders and cleared
17855         DECL_RTL for multi-location variables, and that which used to
17856         rename vars and set attrs, with one that clears DECL_RTL and
17857         checks that PARMs and RESULTs default_defs match DECL_RTL.
17858         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17859         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17860         * explow.c (promote_ssa_mode): New.
17861         * explow.h (promote_ssa_mode): Declare.
17862         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17863         * function.c: Include cfgexpand.h.
17864         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17865         (use_register_for_parm_decl): Wrapper for the above to
17866         special-case the result_ptr.
17867         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17868         (split_complex_args): Take assign_parm_data_all argument.
17869         Pass it to rtl_for_parm.  Set up rtl and context for split
17870         args.
17871         (assign_parms_augmented_arg_list): Adjust.
17872         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17873         multiple locations.  Recognize split complex args.
17874         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17875         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17876         (assign_parm_setup_block): Prefer SSA-assigned location.
17877         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17878         if stack_parm is NULL.
17879         (assign_parm_setup_stack): Prefer SSA-assigned location.
17880         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17881         rtl before testing for pointer bounds.  Special-case result_ptr.
17882         (expand_function_start): Maybe reset DECL_RTL of result.
17883         Prefer SSA-assigned location for result and static chain.
17884         Factor out DECL_RESULT and SET_DECL_RTL.
17885         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17886         anonymous SSA names.  Use promote_ssa_mode.
17887         (get_temp_reg): Likewise.
17888         (remove_ssa_form): Adjust.
17889         * stor-layout.c (layout_decl): Don't set mem attributes of
17890         non-MEMs.
17891         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17892         and get its reg_usage for reg invalidation.
17893         (compute_bb_dataflow): Pass it insn.
17894         (emit_notes_in_bb): Likewise.
17896 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17898         PR target/66217
17899         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
17900         prototype.
17901         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
17902         (rs6000_emit_2insn_and): Handle dot forms.
17903         * config/rs6000/rs6000.md (and<mode>3): Adjust.
17904         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
17905         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
17907 2015-07-23  Richard Biener  <rguenther@suse.de>
17909         * generic-match-head.c: Include cgraph.h.
17910         * gimple-match-head.c: Likewise.
17911         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
17912         SSA names.
17913         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
17914         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
17915         pattern.
17917 2015-07-23  Richard Biener  <rguenther@suse.de>
17919         * gimple-fold.c (fold_gimple_cond): Do not require folding
17920         results to pass valid_gimple_rhs_p.
17921         * tree-cfg.h (fold_cond_expr_cond): Remove.
17922         * tree-cfg.c (fold_cond_expr_cond): Likewise.
17923         (make_edges): Do not call it.
17924         * tree-inline.c (tree_function_versioning): Likewise.
17926 2015-07-23  Tom de Vries  <tom@codesourcery.com>
17928         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
17929         vect_force_simple_reduction.
17930         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
17931         (vect_is_simple_reduction_1): Add and handle
17932         need_wrapping_integral_overflow parameter.
17933         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
17934         need_wrapping_integral_overflow parameter.
17935         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
17936         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
17937         decl.
17939 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
17941         PR tree-optimization/66926,66951
17942         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
17943         INNER_LOOP and fix up condition for renaming virtual operands.
17945 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17947         * combine.c (try_combine): Use std::swap instead of manually
17948         swapping.
17950 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
17952         * config/mips/i6400.md: New file.
17953         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
17954         (mips64r6): Likewise.
17955         (i6400): Define.
17956         * config/mips/mips-tables.opt: Regenerate.
17957         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
17958         (mips_issue_rate): Add support for i6400.
17959         (mips_multipass_dfa_lookahead): Likewise.
17960         * config/mips/mips.h (TUNE_I6400): Define.
17961         * config/mips/mips.md: Include i6400.md.
17962         (processor): Add i6400.
17963         * doc/invoke.texi (-march=@var{arch}): Add i6400.
17965 2015-07-23  Richard Biener  <rguenther@suse.de>
17967         PR middle-end/66916
17968         * match.pd: Guard widen and sign-change comparison simplification
17969         with single_use.
17971 2015-07-23  Richard Biener  <rguenther@suse.de>
17973         PR tree-optimization/66945
17974         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
17975         ::before_dom_children): Force the propagators idea of
17976         non-executable edges to materialize, not what the folder
17977         chooses.
17979 2015-07-23  Richard Biener  <rguenther@suse.de>
17981         * gimple.h (gimple_cond_make_false): Use 0 != 0.
17982         (gimple_cond_make_true): Use 1 != 0.
17984 2015-07-22  DJ Delorie  <dj@redhat.com>
17986         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
17987         slashes.
17989         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
17990         (ashrhi3): Likewise.
17991         (lshrhi3): Likewise.
17992         (movhi): Take advantage of zero-extend to load small constants.
17993         (movpsi): Likewise.
17994         (and<mode>3): Likewise.
17995         (zero_extendqihi2): Likewise.
17996         (zero_extendqisi2): New.
17997         * config/msp430/constraints.md (N,O): New.
17998         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
18000 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
18002         PR target/66954
18003         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
18004         to enum feature_priority and feature_list.
18005         (fold_builtin_cpu): Add F_AES to enum processor_features
18006         and isa_names_table.
18008 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18010         PR driver/66737
18011         * config/i386/linux-common.h (MPX_SPEC): Use linker option
18012         for 64bit target only.
18014 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18016         * config/nvptx/nvptx.c: Expand some comments.
18018 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
18020         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
18021         (cortex_a53_advsimd): ...This.
18023 2015-07-22  Richard Biener  <rguenther@suse.de>
18025         * genmatch.c (expr::gen_transform): Clarify error message
18026         and display location.
18028 2015-07-22  Richard Biener  <rguenther@suse.de>
18030         * genmatch.c (struct operand): Add location member.
18031         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
18032         constructors.
18033         (struct simplify): Remove match_location and result_location
18034         members.
18035         (elsehwere): Adjust.
18037 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
18039         * config/mips/m5100.md: New file.
18040         * config/mips/mips-cpus.def (m5100, m5101): Define.
18041         * config/mips/mips-tables.opt: Regenerate.
18042         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
18043         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
18044         -march=m5101 to -mips32r5.
18045         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
18046         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
18047         !-msoft-float.
18048         * config/mips/mips.md: Include m5100.md.
18049         (processor): Add m5100.
18050         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
18052 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
18054         * config/mips/mips-cpus.def (interaptiv): Define.
18055         * config/mips/mips-tables.opt: Regenerate.
18056         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
18057         -mips32r2.
18058         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
18059         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
18061 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
18063         PR target/63521
18064         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
18065         (HONOR_REG_ALLOC_ORDER): Define.
18067 2015-07-22  Richard Biener  <rguenther@suse.de>
18069         PR tree-optimization/66952
18070         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
18071         blocks we end up executing unconditionally reset all SSA
18072         info such as range and alignment.
18073         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
18074         * tree-ssanames.c (reset_flow_sensitive_info): New function.
18076 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18078         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
18079         typo in attribute.
18081 2015-07-22  Richard Biener  <rguenther@suse.de>
18083         * genmatch.c (parser::parse_result): Properly handle
18084         match with result operands and conditions.
18086 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
18088         PR target/63870
18089         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18090         Add qualifier_struct_load_store_lane_index.
18091         (aarch64_types_loadstruct_lane_qualifiers): Use
18092         qualifier_struct_load_store_lane_index for lane index argument for
18093         last argument.
18094         (aarch64_types_storestruct_lane_qualifiers): Ditto.
18095         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18096         (aarch64_simd_expand_args): Add new argument describing mode of
18097         builtin. Check lane bounds for arguments with
18098         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18099         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
18100         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
18101         (aarch64_simd_expand_builtin): Handle arguments with
18102         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
18103         aarch64_simd_expand_args.
18104         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
18105         vst[234]_lane with BUILTIN_VALLDIF.
18106         * config/aarch64/aarch64-simd.md:
18107         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
18108         endianness reversal on lane index.
18109         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
18110         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
18111         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
18112         (vec_store_lanesci_lane<mode>): Ditto.
18113         (vec_store_lanesxi_lane<mode>): Ditto.
18114         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
18115         reversal of lane index.
18116         (aarch64_ld3_lane<mode>): Ditto.
18117         (aarch64_ld4_lane<mode>): Ditto.
18118         (aarch64_st2_lane<mode>): Ditto.
18119         (aarch64_st3_lane<mode>): Ditto.
18120         (aarch64_st4_lane<mode>): Ditto.
18121         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
18122         to qmode. Add new mode parameter. Update uses.
18123         (__LD3_LANE_FUNC): Ditto.
18124         (__LD4_LANE_FUNC): Ditto.
18125         (__ST2_LANE_FUNC): Ditto.
18126         (__ST3_LANE_FUNC): Ditto.
18127         (__ST4_LANE_FUNC): Ditto.
18129 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
18131         * doc/invoke.texi (Language Independent Options): Rename node to
18132         Diagnostic Message Formatting Options.
18134 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
18136         PR ipa/66424.
18137         * lra-remat.c (operand_to_remat): Prevent using insns with input
18138         subregs processed separately by IRA.
18140 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
18142         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
18143         straight loops.
18144         (single_imm_use): Check for iterator node.
18145         (num_imm_uses): Likewise.
18146         * tree-ssa-operands.c (has_zero_uses_1): Delete.
18147         (single_imm_use_1): Check for iterator node.
18149 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
18150             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18152         * configure.ac: Add check for new options in isl-0.15.
18153         * config.in, configure: Rebuilt.
18154         * graphite-blocking.c: Include <isl/constraint.h>
18155         * graphite-interchange.c,  graphite-poly.c: Likewise.
18156         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
18157         * graphite.c: Likewise.
18158         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
18159         <isl/union_set.h>.
18160         * graphite-dependences.c: Include <isl/constraint.h>.
18161         (max_number_of_out_dimensions): Returns isl_stat.
18162         (extend_schedule_1): Likewise
18163         (extend_schedule): Corresponding changes.
18164         * graphite-optimize-isl.c: Include <isl/constraint.h> and
18165         <isl/union_set.h>.
18166         (getSingleMap): Change return type of isl_stat.
18167         (optimize_isl): Conditionally use
18168         isl_options_set_schedule_serialize_sccs.
18169         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
18170         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
18172 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
18174         PR target/66956
18175         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
18176         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
18178 2015-07-21  Richard Biener  <rguenther@suse.de>
18180         PR tree-optimization/66948
18181         * genmatch.c (capture_info::walk_match): Also recurse to
18182         captures.  Properly compute expr state from captures of
18183         captures.
18184         * match.pd: Add single-use guards to
18185         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
18187 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
18189         * config/nvptx/mkoffload.c (process): Add static destructor call.
18191 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18193         PR middle-end/66915
18194         * match.pd (A - B -> A + (-B)): Don't allow folding
18195         when type if a fixed-point type.
18197 2015-07-20  DJ Delorie  <dj@redhat.com>
18199         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
18200         (iorqi3_real): Likewise for set1.
18202 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
18204         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
18205         for !TARGET_64BIT.
18207 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
18209         * graphite-isl-ast-to-gimple.c:
18210         Refactor so that each function can access 'region'. This will help
18211         maintain a parameter rename_map within a region.
18213 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18215         * config/rs6000/rs6000.md (*lt0_disi): New.
18217 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
18219         PR target/66217
18220         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
18221         "available letters" comment.
18222         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
18223         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
18224         and_2rld_operand):  Delete.
18225         (and_operand): Adjust.
18226         (rotate_mask_operator): New.
18227         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
18228         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
18229         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
18230         extract_ME): Delete.
18231         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18232         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
18233         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
18234         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18235         rs6000_emit_2insn_and): New.
18236         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
18237         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
18238         includes_rldic_lshift_p, includes_rldicr_lshift_p,
18239         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
18240         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
18241         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
18242         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
18243         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
18244         rs6000_emit_2insn_and): New.
18245         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
18246         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
18247         handling.
18248         <NOT>: Don't fall through to next case.
18249         <AND>: Handle the various rotate-and-mask cases directly.
18250         <IOR>: Always cost as one insn.
18251         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
18252         (and<mode>3): Adjust expander for the new patterns.
18253         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
18254         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
18255         (*and<mode>3_imm_dot_shifted): New.
18256         (*and<mode>3_mask): Delete, rewrite as ...
18257         (and<mode>3_mask): ... New.
18258         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
18259         (andsi3_internal0_nomc): Delete.
18260         (*andsi3_internal6): Delete.
18261         (*and<mode>3_2insn): New.
18262         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18263         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18264         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
18265         *insvdi_internal3): Delete.
18266         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
18267         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
18268         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
18269         *ior<mode>_mask): New.
18270         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
18271         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18272         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18273         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18274         Delete.
18275         (ashr<mode>3): Delete expander.
18276         (*ashr<mode>3): Rename to ...
18277         (ashr<mode>3): ... This.
18278         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
18279         (*rotldi3_internal4, *rotldi3_internal5 and split,
18280         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
18281         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
18282         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
18283         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
18284         (splitter for loading a mask): Adjust.
18285         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
18287 2015-07-20  Marek Polacek  <polacek@redhat.com>
18289         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
18290         output_add_clobbers, output_added_clobbers_hard_reg_p,
18291         gen_rtx_scratch): Remove declarations.
18293 2015-07-20  Marek Polacek  <polacek@redhat.com>
18295         PR c++/55095
18296         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
18298 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18300         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
18301         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
18303 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18305         * combine.c (combine_simplify_rtx): Move simplification step
18306         before various transformations/substitutions.
18308 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
18310         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
18311         (struct int_traits): Likewise.
18313 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18315         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
18316         function to vmsdbgout_function_decl.
18318 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18320         PR target/66922
18321         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
18322         from misaligned positions.
18323         (ix86_expand_pinsr): Reject insertions to misaligned positions.
18325 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
18327         PR middle-end/46851
18328         PR middle-end/60340
18329         * Makefile.in: Removed omega.o.
18330         * common.opt: Document flag fcheck-data-deps as deprecated.
18331         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
18332         its associated params: omega-max-vars, omega-max-geqs,
18333         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
18334         omega-max-keys, omega-eliminate-redundant-constraints.
18335         * doc/loop.texi: Remove all the section on Omega.
18336         * graphite-blocking.c: Include missing params.h: it used to be
18337         included through tree-data-ref.h and omega.h.
18338         * graphite-isl-ast-to-gimple.c: Same.
18339         * graphite-optimize-isl.c: Same.
18340         * graphite-sese-to-poly.c: Same.
18341         * graphite.c: Same.
18342         * omega.c: Remove.
18343         * omega.h: Remove.
18344         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
18345         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
18346         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
18347         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
18348         * passes.def: Remove pass_check_data_deps.
18349         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
18350         (dump_conflict_function): Same.
18351         (dump_subscript): Same.
18352         (print_direction_vector): Same.
18353         (print_dir_vectors): Same.
18354         (print_lambda_vector): Same.
18355         (print_dist_vectors): Same.
18356         (dump_data_dependence_relation): Same.
18357         (dump_data_dependence_relations): Same.
18358         (dump_dist_dir_vectors): Same.
18359         (dump_ddrs): Same.
18360         (init_omega_eq_with_af): Removed.
18361         (omega_extract_distance_vectors): Removed.
18362         (omega_setup_subscript): Removed.
18363         (init_omega_for_ddr_1): Removed.
18364         (init_omega_for_ddr): Removed.
18365         (ddr_consistent_p): Removed.
18366         (compute_affine_dependence): Do not use omega to check data
18367         dependences.
18368         (compute_data_dependences_for_bb): Removed.
18369         (analyze_all_data_dependences): Removed.
18370         (tree_check_data_deps): Removed.
18371         * tree-data-ref.h: Do not include omega.h.
18372         (compute_data_dependences_for_bb): Removed.
18373         (tree_check_data_deps): Removed.
18374         * tree-ssa-loop.c (pass_check_data_deps): Removed.
18375         (make_pass_check_data_deps): Removed.
18376         * tree-ssa-phiopt.c: Include params.h.
18377         * tree-vect-data-refs.c: Same.
18378         * tree-vect-slp.c: Same.
18380 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
18382         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
18383         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
18384         (mem->fpreg splitters): Ditto.
18385         (general_operand->nonimmediate_operand splitter): Use explicit modes.
18386         Disable DFmode for TARGET_64BIT.
18388 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
18390         PR target/66906
18391         * config/i386/i386.c (ix86_expand_prologue): Replicate static
18392         chain on the stack.
18394 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18396         * config/nvptx/mkoffload.c (process): Constify host data.
18397         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18398         Constify host data.
18399         (generate_host_descr_file): Likewise.
18401 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
18402             Sebastian Pop  <s.pop@samsung.com>
18404         PR middle-end/61929
18405         * graphite-dependences.c (add_pdr_constraints): Renamed
18406         pdr->extent to pdr->subscript_sizes.
18407         * graphite-interchange.c (build_linearized_memory_access): Add
18408         back all gcc_assert's that the "isl_int to isl_val conversion"
18409         patch has removed.  Refactored.
18410         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
18411         * graphite-poly.c (new_poly_dr): Same.
18412         (free_poly_dr): Same.
18413         * graphite-poly.h (struct poly_dr): Same.
18414         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
18415         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
18416         * graphite-scop-detection.h: Fix space.
18417         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
18418         back all gcc_assert's removed by a previous patch.
18419         (wrap): Remove the_isl_ctx global variable that the same patch has
18420         added.
18421         (build_loop_iteration_domains): Same.
18422         (add_param_constraints): Same.
18423         (pdr_add_data_dimensions): Same.  Refactored.
18424         (build_poly_dr): Renamed extent to subscript_sizes.
18426 2015-07-17  Marek Polacek  <polacek@redhat.com>
18428         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
18429         * match.pd: ... here.
18431 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
18433         * config/nvptx/mkoffload.c (process): Constify target data.
18434         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
18435         Constify target data.
18436         (generate_target_offloadend_file): Likewise.
18438 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
18440         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
18441         to allow renaming of PHI arguments on edges incoming from outer
18442         loop header, add corresponding check before start PHI iterator.
18443         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
18444         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
18445         with true force_vectorize.  Set-up dominator for outer loop too.
18446         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
18447         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
18448         was marked with force_vectorize and has restricted cfg.
18449         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
18450         inner loop.
18451         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
18452         do peeling for outer loops.
18454 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
18455             Matthias Klose  <doko@ubuntu.com>
18457         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
18458         build-sysroot, sysroot from the `Miscenalleous configure options' to
18459         the `Directories' section and strip trailing `/' from with_sysroot.
18460         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
18461         * configure: Regenerated.
18463 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18465         PR target/66824
18466         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
18467         (TARGET_HARD_DF_REGS): Ditto.
18468         (TARGET_HARD_XF_REGS): Ditto.
18469         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
18470         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
18471         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
18472         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
18473         (*movsf_internal): Add alternatives 16 and 17. Enable
18474         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
18476 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
18478         PR rtl-optimization/66891
18479         * calls.c (expand_call): Wrap precompute_register_parameters with
18480         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
18482 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
18484         * config/nvptx/mkoffload.c (process): Constify mapping variables.
18485         Define target data struct and initialize it.
18487 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
18489         PR rtl-optimization/66626
18490         * ira.h (emit-rtl.h): Include.
18491         (non_spilled_static_chain_regno_p): New.
18492         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
18493         unless it is non spilled static chain pseudo.
18494         (assign_hard_rego): Spill memory profitable allocno unless it is
18495         non spilled static chain pseudo.
18496         (allocno_spill_priority_compare): Put non spilled static chain
18497         pseudo at the end of sorted array.
18498         (improve_allocation): Do nothing if we have static chain and
18499         non-local goto.
18500         (allocno__priority_compare_func): Put non spilled static chain
18501         pseudo at the beginning of sorted array.
18502         (move_spill_restore): Ignore non spilled static chain pseudo.
18503         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
18504         to non spilled static chain pseudo.
18505         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
18506         pseudo at the beginning of sorted array.
18507         (spill_for): Spill non spilled static chain pseudo last.
18508         * lra-constraints.c (lra_constraints): Remove static chain pseudo
18509         check for equivalence.
18511 2015-07-16  Martin Liska  <mliska@suse.cz>
18513         PR ipa/66896.
18514         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
18515         dst_ctx if it does not exist.
18517 2015-07-16  Martin Liska  <mliska@suse.cz>
18519         * hash-set.h (remove): New function.
18520         (iterator): New iteration class for hash_set.
18522 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18524         * genattrtab.c (make_canonical): Add a file_location parameter.
18525         Use fatal_at rather than fatal.
18526         (get_attr_value): Likewise.  Update call to make_canonical.
18527         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
18528         (make_internal_attr): Update calls accordingly.
18530 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18532         * read-md.h (message_with_line, error_with_line): Delete.
18533         * read-md.c (message_with_line, error_with_line): Delete.
18534         * gensupport.h: Include read-md.h.
18535         (md_rtx_info): New structure.
18536         (read_md_rtx): Use it.  Return a bool success value.
18537         * gensupport.c (read_md_rtx): Likewise.
18538         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
18539         (main): Update after interface changes.
18540         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
18541         (main): Update after interface changes.
18542         * genattrtab.c (insn_code_number): Delete.
18543         (optimize_attrs): Add a max_insn_code parameter and use it instead
18544         of insn_code_number.
18545         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
18546         Use *_at rather than *_with_line functions.
18547         (gen_insn): Likewise.
18548         (gen_delay): Likewise.
18549         (gen_insn_reserv): Likewise.
18550         (gen_bypass): Take an md_rtx_info rather than an rtx.
18551         (main): Update after interface changes.  Use a local max_insn_code
18552         variable instead of insn_code_number.
18553         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
18554         an rtx.  Use fatal_at rather than fatal.
18555         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
18556         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
18557         (gen_absence_set, gen_final_absence_set, gen_automaton)
18558         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
18559         (main): Update after interface changes.
18560         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
18561         and code number.
18562         (main): Update after interface changes.
18563         * genconditions.c (main): Use new read_md_rtx interface.
18564         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
18565         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
18566         (main): Update after interface changes.
18567         * genemit.c (insn_code_number, insn_index_number): Delete.
18568         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18569         Use fatal_at rather than fatal.
18570         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
18571         rather than fatal.
18572         (gen_split): Likewise.
18573         (main): Update after interface changes.
18574         * genextract.c (line_no): Delete.
18575         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18576         Update call to walk_rtx.
18577         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
18578         rather than message_with_line.
18579         (walk_rtx): Add an md_rtx_info argument.  Update call to
18580         VEC_safe_set_locstr.
18581         (main): Update after interface changes.
18582         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
18583         and lineno.  Use error_at rather than separate message_with_line
18584         calls and have_error assignments.
18585         (main): Update after interface changes.
18586         * genmddump.c (main): Use new read_md_rtx interface.
18587         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
18588         (main): Update after interface changes.
18589         * genoutput.c (next_code_number): Delete.
18590         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
18591         (gen_peephole, gen_expand, gen_split): Likewise.
18592         (note_constraint): Likewise.  Use *_at rather than *_with_line
18593         functions.
18594         (main): Update after interface changes.
18595         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
18596         rtx and lineno.
18597         (main): Update after interface changes.
18598         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
18599         than an rtx and lineno.
18600         (process_define_constraint): Likewise.
18601         (process_define_register_constraint): Likewise.
18602         (main): Update after interface changes.
18603         * genrecog.c (next_insn_code, pattern_lineno): Delete.
18604         (validate_pattern): Replace top-level rtx with an md_rtx_info.
18605         Use *_at rather than *_with_line functions.
18606         (match_pattern_2): Likewise.
18607         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
18608         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
18609         Use *_at rather than *_with_line functions.
18610         * gentarget-def.c (add_insn): New function.
18611         (main): Use it.  Use new read_md_rtx interface.
18613 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18615         * gensupport.h (compute_test_codes): Take a file_location rather
18616         than a line number.
18617         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
18618         rather than *_with_line functions.
18619         (process_define_predicate): Update call to compute_test_codes.
18620         * genpreds.c (validate_exp): Take a file_location rather than a
18621         line number.  Use *_at functions rather than *_with_line functions.
18622         (process_define_predicate): Update call to validate_exp.
18623         (constraint_data): Replace lineno field with a file_location.
18624         (add_constraint): Take a file_location rather than a line number.
18625         Use *_at functions rather than *_with_line functions.  Fix error
18626         message for address constraints.  Update after changes to
18627         validate_exp, constraint_data and compute_test_codes.
18628         (process_define_constraint): Update accordingly.
18629         (process_define_register_constraint): Likewise.
18631 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18633         * genoutput.c (data): Use a file_location to record the source
18634         position.
18635         (nothing): Delete.
18636         (idata, idata_end): Remove initialization.
18637         (constraint_data): Replace lineno with a file_location.
18638         (output_insn_data): Update after changes to data.
18639         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
18640         (scan_operands): Likewise, using *_at rather than *_with_line
18641         functions.
18642         (process_template): Likewise.
18643         (validate_insn_alternatives): Likewise.
18644         (validate_insn_operands): Likewise.
18645         (validate_optab_operands): Likewise.
18646         (init_insn_for_nothing): Initialize idata and idata_end.
18647         (note_constraint): Update after changes to constraint_data,
18648         using at rather than with_line functions.
18649         (mdep_constraint_len): Take a file_location rather than a
18650         line number.  Use at rather than with_line functions.
18652 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18654         * read-md.h (fatal_at): Declare.
18655         * read-md.c (fatal_at): New function.
18656         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
18657         to record the source position.
18658         (check_attr_test): Take a file_location instead of a line number.
18659         Use fatal_at instead of fatal.
18660         (check_attr_value): Update after above changes, using "at"
18661         rather than "with_line" reporting functions.
18662         (convert_set_attr_alternative): Likewise.
18663         (gen_attr): Likewise.
18664         (check_defs): Likewise.  Don't assign to read_md_filename.
18665         (gen_insn): Update initialization after above changes.
18666         (gen_delay): Likewise.
18667         (write_insn_cases): Print the filename for a define_peephole.
18668         (gen_insn_reserv): Take a line number as argument and update
18669         the call to check_attr_test.
18670         (main): Pass a line number to gen_insn_reserv.
18672 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18674         * read-md.h (file_location): New structure.
18675         (directive_handler_t): Take a file_location rather than a line number.
18676         (message_at, error_at): Declare.
18677         (read_skip_construct): Delete.
18678         * read-md.c (message_with_line_1): Replace with...
18679         (message_at_1): ...this new function.
18680         (message_at, error_at): New functions.
18681         (message_with_line, error_with_line): Update to use message_at_1.
18682         (handle_enum): Take a file_location rather than a line number
18683         and use error_at for error reporting.
18684         (handle_include): Likewise.
18685         (read_skip_construct): Likewise.  Make static.
18686         (handle_file): Update after above changes.  Pass a file_location
18687         rather than a line number to handle_directive.
18688         * gensupport.c (queue_elem): Replace separate filename and lineno
18689         with a file_location.
18690         (queue_pattern): Replace filename and lineno arguments with a
18691         file_location.  Update after change to queue_elem.
18692         (process_define_predicate): Replace lineno argument with a
18693         file_location and use error_at for error reporting.  Update
18694         after above changes.
18695         (process_rtx): Likewise.
18696         (subst_pattern_match): Likewise.
18697         (get_alternatives_number): Likewise.
18698         (alter_predicate_for_insn): Likewise.
18699         (rtx_handle_directive): Likewise.
18700         (is_predicable): Update after above changes, using error_at rather
18701         than error_with_line.
18702         (has_subst_attribute): Likewise.
18703         (identify_predicable_attribute): Likewise.
18704         (alter_attrs_for_subst_insn): Likewise.
18705         (process_one_cond_exec): Likewise.
18706         (process_substs_on_one_elem): Likewise.
18707         (process_define_subst): Likewise.
18708         (check_define_attr_duplicates): Likewise.
18709         (read_md_rtx): Update after change to queue_elem.
18711 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18713         * genoutput.c (next_index_number): Delete.
18714         (data): Remove index_number.
18715         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
18716         (main): Remove manipulation of next_index_number.
18718 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
18720         * genattrtab.c (check_attr_value): Remove handling of null attrs.
18721         (make_canonical): Likewise.
18723 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
18725         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
18726         instead of adjust_address_nv.
18727         (restore_stack_nonlocal): Likewise.
18728         (nonlocal_goto): Likewise.
18730 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18732         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
18733         not have a corresponding loop header phi.
18735 2015-07-16  Tom de Vries  <tom@codesourcery.com>
18737         * tree-parloops.c (create_loads_for_reductions): Handle case that
18738         reduction is unused.
18740 2015-07-16  Richard Biener  <rguenther@suse.de>
18742         PR tree-optimization/66894
18743         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
18744         about deriving NE_EXPR from truncated values.
18746 2015-07-16  Martin Liska  <mliska@suse.cz>
18748         * alloc-pool.h
18749         (object_allocator): Add new class.
18750         (pool_allocator::initialize): Use the underlying class.
18751         (pool_allocator::allocate): Likewise.
18752         (pool_allocator::remove): Likewise.
18753         (operator new): A new generic allocator.
18754         * asan.c (struct asan_mem_ref): Remove unused members.
18755         (asan_mem_ref_new): Replace new operator with
18756         object_allocator::allocate.
18757         (free_mem_ref_resources): Change deallocation.
18758         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
18759         with object_allocator.
18760         * config/sh/sh.c (add_constant): Replace new operator with
18761         object_allocator::allocate.
18762         (sh_reorg): Change call to a release method.
18763         * cselib.c (struct elt_list): Remove unused members.
18764         (new_elt_list): Replace new operator with
18765         object_allocator::allocate.
18766         (new_elt_loc_list): Likewise.
18767         (new_cselib_val): Likewise.
18768         (unchain_one_elt_list): Change delete operator with remove method.
18769         (unchain_one_elt_loc_list): Likewise.
18770         (unchain_one_value): Likewise.
18771         (cselib_finish): Release newly added static allocators.
18772         * cselib.h (struct cselib_val): Remove unused members.
18773         (struct elt_loc_list): Likewise.
18774         * df-problems.c (df_chain_alloc): Replace pool_allocator with
18775         object_allocator.
18776         * df-scan.c (struct df_scan_problem_data): Likewise.
18777         (df_scan_alloc): Likewise.
18778         * df.h (struct dataflow): Likewise.
18779         * dse.c (struct read_info_type): Likewise.
18780         (struct insn_info_type): Likewise.
18781         (struct dse_bb_info_type): Likewise.
18782         (struct group_info): Likewise.
18783         (struct deferred_change): Likewise.
18784         (get_group_info): Likewise.
18785         (delete_dead_store_insn): Likewise.
18786         (free_read_records): Likewise.
18787         (replace_read): Likewise.
18788         (check_mem_read_rtx): Likewise.
18789         (scan_insn): Likewise.
18790         (dse_step1): Likewise.
18791         (dse_step7): Likewise.
18792         * et-forest.c (struct et_occ): Remove unused members.
18793         (et_new_occ): Use allocate instead of new operator.
18794         (et_new_tree): Likewise.
18795         (et_free_tree): Call release method explicitly.
18796         (et_free_tree_force): Likewise.
18797         (et_free_pools): Likewise.
18798         (et_split): Use remove instead of delete operator.
18799         * et-forest.h (struct et_node): Remove unused members.
18800         * ipa-cp.c: Change pool_allocator to object_allocator.
18801         * ipa-inline-analysis.c: Likewise.
18802         * ipa-profile.c: Likewise.
18803         * ipa-prop.c: Likewise.
18804         * ipa-prop.h: Likewise.
18805         * ira-build.c (initiate_cost_vectors): Cast return value.
18806         (ira_allocate_cost_vector): Likewise.
18807         * ira-color.c (struct update_cost_record): Remove unused members.
18808         * lra-int.h (struct lra_live_range): Likewise.
18809         (struct lra_copy): Likewise.
18810         (struct lra_insn_reg): Likewise.
18811         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
18812         * lra.c (new_insn_reg): Replace new operator with allocate method.
18813         (free_insn_regs): Same for operator delete.
18814         (finish_insn_regs): Release new static allocator.
18815         (finish_insn_recog_data): Likewise.
18816         (lra_free_copies): Replace delete operator with remove method.
18817         (lra_create_copy): Replace operator new with allocate method.
18818         (invalidate_insn_data_regno_info): Same for remove method.
18819         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
18820         (free_debug_insn_changes): Replace delete operator with remove method.
18821         (replace_oldest_value_reg): Replace operator new with allocate method.
18822         (pass_cprop_hardreg::execute): Release new static variable.
18823         * sched-deps.c (sched_deps_init): Change pool_allocator to
18824         object_allocator.
18825         * sel-sched-ir.c: Likewise.
18826         * sel-sched-ir.h: Likewise.
18827         * stmt.c (expand_case): Likewise.
18828         (expand_sjlj_dispatch_table): Likewise.
18829         * tree-sra.c (struct access): Remove unused members.
18830         (struct assign_link): Likewise.
18831         (sra_deinitialize): Release newly added static pools.
18832         (create_access_1):Replace operator new with allocate method.
18833         (build_accesses_from_assign): Likewise.
18834         (create_artificial_child_access): Likewise.
18835         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
18836         pool_allocator to object_allocator.
18837         * tree-ssa-pre.c: Likewise.
18838         * tree-ssa-reassoc.c: Likewise.
18839         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
18840         * tree-ssa-strlen.c: Likewise.
18841         * tree-ssa-structalias.c: Likewise.
18842         * var-tracking.c (onepart_pool_allocate): New function.
18843         (unshare_variable): Use the newly added function.
18844         (variable_merge_over_cur): Likewise.
18845         (variable_from_dropped): Likewise.
18846         (variable_was_changed): Likewise.
18847         (set_slot_part): Likewise.
18848         (emit_notes_for_differences_1): Likewise.
18849         (vt_finalize): Release newly added static pools.
18851 2015-07-16  Martin Jambor  <mjambor@suse.cz>
18853         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
18854         all uses.  Fix two typos in its general comment.
18855         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
18857 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
18859         * config/i386/linux-common.h (LINK_MPX): New.
18860         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
18861         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
18862         indicating '-z bndplt' support by linker.
18863         * configure: Regenerate.
18864         * config.in: Regenerate.
18866 2015-07-16  Richard Biener  <rguenther@suse.de>
18868         * fold-const.c (fold_widened_comparison): Remove.
18869         (fold_sign_changed_comparison): Likewise.
18870         (fold_comparison): Move widened and sign-changed comparison
18871         simplification ...
18872         * match.pd: ... to patterns here.
18873         * generic-match-head.c: Include target.h.
18874         * gimple-match-head.c: Likewise.
18876 2015-07-16  Richard Biener  <rguenther@suse.de>
18878         * tree-ssa-dom.c (dom_valueize): New function.
18879         (record_temporary_equivalences): Also record equivalences
18880         for dominating stmts that have uses of equivalences we are
18881         about to record.
18883 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
18885         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
18886         add_autoinc_candidates.
18887         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
18888         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
18889         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
18890         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
18891         Call new function.
18892         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
18893         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
18894         Remove parameter struct iv*.  Call add_autoinc_candidates here.
18895         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
18896         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
18897         Call new function.
18898         (find_iv_candidates): Call new functions.
18900 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
18902         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
18903         uninitialized-variable warning.
18905 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
18907         PR target/65249
18908         * config/sh/sh.md (movdi): Split simple reg move to two movsi
18909         when the destination is R0.
18911 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
18913         PR target/66866
18914         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
18915         * config/i386/i386.c (ix86_expand_pextr): New function.
18916         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
18917         for non-lowpart subregs.
18918         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
18919         (insv<mode>): Use SWI248 mode iterator.
18920         (insv<mode>_1): Ditto.
18922 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18923             Sebastian Pop  <s.pop@samsung.com>
18925         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
18926         iterator to use_stmt.
18928 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18929             Sebastian Pop <s.pop@samsung.com>
18931         * graphite-scop-detection.c (build_scops_1): Discard scops for
18932         which entry==exit.
18934 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18935             Sebastian Pop <s.pop@samsung.com>
18937         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
18938         case of a return statement in scop.
18940 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
18941             Sebastian Pop <s.pop@samsung.com>
18943         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
18944         INTEGER_TYPE parameters.
18945         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
18946         VECTOR_CST in scan_tree_for_params.
18947         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
18949 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18951         * gimple-pretty-print.h: Don't include pretty-print.h.
18952         * tree-streamer.h: Don't include lto-streamer.h.
18953         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
18954         * gimple-streamer-in.c: Remove redundant includes.
18955         * gimple-streamer-out.c: Likewise.
18956         * ipa-devirt.c: Likewise.
18957         * ipa-icf.c: Likewise.
18958         * ipa-inline-analysis.c: Likewise.
18959         * ipa-polymorphic-call.c: Likewise.
18960         * ipa-profile.c: Likewise.
18961         * ipa-prop.c: Likewise.
18962         * ipa-pure-const.c: Likewise.
18963         * lto-cgraph.c: Likewise.
18964         * lto-streamer-in.c: Likewise.
18965         * lto-streamer-out.c: Likewise.
18966         * lto-streamer.c: Likewise.
18967         * tree-streamer-in.c: Likewise.
18968         * tree-streamer-out.c: Likewise.
18969         * tree-streamer.c: Likewise.
18971 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
18973         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
18974         include input.h.
18975         * opts.c: Remove multiline #include comment.
18977 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
18979         * config/nvptx/mkoffload.c (process): Add C++ protection to
18980         emitted code.
18982 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18984         PR target/66854
18985         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
18986         null before IEEE 128-bit floating point support patch.
18988 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18990         * simplify-rtx.c (simplify_ternary_operation): Add simplification
18991         for (!c) != {0,...,0} ? a : b for vector modes.
18993 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
18994             Martin Jambor  <mjambor@suse.cz>
18996         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
18997         struct func_body_info* instead of struct ipa_node_params*, expecting
18998         fbi->info to be filled in.  Replace throughout.  Adjust call to
18999         ipa_load_from_parm_agg.
19000         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
19001         instead of struct ipa_node_params*.  Adjust calls to other functions
19002         so that they pass either fbi or fbi->info.
19003         (set_switch_stmt_execution_predicate): Likewise.
19004         (will_be_nonconstant_predicate): Likewise.
19005         (compute_bb_predicates): Likewise.
19006         (estimate_function_body_sizes): Move asserts earlier.  Fill in
19007         struct func_body_info, replace parms_info with fbi.info.  Adjust
19008         calls to functions that now accept struct func_body_info.
19009         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
19010         (struct func_body_info): Likewise.
19011         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
19012         remove static.  Adjust callers.
19013         (ipa_load_from_parm_agg): Remove.
19014         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
19015         (func_body_info): Likewise.
19016         (ipa_load_from_parm_agg): Adjust prototype.
19018 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19020         * gensupport.c (rtx_handle_directive): Adjust.
19021         * read-rtl.c (apply_iterators): Take vector to add rtxs to
19022         instead of expr list rtx.
19023         (add_define_attr_for_define_subst): Likewise.
19024         (add_define_subst_attr): Likewise.
19025         (read_subst_mapping): Likewise.
19026         (read_rtx): Likewise.
19027         * rtl.h (read_rtx): Adjust.
19029 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19031         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
19033 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19035         PR target/58066
19036         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
19037         (*tls_local_dynamic_base_64_<mode>): Ditto.
19038         (*tls_local_dynamic_base_64_largepic): Ditto.
19039         (tls_global_dynamic_64_<mode>): Update expander pattern.
19040         (tls_local_dynamic_base_64_<mode>): Ditto.
19042 2015-07-15  Richard Biener  <rguenther@suse.de>
19044         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
19045         and bool_var == 1 -> bool_var simplifications ...
19046         * match.pd: ... to patterns here.  Factor out negate_expr_p
19047         cases from the A - B -> A + (-B) patterns as negate_expr_p
19048         predicate and add a -(A + B) -> (-B) - A pattern.
19050 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19052         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
19054 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
19055             Robert Suchanek  <robert.suchanek@imgtec.com>
19057         * config/mips/mips.c (mips_int_mask): New enum.
19058         (mips_shadow_set): Likewise.
19059         (int_mask): New variable.
19060         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
19061         (machine_function): Add int_mask and use_shadow_register_set.
19062         (mips_attribute_table): Add attribute handlers for interrupt and
19063         use_shadow_register_set.
19064         (mips_interrupt_mask): New static function.
19065         (mips_handle_interrupt_attr): Likewise.
19066         (mips_handle_use_shadow_register_set_attr): Likewise.
19067         (mips_use_shadow_register_set): Change return type to enum
19068         mips_shadow_set.  Add argument handling for use_shadow_register_set
19069         attribute.
19070         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
19071         compare with mips_shadow_set enum.
19072         (mips_compute_frame_info): Add interrupt mask and
19073         use_shadow_register_set to per-function information structure.
19074         Add a stack slot for EPC unconditionally.
19075         (mips_expand_prologue): Compare use_shadow_register_set value
19076         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
19077         masked interrupt register but in EIC mode use K0 and save Cause in K0.
19078         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
19079         copying the stack pointer from the shadow register set.
19080         * config/mips/mips.h (SR_IM0): New define.
19081         * config/mips/mips.md (mips_rdpgpr): Rename to...
19082         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
19083         * doc/extend.texi (Declaring Attributes of Functions): Document
19084         optional arguments for interrupt and use_shadow_register_set
19085         attributes.
19087 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
19089         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
19090         interrupt attribute.
19091         (mips_expand_prologue): Disable the floating point unit in an ISR.
19092         * config/mips/mips.h (SR_COP1): New define.
19094 2015-07-15  Richard Biener  <rguenther@suse.de>
19096         * genmatch.c (parser::peek, parser::peek_ident): Add argument
19097         to tell how many tokens to peek ahead (default 1).
19098         (parser::eat_token, parser::eat_ident): Return token consumed.
19099         (parser::parse_result): Parse new switch statement.
19100         * match.pd: Use case statements where appropriate.
19102 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19104         PR rtl-optimization/58066
19105         * calls.c (expand_call): Precompute register parameters before stack
19106         alignment is performed.
19108 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
19110         PR rtl-optimization/66838
19111         * postreload.c (reload_cse_move2add): Also process
19112         CALL_INSN_FUNCTION_USAGE when resetting information of
19113         call-clobbered registers.
19115 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19116             Cesar Philippidis  <cesar@codesourcery.com>
19117             Chung-Lin Tang  <cltang@codesourcery.com>
19119         * config/nios2/constraints.md (U, v): New constraints.
19120         * config/nios2/predicates.md (rdprs_dcache_operand): New.
19121         (ldstex_memory_operand): New.
19122         * config/nios2/sync.md: New file.
19123         * config/nios2/nios2.md (unspecv): Add new builtin function
19124         UNSPECV codes.
19125         (rdprs, flushd, flushda, wrpie, eni): New patterns.
19126         (top-level): Include sync.md.
19127         * config/nios2/nios2.c (N2_FTYPES): Add function types for
19128         new builtins.
19129         (N2_BUILTINS): Add arch field setting, add new builtins.
19130         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
19131         for arch field.
19132         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
19133         Also handle ldex/stex/ldsex/stsex builtins.
19134         (nios2_expand_rdprs_builtin): New function.
19135         (nios2_expand_cache_builtin): New function.
19136         (nios2_expand_wrpie_builtin): New function.
19137         (nios2_expand_eni_builtin): New function.
19138         (nios2_expand_builtin): Add arch field handling and new builtin
19139         cases.
19140         * doc/extend.texi (Altera Nios II Built-in Functions): Document
19141         new builtins.
19142         * doc/md.texi (Machine Constraints): Document U and v constraints.
19144 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19145             Cesar Philippidis  <cesar@codesourcery.com>
19146             Chung-Lin Tang  <cltang@codesourcery.com>
19148         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
19149         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
19150         callee_save_reg_size and uses_anonymous_args fields.
19151         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
19152         (nios2_create_cfa_notes): New function.
19153         (nios2_adjust_stack): New function for adjusting stack.
19154         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
19155         Use nios2_adjust_stack.
19156         (nios2_expand_epilogue): Likewise.
19157         (nios2_expand_return): New function.
19158         (nios2_can_use_return_insn): Update for CDX pop.n usage.
19159         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
19160         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
19161         * config/nios2/nios2.md (return): Use nios2_expand_return.
19163 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19164             Cesar Philippidis  <cesar@codesourcery.com>
19165             Chung-Lin Tang  <cltang@codesourcery.com>
19167         * config/nios2/predicates.md (pop_operation): New.
19168         (ldwm_operation, stwm_operation): New.
19169         (nios2_hard_register_operand): New.
19170         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
19171         (ldstwm_operation_p): Declare.
19172         (gen_ldstwm_peep): Declare.
19173         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
19174         (base_reg_adjustment_p): New.
19175         (pop_operation_p): New.
19176         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
19177         (nios2_ldstwm_regset_p): New.
19178         (ldstwm_operation_p): New.
19179         (gen_ldst): New.
19180         (nios2_ldst_parallel): New.
19181         (struct ldswm_operand): Declare.
19182         (compare_ldstwm_operands): New.
19183         (can_use_cdx_ldstw): New.
19184         (gen_ldstwm_peep): New.
19185         * config/nios2/nios2-ldstwm.sml: New.
19186         * config/nios2/nios2.md: Include ldstwm.md.
19187         * config/nios2/ldstwm.md: Generated.
19189 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19190             Cesar Philippidis  <cesar@codesourcery.com>
19191             Chung-Lin Tang  <cltang@codesourcery.com>
19193         * config/nios2/nios2.h (LABEL_ALIGN): Define.
19194         (REG_ALLOC_ORDER): Define.
19195         (ADJUST_REG_ALLOC_ORDER): Define.
19196         (HONOR_REG_ALLOC_ORDER): Define.
19197         (CDX_REG_P): Define.
19198         (ANDCLEAR_INT): Define.
19199         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
19200         (nios2_label_align): Declare.
19201         (nios2_cdx_narrow_form_p): Declare.
19202         (nios2_adjust_reg_alloc_order): Declare.
19203         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
19204         operation.
19205         (nios2_large_unspec_reloc_p): New function, split from...
19206         (nios2_legitimate_pic_operand_p): ...here.
19207         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
19208         (nios2_print_operand_punct_valid_p): New.
19209         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
19210         (split_mem_address): New.
19211         (split_alu_insn): New.
19212         (cdxreg): New.
19213         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
19214         (enum nios2_add_insn_kind): New.
19215         (nios2_add_insn_names, nios2_add_insn_narrow): New.
19216         (nios2_add_insn_classify): New.
19217         (nios2_add_insn_asm): New.
19218         (nios2_cdx_narrow_form_p): New.
19219         (label_align, min_labelno, max_labelno): New.
19220         (nios2_reorg): New.
19221         (nios2_label_align): New.
19222         (nios2_adjust_reg_alloc_order): New.
19223         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19224         (TARGET_MACHINE_DEPENDENT_REORG): Define.
19225         * config/nios2/constraints.md (P): New constraint.
19226         * config/nios2/predicates.md (const_and_operand): New.
19227         (and_operand): New.
19228         (stack_memory_operand): New.
19229         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
19230         (length): Update to use nios2_cdx_narrow_form_p().
19231         (type): Add new insn type values.
19232         (control, alu, st, ld, shift): Update insn reservations with
19233         new insn type values.
19234         (*high, *lo_sum): Define new insn patterns for constant generation.
19235         (movqi_internal, movhi_internal, movsi_internal): Reduce
19236         alternatives, update asm template to handle CDX variants, update
19237         type attributes.
19238         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
19239         template, update type attributes.
19240         (extendhisi2, extendqi<mode>2): Likewise.
19241         (addsi3): Change to use function for asm string.
19242         (subsi3): Add CDX notation to asm template, update type attributes.
19243         (negsi3, one_cmplsi3): Likewise.
19244         (andsi3): New pattern, specialized from logical patterns.
19245         (<code>si3): Remove and case, combine alternatives, update asm
19246         template.
19247         (<shift_op>si3): Add CDX notation, update type attributes.
19248         (rotrsi3): Update type attribute.
19249         (*merge, extzv, insv): New insn patterns.
19250         (return): Change to define_expand.
19251         (simple_return): Add CDX notation, update type attributes.
19252         (indirect_jump): Add CDX notation.
19253         (jump): Update asm cases, update length attribute expression.
19254         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
19255         (nios2_cbranch): Update asm cases and length attribute expression
19256         to handle CDX variants.
19257         (nios2_cmp<code>): Update asm template.
19258         (nop): Add CDX notation, update type attributes.
19259         (trap): Add CDX notation.
19260         (ctrapsi4): Update asm cases and length attribute expression to
19261         handle CDX variant.
19262         * doc/md.texi (Machine Constraints): Document P constraint.
19264 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19265             Cesar Philippidis  <cesar@codesourcery.com>
19266             Chung-Lin Tang  <cltang@codesourcery.com>
19268         * config/nios2/nios2.h (SMALL_INT12): New macro.
19269         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
19270         (nios2_valid_addr_expr_p): Use it.
19271         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
19272         with implicit "io" instructions on R2.
19273         * config/nios2/constraints.md (w): New constraint.
19274         * config/nios2/predicates.md (ldstio_memory_operand): New.
19275         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
19276         operand predicate and constraint.
19277         (ld<bh>io_signed, st<bhw>io>): Likewise.
19278         * doc/md.texi (Machine Constraints): Document w constraint.
19280 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19281             Cesar Philippidis  <cesar@codesourcery.com>
19282             Chung-Lin Tang  <cltang@codesourcery.com>
19284         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
19285         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
19286         Nios II architecture level.
19287         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
19288         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
19289         (OPTION_DEFAULT_SPECS): Define.
19290         (ASM_SPEC): Add -march= spec strings.
19291         * config/nios2/nios2.c (nios2_option_override): Check for
19292         conflicts involving new options.
19293         * config.gcc (nios2*-*-*): Support --with-arch=.
19294         * doc/invoke.texi (Option Summary, Nios II Options): Document
19295         -march=, -mbmx, and -mcdx.
19297 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
19299         PR rtl-optimization/66626
19300         * lra-constraints.c (lra_constraints): Prevent equivalence
19301         substitution for static chain pseudo in functions with nonlocal
19302         goto.
19304 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
19306         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
19307         (nios2_emit_stack_limit_check): Add size parameter.  Handle
19308         -fstack-limit-symbol as well as -fstack-limit-register.
19309         (nios2_expand_prologue): Emit only a single stack limit check,
19310         even if multiple stack adjustments are required.
19311         (nios2_option_override): Diagnose unsupported combination of -fpic
19312         and -stack-limit-symbol.
19314 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
19316         * Makefile.in (top_srcdir): New.
19317         * configure.ac: Use AM_ZLIB.
19318         * configure: Regeneated.
19320 2015-07-14  Matthias Klose  <doko@ubuntu.com>
19322         PR target/66840
19323         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
19325 2015-07-14  Richard Biener  <rguenther@suse.de>
19327         PR tree-optimization/66863
19328         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
19329         what we record for conversion use stmt lhs inequalities.
19331 2015-07-14  Richard Biener  <rguenther@suse.de>
19333         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
19334         (decision_tree::gen_gimple): Likewise.
19336 2015-07-14  Tom de Vries  <tom@codesourcery.com>
19338         * gcc.c (greater_than_spec_func): Declare forward.
19339         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
19340         -ftree-parallelize-loops={0,1}.
19341         (static_spec_functions): Add greater_than_spec_func function with name
19342         "gt".
19343         (greater_than_spec_func): New function.
19345 2015-07-14  Richard Biener  <rguenther@suse.de>
19347         * tree-ssa-dom.c (record_temporary_equivalences): Merge
19348         wideing type conversion case from record_equivalences_from_incoming_edge
19349         and use record_equality to record equivalences.
19350         (record_equivalences_from_incoming_edge): Call
19351         record_temporary_equivalences.
19353 2015-07-14  Richard Biener  <rguenther@suse.de>
19355         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
19356         (struct if_expr): New.
19357         (struct with_expr): Likewise.
19358         (is_a_helper): Add helpers for if_expr and with_expr.
19359         (struct simplify): Add simplify_kind enum and member.  Remove
19360         ifexpr_vec member.
19361         (simplify::simplify): Adjust.
19362         (lower_commutative): Adjust.
19363         (lower_opt_convert): Likewise.
19364         (lower_cond): Likewise.
19365         (replace_id): Handle with_expr and if_expr.
19366         (lower_for): Adjust.
19367         (dt_simplify::gen_1): New recursive worker, split out from ...
19368         (dt_simplify::gen): ... here.  Deal with if and with expansion
19369         recursively.
19370         (capture_info::capture_info): Take context argument
19371         (capture_info::walk_result): Only analyze specific result.
19372         (parser::parse_result): New function.
19373         (parser::parse_simplify): Adjust to parse ifs with then end
19374         else case.
19375         (parser::parse_if): Simplify.
19376         (parser::parse_pattern): Pass down simplify kind.
19377         * match.pd: Convert if structure to new syntax.
19379 2015-07-13  Marek Polacek  <polacek@redhat.com>
19381         * rtl.c (rtx_equal_p_cb): Fix typo.
19383 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
19385         * omega.h: Don't include config.h, don't include params.h again if
19386         omega.h has already been included.
19387         * graphite-poly.h: Include sese.h.
19388         * graphite.c: Don't include sese.h, remove needless includes and
19389         minimize includes outside #ifdef HAVE_isl block.
19390         * graphite-blocking.c: Don't include sese.h, remove needless includes,
19391         and wrap entire file in #ifdef HAVE_isl
19392         * graphite-dependences.c: Likewise.
19393         * graphite-interchange.c: Likewise.
19394         * graphite-isl-ast-to-gimple.c: Likewise.
19395         * graphite-optimize-isl.c: Likewise.
19396         * graphite-poly.c: Likewise.
19397         * graphite-scop-detection.c: Likewise.
19398         * graphite-sese-to-poly.c: Likewise.
19400 2015-07-13  Tom de Vries  <tom@codesourcery.com>
19402         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
19404 2015-07-13  Renlin Li  <renlin.li@arm.com>
19406         PR rtl/66556
19407         * simplify-rtx.c (simplify_const_relational_operation): Add
19408         side_effects_p checks.
19410 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
19412         * bitmap.h: Fix double word typos.
19413         * builtins.c: Same.
19414         * calls.c: Same.
19415         * cfgloopmanip.c: Same.
19416         * cgraph.c: Same.
19417         * cgraph.h: Same.
19418         * cgraphclones.c: Same.
19419         * combine.c: Same.
19420         * config/aarch64/aarch64-protos.h: Same.
19421         * config/aarch64/aarch64.c: Same.
19422         * config/aarch64/aarch64.md: Same.
19423         * config/arm/arm.md: Same.
19424         * config/arm/arm1020e.md: Same.
19425         * config/arm/arm1026ejs.md: Same.
19426         * config/arm/arm926ejs.md: Same.
19427         * config/arm/fa526.md: Same.
19428         * config/arm/fa606te.md: Same.
19429         * config/arm/fa626te.md: Same.
19430         * config/arm/fa726te.md: Same.
19431         * config/arm/fmp626.md: Same.
19432         * config/darwin.c: Same.
19433         * config/epiphany/epiphany.c: Same.
19434         * config/frv/frv.c: Same.
19435         * config/ft32/ft32.c: Same.
19436         * config/gnu-user.h: Same.
19437         * config/h8300/constraints.md: Same.
19438         * config/i386/i386.c: Same.
19439         * config/i386/i386.md: Same.
19440         * config/iq2000/iq2000.md: Same.
19441         * config/mips/mips.c: Same.
19442         * config/mmix/mmix.md: Same.
19443         * config/moxie/moxie.c: Same.
19444         * config/nds32/nds32.md: Same.
19445         * config/pa/pa.h: Same.
19446         * config/rs6000/aix.h: Same.
19447         * config/rs6000/rs6000.h: Same.
19448         * config/sh/sh.c: Same.
19449         * config/tilegx/tilegx.md: Same.
19450         * config/tilepro/gen-mul-tables.cc: Same.
19451         * cse.c: Same.
19452         * dbxout.c: Same.
19453         * doc/invoke.texi: Same.
19454         * dse.c: Same.
19455         * dwarf2out.c: Same.
19456         * final.c: Same.
19457         * gcc.c: Same.
19458         * genmatch.c: Same.
19459         * gimplify.c: Same.
19460         * hash-table.h: Same.
19461         * internal-fn.c: Same.
19462         * ipa-cp.c: Same.
19463         * ipa-devirt.c: Same.
19464         * ipa-icf.c: Same.
19465         * ipa-icf.h: Same.
19466         * ipa-profile.c: Same.
19467         * ipa-prop.c: Same.
19468         * ipa-prop.h: Same.
19469         * ira.c: Same.
19470         * omp-low.c: Same.
19471         * reg-stack.c: Same.
19472         * regcprop.c: Same.
19473         * reorg.c: Same.
19474         * rtl.h: Same.
19475         * sbitmap.h: Same.
19476         * tree-eh.c: Same.
19477         * tree-inline.c: Same.
19478         * tree-sra.c: Same.
19479         * tree-ssa-dom.c: Same.
19480         * tree-ssa-loop-ivopts.c: Same.
19481         * tree-ssa-structalias.c: Same.
19482         * tree-ssa-tail-merge.c: Same.
19483         * tree-ssa-ter.c: Same.
19484         * tree-ssa-threadupdate.c: Same.
19485         * tree-ssa-uninit.c: Same.
19486         * tree-ssanames.c: Same.
19487         * tree-vect-loop-manip.c: Same.
19488         * tree-vrp.c: Same.
19489         * tree.c: Same.
19490         * valtrack.c: Same.
19491         * vec.h: Same.
19493 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19495         PR middle-end/66726
19496         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
19497         tree_ssa_phiopt_worker): Call it.
19499 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
19501         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
19502         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
19503         REG_EQUAL note.
19505 2015-07-11  Marek Polacek  <polacek@redhat.com>
19507         PR middle-end/66353
19508         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
19509         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
19510         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
19511         rather than bb_has_abnormal_call_pred.
19512         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
19513         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
19514         rather than bb_has_abnormal_call_pred.
19516 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
19518         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19519         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
19520         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19521         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
19522         v850_legitimate_address_p): New functions.
19523         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19525 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
19527         PR target/66819
19528         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
19529         indirect sibcall with register arguments if register available
19530         for argument passing.
19531         (init_cumulative_args): Set cfun->machine->arg_reg_available
19532         to (cum->nregs > 0) or to true if function has a variable
19533         argument list.
19534         (function_arg_advance_32): Set cfun->machine->arg_reg_available
19535         to false if cum->nregs <= 0.
19536         * config/i386/i386.h (machine_function): Add arg_reg_available.
19538 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19540         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
19541         and gen_higpart instead of gen_rtx_SUBREG.
19542         * config/i386/i386.md
19543         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
19544         (read-modify peephole2): Use gen_lowpart instead of
19545         gen_rtx_SUBREG for operand 5.
19547 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19549         * config/tilepro/gen-mul-tables.cc (main): Change include list for
19550         generated files.
19551         * config/tilepro/mul-tables.c: Regenerate.
19552         * config/tilegx/mul-tables.c: Regenerate.
19554 2015-07-10  Richard Biener  <rguenther@suse.de>
19556         * fold-const.c (distribute_bit_expr): Remove.
19557         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
19558         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
19559         to A & (B | C) and simplifying A << C1 << C2 to ...
19560         * match.pd: ... patterns here.
19562 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
19564         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19565         Mark mem as READONLY and NOTRAP for PIC symbol.
19567 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
19569         * gimple-predict.h: New file.
19570         (gimple_predict_predictor, gimple_predict_set_predictor,
19571         gimple_predict_outcome, gimple_predict_set_outcome,
19572         gimple_build_predict): Relocate here.
19573         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
19574         gimple_predict_outcome, gimple_predict_set_outcome): Move to
19575         gimple-predict.h.
19576         * gimple.c (gimple_build_predict): Move to gimple-predict.h
19577         * basic-block.h: Don't include cfghooks.h.
19578         * backend.h: Don't include predict.h.
19579         * cfghooks.h: Include predict.h.
19580         * gimple-pretty-print.c: Include gimple-predict.h.
19581         * gimplify.c: Likwise.
19582         * predict.c: Adjust includes.
19583         * tree-inline.c: Likewise.
19584         * asan.c: Likewise.
19585         * auto-inc-dec.c: Likewise.
19586         * auto-profile.c: Likewise.
19587         * bb-reorder.c: Likewise.
19588         * builtins.c: Likewise.
19589         * caller-save.c: Likewise.
19590         * calls.c: Likewise.
19591         * cfganal.c: Likewise.
19592         * cfgbuild.c: Likewise.
19593         * cfg.c: Likewise.
19594         * cfgcleanup.c: Likewise.
19595         * cfgexpand.c: Likewise.
19596         * cfghooks.c: Likewise.
19597         * cfgloopanal.c: Likewise.
19598         * cfgloop.c: Likewise.
19599         * cfgloopmanip.c: Likewise.
19600         * cfgrtl.c: Likewise.
19601         * cgraph.c: Likewise.
19602         * cgraphunit.c: Likewise.
19603         * combine.c: Likewise.
19604         * cprop.c: Likewise.
19605         * cse.c: Likewise.
19606         * dce.c: Likewise.
19607         * dojump.c: Likewise.
19608         * dse.c: Likewise.
19609         * except.c: Likewise.
19610         * expmed.c: Likewise.
19611         * expr.c: Likewise.
19612         * final.c: Likewise.
19613         * fold-const.c: Likewise.
19614         * function.c: Likewise.
19615         * fwprop.c: Likewise.
19616         * gcc-plugin.h: Likewise.
19617         * gcse.c: Likewise.
19618         * genattrtab.c: Likewise.
19619         * genemit.c: Likewise.
19620         * gengtype.c: Likewise.
19621         * genopinit.c: Likewise.
19622         * genoutput.c: Likewise.
19623         * genpreds.c: Likewise.
19624         * genrecog.c: Likewise.
19625         * gimple-fold.c: Likewise.
19626         * gimple-iterator.c: Likewise.
19627         * gimple-ssa-isolate-paths.c: Likewise.
19628         * gimple-ssa-strength-reduction.c: Likewise.
19629         * graph.c: Likewise.
19630         * graphite-blocking.c: Likewise.
19631         * graphite.c: Likewise.
19632         * graphite-dependences.c: Likewise.
19633         * graphite-interchange.c: Likewise.
19634         * graphite-isl-ast-to-gimple.c: Likewise.
19635         * graphite-optimize-isl.c: Likewise.
19636         * graphite-poly.c: Likewise.
19637         * graphite-scop-detection.c: Likewise.
19638         * graphite-sese-to-poly.c: Likewise.
19639         * haifa-sched.c: Likewise.
19640         * ifcvt.c: Likewise.
19641         * internal-fn.c: Likewise.
19642         * ipa-cp.c: Likewise.
19643         * ipa-profile.c: Likewise.
19644         * ipa-split.c: Likewise.
19645         * ipa-utils.c: Likewise.
19646         * ira-build.c: Likewise.
19647         * ira-color.c: Likewise.
19648         * ira-conflicts.c: Likewise.
19649         * ira-costs.c: Likewise.
19650         * ira-emit.c: Likewise.
19651         * ira-lives.c: Likewise.
19652         * jump.c: Likewise.
19653         * loop-doloop.c: Likewise.
19654         * loop-init.c: Likewise.
19655         * loop-invariant.c: Likewise.
19656         * loop-unroll.c: Likewise.
19657         * lower-subreg.c: Likewise.
19658         * lra-assigns.c: Likewise.
19659         * lra.c: Likewise.
19660         * lra-coalesce.c: Likewise.
19661         * lra-constraints.c: Likewise.
19662         * lra-lives.c: Likewise.
19663         * lto-cgraph.c: Likewise.
19664         * lto-streamer-in.c: Likewise.
19665         * mode-switching.c: Likewise.
19666         * modulo-sched.c: Likewise.
19667         * omp-low.c: Likewise.
19668         * optabs.c: Likewise.
19669         * passes.c: Likewise.
19670         * postreload.c: Likewise.
19671         * postreload-gcse.c: Likewise.
19672         * profile.c: Likewise.
19673         * recog.c: Likewise.
19674         * regstat.c: Likewise.
19675         * reload1.c: Likewise.
19676         * reorg.c: Likewise.
19677         * rtlanal.c: Likewise.
19678         * sched-ebb.c: Likewise.
19679         * sel-sched-ir.c: Likewise.
19680         * sese.c: Likewise.
19681         * shrink-wrap.c: Likewise.
19682         * simplify-rtx.c: Likewise.
19683         * stmt.c: Likewise.
19684         * store-motion.c: Likewise.
19685         * tracer.c: Likewise.
19686         * trans-mem.c: Likewise.
19687         * tree-call-cdce.c: Likewise.
19688         * tree-cfg.c: Likewise.
19689         * tree-cfgcleanup.c: Likewise.
19690         * tree-chkp.c: Likewise.
19691         * tree-complex.c: Likewise.
19692         * tree-eh.c: Likewise.
19693         * tree-if-conv.c: Likewise.
19694         * tree-loop-distribution.c: Likewise.
19695         * tree-outof-ssa.c: Likewise.
19696         * tree-parloops.c: Likewise.
19697         * tree-predcom.c: Likewise.
19698         * tree-pretty-print.c: Likewise.
19699         * tree-profile.c: Likewise.
19700         * tree-sra.c: Likewise.
19701         * tree-ssa.c: Likewise.
19702         * tree-ssa-coalesce.c: Likewise.
19703         * tree-ssa-dce.c: Likewise.
19704         * tree-ssa-dom.c: Likewise.
19705         * tree-ssa-forwprop.c: Likewise.
19706         * tree-ssa-ifcombine.c: Likewise.
19707         * tree-ssa-loop-ch.c: Likewise.
19708         * tree-ssa-loop-im.c: Likewise.
19709         * tree-ssa-loop-ivcanon.c: Likewise.
19710         * tree-ssa-loop-ivopts.c: Likewise.
19711         * tree-ssa-loop-manip.c: Likewise.
19712         * tree-ssa-loop-prefetch.c: Likewise.
19713         * tree-ssa-loop-unswitch.c: Likewise.
19714         * tree-ssa-math-opts.c: Likewise.
19715         * tree-ssa-phiopt.c: Likewise.
19716         * tree-ssa-pre.c: Likewise.
19717         * tree-ssa-reassoc.c: Likewise.
19718         * tree-ssa-sink.c: Likewise.
19719         * tree-ssa-tail-merge.c: Likewise.
19720         * tree-ssa-threadedge.c: Likewise.
19721         * tree-ssa-threadupdate.c: Likewise.
19722         * tree-switch-conversion.c: Likewise.
19723         * tree-tailcall.c: Likewise.
19724         * tree-vect-data-refs.c: Likewise.
19725         * tree-vect-loop.c: Likewise.
19726         * tree-vect-loop-manip.c: Likewise.
19727         * tree-vectorizer.c: Likewise.
19728         * tree-vrp.c: Likewise.
19729         * ubsan.c: Likewise.
19730         * value-prof.c: Likewise.
19731         * varasm.c: Likewise.
19732         * var-tracking.c: Likewise.
19733         * config/aarch64/aarch64-builtins.c: Likewise.
19734         * config/aarch64/aarch64.c: Likewise.
19735         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19736         * config/alpha/alpha.c: Likewise.
19737         * config/arc/arc.c: Likewise.
19738         * config/arm/arm.c: Likewise.
19739         * config/avr/avr.c: Likewise.
19740         * config/bfin/bfin.c: Likewise.
19741         * config/c6x/c6x.c: Likewise.
19742         * config/cr16/cr16.c: Likewise.
19743         * config/cris/cris.c: Likewise.
19744         * config/darwin.c: Likewise.
19745         * config/darwin-c.c: Likewise.
19746         * config/epiphany/epiphany.c: Likewise.
19747         * config/epiphany/mode-switch-use.c: Likewise.
19748         * config/epiphany/resolve-sw-modes.c: Likewise.
19749         * config/fr30/fr30.c: Likewise.
19750         * config/frv/frv.c: Likewise.
19751         * config/ft32/ft32.c: Likewise.
19752         * config/h8300/h8300.c: Likewise.
19753         * config/i386/i386.c: Likewise.
19754         * config/i386/winnt.c: Likewise.
19755         * config/ia64/ia64.c: Likewise.
19756         * config/iq2000/iq2000.c: Likewise.
19757         * config/lm32/lm32.c: Likewise.
19758         * config/m32c/m32c.c: Likewise.
19759         * config/m32r/m32r.c: Likewise.
19760         * config/m68k/m68k.c: Likewise.
19761         * config/mcore/mcore.c: Likewise.
19762         * config/mep/mep.c: Likewise.
19763         * config/microblaze/microblaze.c: Likewise.
19764         * config/mips/mips.c: Likewise.
19765         * config/mmix/mmix.c: Likewise.
19766         * config/mn10300/mn10300.c: Likewise.
19767         * config/moxie/moxie.c: Likewise.
19768         * config/msp430/msp430.c: Likewise.
19769         * config/nds32/nds32.c: Likewise.
19770         * config/nds32/nds32-cost.c: Likewise.
19771         * config/nds32/nds32-fp-as-gp.c: Likewise.
19772         * config/nds32/nds32-intrinsic.c: Likewise.
19773         * config/nds32/nds32-isr.c: Likewise.
19774         * config/nds32/nds32-md-auxiliary.c: Likewise.
19775         * config/nds32/nds32-memory-manipulation.c: Likewise.
19776         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19777         * config/nds32/nds32-predicates.c: Likewise.
19778         * config/nios2/nios2.c: Likewise.
19779         * config/nvptx/nvptx.c: Likewise.
19780         * config/pa/pa.c: Likewise.
19781         * config/pdp11/pdp11.c: Likewise.
19782         * config/rl78/rl78.c: Likewise.
19783         * config/rs6000/rs6000.c: Likewise.
19784         * config/rx/rx.c: Likewise.
19785         * config/s390/s390.c: Likewise.
19786         * config/sh/sh.c: Likewise.
19787         * config/sh/sh-mem.cc: Likewise.
19788         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19789         * config/sh/sh_treg_combine.cc: Likewise.
19790         * config/sparc/sparc.c: Likewise.
19791         * config/spu/spu.c: Likewise.
19792         * config/stormy16/stormy16.c: Likewise.
19793         * config/tilegx/tilegx.c: Likewise.
19794         * config/tilepro/tilepro.c: Likewise.
19795         * config/v850/v850.c: Likewise.
19796         * config/vax/vax.c: Likewise.
19797         * config/visium/visium.c: Likewise.
19798         * config/xtensa/xtensa.c: Likewise.
19800 2015-07-10  Richard Biener  <rguenther@suse.de>
19802         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
19803         (decision_tree::gen_gimple): Likewise.
19804         (decision_tree::gen_generic): Likewise.
19806 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
19808         PR target/66813
19809         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
19810         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
19812 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
19814         PR middle-end/66820
19815         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
19816         or ORT_TASK contexts.
19817         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
19818         is non-zero.
19820 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19822         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
19823         above function.
19825 2015-07-10  Tom de Vries  <tom@codesourcery.com>
19827         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
19828         insert nit + 1 bound.
19830 2015-07-10  Richard Biener  <rguenther@suse.de>
19832         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
19833         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
19834         (if_convertible_loop_p_1): For this always compute bb predicates.
19835         (if_convertible_loop_p): And free them.
19837 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19839         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
19840         in dump message.
19842 2015-07-10  Richard Biener  <rguenther@suse.de>
19844         PR tree-optimization/66823
19845         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
19846         inverted predicate.
19848 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
19850         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
19851         to handle mips[32|64]r3 and mips[32|64]r5.
19853 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
19855         PR middle-end/66633
19856         * tree-nested.c (get_static_chain): Or in a flag into
19857         info->static_chain_added.
19858         (get_frame_field, get_nonlocal_debug_decl): Likewise.
19859         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
19860         2015-07-01 changes.
19861         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
19862         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
19863         add it to clauses.
19865         PR tree-optimization/66718
19866         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
19867         field.
19868         (vect_simd_lane_linear): New function.
19869         (vectorizable_simd_clone_call): Support using linear arguments for
19870         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
19872 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
19874         PR target/66821
19875         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
19877 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
19879         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
19880         Use machine mode, not enum machine_mode in the prototype.
19882         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
19883         classify 128-bit floating point support.
19884         (FLOAT128_IBM_P): Likewise.
19885         (FLOAT128_VECTOR_P): Likewise.
19886         (FLOAT128_2REG_P): Likewise.
19887         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
19888         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
19889         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
19890         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
19892         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
19893         tests against TFmode/TDmode, since those modes do not use VSX
19894         addresses.
19895         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
19896         support.
19897         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
19898         tests against TFmode, etc.
19899         (invalid_e500_subreg): Add tests against IFmode/KFmode.
19900         (reg_offset_addressing_ok_p): Likewise.
19901         (rs6000_legitimate_offset_address_p): Likewise.
19902         (rs6000_legitimize_address): Likewise.
19903         (rs6000_legitimize_reload_address): Likewise.
19904         (rs6000_legitimate_address_p): Clean up tests against TFmode and
19905         TDmode to use the new helper macros, which will include IFmode and
19906         KFmode.
19907         (rs6000_emit_move): Likewise.
19908         (rs6000_darwin64_record_arg_recurse): Likewise.
19909         (print_operand): Likewise.
19910         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
19911         that uses a single vector register as a vector and not as a
19912         floating point register in terms of the calling sequence.
19913         (rs6000_discover_homogeneous_aggregate): Likewise.
19914         (rs6000_return_in_memory): Likewise.
19915         (init_cumulative_args): Likewise.
19916         (rs6000_function_arg_boundary): Likewise.
19917         (rs6000_function_arg_advance_1): Likewise.
19918         (rs6000_function_arg): Likewise.
19919         (rs6000_pass_by_reference): Likewise.
19920         (rs6000_gimplify_va_arg): Likewise.
19921         (rs6000_secondary_reload_memory): Use machine_mode not enum
19922         machine mode.
19923         (rs6000_split_multireg_move): Use new helper macros.
19924         (spe_func_has_64bit_regs_p): Likewise.
19925         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
19926         (output_toc): Use new helper macros.
19927         (rs6000_register_move_cost): Likewise.
19928         (rs6000_function_value): Add IEEE 128-bit floating point calling
19929         sequence support.
19930         (rs6000_libcall_value): Likewise.
19931         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
19932         floating point support.
19933         (rs6000_vector_mode_supported_p): Likewise.
19935 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
19937         PR rtl-optimization/66782
19938         * lra-int.h (struct lra_insn_recog_data): Add comment about
19939         clobbered hard regs for arg_hard_regs.
19940         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
19941         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
19942         Add condition for processing used hard regs.
19943         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
19944         Process clobbered hard regs.
19946 2015-07-09  Michael Matz  <matz@suse.de>
19948         * genmatch.c (fprintf_indent): New function.
19949         (operand::gen_transform): Add indent parameter.
19950         (expr::gen_transform, c_expr::gen_transform,
19951         capture::gen_transform): Ditto and use fprintf_indent.
19952         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
19953         (dt_operand::gen, dt_operand::gen_predicate,
19954         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
19955         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
19956         (decision_tree::gen_gimple): Adjust calls and indent generated
19957         code.
19958         (decision_tree::gen_generic): Ditto.
19959         (write_predicate): Ditto.
19961 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
19963         PR target/66814
19964         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
19965         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
19966         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
19967         {GENERAL,SSE,MMX}_REG_P where appropriate.
19969 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
19971         * lto-streamer.h: Don't include target.h and alloc-pool.h.
19972         * builtins.c: Adjust includes.
19973         * gimple.c: Likewise.
19974         * ipa-icf.c: Likewise.
19975         * lto-opts.c: Likewise.
19976         * ipa-reference.c: Likewise.
19977         * lto-section-out.c: Likewise.
19978         * lto-streamer-in.c: Likewise.
19979         * lto-streamer-out.c: Likewise.
19980         * opts-global.c: Likewise.
19981         * symtab.c: Likewise.
19982         * tree-chkp.c: Likewise.
19983         * tree-ssa-live.c: Likewise.
19984         * tree-streamer-in.c: Likewise.
19985         * tree-streamer-out.c: Likewise.
19986         * config/darwin.c: Likewise.
19987         * config/i386/winnt.c: Likewise.
19989 2015-07-09  Richard Biener  <rguenther@suse.de>
19991         * genmatch.c (struct expr): Add force_single_use flag.
19992         (expr::expr): Add copy constructor.
19993         (capture_info::walk_match): Gather force_single_use captures.
19994         (expr::gen_transform): Use possibly NULLified sequence.
19995         (dt_simplify::gen): Apply single-use restrictions by NULLifying
19996         seq if any constrained expr is not single-use.
19997         (parser::parse_expr): Refactor to allow multiple flags.  Handle
19998         's' flag to force an expression have a single-use if the pattern
19999         simplifies to more than one statement.
20000         * match.pd: Convert most single_use conditionals to :s flags.
20002 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20004         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
20005         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20006         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
20008 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
20010         * flags.h: Don't include flag-types.h or options.h.
20011         * opts-common.c: Adjust includes.
20012         * opts-global.c: Likewise.
20013         * common/config/epiphany/epiphany-common.c: Likewise.
20015 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20017         PR target/66818
20018         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
20019         for IA MCU.
20021 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
20023         PR target/66817
20024         * config/i386/i386.c (ix86_return_in_memory): Return true
20025         if int_size_in_bytes returns negative for IA MCU.
20027 2015-07-09  Marek Polacek  <polacek@redhat.com>
20029         PR tree-optimization/66718
20030         * Makefile.in (OBJS): Add gimple-laddress.o.
20031         * passes.def: Schedule pass_laddress.
20032         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
20033         * tree-pass.h (make_pass_laddress): Declare.
20034         * gimple-laddress.c: New file.
20036 2015-07-09  Richard Biener  <rguenther@suse.de>
20038         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
20040 2015-07-09  Richard Biener  <rguenther@suse.de>
20042         PR tree-optimization/66807
20043         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
20045 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
20047         * function.c (stack_protect_epilogue): Use if rather than switch for
20048         check targetm.have_stack_protect_test.
20050 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20052         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
20053         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
20054         * config/arc/arc.h: Likewise.
20055         * config/arm/arm.h: Likewise.
20056         * config/bfin/bfin.h: Likewise.
20057         * config/epiphany/epiphany.h: Likewise.
20058         * config/frv/frv.h: Likewise.
20059         * config/ia64/ia64.h: Likewise.
20060         * config/iq2000/iq2000.h: Likewise.
20061         * config/lm32/lm32.h: Likewise.
20062         * config/m32r/m32r.h: Likewise.
20063         * config/mcore/mcore.h: Likewise.
20064         * config/mep/mep.h: Likewise.
20065         * config/microblaze/microblaze.h: Likewise.
20066         * config/mips/mips.h: Likewise.
20067         * config/mmix/mmix.h: Likewise.
20068         * config/mn10300/mn10300.h: Likewise.
20069         * config/nds32/nds32.h: Likewise.
20070         * config/nios2/nios2.h: Likewise.
20071         * config/pa/pa.h: Likewise.
20072         * config/rl78/rl78.h: Likewise.
20073         * config/sh/sh.h: Likewise.
20074         * config/sparc/sparc.h: Likewise.
20075         * config/stormy16/stormy16.h: Likewise.
20076         * config/tilegx/tilegx.h: Likewise.
20077         * config/tilepro/tilepro.h: Likewise.
20078         * config/v850/v850.h: Likewise.
20079         * config/xtensa/xtensa.h: Likewise.
20080         * doc/tm.texi: Regenerate.
20081         * doc/tm.texi.in: Adjust.
20082         * combine.c (simplify_set): Likewise.
20083         (simplify_comparison): Likewise.
20084         * expr.c (store_constructor): Likewise.
20085         * internal-fn.c (expand_arith_overflow): Likewise.
20086         * reload.c (push_reload): Likewise.
20087         (find_reloads): Likewise.
20088         (find_reloads_subreg_address): Likewise.
20089         * reload1.c (eliminate_regs_1): Likewise.
20090         * rtlanal.c (nonzero_bits1): Likewise.
20091         (num_sign_bit_copies1): Likewise.
20092         * simplify-rtx.c (simplify_truncation): Likewise.
20094 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20096         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
20097         of AUTO_INC_DEC with the preprocessor.
20098         * combine.c (combine_instructions): Likewise.
20099         (can_combine_p): Likewise.
20100         (try_combine): Likewise.
20101         * emit-rtl.c (try_split): Likewise.
20102         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20103         * lower-subreg.c (resolve_simple_move): Likewise.
20104         * lra.c (update_inc_notes): Likewise.
20105         * recog.c (asm_operand_ok): Likewise.
20106         (constrain_operands): Likewise.
20107         * regrename.c (scan_rtx_address): Likewise.
20108         * reload.c (update_auto_inc_notes): Likewise.
20109         (reg_inc_found_and_valid_p): Likewise.
20110         * reload1.c (reload): Likewise.
20111         (emit_input_reload_insns): Likewise.
20112         (delete_output_reload): Likewise.
20113         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20114         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20116 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20118         * rtl.h: Always define AUTO_INC_DEC.
20119         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
20120         * combine.c (combine_instructions): Likewise.
20121         (can_combine_p): Likewise.
20122         (try_combine): Likewise.
20123         * emit-rtl.c (try_split): Likewise.
20124         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
20125         * lower-subreg.c (resolve_simple_move): Likewise.
20126         * lra.c (update_inc_notes): Likewise.
20127         * recog.c (asm_operand_ok): Likewise.
20128         (constrain_operands): Likewise.
20129         * regrename.c (scan_rtx_address): Likewise.
20130         * reload.c (update_auto_inc_notes): Likewise.
20131         (find_equiv_reg): Likewise.
20132         * reload1.c (reload): Likewise.
20133         (reload_as_needed): Likewise.
20134         (choose_reload_regs): Likewise.
20135         (emit_input_reload_insns): Likewise.
20136         (delete_output_reload): Likewise.
20137         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
20138         * valtrack.c (cleanup_auto_inc_dec): Likewise.
20140 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20142         * combine.c (can_combine_def_p): Don't check the value of
20143         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
20144         (combinable_i3pat): Likewise.
20145         (mark_used_regs_combine): Likewise.
20146         * regrename.c (rename_chains): Likewise.
20147         * reload.c (find_reloads_address): Likewise.
20148         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20150 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20152         * combine.c (update_rsp_from_reg_equal): Don't check if
20153         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
20154         (reg_nonzero_bits_for_combine): Likewise.
20155         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
20156         1.
20157         * config/frv/frv.h: Likewise.
20158         * config/lm32/lm32.h: Likewise.
20159         * config/mep/mep.h: Likewise.
20160         * config/mips/mips.h: Likewise.
20161         * config/rs6000/rs6000.h: Likewise.
20162         * config/sh/sh.h: Likewise.
20163         * config/tilegx/tilegx.h (enum reg_class): Likewise.
20164         * config/tilepro/tilepro.h: Likewise.
20165         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
20166         * doc/tm.texi: Regenerate.
20167         * doc/tm.texi.in: Adjust.
20168         * rtlanal.c (nonzero_bits1): Likewise.
20170 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20172         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
20173         with the preprocessor.
20174         (combine_instructions): Likewise.
20175         (try_combine): Likewise.
20176         (subst): Likewise.
20177         (distribute_notes): Likewise.
20179 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20181         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
20182         defined.
20183         (simplify_set): Likewise.
20184         * cse.c (cse_insn): Likewise.
20185         * fold-const.c (fold_single_bit_test): Likewise.
20186         (fold_unary_loc): Likewise.
20187         * postreload.c (reload_cse_simplify_set): Likewise.
20188         (reload_cse_simplify_operands): Likewise.
20190 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
20192         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
20193         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
20195 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20197         PR target/66746
20198         * config/i386/x86intrin.h: Include <adxintrin.h> even if
20199         __iamcu__ is defined.
20201 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20203         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
20205 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
20207         PR target/66523
20208         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
20209         names from preservation.
20211 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
20213         PR target/66806
20214         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
20215         change for IAMCU.
20216         (function_arg_advance_32): Don't pass vectors in registers for
20217         IAMCU.
20218         (function_arg_32): Likewise.
20219         (ix86_return_in_memory): Don't return vectors in registers for
20220         IAMCU.
20222 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
20224         PR middle-end/66334
20225         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
20226         hard regno live at the start of BB with incoming abnormal edges.
20227         * lra-lives.c (process_bb_lives): Ditto.
20229 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
20231         PR libgomp/65099
20232         * config/nvptx/mkoffload.c (main): Create an offload image only in
20233         64-bit configurations.
20235 2015-07-08  Martin Liska  <mliska@suse.cz>
20237         PR bootstrap/66744
20238         * tree-sra.c (create_access_1): Call ctor without brackets.
20239         (create_artificial_child_access): Likewise.
20241 2015-07-08  Richard Biener  <rguenther@suse.de>
20243         PR tree-optimization/66793
20244         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
20245         Properly split the block after stmts ending it.
20247 2015-07-08  Richard Biener  <rguenther@suse.de>
20249         PR tree-optimization/66794
20250         * passes.c (execute_function_todo): Assert that post-dominators
20251         are not computed.
20252         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
20253         Free post-dominators.
20255 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20257         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
20258         with early exit.
20260 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
20262         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
20263         more than or equal 8 and less than 32 when optimizing for size.
20265 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20267         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
20268         COSTS_N_INSNS (1) and increment it appropriately throughout the
20269         function.
20271 2015-07-08  Richard Biener  <rguenther@suse.de>
20273         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
20275 2015-07-08  Alan Modra  <amodra@gmail.com>
20277         * target.def (rtx_costs): Remove "code" param, add "mode".
20278         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
20279         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
20280         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
20281         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
20282         call.  Track mode when given in rtx.
20283         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
20284         (default_address_cost): Pass Pmode to rtx_cost.
20285         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
20286         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
20287         with NULL set.
20288         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
20289         (notreg_cost): Add mode param.  Use it.
20290         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
20291         mode param and pass to set_src_cost.  Update all calls.
20292         (hash_scan_set): Formatting.
20293         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
20294         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
20295         * hooks.h: Ditto.
20296         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
20297         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
20298         emit_store_flag): Update set_src_cost and rtx_cost calls.
20299         * auto-inc-dec.c (attempt_change): Likewise.
20300         * calls.c (precompute_register_parameters): Likewise.
20301         * combine.c (expand_compound_operation, make_extraction,
20302         force_to_mode, distribute_and_simplify_rtx): Likewise.
20303         * dojump.c (prefer_and_bit_test): Likewise.
20304         * dse.c (find_shift_sequence): Likewise.
20305         * expr.c (compress_float_constant): Likewise.
20306         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
20307         * ifcvt.c (noce_try_sign_mask): Likewise.
20308         * loop-doloop.c (doloop_optimize): Likewise.
20309         * loop-invariant.c (create_new_invariant): Likewise.
20310         * lower-subreg.c (shift_cost, compute_costs): Likewise.
20311         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
20312         lshift_cheap_p): Likewise.
20313         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
20314         try_replace_in_use, reload_cse_move2add): Likewise.
20315         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
20316         Likewise.
20317         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
20318         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20319         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
20320         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20321         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
20322         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
20323         to rtx_cost calls.
20324         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
20325         * config/arc/arc.c (arc_rtx_costs): Likewise.
20326         * config/arm/arm.c (arm_rtx_costs): Likewise.
20327         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
20328         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
20329         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
20330         * config/cris/cris.c (cris_rtx_costs): Likewise.
20331         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
20332         * config/frv/frv.c (frv_rtx_costs): Likewise.
20333         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
20334         * config/i386/i386.c (ix86_rtx_costs): Likewise.
20335         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
20336         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
20337         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
20338         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
20339         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
20340         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
20341         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
20342         * config/mep/mep.c (mep_rtx_cost): Likewise.
20343         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
20344         * config/mips/mips.c (mips_rtx_costs): Likewise.
20345         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
20346         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
20347         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
20348         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
20349         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
20350         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
20351         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
20352         * config/pa/pa.c (hppa_rtx_costs): Likewise.
20353         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
20354         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
20355         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
20356         * config/s390/s390.c (s390_rtx_costs): Likewise.
20357         * config/sh/sh.c (sh_rtx_costs): Likewise.
20358         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
20359         * config/spu/spu.c (spu_rtx_costs): Likewise.
20360         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
20361         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
20362         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
20363         * config/v850/v850.c (v850_rtx_costs): Likewise.
20364         * config/vax/vax.c (vax_rtx_costs): Likewise.
20365         * config/visium/visium.c (visium_rtx_costs): Likewise.
20366         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
20367         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
20368         "code" param, and pass as outer_code to first rtx_cost call.  Pass
20369         mode to rtx_cost calls.
20370         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
20371         calls.
20372         (aarch64_rtx_costs_wrapper): Update.
20373         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
20374         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
20375         rtx_cost calls.
20376         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
20377         and rtx_cost calls.
20378         (avr_operand_rtx_cost): Similarly.
20379         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
20380         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
20381         * config/mips/mips.c (mips_stack_address_p): Comment typo.
20382         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
20383         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
20384         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
20385         rtx_cost.
20386         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
20387         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
20388         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
20389         * doc/tm.texi: Regenerate.
20391 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
20393         * tree-core.h: Include symtab.h.
20394         * rtl.h: Include hard-reg-set.h but not flags.h.
20395         (HARD_CONST): Remove condition compilation involving HARD_CONST since
20396         hard-reg-set.h is always included.
20397         * regs.h: Don't include hard-reg-set.h or rtl.h.
20398         * cfg.h: Include dominance.h.
20399         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
20400         * backend.h: New.  Aggregate commonly used backend header files.
20401         * gimple-ssa.h: Don't include tree-hasher.h.
20402         * ssa.h: New.  Aggregate commonly used SSA header files.
20403         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
20404         * sel-sched-ir.h: Flatten includes.
20405         * lra-int.h: Flatten completely.
20406         * sel-sched-dump.h: Flatten includes.
20407         * ira-int.h: Flatten includes.
20408         * gimple-streamer.h: Remove all includes.
20409         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
20410         * resource.h: Flatten hard-reg-set.h and df.h.
20411         * sched-int.h: Flatten insn-arrt.h and df.h.
20412         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
20413         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
20414         * genattrtab.c (write_header): Adjust generated includes.
20415         * genautomata.c (main): Likewise.
20416         * genconditions.c (write-header): Likewise.
20417         * genemit.c (main): Likewise.
20418         * gengtype.c (open_base_files): Likewise.
20419         * genopinit.c (main): Likewise.
20420         * genoutput.c (output_prologue): Likewise.
20421         * genpeep.c (main): Likewise.
20422         * genpreds.c (write_insn_preds_c): Likewise.
20423         * genrecog.c (write_header): Likewise.
20424         * alias.c: Adjust includes.
20425         * asan.c: Likewise.
20426         * attribs.c: Likewise.
20427         * auto-inc-dec.c: Likewise.
20428         * auto-profile.c: Likewise.
20429         * bb-reorder.c: Likewise.
20430         * bt-load.c: Likewise.
20431         * builtins.c: Likewise.
20432         * caller-save.c: Likewise.
20433         * calls.c: Likewise.
20434         * ccmp.c: Likewise.
20435         * cfg.c: Likewise.
20436         * cfganal.c: Likewise.
20437         * cfgbuild.c: Likewise.
20438         * cfgcleanup.c: Likewise.
20439         * cfgexpand.c: Likewise.
20440         * cfghooks.c: Likewise.
20441         * cfgloop.c: Likewise.
20442         * cfgloopanal.c: Likewise.
20443         * cfgloopmanip.c: Likewise.
20444         * cfgrtl.c: Likewise.
20445         * cgraph.c: Likewise.
20446         * cgraphbuild.c: Likewise.
20447         * cgraphclones.c: Likewise.
20448         * cgraphunit.c: Likewise.
20449         * cilk-common.c: Likewise.
20450         * combine-stack-adj.c: Likewise.
20451         * combine.c: Likewise.
20452         * compare-elim.c: Likewise.
20453         * convert.c: Likewise.
20454         * coverage.c: Likewise.
20455         * cppbuiltin.c: Likewise.
20456         * cprop.c: Likewise.
20457         * cse.c: Likewise.
20458         * cselib.c: Likewise.
20459         * data-streamer-in.c: Likewise.
20460         * data-streamer-out.c: Likewise.
20461         * data-streamer.c: Likewise.
20462         * dbxout.c: Likewise.
20463         * dce.c: Likewise.
20464         * ddg.c: Likewise.
20465         * debug.c: Likewise.
20466         * df-core.c: Likewise.
20467         * df-problems.c: Likewise.
20468         * df-scan.c: Likewise.
20469         * dfp.c: Likewise.
20470         * dojump.c: Likewise.
20471         * dominance.c: Likewise.
20472         * domwalk.c: Likewise.
20473         * double-int.c: Likewise.
20474         * dse.c: Likewise.
20475         * dumpfile.c: Likewise.
20476         * dwarf2asm.c: Likewise.
20477         * dwarf2cfi.c: Likewise.
20478         * dwarf2out.c: Likewise.
20479         * emit-rtl.c: Likewise.
20480         * et-forest.c: Likewise.
20481         * except.c: Likewise.
20482         * explow.c: Likewise.
20483         * expmed.c: Likewise.
20484         * expr.c: Likewise.
20485         * final.c: Likewise.
20486         * fixed-value.c: Likewise.
20487         * fold-const.c: Likewise.
20488         * function.c: Likewise.
20489         * fwprop.c: Likewise.
20490         * gcc-plugin.h: Likewise.
20491         * gcse-common.c: Likewise.
20492         * gcse.c: Likewise.
20493         * generic-match-head.c: Likewise.
20494         * ggc-page.c: Likewise.
20495         * gimple-builder.c: Likewise.
20496         * gimple-expr.c: Likewise.
20497         * gimple-fold.c: Likewise.
20498         * gimple-iterator.c: Likewise.
20499         * gimple-low.c: Likewise.
20500         * gimple-match-head.c: Likewise.
20501         * gimple-pretty-print.c: Likewise.
20502         * gimple-ssa-isolate-paths.c: Likewise.
20503         * gimple-ssa-strength-reduction.c: Likewise.
20504         * gimple-streamer-in.c: Likewise.
20505         * gimple-streamer-out.c: Likewise.
20506         * gimple-walk.c: Likewise.
20507         * gimple.c: Likewise.
20508         * gimplify-me.c: Likewise.
20509         * gimplify.c: Likewise.
20510         * godump.c: Likewise.
20511         * graph.c: Likewise.
20512         * graphite-blocking.c: Likewise.
20513         * graphite-dependences.c: Likewise.
20514         * graphite-interchange.c: Likewise.
20515         * graphite-isl-ast-to-gimple.c: Likewise.
20516         * graphite-optimize-isl.c: Likewise.
20517         * graphite-poly.c: Likewise.
20518         * graphite-scop-detection.c: Likewise.
20519         * graphite-sese-to-poly.c: Likewise.
20520         * graphite.c: Likewise.
20521         * haifa-sched.c: Likewise.
20522         * hw-doloop.c: Likewise.
20523         * ifcvt.c: Likewise.
20524         * init-regs.c: Likewise.
20525         * internal-fn.c: Likewise.
20526         * ipa-chkp.c: Likewise.
20527         * ipa-comdats.c: Likewise.
20528         * ipa-cp.c: Likewise.
20529         * ipa-devirt.c: Likewise.
20530         * ipa-icf-gimple.c: Likewise.
20531         * ipa-icf.c: Likewise.
20532         * ipa-inline-analysis.c: Likewise.
20533         * ipa-inline-transform.c: Likewise.
20534         * ipa-inline.c: Likewise.
20535         * ipa-polymorphic-call.c: Likewise.
20536         * ipa-profile.c: Likewise.
20537         * ipa-prop.c: Likewise.
20538         * ipa-pure-const.c: Likewise.
20539         * ipa-ref.c: Likewise.
20540         * ipa-reference.c: Likewise.
20541         * ipa-split.c: Likewise.
20542         * ipa-utils.c: Likewise.
20543         * ipa-visibility.c: Likewise.
20544         * ipa.c: Likewise.
20545         * ira-build.c: Likewise.
20546         * ira-color.c: Likewise.
20547         * ira-conflicts.c: Likewise.
20548         * ira-costs.c: Likewise.
20549         * ira-emit.c: Likewise.
20550         * ira-lives.c: Likewise.
20551         * ira.c: Likewise.
20552         * jump.c: Likewise.
20553         * langhooks.c: Likewise.
20554         * lcm.c: Likewise.
20555         * loop-doloop.c: Likewise.
20556         * loop-init.c: Likewise.
20557         * loop-invariant.c: Likewise.
20558         * loop-iv.c: Likewise.
20559         * loop-unroll.c: Likewise.
20560         * lower-subreg.c: Likewise.
20561         * lra-assigns.c: Likewise.
20562         * lra-coalesce.c: Likewise.
20563         * lra-constraints.c: Likewise.
20564         * lra-eliminations.c: Likewise.
20565         * lra-lives.c: Likewise.
20566         * lra-remat.c: Likewise.
20567         * lra-spills.c: Likewise.
20568         * lra.c: Likewise.
20569         * lto-cgraph.c: Likewise.
20570         * lto-compress.c: Likewise.
20571         * lto-opts.c: Likewise.
20572         * lto-section-in.c: Likewise.
20573         * lto-section-out.c: Likewise.
20574         * lto-streamer-in.c: Likewise.
20575         * lto-streamer-out.c: Likewise.
20576         * lto-streamer.c: Likewise.
20577         * mcf.c: Likewise.
20578         * mode-switching.c: Likewise.
20579         * modulo-sched.c: Likewise.
20580         * omega.c: Likewise.
20581         * omp-low.c: Likewise.
20582         * optabs.c: Likewise.
20583         * opts-global.c: Likewise.
20584         * passes.c: Likewise.
20585         * plugin.c: Likewise.
20586         * postreload-gcse.c: Likewise.
20587         * postreload.c: Likewise.
20588         * predict.c: Likewise.
20589         * print-rtl.c: Likewise.
20590         * print-tree.c: Likewise.
20591         * profile.c: Likewise.
20592         * real.c: Likewise.
20593         * realmpfr.c: Likewise.
20594         * recog.c: Likewise.
20595         * ree.c: Likewise.
20596         * reg-stack.c: Likewise.
20597         * regcprop.c: Likewise.
20598         * reginfo.c: Likewise.
20599         * regrename.c: Likewise.
20600         * regstat.c: Likewise.
20601         * reload.c: Likewise.
20602         * reload1.c: Likewise.
20603         * reorg.c: Likewise.
20604         * resource.c: Likewise.
20605         * rtl-chkp.c: Likewise.
20606         * rtlanal.c: Likewise.
20607         * rtlhooks.c: Likewise.
20608         * sanopt.c: Likewise.
20609         * sched-deps.c: Likewise.
20610         * sched-ebb.c: Likewise.
20611         * sched-rgn.c: Likewise.
20612         * sched-vis.c: Likewise.
20613         * sdbout.c: Likewise.
20614         * sel-sched-dump.c: Likewise.
20615         * sel-sched-ir.c: Likewise.
20616         * sel-sched.c: Likewise.
20617         * sese.c: Likewise.
20618         * shrink-wrap.c: Likewise.
20619         * simplify-rtx.c: Likewise.
20620         * stack-ptr-mod.c: Likewise.
20621         * stmt.c: Likewise.
20622         * stor-layout.c: Likewise.
20623         * store-motion.c: Likewise.
20624         * stringpool.c: Likewise.
20625         * symtab.c: Likewise.
20626         * target-globals.c: Likewise.
20627         * targhooks.c: Likewise.
20628         * toplev.c: Likewise.
20629         * tracer.c: Likewise.
20630         * trans-mem.c: Likewise.
20631         * tree-affine.c: Likewise.
20632         * tree-browser.c: Likewise.
20633         * tree-call-cdce.c: Likewise.
20634         * tree-cfg.c: Likewise.
20635         * tree-cfgcleanup.c: Likewise.
20636         * tree-chkp-opt.c: Likewise.
20637         * tree-chkp.c: Likewise.
20638         * tree-chrec.c: Likewise.
20639         * tree-complex.c: Likewise.
20640         * tree-data-ref.c: Likewise.
20641         * tree-dfa.c: Likewise.
20642         * tree-diagnostic.c: Likewise.
20643         * tree-dump.c: Likewise.
20644         * tree-eh.c: Likewise.
20645         * tree-emutls.c: Likewise.
20646         * tree-if-conv.c: Likewise.
20647         * tree-inline.c: Likewise.
20648         * tree-into-ssa.c: Likewise.
20649         * tree-iterator.c: Likewise.
20650         * tree-loop-distribution.c: Likewise.
20651         * tree-nested.c: Likewise.
20652         * tree-nrv.c: Likewise.
20653         * tree-object-size.c: Likewise.
20654         * tree-outof-ssa.c: Likewise.
20655         * tree-parloops.c: Likewise.
20656         * tree-phinodes.c: Likewise.
20657         * tree-predcom.c: Likewise.
20658         * tree-pretty-print.c: Likewise.
20659         * tree-profile.c: Likewise.
20660         * tree-scalar-evolution.c: Likewise.
20661         * tree-sra.c: Likewise.
20662         * tree-ssa-address.c: Likewise.
20663         * tree-ssa-alias.c: Likewise.
20664         * tree-ssa-ccp.c: Likewise.
20665         * tree-ssa-coalesce.c: Likewise.
20666         * tree-ssa-copy.c: Likewise.
20667         * tree-ssa-copyrename.c: Likewise.
20668         * tree-ssa-dce.c: Likewise.
20669         * tree-ssa-dom.c: Likewise.
20670         * tree-ssa-dse.c: Likewise.
20671         * tree-ssa-forwprop.c: Likewise.
20672         * tree-ssa-ifcombine.c: Likewise.
20673         * tree-ssa-live.c: Likewise.
20674         * tree-ssa-loop-ch.c: Likewise.
20675         * tree-ssa-loop-im.c: Likewise.
20676         * tree-ssa-loop-ivcanon.c: Likewise.
20677         * tree-ssa-loop-ivopts.c: Likewise.
20678         * tree-ssa-loop-manip.c: Likewise.
20679         * tree-ssa-loop-niter.c: Likewise.
20680         * tree-ssa-loop-prefetch.c: Likewise.
20681         * tree-ssa-loop-unswitch.c: Likewise.
20682         * tree-ssa-loop.c: Likewise.
20683         * tree-ssa-math-opts.c: Likewise.
20684         * tree-ssa-operands.c: Likewise.
20685         * tree-ssa-phiopt.c: Likewise.
20686         * tree-ssa-phiprop.c: Likewise.
20687         * tree-ssa-pre.c: Likewise.
20688         * tree-ssa-propagate.c: Likewise.
20689         * tree-ssa-reassoc.c: Likewise.
20690         * tree-ssa-sccvn.c: Likewise.
20691         * tree-ssa-scopedtables.c: Likewise.
20692         * tree-ssa-sink.c: Likewise.
20693         * tree-ssa-strlen.c: Likewise.
20694         * tree-ssa-structalias.c: Likewise.
20695         * tree-ssa-tail-merge.c: Likewise.
20696         * tree-ssa-ter.c: Likewise.
20697         * tree-ssa-threadedge.c: Likewise.
20698         * tree-ssa-threadupdate.c: Likewise.
20699         * tree-ssa-uncprop.c: Likewise.
20700         * tree-ssa-uninit.c: Likewise.
20701         * tree-ssa.c: Likewise.
20702         * tree-ssanames.c: Likewise.
20703         * tree-stdarg.c: Likewise.
20704         * tree-streamer-in.c: Likewise.
20705         * tree-streamer-out.c: Likewise.
20706         * tree-streamer.c: Likewise.
20707         * tree-switch-conversion.c: Likewise.
20708         * tree-tailcall.c: Likewise.
20709         * tree-vect-data-refs.c: Likewise.
20710         * tree-vect-generic.c: Likewise.
20711         * tree-vect-loop-manip.c: Likewise.
20712         * tree-vect-loop.c: Likewise.
20713         * tree-vect-patterns.c: Likewise.
20714         * tree-vect-slp.c: Likewise.
20715         * tree-vect-stmts.c: Likewise.
20716         * tree-vectorizer.c: Likewise.
20717         * tree-vrp.c: Likewise.
20718         * tree.c: Likewise.
20719         * tsan.c: Likewise.
20720         * ubsan.c: Likewise.
20721         * valtrack.c: Likewise.
20722         * value-prof.c: Likewise.
20723         * var-tracking.c: Likewise.
20724         * varasm.c: Likewise.
20725         * varpool.c: Likewise.
20726         * vmsdbgout.c: Likewise.
20727         * vtable-verify.c: Likewise.
20728         * web.c: Likewise.
20729         * wide-int.cc: Likewise.
20730         * xcoffout.c: Likewise.
20731         * config/aarch64/aarch64-builtins.c: Likewise.
20732         * config/aarch64/aarch64.c: Likewise.
20733         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20734         * config/alpha/alpha.c: Likewise.
20735         * config/arc/arc.c: Likewise.
20736         * config/arm/aarch-common.c: Likewise.
20737         * config/arm/arm-builtins.c: Likewise.
20738         * config/arm/arm-c.c: Likewise.
20739         * config/arm/arm.c: Likewise.
20740         * config/avr/avr-c.c: Likewise.
20741         * config/avr/avr-log.c: Likewise.
20742         * config/avr/avr.c: Likewise.
20743         * config/bfin/bfin.c: Likewise.
20744         * config/c6x/c6x.c: Likewise.
20745         * config/cr16/cr16.c: Likewise.
20746         * config/cris/cris.c: Likewise.
20747         * config/darwin-c.c: Likewise.
20748         * config/darwin.c: Likewise.
20749         * config/epiphany/epiphany.c: Likewise.
20750         * config/epiphany/mode-switch-use.c: Likewise.
20751         * config/epiphany/resolve-sw-modes.c: Likewise.
20752         * config/fr30/fr30.c: Likewise.
20753         * config/frv/frv.c: Likewise.
20754         * config/ft32/ft32.c: Likewise.
20755         * config/h8300/h8300.c: Likewise.
20756         * config/i386/i386-c.c: Likewise.
20757         * config/i386/i386.c: Likewise.
20758         * config/i386/msformat-c.c: Likewise.
20759         * config/i386/winnt-cxx.c: Likewise.
20760         * config/i386/winnt-stubs.c: Likewise.
20761         * config/i386/winnt.c: Likewise.
20762         * config/ia64/ia64-c.c: Likewise.
20763         * config/ia64/ia64.c: Likewise.
20764         * config/iq2000/iq2000.c: Likewise.
20765         * config/lm32/lm32.c: Likewise.
20766         * config/m32c/m32c-pragma.c: Likewise.
20767         * config/m32c/m32c.c: Likewise.
20768         * config/m32r/m32r.c: Likewise.
20769         * config/m68k/m68k.c: Likewise.
20770         * config/mcore/mcore.c: Likewise.
20771         * config/mep/mep-pragma.c: Likewise.
20772         * config/mep/mep.c: Likewise.
20773         * config/microblaze/microblaze-c.c: Likewise.
20774         * config/microblaze/microblaze.c: Likewise.
20775         * config/mips/mips.c: Likewise.
20776         * config/mmix/mmix.c: Likewise.
20777         * config/mn10300/mn10300.c: Likewise.
20778         * config/moxie/moxie.c: Likewise.
20779         * config/msp430/msp430-c.c: Likewise.
20780         * config/msp430/msp430.c: Likewise.
20781         * config/nds32/nds32-cost.c: Likewise.
20782         * config/nds32/nds32-fp-as-gp.c: Likewise.
20783         * config/nds32/nds32-intrinsic.c: Likewise.
20784         * config/nds32/nds32-isr.c: Likewise.
20785         * config/nds32/nds32-md-auxiliary.c: Likewise.
20786         * config/nds32/nds32-memory-manipulation.c: Likewise.
20787         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20788         * config/nds32/nds32-predicates.c: Likewise.
20789         * config/nds32/nds32.c: Likewise.
20790         * config/nios2/nios2.c: Likewise.
20791         * config/nvptx/nvptx.c: Likewise.
20792         * config/pa/pa.c: Likewise.
20793         * config/pdp11/pdp11.c: Likewise.
20794         * config/rl78/rl78-c.c: Likewise.
20795         * config/rl78/rl78.c: Likewise.
20796         * config/rs6000/rs6000-c.c: Likewise.
20797         * config/rs6000/rs6000.c: Likewise.
20798         * config/rx/rx.c: Likewise.
20799         * config/s390/s390-c.c: Likewise.
20800         * config/s390/s390.c: Likewise.
20801         * config/sh/sh-c.c: Likewise.
20802         * config/sh/sh-mem.cc: Likewise.
20803         * config/sh/sh.c: Likewise.
20804         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20805         * config/sh/sh_treg_combine.cc: Likewise.
20806         * config/sol2-c.c: Likewise.
20807         * config/sol2-cxx.c: Likewise.
20808         * config/sol2-stubs.c: Likewise.
20809         * config/sol2.c: Likewise.
20810         * config/sparc/sparc-c.c: Likewise.
20811         * config/sparc/sparc.c: Likewise.
20812         * config/spu/spu-c.c: Likewise.
20813         * config/spu/spu.c: Likewise.
20814         * config/stormy16/stormy16.c: Likewise.
20815         * config/tilegx/mul-tables.c: Likewise.
20816         * config/tilegx/tilegx-c.c: Likewise.
20817         * config/tilegx/tilegx.c: Likewise.
20818         * config/tilepro/mul-tables.c: Likewise.
20819         * config/tilepro/tilepro-c.c: Likewise.
20820         * config/tilepro/tilepro.c: Likewise.
20821         * config/v850/v850-c.c: Likewise.
20822         * config/v850/v850.c: Likewise.
20823         * config/vax/vax.c: Likewise.
20824         * config/visium/visium.c: Likewise.
20825         * config/vms/vms-c.c: Likewise.
20826         * config/vms/vms.c: Likewise.
20827         * config/vxworks.c: Likewise.
20828         * config/xtensa/xtensa.c: Likewise.
20830 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
20832         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
20833         Remove operand constraints.  Change operand 2 predicate to
20834         nonmemory operand.  Limit const_int values to mode bitsize.  Only
20835         allow const_int values less than 32 when optimizing for size.
20836         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
20837         Remove operand constraints.
20838         (*bt<mode>): Use SImode for const_int values less than 32.
20839         (regmode): Remove mode attribute.
20841 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
20843         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20844         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
20845           moxie_legitimate_address_p): New functions.
20846           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20848 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20850         PR tree-optimization/66642
20851         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
20852         header comment.  Rename split_edge variable to edge_at_split.  Split
20853         exit edge to create new loop exit bb.  Insert loop exit phis in new
20854         loop exit bb.
20856 2015-07-07  Tom de Vries  <tom@codesourcery.com>
20858         * tree-cfg.c (get_virtual_phi): New function.
20859         * tree-cfg.h (get_virtual_phi): Declare.
20860         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
20861         (rewrite_virtuals_into_loop_closed_ssa): New function.
20862         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
20863         Declare.
20864         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
20865         (transform_to_exit_first_loop_alt): Use
20866         rewrite_virtuals_into_loop_closed_ssa.
20868 2015-07-07  Richard Biener  <rguenther@suse.de>
20870         * fold-const.c (fold_binary_loc): Move
20871         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
20872         * match.pd: ... here.
20873         Add (X * C1) % C2 -> 0 simplification pattern derived from
20874         extract_muldiv_1.
20876 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20878         PR target/66780
20879         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
20880         change for target/65249.
20882 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
20884         * symtab.c (address_matters_1): Fix typo in comment above.
20885         (can_increase_alignment_p): Likewise.
20887 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20889         * function.c (free_after_compilation): Clear PROP_cfg in
20890         f->curr_properties.
20892 2015-07-07  Richard Biener  <rguenther@suse.de>
20894         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
20895         add which use to.
20896         (add_control_edge): Remove excessive vertical space in dumping.
20897         (process_ssa_edge_worklist): Simulate at most one statement and
20898         return whether we did.  Do not simulate PHIs if they are in a
20899         BB not yet simulated.
20900         (ssa_propagate): Adjust to always drain the BB worklist whenever
20901         a BB is available there, likewise the VARYING edges list before
20902         the interesting edge list.
20904 2015-07-07  Christian Bruel  <christian.bruel@st.com>
20906         PR target/52144
20907         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
20909 2015-07-07  Richard Biener  <rguenther@suse.de>
20911         PR middle-end/66739
20912         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
20913         A - B.
20915 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
20917         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
20918         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
20919         Copy operand 0 to a temporary if !ext_register_operand.  Remove
20920         ancient extract_bit_field workaround.
20921         (insv<mode>_1): Rename from mov<mode>_insv_1.
20922         (*insvqi): Rename from *movqi_insv_2.
20923         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
20924         for renamed insvsi_1.
20925         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
20927 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
20929         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
20930         call to nvptx_reorg_subreg.
20932 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
20934         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
20935         * graphite-dependencies.c, graphite-interchange.c,
20936         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
20937         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
20938         Likewise.
20940 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
20942         * match.pd: Remove element_mode inside HONOR_*.
20943         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
20944         (~X | X -> -1, ~X ^ X -> -1): Merge.
20945         * tree.c (build_each_one_cst): New function.
20946         * tree.h (build_each_one_cst): Likewise.
20948 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
20950         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20951         PROCESSOR_IAMCU.
20953 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
20955         * config.gcc <mips*-*-*>: Add fused-madd.opt.
20956         * config/mips/mips.opt (mfused-madd): Remove.
20957         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
20958         * config/mips/mips.h (TARGET_MIPS8000): New.
20959         (ISA_HAS_FP_MADD4_MSUB4): Remove.
20960         (ISA_HAS_FP_MADDF_MSUBF): Remove.
20961         (ISA_HAS_FP_MADD3_MSUB3): Remove.
20962         (ISA_HAS_NMADD4_NMSUB4): Remove.
20963         (ISA_HAS_NMADD3_NMSUB3): Remove.
20964         (ISA_HAS_FUSED_MADD4): New.
20965         (ISA_HAS_UNFUSED_MADD4): New.
20966         (ISA_HAS_FUSED_MADDF): New.
20967         (ISA_HAS_FUSED_MADD3): New.
20968         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
20969         (*fma<mode>4_madd3) New.
20970         (*fma<mode>4_madd4) New.
20971         (*fma<mode>4_maddf) New.
20972         (fms<mode>4) New.
20973         (*fms<mode>4_msub3) New.
20974         (*fms<mode>4_msub4) New.
20975         (fnma<mode>4) New.
20976         (*fnma<mode>4_nmadd3) New.
20977         (*fnma<mode>4_nmadd4) New.
20978         (fnms<mode>4) New.
20979         (*fnms<mode>4_nmsub3) New.
20980         (*fnms<mode>4_nmsub4) New.
20981         (*madd4<mode>) Modify to be unfused only.
20982         (*msub4<mode>) Modify to be unfused only.
20983         (*nmadd4<mode>) Modify to be unfused only.
20984         (*nmsub4<mode>) Modify to be unfused only.
20985         (*madd3<mode>) Remove.
20986         (*msub3<mode>) Remove.
20987         (*nmadd3<mode>) Remove.
20988         (*nmsub3<mode>) Remove.
20989         (*nmadd3<mode>_fastmath) Remove.
20990         (*nmsub3<mode>_fastmath) Remove.
20991         (*nmadd4<mode>_fastmath) Update condition.
20992         (*nmsub4<mode>_fastmath) Update condition.
20994 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
20996         PR target/65956
20997         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
20998         alignment attribute, exploring one level down for records and arrays.
21000 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
21002         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
21003         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
21004         Copy operand 1 to a temporary if !ext_register_operand.  Remove
21005         ancient extract_bit_field workaround.
21006         (*extv<mode>): Rename from *mov<mode>_extv_1.
21007         (*extvqi): Rename from *movqi_extv_1.
21008         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
21009         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
21010         to a temporary if !ext_register_operand.  Remove ancient
21011         extract_bit_field workaround.
21012         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
21013         (*extzvqi): Rename from *movqi_extzv_2.
21014         (*testqi_ext_3): Remove modes from const_int_operand predicated
21015         operands.  Add "n" constraint.
21016         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
21017         operand.  Add "J" constraint.
21018         (*btsq, *btrq, *btcq peephole2s): Remove mode from
21019         const_0_to_63 predicated operand.
21020         (regmode): New insn attribute.
21021         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
21022         to nonmemory_operand.  Use regmode insn attribute.
21023         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
21024         (*jcc_bt<mode>_mask): Remove mode from operand 3.
21025         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
21026         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
21027         operands.  Use "N" constraint instead of "n".
21029 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
21031         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
21033 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21035         PR target/66749
21036         * config/i386/i386.c (iamcu_cost): New.
21037         (m_IAMCU): Likewise.
21038         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
21039         (processor_target_table): Add an entry for "iamcu".
21040         (processor_alias_table): Likewise.
21041         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
21042         (ix86_adjust_cost): Likewise.
21043         (ia32_multipass_dfa_lookahead): Likewise.
21044         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
21045         * config/i386/x86-tune.def: Updated for m_IAMCU.
21047 2015-07-06  Richard Biener  <rguenther@suse.de>
21049         PR tree-optimization/66772
21050         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
21051         values are available in the PHI node BB when there are
21052         still unexecutable edges.
21054 2015-07-06  Richard Biener  <rguenther@suse.de>
21056         PR tree-optimization/66767
21057         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
21058         Make sure to build the alignment test on a SSA name without
21059         final alignment info valid only if the alignment test
21060         evaluates to true.
21062 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
21064         PR target/66620
21065         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
21066         loop start when inserting LSETUP.
21068 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
21070         PR target/53383
21071         * config/i386/i386.c (ix86_option_override_internal): Allow
21072         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
21074 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21076         * read-md.c (decimal_string): Rename to ...
21077         (md_decimal_string): ... this.
21078         (handle_enum): Reflect this.
21080 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21082         PR target/66731
21083         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
21085 2015-07-06  Richard Biener  <rguenther@suse.de>
21087         PR middle-end/66759
21088         * match.pd: Add missing constraint of y to REAL_CST in
21089         REAL_CST - x CMP y to y - CST CMP x simplification.
21091 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
21093         PR tree-optimization/66757
21094         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
21096 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
21097             Sandra Loosemore <sandra@codesourcery.com>
21099         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
21100         Delete extern declaration.
21101         (gprel_constant_p): Add extern declaration.
21102         * config/nios2/constraints.md ("S"): Use gprel_constant_p
21103         instead of nios2_symbol_ref_in_small_data_p.
21104         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
21105         (nios2_symbol_ref_in_small_data_p): Make static.
21106         (gprel_constant_p): Make non-static.
21108 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
21110         * doc/fragments.texi (Target Fragment): Convert debian.org
21111         link to use https.
21112         * doc/install.texi (Configuration): Ditto.
21114 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
21116         PR tree-optimization/66718
21117         * tree-vect-stmts.c (vectorizable_call): Replace uses of
21118         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
21120         PR tree-optimization/66718
21121         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
21122         vectorizable_load, vectorizable_condition): Move vectype,
21123         nunits, ncopies computation after checking what kind of statement
21124         stmt is.
21126 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21128         * target-insns.def (extv, extzv, insv): New targetm instruction
21129         patterns.
21130         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
21131         interface.
21132         * recog.c (simplify_while_replacing): Likewise.
21134 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21136         * target-insns.def (doloop_begin, doloop_end): New targetm
21137         instruction patterns.
21138         * loop-init.c: Include target.h.
21139         (pass_loop2::gate): Use the new targetm patterns instead of
21140         HAVE_*/gen_* interface.
21141         (pass_rtl_doloop::gate): Likewise.
21142         (pass_rtl_doloop::execute): Remove preprocessor condition.
21143         * hw-doloop.c: Build unconditionally.
21144         * loop-doloop.c: Likewise.
21145         (doloop_optimize): Use the new targetm patterns instead of
21146         HAVE_*/gen_* interface.
21147         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
21148         * modulo-sched.c (doloop_register_get): Likewise.
21150 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21152         * target-insns.def (clear_cache): New targetm instruction pattern.
21153         * builtins.c (expand_builtin___clear_cache): Use it instead of
21154         HAVE_*/gen_* interface.
21156 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21158         * target-insns.def (allocate_stack, check_stack, probe_stack)
21159         (probe_stack_address, split_stack_prologue, split_stack_space_check):
21160         New targetm instruction patterns.
21161         * explow.c (allocate_dynamic_stack_space): Use them instead of
21162         HAVE_*/gen_* interface.
21163         (emit_stack_probe): Likewise.
21164         (probe_stack_range): Likewise.
21165         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21167 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21169         * target-insns.def (stack_protect_set, stack_protect_test): New
21170         targetm instruction patterns.
21171         * cfgexpand.c (stack_protect_prologue): Use them instead of
21172         HAVE_*/gen_* interface.
21173         * function.c (stack_protect_epilogue): Likewise.
21175 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21177         * expr.h (gen_move_insn_uncast): Delete.
21178         * expr.c (gen_move_insn_uncast): Delete.
21180 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21182         * target-insns.def (restore_stack_block, restore_stack_function)
21183         (restore_stack_nonlocal, save_stack_block, save_stack_function)
21184         (save_stack_nonlocal): New targetm instruction patterns.
21185         * builtins.c (expand_builtin_apply): Use them instead of
21186         HAVE_*/gen_* interface.
21187         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
21189 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21191         * target-insns.def (trap): New targetm instruction pattern.
21192         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
21193         interface.
21194         * explow.c (allocate_dynamic_stack_space): Likewise.
21195         * ifcvt.c (find_if_header): Likewise.
21197 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21199         * target-insns.def (prefetch): New targetm instruction pattern.
21200         * tree-ssa-loop-prefetch.c: Include targeth.
21201         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
21202         of HAVE_*/gen_* interface.
21203         * builtins.c (expand_builtin_prefetch): Likewise.
21204         * toplev.c (process_options): Likewise.
21206 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21208         * target-insns.def (untyped_call, untyped_return): New targetm
21209         instruction patterns.
21210         * builtins.c (expand_builtin_apply): Use them instead of
21211         HAVE_*/gen_* interface.
21212         (result_vector): Define unconditionally.
21214 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21216         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
21217         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
21218         (nonlocal_goto_receiver): New targetm instruction patterns.
21219         * builtins.c (expand_builtin_setjmp_setup): Use them instead
21220         of HAVE_*/gen_* interface.
21221         (expand_builtin_setjmp_receiver): Likewise.
21222         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
21223         * except.c (expand_dw2_landing_pad_for_region): Likewise.
21225 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
21227         * target.def: Add code_for_* hooks.
21228         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
21229         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
21230         * target-insns.def (casesi, tablejump): New targetm instruction
21231         patterns.
21232         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
21233         (do_tablejump): Likewise.
21234         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
21235         (expand_sjlj_dispatch_table): Likewise.
21236         * targhooks.c (default_case_values_threshold): Likewise.
21238 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
21240         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
21241         Use rtx_insn * instead of rtx.
21242         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
21243         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
21244         (nios2_call_tls_get_addr): Likewise.
21245         (nios2_emit_expensive_div): Likewise.
21246         (nios2_emit_move_sequence): Change return type to bool.
21247         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
21248         Change return type to bool.
21250 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21252         PR target/66747
21253         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
21255 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
21257         PR target/66114
21258         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
21259         of register_operand.  Remove constraint.
21261 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
21263         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
21264         the first argument.
21266 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
21268         * attribs.c (decl_attributes): Guard inform with the return value
21269         of the preceding warning.
21271 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21273         * doc/invoke.texi (moverride): Move to correct section.
21275 2015-07-03  Richard Biener  <rguenther@suse.de>
21277         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
21278         Copy from tree.c
21279         (dt_operand::gen_gimple_expr): After valueizing operands
21280         re-canonicalize operand order for commutative tree codes.
21282 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
21284         PR target/66746.
21285         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
21286         is defined.
21287         (__crc32w): Likewise.
21288         (__crc32d): Likewise.
21289         (__rdpmc): Likewise.
21290         (__rdtscp): Likewise.
21291         (_rdpmc): Likewise.
21292         (_rdtscp): Likewise.
21293         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
21294         is defined.
21296 2015-07-03  Richard Biener  <rguenther@suse.de>
21298         * fold-const.c (fold_mathfn_compare): Remove.
21299         (fold_inf_compare): Likewise.
21300         (fold_comparison): Move floating point comparison simplifications...
21301         * match.pd: ... to patterns here.  Introduce simple_comparisons
21302         operator list and use it for patterns formerly in fold_comparison.
21304 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
21306         PR tree-optimization/66119
21307         * toplev.c (process_options): Don't set up default values for
21308         the sra_max_scalarization_size_{speed,size} parameters.
21309         * tree-sra (analyze_all_variable_accesses): If no values
21310         have been set for the sra_max_scalarization_size_{speed,size}
21311         parameters, call get_move_ratio to get target defaults.
21313 2015-07-03  Richard Biener  <rguenther@suse.de>
21315         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
21316         * match.pd: ... here.
21318 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
21320         PR target/37072
21321         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
21322         is not actually the default on FreeBSD.
21324 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21326         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
21327         definition.
21328         (CMPGE_8HI): Likewise.
21329         (CMPGE_4SI): Likewise.
21330         (CMPGE_2DI): Likewise.
21331         (CMPGE_U16QI): Likewise.
21332         (CMPGE_U8HI): Likewise.
21333         (CMPGE_U4SI): Likewise.
21334         (CMPGE_U2DI): Likewise.
21335         (CMPLE_16QI): Likewise.
21336         (CMPLE_8HI): Likewise.
21337         (CMPLE_4SI): Likewise.
21338         (CMPLE_2DI): Likewise.
21339         (CMPLE_U16QI): Likewise.
21340         (CMPLE_U8HI): Likewise.
21341         (CMPLE_U4SI): Likewise.
21342         (CMPLE_U2DI): Likewise.
21343         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21344         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
21345         ALTIVEC_BUILTIN_VEC_CMPLE.
21346         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
21347         floating-point vector modes.
21348         (vector_nlt<mode>): New define_expand.
21349         (vector_nltu<mode>): Likewise.
21350         (vector_ngt<mode>): Likewise.
21351         (vector_ngtu<mode>): Likewise.
21353 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
21355         PR rtl-optimization/66706
21356         * combine.c (make_compound_operation): If an AND of SUBREG of
21357         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
21359 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
21361         * tree-pass.h (make_pass_ch_vect): New.
21362         * passes.def: Add pass_ch_vect just before pass_if_conversion.
21364         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
21365         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
21366         make_pass_ch_vect): New.
21367         (pass_ch): Extend ch_base.
21369         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
21370         (ch_base::copy_headers): ...here.
21372 2015-07-02  Richard Biener  <rguenther@suse.de>
21374         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
21375         * fold-const.c (get_pointer_modulus_and_residue): Remove.
21376         (fold_binary_loc): Implement (T)ptr & CST in terms of
21377         get_pointer_alignment_1.
21378         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
21379         Make sure to build the alignment test on a SSA name without
21380         final alignment info valid only after the prologue.
21382 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
21384         * config/cris/cris.md ("epilogue"): Remove condition.
21385         ("prologue"): Ditto.
21387 2015-07-02  Richard Biener  <rguenther@suse.de>
21389         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
21390         parameter to record a condition that is false.
21391         (record_conditions): When recording an extra NE_EXPR that is
21392         true also record a EQ_EXPR that is false.
21394 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
21396         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
21397         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
21398         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
21399         (set_iv, find_interesting_uses_address, add_candidate_1): New
21400         argument to alloc_iv.
21401         (find_interesting_uses_op, find_interesting_uses_cond): Don't
21402         duplicate struct iv.
21403         (free_loop_data): Don't free struct iv explicitly.
21404         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
21406 2015-07-01  DJ Delorie  <dj@redhat.com>
21408         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
21409         (LIB_SPEC): Add.
21410         (SUPPORTS_DISCRIMINATOR): Define.
21412 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21414         PR bootstrap/66685
21415         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
21416         there are no CALLs in the same pattern.
21418 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21420         PR rtl-optimization/61047
21421         * rtlanal.c (get_initial_register_offset): New function.
21422         (rtx_addr_can_trap_p_1): Check offsets of stack references.
21424 2015-07-01  Richard Biener  <rguenther@suse.de>
21426         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
21427         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
21428         ~X CMP C -> X CMP' ~C to ...
21429         * match.pd: ... patterns here.
21431 2015-07-01  Nick Clifton  <nickc@redhat.com>
21433         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
21434         a 16-bit value into a 20-bit memory slot.
21436 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21438         * doc/sourcebuild.texi (AArch64-specific attributes): Document
21439         "aarch64_tiny", "aarch64_small", "aarch64_large",
21440         "aarch64_little_endian", "aarch64_big_endian".
21442 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21444         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
21445         Document "aarch64_small_fpic".
21447 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21449         * configure.ac: Add check for aarch64 assembler -fpic relocation
21450         modifier support.
21451         * configure: Regenerate.
21452         * config.in: Regenerate.
21453         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
21454         to -fPIC if not support of -fpic relocation modifier in assembler.
21456 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
21458         PR bootstrap/66685
21459         * rtl.c (classify_insn): Handle returns in PARALLELs.
21461 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
21463         PR middle-end/66633
21464         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
21465         to true if the function is nested and if not optimizing.
21466         (convert_local_omp_clauses): Initialize need_frame to true if the
21467         function contains nested functions and if not optimizing.
21469 2015-07-01  Richard Biener  <rguenther@suse.de>
21471         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
21472         (X & Y) ^ Y -> ~X & Y transforms to ...
21473         * match.pd: ... here.
21475 2015-07-01  Richard Biener <rguenther@suse.de>
21477         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
21478         of converts to avoid uninteresting noise from the conversion
21479         simplifying patterns.
21481 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
21483         * config/c6x/c6x.c (try_rename_operands): Do not depend on
21484         gcc_assert evaluating its argument for side-effect.
21486 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
21488         PR target/64833
21489         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
21490         flag_pic is set.
21492 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21494         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
21495         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
21496         (hash_scc): Add this_ref_p and ref_p parameters and pass them
21497         to the inner DFS walk.
21499 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21501         * target-insns.def (jump): New targetm instruction pattern.
21502         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
21503         instead of gen_jump.
21504         (fix_up_crossing_landing_pad): Likewise.
21505         (add_labels_and_missing_jumps): Likewise.
21506         (fix_crossing_conditional_branches): Likewise.
21507         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21508         (force_nonfallthru_and_redirect): Likewise.
21509         * cse.c (cse_insn): Likewise.
21510         * expmed.c (expand_divmod): Likewise.
21511         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
21512         * haifa-sched.c (init_before_recovery): Likewise.
21513         (sched_create_recovery_edges): Likewise.
21514         * ifcvt.c (find_cond_trap): Likewise.
21515         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
21516         (expand_float, expand_fix): Likewise.
21517         * stmt.c (emit_jump): Likewise.
21519 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21521         * defaults.h (HAVE_load_multiple, gen_load_multiple)
21522         (HAVE_store_multiple, gen_store_multiple): Delete.
21523         * target-insns.def (load_multiple, store_multiple): New targetm
21524         instruction patterns.
21525         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
21526         of HAVE_*/gen_* interface.
21528 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21530         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
21531         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
21532         (gen_mem_signal_fence): Delete.
21533         * target-insns.def (mem_signal_fence, mem_thread_fence)
21534         (memory_barrier): New targetm instruction patterns.
21535         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
21536         interface.
21537         (expand_mem_signal_fence): Likewise.
21539 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
21541         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
21542         * target-insns.def (epilogue, prologue, sibcall_prologue): New
21543         targetm instruction patterns.
21544         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
21545         interface.
21546         * calls.c (expand_call): Likewise.
21547         * cfgrtl.c (cfg_layout_finalize): Likewise.
21548         * df-scan.c (df_get_entry_block_def_set): Likewise.
21549         (df_get_exit_block_use_set): Likewise.
21550         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
21551         * final.c (final_start_function): Likewise.
21552         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21553         (reposition_prologue_and_epilogue_notes): Likewise.
21554         * reorg.c (find_end_label): Likewise.
21555         * toplev.c (process_options): Likewise.
21557 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
21559         * typed-splay-tree.h: New file.
21561 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
21563         PR debug/66691
21564         * lra-int.h (lra_substitute_pseudo): Add a parameter.
21565         (lra_substitute_pseudo_within_insn): Ditto.
21566         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
21567         of constant.
21568         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
21569         to lra_substitute_pseudo.
21570         * lra-lives.c (process_bb_lives): Add an argument to
21571         lra_substitute_pseudo_within_insn call.
21572         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
21573         argument to lra_substitute_pseudo and
21574         lra_substitute_pseudo_within_insn calls.
21575         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
21577 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21579         * configure: Regenerated.
21581 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21583         * config.gcc: Support i[34567]86-*-elfiamcu target.
21584         * config/i386/iamcu.h: New.
21585         * config/i386/i386.opt: Add -miamcu.
21586         * doc/invoke.texi: Document -miamcu.
21587         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
21588         off x87/MMX/SSE/AVX codegen for -miamcu.
21589         * config/i386/i386-c.c (ix86_target_macros_internal): Define
21590         __iamcu/__iamcu__ for -miamcu.
21591         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
21592         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
21593         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
21594         * config/i386/i386.c (ix86_option_override_internal): Ignore and
21595         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
21596         MCU by default.  Default long double to 64-bit for Intel MCU.
21597         Turn on -freg-struct-return for Intel MCU.  Issue an error when
21598         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
21599         AVX is turned on.
21600         (function_arg_advance_32): Pass value whose size is no larger
21601         than 8 bytes in registers for Intel MCU.
21602         (function_arg_32): Likewise.
21603         (ix86_return_in_memory): Return value whose size is no larger
21604         than 8 bytes in registers for Intel MCU.
21605         (iamcu_alignment): New function.
21606         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
21607         true.
21608         (ix86_local_alignment): Don't increase alignment for Intel MCU.
21609         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
21610         true.
21612 2015-06-30  Marek Polacek  <polacek@redhat.com>
21614         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
21615         both operands of the resulting expression.
21617         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
21618         the final expression with the operand's type and then convert
21619         it to the type of the expression.
21621 2015-06-30  Richard Biener  <rguenther@suse.de>
21623         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
21624         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
21625         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
21626         * match.pd: ... to patterns here.
21628 2015-06-30  Richard Biener  <rguenther@suse.de>
21630         PR tree-optimization/66704
21631         * tree-vect-data-refs.c (vect_setup_realignment): Use
21632         make_ssa_name for non-SSA name source.
21634 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
21636         PR middle-end/66702
21637         * omp-low.c (simd_clone_adjust): Handle addressable linear
21638         or uniform parameters or non-gimple type uniform parameters.
21640 2015-06-30  Richard Biener  <rguenther@suse.de>
21642         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
21643         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
21644         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
21645         * match.pd: ... here.
21646         Add a few cases of A - B -> A + (-B) when B "easily" negates.
21647         Move (x & y) | x -> x and friends before
21648         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
21650 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
21652         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
21653         -mfix-ut699 is not specified.
21654         (leon3_load): Rename into...
21655         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
21656         is specified.
21658 2015-06-30  Marek Polacek  <polacek@redhat.com>
21660         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
21661         * match.pd: ... here.
21663 2015-06-30  Richard Biener  <rguenther@suse.de>
21665         * target-insns.def (canonicalize_funcptr_for_compare): Add.
21666         * fold-const.c (build_range_check): Replace uses of
21667         HAVE_canonicalize_funcptr_for_compare.
21668         (fold_widened_comparison): Likewise.
21669         (fold_sign_changed_comparison): Likewise.
21670         * dojump.c: Include "target.h".
21671         (do_compare_and_jump): Replace uses of
21672         HAVE_canonicalize_funcptr_for_compare and
21673         gen_canonicalize_funcptr_for_compare.
21674         * expr.c (do_store_flag): Likewise.
21676 2015-06-30  Tom de Vries  <tom@codesourcery.com>
21678         PR tree-optimization/66652
21679         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
21680         max_loop_iterations to determine if nit + 1 overflows.
21682 2015-06-30  Richard Biener  <rguenther@suse.de>
21684         * tree-vrp.c (register_edge_assert_for_2): Also register
21685         asserts for dominating conversion results.
21687 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
21689         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
21690         field in struct iv.
21692 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
21694         PR target/66509
21695         * configure.ac: Fix filds and fildq test for 64-bit.
21696         * configure: Regenerated.
21698 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
21700         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
21701         (nvptx_reorg): Here.  Keep the non-subreg pieces.
21703 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
21705         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
21706         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
21708 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
21710         * config/i386/i386.md (*jcc_1): Use %! in asm template.
21711         Set attribute "length_nobnd" instead of "length".
21712         (*jcc_2): Ditto.
21713         (jump): Ditto.
21714         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
21716 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
21718         * config/nios2/nios2.c (nios2_delegitimize_address): Make
21719         assert less restrictive.
21721 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21723         PR fortran/66605
21724         * cgraphunit.c (cgraph_node::finalize_function): Do not call
21725         do_warn_unused_parameter.
21726         * function.c (do_warn_unused_parameter): Move from here.
21727         * function.h (do_warn_unused_parameter): Do not declare.
21729 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21731         PR target/65697
21732         * gcc.target/arm/armv-sync-comp-swap.c: New.
21733         * gcc.target/arm/armv-sync-op-acquire.c: New.
21734         * gcc.target/arm/armv-sync-op-full.c: New.
21735         * gcc.target/arm/armv-sync-op-release.c: New.
21737 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21739         PR target/65697
21740         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
21741         initial acquire barrier with final barrier.
21743 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21745         PR target/65697
21746         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
21747         initial acquire barrier with final barrier.
21749 2015-06-29  Richard Henderson  <rth@redhat.com>
21751         * config/i386/constraints.md (Bf): New constraint.
21752         * config/i386/i386-c.c (ix86_target_macros): Define
21753         __GCC_ASM_FLAG_OUTPUTS__.
21754         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
21755         as flags outputs.
21756         * doc/extend.texi (FlagOutputOperands): Document them.
21758 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
21760         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
21761         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
21762         unspec name.
21763         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
21764         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
21765         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
21766         (aarch64_symbol_context): Ditto.
21767         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
21768         and use new pattern name.
21769         (aarch64_expand_mov_immediate): Ditto.
21770         (aarch64_print_operand): Ditto.
21771         (aarch64_classify_tls_symbol): Ditto.
21773 2015-06-29  Marek Polacek  <polacek@redhat.com>
21774             Marc Glisse  <marc.glisse@inria.fr>
21776         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
21777         * match.pd: ... pattern here.
21779 2015-06-29  Tom de Vries  <tom@codesourcery.com>
21781         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
21782         function structure.
21784 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
21786         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
21787         feature description, split out the native option, add a link to
21788         the feature documentation, rearrange and slightly rewrite text.
21789         (Aarch64 options, -mcpu): Likewise.
21790         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
21791         +rdma implies Adv. SIMD.
21793 2015-06-29  Marek Polacek  <polacek@redhat.com>
21795         PR c/66322
21796         * function.c (stack_protect_epilogue): Remove a cast to int.
21797         * doc/invoke.texi: Update -Wswitch-bool description.
21799 2015-06-29  Richard Biener  <rguenther@suse.de>
21801         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
21802         * fold-const.c (fold_binary_loc): Move &A - &B simplification
21803         via ptr_difference_const ...
21804         * match.pd: ... here.
21805         When matching (X ^ Y) == Y also match with swapped operands.
21807 2015-06-29  Richard Biener  <rguenther@suse.de>
21809         * lto-streamer.h (LTO_major_version): Bump to 5.
21811 2015-06-29  Richard Biener  <rguenther@suse.de>
21813         PR tree-optimization/66677
21814         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
21815         STMT_VINFO_VEC_STMT clobbering less strict.
21817 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
21819         PR middle-end/64130
21820         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
21821         division, compute max and min when value ranges for dividend and
21822         divisor are available.
21824 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
21825             Sandra Loosemore <sandra@codesourcery.com>
21827         * regrename.h (regrename_do_replace): Change to return bool.
21828         * regrename.c (rename_chains): Check return value of
21829         regname_do_replace.
21830         (regrename_do_replace): Re-validate the modified insns and
21831         return bool status.
21832         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
21833         Update to match rename_chains changes.
21834         * config/c6x/c6x.c (try_rename_operands): Assert that
21835         regrename_do_replace returns true.
21837 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
21839         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
21840         operand 2 here.  Use copy_addr_to_reg to copy non-index
21841         register operand 2 to a temporary.
21842         (<mode>_stx): Ditto for operand 1.
21843         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
21844         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
21845         (ix86_store_bounds): Ditto.
21847 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
21849         * print-tree.c (print_node) [TREE_VEC]: Print its length.
21851 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
21853         * gimple.c (gimple_call_set_fndecl): Remove.
21854         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
21855         build1_loc directly instead of build_fold_addr_expr_loc.
21857 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
21859         * hash-map.h (hash_map::traverse): Use the definition of the
21860         Key typedef rather than the typedef itself.
21862 2015-06-26  Martin Jambor  <mjambor@suse.cz>
21864         PR debug/66301
21865         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
21866         NULL instead of calling dump_enabled_p.
21868 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21870         * config/aarch64/aarch64.opt: (override): New.
21871         * doc/invoke.texi (override): Document.
21872         * config/aarch64/aarch64.c (aarch64_flag_desc): New
21873         (aarch64_fusible_pairs): Likewise.
21874         (aarch64_tuning_flags): Likewise.
21875         (aarch64_tuning_override_function): Likewise.
21876         (aarch64_tuning_override_functions): Likewise.
21877         (aarch64_parse_one_option_token): Likewise.
21878         (aarch64_parse_boolean_options): Likewise.
21879         (aarch64_parse_fuse_string): Likewise.
21880         (aarch64_parse_tune_string): Likewise.
21881         (aarch64_parse_one_override_token): Likewise.
21882         (aarch64_parse_override_string): Likewise.
21883         (aarch64_override_options): Parse the -override string if it
21884         is present.
21886 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21888         * config/aarch64/aarch64-protos.h (tune_params): Remove
21889         const from members.
21890         (aarch64_tune_params): Remove const, change to no longer be
21891         a pointer.
21892         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
21893         change to no longer be a pointer, initialize to generic_tunings.
21894         (aarch64_min_divisions_for_recip_mul): Change dereference of
21895         aarch64_tune_params to member access.
21896         (aarch64_reassociation_width): Likewise.
21897         (aarch64_rtx_mult_cost): Likewise.
21898         (aarch64_address_cost): Likewise.
21899         (aarch64_branch_cost): Likewise.
21900         (aarch64_rtx_costs): Likewise.
21901         (aarch64_register_move_cost): Likewise.
21902         (aarch64_memory_move_cost): Likewise.
21903         (aarch64_sched_issue_rate): Likewise.
21904         (aarch64_builtin_vectorization_cost): Likewise.
21905         (aarch64_override_options): Take a copy of the selected tuning
21906         struct in to aarch64_tune_params, rather than just setting
21907         a pointer, change dereferences of aarch64_tune_params to member
21908         accesses.
21909         (aarch64_override_options_after_change): Change dereferences of
21910         aarch64_tune_params to member access.
21911         (aarch64_macro_fusion_p): Likewise.
21912         (aarch_macro_fusion_pair_p): Likewise.
21913         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
21915 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21917         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
21918         (aarch64_tune_flags): Likewise.
21919         (AARCH64_TUNE_FMA_STEERING): Likewise.
21920         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
21921         to AARCH64_FL_USE_FMA_STEERING_PASS.
21922         (cortex-a57.cortex-a53): Likewise.
21923         (cortex-a72): Use cortexa72_tunings.
21924         (cortex-a72.cortex-a53): Likewise.
21925         (exynos-m1): Likewise.
21926         * config/aarch64/aarch64-protos.h (tune_params): Add
21927         a field: extra_tuning_flags.
21928         * config/aarch64/aarch64-tuning-flags.def: New.
21929         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
21930         (aarch64_extra_tuning_flags): Likewise.
21931         (aarch64_tune_params): Declare here.
21932         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
21933         (cortexa53_tunings): Likewise.
21934         (cortexa57_tunings): Likewise.
21935         (thunderx_tunings): Likewise.
21936         (xgene1_tunings): Likewise.
21937         (cortexa72_tunings): New.
21938         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
21939          (gate): Check against aarch64_tune_params.
21940         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
21941         aarch64-protos.h.
21943 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
21945         * config/aarch64/aarch64-fusion-pairs.def: New.
21946         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
21947         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
21948         aarch64_fusion_pairs.
21949         (AARCH64_FUSE_MOV_MOVK): Likewise.
21950         (AARCH64_FUSE_ADRP_ADD): Likewise.
21951         (AARCH64_FUSE_MOVK_MOVK): Likewise.
21952         (AARCH64_FUSE_ADRP_LDR): Likewise.
21953         (AARCH64_FUSE_CMP_BRANCH): Likewise.
21955 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21957         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
21958         SYMBOL_SMALL_GOT_28K.
21959         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
21960         relocation modifiers.
21961         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
21962         (ldr_got_small_28k_<mode>): New.
21963         (ldr_got_small_28k_sidi): New.
21964         * config/aarch64/iterators.md (got_modifier): New mode iterator.
21965         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
21966         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
21967         SYMBOL_SMALL_GOT_28K.
21968         (aarch64_rtx_costs): Add costs for new instruction sequences.
21969         (initialize_aarch64_code_model): Initialize new model.
21970         (aarch64_classify_symbol): Recognize new model and new symbol classification.
21971         (aarch64_asm_preferred_eh_data_format): Support new model.
21972         (aarch64_load_symref_appropriately): Generate new instruction
21973         sequences for -fpic.
21974         (TARGET_USE_PSEUDO_PIC_REG): New definition.
21975         (aarch64_use_pseudo_pic_reg): New function.
21977 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
21979         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
21980         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
21981         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
21982         (aarch64_expand_mov_immediate): Ditto.
21983         (aarch64_print_operand): Ditto.
21984         (aarch64_classify_symbol): Ditto.
21986 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
21988         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
21990 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
21992         PR bootstrap/66638
21993         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
21994         assertion failed.  Remove assertion itself.
21996 2015-06-26  Richard Biener  <rguenther@suse.de>
21998         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
21999         and -A CMP CST -> A CMP -CST which is redundant with a pattern
22000         in match.pd.
22001         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
22002         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
22003         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
22004         * match.pd: ... patterns here.
22006 2015-06-26  Marek Polacek  <polacek@redhat.com>
22008         * match.pd ((x | y) & ~(x & y) -> x ^ y,
22009         (x | y) & (~x ^ y) -> x & y): New patterns.
22011 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
22013         * rtl.h (emit): Add an optional boolean parameter to control
22014         whether barriers are emitted.
22015         * emit-rtl.c (emit): Likewise.
22016         * gensupport.c (get_emit_function): Return null rather than "emit".
22017         * genemit.c (gen_emit_seq): Handle the null return value.
22018         Don't emit barriers after the final instruction in the sequence.
22019         * gentarget-def.c (main): Don't emit barriers after the instruction.
22021 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22023         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
22024         TARGET_UNIFIED_ASM.
22026 2015-06-26  Richard Biener  <rguenther@suse.de>
22028         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
22030 2015-06-26  Richard Biener  <rguenther@suse.de>
22032         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
22033         irrespective on whether the inner operation has a single use
22034         of both off are constant.
22036 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
22037             Segher Boessenkool  <segher@kernel.crashing.org>
22039         PR target/66412
22040         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
22041         before doing PUT_MODE or PUT_CODE on operands to avoid
22042         in-place RTX modification.
22044 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22046         * gentarget-def.c (def_target_insn): Cast return of strtol to
22047         unsigned int.
22049 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22051         * gimple.h (gimple_call_set_fn): Move inline function.
22052         * gimple.c (gimple_call_set_fn): Relocate here.
22054 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
22056         PR target/65979
22057         PR target/66611
22058         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
22059         the replacement insn will work.
22061 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22063         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
22064         by default.
22066 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22068         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
22069         * cgraph.h: Include ipa-ref.h and plugin-api.h.
22070         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
22071         (symtab_node::address_can_be_compared_p): Move function.
22072         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
22073         definition here.
22074         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
22075         * auto-profile.c: Likewise.
22076         * bb-reorder.c: Likewise.
22077         * builtins.c: Likewise.
22078         * calls.c: Likewise.
22079         * cfgexpand.c: Likewise.
22080         * cgraphbuild.c: Likewise.
22081         * cgraphclones.c: Likewise.
22082         * cgraphunit.c: Likewise.
22083         * combine.c: Likewise.
22084         * coverage.c: Likewise.
22085         * data-streamer-in.c: Likewise.
22086         * data-streamer-out.c: Likewise.
22087         * data-streamer.c: Likewise.
22088         * dbxout.c: Likewise.
22089         * dwarf2out.c: Likewise.
22090         * except.c: Likewise.
22091         * expr.c: Likewise.
22092         * final.c: Likewise.
22093         * fold-const.c: Likewise.
22094         * ggc-page.c: Likewise.
22095         * gimple-fold.c: Likewise.
22096         * gimple-iterator.c: Likewise.
22097         * gimple-pretty-print.c: Likewise.
22098         * gimple-streamer-in.c: Likewise.
22099         * gimple-streamer-out.c: Likewise.
22100         * gimple.c: Likewise.
22101         * gimplify.c: Likewise.
22102         * ipa-chkp.c: Likewise.
22103         * ipa-comdats.c: Likewise.
22104         * ipa-cp.c: Likewise.
22105         * ipa-devirt.c: Likewise.
22106         * ipa-icf-gimple.c: Likewise.
22107         * ipa-icf.c: Likewise.
22108         * ipa-inline-analysis.c: Likewise.
22109         * ipa-inline-transform.c: Likewise.
22110         * ipa-inline.c: Likewise.
22111         * ipa-polymorphic-call.c: Likewise.
22112         * ipa-profile.c: Likewise.
22113         * ipa-prop.c: Likewise.
22114         * ipa-pure-const.c: Likewise.
22115         * ipa-ref.c: Likewise.
22116         * ipa-reference.c: Likewise.
22117         * ipa-split.c: Likewise.
22118         * ipa-utils.c: Likewise.
22119         * ipa-visibility.c: Likewise.
22120         * ipa.c: Likewise.
22121         * langhooks.c: Likewise.
22122         * lto-cgraph.c: Likewise.
22123         * lto-compress.c: Likewise.
22124         * lto-opts.c: Likewise.
22125         * lto-section-in.c: Likewise.
22126         * lto-section-out.c: Likewise.
22127         * lto-streamer-in.c: Likewise.
22128         * lto-streamer-out.c: Likewise.
22129         * lto-streamer.c: Likewise.
22130         * omp-low.c: Likewise.
22131         * opts-global.c: Likewise.
22132         * passes.c: Likewise.
22133         * predict.c: Likewise.
22134         * print-tree.c: Likewise.
22135         * profile.c: Likewise.
22136         * ree.c: Likewise.
22137         * sanopt.c: Likewise.
22138         * stor-layout.c: Likewise.
22139         * symtab.c: Likewise.
22140         * toplev.c: Likewise.
22141         * trans-mem.c: Likewise.
22142         * tree-cfg.c: Likewise.
22143         * tree-chkp.c: Likewise.
22144         * tree-eh.c: Likewise.
22145         * tree-emutls.c: Likewise.
22146         * tree-inline.c: Likewise.
22147         * tree-nested.c: Likewise.
22148         * tree-parloops.c: Likewise.
22149         * tree-pretty-print.c: Likewise.
22150         * tree-profile.c: Likewise.
22151         * tree-sra.c: Likewise.
22152         * tree-ssa-alias.c: Likewise.
22153         * tree-ssa-live.c: Likewise.
22154         * tree-ssa-loop-ivcanon.c: Likewise.
22155         * tree-ssa-loop-ivopts.c: Likewise.
22156         * tree-ssa-pre.c: Likewise.
22157         * tree-ssa-sccvn.c: Likewise.
22158         * tree-ssa-strlen.c: Likewise.
22159         * tree-ssa-structalias.c: Likewise.
22160         * tree-streamer-in.c: Likewise.
22161         * tree-streamer-out.c: Likewise.
22162         * tree-streamer.c: Likewise.
22163         * tree-switch-conversion.c: Likewise.
22164         * tree-tailcall.c: Likewise.
22165         * tree-vect-data-refs.c: Likewise.
22166         * tree-vect-stmts.c: Likewise.
22167         * tree-vectorizer.c: Likewise.
22168         * tree.c: Likewise.
22169         * tsan.c: Likewise.
22170         * ubsan.c: Likewise.
22171         * value-prof.c: Likewise.
22172         * varasm.c: Likewise.
22173         * varpool.c: Likewise.
22174         * config/arm/arm.c: Likewise.
22175         * config/bfin/bfin.c: Likewise.
22176         * config/c6x/c6x.c: Likewise.
22177         * config/cris/cris.c: Likewise.
22178         * config/darwin-c.c: Likewise.
22179         * config/darwin.c: Likewise.
22180         * config/i386/i386.c: Likewise.
22181         * config/i386/winnt.c: Likewise.
22182         * config/microblaze/microblaze.c: Likewise.
22183         * config/mips/mips.c: Likewise.
22184         * config/rs6000/rs6000.c: Likewise.
22185         * config/rx/rx.c: Likewise.
22186         * config/s390/s390.c: Likewise.
22187         * config/tilegx/mul-tables.c: Likewise.
22189 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22191         * config/aarch64/aarch64.c, config/alpha/alpha.c,
22192         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
22193         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
22194         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
22195         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22196         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22197         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22198         config/microblaze/microblaze.c, config/mips/mips.c,
22199         config/mmix/mmix.c, config/mn10300/mn10300.c,
22200         config/moxie/moxie.c, config/msp430/msp430.c,
22201         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22202         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22203         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22204         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22205         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22206         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22207         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
22208         target-def.h include.
22209         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
22211 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22213         * Makefile.in (TARGET_DEF): Add target-insns.def.
22214         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
22215         (build/gentarget-def.o): New rule.
22216         (genprogrtl): Add target-def.
22217         * target-insns.def, gentarget-def.c: New files.
22218         * target.def: Add targetm.have_* and targetm.gen_* hooks,
22219         based on the contents of target-insns.def.
22220         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
22221         (HAVE_return, gen_return): Delete.
22222         * target-def.h: Include insn-target-def.h.
22223         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
22224         instead of direct calls.  Rely on them to do the appropriate assertions.
22225         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
22226         (convert_jumps_to_returns): Use targetm interface instead of
22227         direct calls.
22228         (thread_prologue_and_epilogue_insns): Likewise.
22229         * reorg.c (find_end_label, dbr_schedule): Likewise.
22230         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
22231         * shrink-wrap.c (convert_to_simple_return): Likewise.
22232         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
22234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22236         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
22237         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22238         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
22239         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
22240         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
22241         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
22242         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
22243         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
22244         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
22245         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
22246         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
22247         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
22248         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
22249         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22250         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
22251         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
22252         includes to end.
22254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22256         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
22257         (unbounded_int_hashmap_traits::key_type): Likewise.
22258         * hash-map.h (hash_map): Get the key type from the traits.
22259         * hash-traits.h (default_hash_traits): By default, inherit from the
22260         template parameter.
22261         * alias.c (alias_set_traits): Delete.
22262         (alias_set_entry_d::children): Use alias_set_hash as the first
22263         template parameter.
22264         (record_alias_subset): Update accordingly.
22265         * except.c (tree_hash_traits): Delete.
22266         (type_to_runtime_map): Use tree_hash as the first template parameter.
22267         (init_eh): Update accordingly.
22268         * genmatch.c (capture_id_map_hasher): Delete.
22269         (cid_map_t): Use nofree_string_hash as first template parameter.
22270         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
22271         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22272         Use symbol_compare_hash as the first template parameter in
22273         subdivide_hash_map.
22274         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
22275         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
22276         template parameter.
22277         * passes.c (pass_registry_hasher): Delete.
22278         (name_to_pass_map): Use nofree_string_hash as the first template
22279         parameter.
22280         (register_pass_name): Update accordingly.
22281         * sanopt.c (sanopt_tree_map_traits): Delete.
22282         (sanopt_tree_triplet_map_traits): Delete.
22283         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
22284         template parameter.
22285         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
22286         the first template parameter.
22287         * sese.c (rename_map_hasher): Delete.
22288         (rename_map_type): Use tree_ssa_name_hash as the first template
22289         parameter.
22290         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
22291         (function_summary::m_map): Use map_hash as the first template
22292         parameter.
22293         (function_summary::release): Update accordingly.
22294         * tree-if-conv.c (phi_args_hash_traits): Delete.
22295         (predicate_scalar_phi): Use tree_operand_hash as the first template
22296         parameter to phi_arg_map.
22297         * tree-inline.h (dependence_hasher): Delete.
22298         (copy_body_data::dependence_map): Use dependence_hash as the first
22299         template parameter.
22300         * tree-inline.c (remap_dependence_clique): Update accordingly.
22301         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
22302         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
22303         parameter.
22304         (addr_stridxptr): Update accordingly.
22305         * value-prof.c (profile_id_traits): Delete.
22306         (cgraph_node_map): Use profile_id_hash as the first template
22307         parameter.
22308         (init_node_map): Update accordingly.
22309         * config/alpha/alpha.c (string_traits): Delete.
22310         (machine_function::links): Use nofree_string_hash as the first
22311         template parameter.
22312         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
22313         * config/m32c/m32c.c (pragma_traits): Delete.
22314         (pragma_htab): Use nofree_string_hash as the first template parameter.
22315         (m32c_note_pragma_address): Update accordingly.
22316         * config/mep/mep.c (pragma_traits): Delete.
22317         (pragma_htab): Use nofree_string_hash as the first template parameter.
22318         (mep_note_pragma_flag): Update accordingly.
22319         * config/mips/mips.c (mips16_flip_traits): Delete.
22320         (mflip_mips16_htab): Use nofree_string_hash as the first template
22321         parameter.
22322         (mflip_mips16_use_mips16_p): Update accordingly.
22323         (local_alias_traits): Delete.
22324         (mips16_local_aliases): Use nofree_string_hash as the first template
22325         parameter.
22326         (mips16_local_alias): Update accordingly.
22328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22330         * hash-map-traits.h (default_hashmap_traits): Delete.
22332 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22334         * hash-map-traits.h (unbounded_hashmap_traits): New class.
22335         (unbounded_int_hashmap_traits): Likewise.
22336         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
22338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22340         * ipa-icf.h (symbol_compare_hash): New class.
22341         (symbol_compare_hashmap_traits): Use it.
22342         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
22343         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
22344         (mem_alloc_description::reverse_mem_map_t): Remove redundant
22345         default_hashmap_traits.
22346         * sanopt.c (sanopt_tree_triplet_hash): New class.
22347         (sanopt_tree_triplet_map_traits): Use it.
22349 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22351         * gengtype-parse.c (require_template_declaration): Allow '+' in
22352         template parameters.  Consolidate cases.
22353         * hash-traits.h (int_hash): New class.
22354         * alias.c (alias_set_hash): New structure.
22355         (alias_set_traits): Use it.
22356         * symbol-summary.h (function_summary::map_hash): New class.
22357         (function_summary::summary_hashmap_traits): Use it.
22358         * tree-inline.h (dependence_hash): New class.
22359         (dependence_hasher): Use it.
22360         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
22361         * value-prof.c (profile_id_hash): New class.
22362         (profile_id_traits): Use it.
22364 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22366         * config/mips/mips.c (mips16_flip_traits): Use it.
22367         (local_alias_traits, mips16_local_aliases): Convert from a map of
22368         rtxes to a map of symbol names.
22369         (mips16_local_alias): Update accordingly.
22371 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22373         * hash-traits.h (string_hash, nofree_string_hash): New classes.
22374         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
22375         * passes.c (pass_registry_hasher): Likewise.
22376         * config/alpha/alpha.c (string_traits): Likewise.
22377         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
22378         * config/m32c/m32c.c (pragma_traits): Likewise.
22379         * config/mep/mep.c (pragma_traits): Likewise.
22381 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22383         * tree-hash-traits.h (tree_hash): New class.
22384         * except.c: Include tree-hash-traits.h.
22385         (tree_hash_traits): Use tree_hash.
22387 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22389         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
22390         * sese.c: Include tree-hash-traits.h.
22391         (rename_map_hasher): Use tree_ssa_name_hasher.
22393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22395         * tree-hash-traits.h (tree_decl_hash): New class.
22396         * tree-ssa-strlen.c: Include tree-hash-traits.h.
22397         (stridxlist_hash_traits): Use tree_decl_hash.
22399 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22401         * tree-hash-traits.h: New file.
22402         (tree_operand_hash): New class.
22403         * sanopt.c: Include tree-hash-traits.h.
22404         (sanopt_tree_map_traits): Use tree_operand_hash.
22405         * tree-if-conv.c: Include tree-hash-traits.h.
22406         (phi_args_hash_traits): Use tree_operand_hash.
22407         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
22408         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
22410 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22412         * hash-map-traits.h: Include hash-traits.h.
22413         (simple_hashmap_traits): New class.
22414         * mem-stats.h (hash_map): Change the default traits to
22415         simple_hashmap_traits<default_hash_traits<Key> >.
22417 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22419         * hash-table.h: Update comments.
22421 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22423         * hash-traits.h (default_hash_traits): New structure.
22424         * hash-set.h (default_hashset_traits): Delete.
22425         (hash_set): Use default_hash_traits<Key> instead of
22426         default_hashset_traits.  Delete hash_entry type and use Key directly.
22427         * ipa-devirt.c (pair_traits): Delete.
22428         (default_hash_traits <type_pair>): Override.
22429         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
22430         (odr_types_equivalent_p, add_type_duplicate): Likewise.
22432 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22434         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
22436 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22438         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
22439         (has_is_empty, is_empty_helper): Delete.
22440         (has_mark_deleted, mark_deleted_helper): Delete.
22441         (has_mark_empty, mark_empty_helper): Delete.
22442         (hash_table::is_deleted): Call the Descriptor unconditionally.
22443         (hash_table::is_empty): Likewise.
22444         (hash_table::mark_deleted): Likewise.
22445         (hash_table::mark_empty): Likewise.
22447 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22449         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
22450         redundant typedefs and members.
22451         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
22452         redundant typedefs.
22453         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
22454         * ipa-devirt.c (odr_name_hasher): Likewise.
22455         (polymorphic_call_target_hasher): Likewise.
22456         * ira-costs.c (cost_classes_hasher): Likewise.
22457         * statistics.c (stats_counter_hasher): Likewise.
22458         * trans-mem.c (log_entry_hasher): Likewise.
22459         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
22460         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
22461         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
22462         * var-tracking.c (variable_hasher): Likewise.
22463         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
22464         Remove redundant typedefs and members.
22466 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22468         * hash-traits.h (ggc_cache_hasher): Rename to...
22469         (ggc_cache_remove): ...this and remove typedefs.
22470         (ggc_cache_ptr_hash): New class.
22471         * hash-table.h: Update commentary.
22472         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
22473         rather than ggc_cache_hasher.
22474         (const_wide_int_hasher, reg_attr_hasher): Likewise.
22475         (const_double_hasher, const_fixed_hasher): Likewise.
22476         * function.c (insn_cache_hasher): Likewise.
22477         * trans-mem.c (tm_wrapper_hasher): Likewise.
22478         * tree.h (tree_decl_map_cache_hasher): Likewise.
22479         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
22480         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
22481         * ubsan.c (tree_type_map_cache_hasher): Likewise.
22482         * varasm.c (tm_clone_hasher): Likewise.
22483         * config/i386/i386.c (dllimport_hasher): Likewise.
22484         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
22485         (tree_hasher): Likewise.
22487 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22489         * hash-traits.h (ggc_hasher): Rename to...
22490         (ggc_remover): ...this and remove typedefs.
22491         (ggc_cache_hasher): Update accordingly.  Add typedefs.
22492         (ggc_ptr_hash): New class.
22493         * hash-table.h: Update comment.
22494         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
22495         ggc_hasher.
22496         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
22497         (tree_descriptor_hasher): Likewise.
22498         * cgraph.c (function_version_hasher): Likewise.
22499         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
22500         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
22501         (dw_loc_list_hasher, addr_hasher): Likewise.
22502         * function.h (used_type_hasher): Likewise.
22503         * function.c (temp_address_hasher): Likewise.
22504         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
22505         * libfuncs.h (libfunc_hasher): Likewise.
22506         * lto-streamer.h (decl_state_hasher): Likewise.
22507         * optabs.c (libfunc_decl_hasher): Likewise.
22508         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
22509         * varasm.c (section_hasher, object_block_hasher): Likewise.
22510         (const_rtx_desc_hasher): Likewise.
22511         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
22512         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
22514 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22516         * hash-traits.h (free_ptr_hash): New class.
22517         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
22518         rather than typed_free_remove.  Remove redudant typedefs.
22519         (external_ref_hasher): Likewise.
22520         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
22521         (ehspec_hasher): Likewise.
22522         * ggc-common.c (saving_hasher): Likewise.
22523         * gimplify.c (gimplify_hasher): Likewise.
22524         * haifa-sched.c (delay_i2_hasher): Likewise.
22525         * loop-invariant.c (invariant_expr_hasher): Likewise.
22526         * loop-iv.c (biv_entry_hasher): Likewise.
22527         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
22528         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
22529         * tree-cfg.c (locus_discrim_hasher): Likewise.
22530         * tree-eh.c (finally_tree_hasher): Likewise.
22531         * tree-into-ssa.c (var_info_hasher): Likewise.
22532         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
22533         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
22534         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
22535         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
22536         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
22537         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
22538         (shared_bitmap_hasher): Likewise.
22539         * tree-ssa-threadupdate.c (redirection_data): Likewise.
22540         * tree-vectorizer.h (peel_info_hasher): Likewise.
22541         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
22542         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
22544 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22546         * hash-table.h: Update comments.
22547         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
22548         (nofree_ptr_hash): New class.
22549         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
22550         than typed_noop_remove.  Remove redudant typedefs.
22551         * attribs.c (attribute_hasher): Likewise.
22552         * cfg.c (bb_copy_hasher): Likewise.
22553         * cselib.c (cselib_hasher): Likewise.
22554         * dse.c (invariant_group_base_hasher): Likewise.
22555         * dwarf2cfi.c (trace_info_hasher): Likewise.
22556         * dwarf2out.c (macinfo_entry_hasher): Likewise.
22557         (comdat_type_hasher, loc_list_hasher): Likewise.
22558         * gcse.c (pre_ldst_expr_hasher): Likewise.
22559         * genmatch.c (id_base): Likewise.
22560         * genrecog.c (test_pattern_hasher): Likewise.
22561         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
22562         * haifa-sched.c (delay_i1_hasher): Likewise.
22563         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
22564         * ipa-icf.h (congruence_class_group_hash): Likewise.
22565         * ipa-profile.c (histogram_hash): Likewise.
22566         * ira-color.c (allocno_hard_regs_hasher): Likewise.
22567         * lto-streamer.h (string_slot_hasher): Likewise.
22568         * lto-streamer.c (tree_entry_hasher): Likewise.
22569         * plugin.c (event_hasher): Likewise.
22570         * postreload-gcse.c (expr_hasher): Likewise.
22571         * store-motion.c (st_expr_hasher): Likewise.
22572         * tree-sra.c (uid_decl_hasher): Likewise.
22573         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
22574         (ssa_name_var_hash): Likewise.
22575         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
22576         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
22577         * tree-ssa-pre.c (pre_expr_d): Likewise.
22578         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
22579         * vtable-verify.h (registration_hasher): Likewise.
22580         * vtable-verify.c (vtbl_map_hasher): Likewise.
22581         * config/arm/arm.c (libcall_hasher): Likewise.
22582         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
22583         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
22584         * config/sol2.c (comdat_entry_hasher): Likewise.
22585         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
22586         (print_fold_checksum, fold_checksum_tree): Likewise.
22587         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
22588         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
22589         (fold_build_call_array_loc): Likewise.
22590         * tree-ssa-ccp.c (gimple_htab): Likewise.
22591         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
22592         rather than pointer_type.
22594 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22596         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
22597         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
22599 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22601         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
22602         (ggc_hasher::ggc_mx): Likewise.
22603         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
22604         that duplicate ggc_hasher ones.
22606 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22608         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
22609         (gt_cleare_cache): Check here for deleted and empty entries.
22610         Replace handle_cache_entry with a call to keep_cache_entry.
22611         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
22612         (ggc_cache_hasher::keep_cache_entry): New function.
22613         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
22614         (tm_wrapper_hasher::keep_cache_entry): New function.
22615         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
22616         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22617         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
22618         (type_cache_hasher::keep_cache_entry): New function.
22619         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
22620         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
22621         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
22622         (tree_type_map_cache_hasher::keep_cache_entry): New function.
22623         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
22624         (tm_clone_hasher::keep_cache_entry): New function.
22625         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
22626         (dllimport_hasher::keep_cache_entry): New function.
22628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22630         * hash-table.h: Include hash-traits.h.
22631         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
22632         (ggc_cache_hasher): Move to...
22633         * hash-traits.h: ...this new file.
22635 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22637         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
22638         struct cl_optimization.
22639         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
22640         * tree.c (make_node_stat): Allocate cl_optimization struct.
22641         (copy_node_stat): Allocate and copy cl_optimization struct.
22643 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22645         * function.h (struct incoming_args): Move struct.
22646         (pass_by_reference, reference_callee_copied): Remove prototypes.
22647         * emit-rtl.h (struct incoming_args): Relocate struct here.
22648         * calls.h (pass_by_reference, reference_callee_copied): Relocate
22649         prototypes here.
22650         * function.c (pass_by_reference, reference_callee_copied): Move.
22651         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
22652         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
22653         * ipa-chkp.c: Include calls.h.
22655 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
22657         * alias.h (alias_set_type): Move typedef.
22658         * coretypes.h (alias_set_type): Relocate typedef here.
22659         * rtl.h: Don't include alias.h.
22661 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
22663         * cgraph.h (cgraph_rtl_info): Move to rtl.h
22664         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
22665         and instance.
22666         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
22667         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
22668         doesn't exist.
22669         * calls.c: Include hard-reg-set.h before rtl.h.
22670         * ira.c: Likewise.
22672 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22673             Vladimir Makarov  <vmakarov@redhat.com>
22675         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
22676         Add assert.
22678 2015-06-25  Richard Biener  <rguenther@suse.de>
22680         * fold-const.c (fold_binary_loc): Move simplification of
22681         (X <<>> C1) & C2 ...
22682         * match.pd: ... here.
22684 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22686         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
22688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
22690         * match.pd: Add patterns for vec_conds between 1 and 0.
22692 2015-06-25  Richard Biener  <rguenther@suse.de>
22694         * tree-vect-stmts.c (vectorizable_conversion): Do not set
22695         STMT_VINFO_VEC_STMT for SLP.
22696         (vectorizable_store): Likewise.
22697         (vectorizable_load): Likewise.
22698         (vect_transform_stmt): Catch SLP vectorization clobbering
22699         STMT_VINFO_VEC_STMT.
22701 2015-06-25  Richard Biener  <rguenther@suse.de>
22703         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
22704         dumping.
22705         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
22706         cleanup resulting dead code and parameters.
22707         (vect_transform_slp_perm_load): Adjust.
22709 2015-06-25  Nick Clifton  <nickc@redhat.com>
22711         * config/bfin/bfin.c (bfin_expand_prologue): Set
22712         current_function_static_stack_size if flag_stack_usage_info is set.
22713         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
22714         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
22715         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
22716         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
22718 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22720         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
22721         comment that the generated IV is unsigned.
22723 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22725         PR target/29693
22726         * config/arm/arm.c (arm_dbx_register_number): Return
22727         DWARF_FRAME_REGISTERS by default.
22729 2015-06-25  Tom de Vries  <tom@codesourcery.com>
22731         * dominance.c (calculate_dominance_info): Fix verify_dominators call
22732         argument.  Call verify_dominator when reusing dominator info.
22734 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
22736         PR target/66563
22737         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
22738         an additional element of the unspec vector.  Modify indices
22739         of operands.
22740         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
22741         * config/sh/sh.c (prepare_move_operands): Pass incremented
22742         const_int to gen_GOTaddr2picreg.
22743         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
22745 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22747         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
22748         Condition on TARGET_FLOAT.
22750 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22752         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
22753         and (no)crypto.
22755 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
22757         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
22759         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
22760         aarch64_err_no_fpadvsimd.
22762         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
22763         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
22764         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
22765         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22766         Turn error into assert, test TARGET_FLOAT.
22767         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
22768         TARGET_FLOAT.
22770 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
22772         PR debug/66482
22773         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
22775 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
22777         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
22779 2015-06-24  Renlin Li <renlin.li@arm.com>
22781         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
22782         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
22784 2015-06-24  Richard Biener  <rguenther@suse.de>
22786         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
22787         (main): Likewise.
22788         (lower_opt_convert): Support lowering of conditional view_convert.
22789         (parser::parse_operation): Likewise.
22790         (parser::parse_for): Likewise.
22792 2015-06-24  Renlin Li  <renlin.li@arm.com>
22794         * varasm.c (emit_local): Use unsigned int for align variable.
22796 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22798         PR target/63408
22799         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
22800         for negative numbers.
22802 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22804         PR rtl-optimization/66306
22805         * reload.c (find_reloads): Swap the match_dup info for
22806         commutative operands.
22808 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22810         * config/s390/vx-builtins.md
22811         ("vec_scatter_element<mode>_<non_vec_int>")
22812         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
22813         attribute with bhfgq.
22815 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22817         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
22819 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22821         * config/s390/s390-builtin-types.def: Add flag to indicate the
22822         options under which the function type is needed.
22823         * config/s390/s390-builtins.def: Add flag to indicate the options
22824         under which the builtin is enabled.
22825         * config/s390/s390-builtins.h: Add flags parameter to macro
22826         definitions.
22827         (bflags_for_builtin): New function.
22828         (flags_for_builtin): Renamed to ...
22829         (opflags_for_builtin): ... this.
22830         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
22831         flags_for_builtin to bflags_for_builtin and
22832         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
22833         * config/s390/s390.c: Add initialization of bflags_builtin and
22834         opflags_builtin arrays.
22835         Remove code for flags_builtin.
22836         (s390_init_builtins): Only create builtin function types if one of
22837         their flags is active.
22838         Only create builtins if all of their flags are active.
22839         (s390_expand_builtin): Rename flags_for_builtin to
22840         opflags_for_builtin.
22842 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22844         * config/s390/vecintrin.h: Remove internal builtins.
22846 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22848         * config/s390/s390.c (s390_secondary_reload): Fix check for
22849         GENERAL_REGS register class.
22851 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22853         * config/s390/s390.c (s390_support_vector_misalignment): Call
22854         default implementation for !TARGET_VX.
22856 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22858         * config/s390/s390.c (s390_legitimate_constant_p): Add
22859         TARGET_VX check.
22861 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22863         * config/s390/s390.c (s390_vector_abi): New variable definition.
22864         (s390_check_type_for_vector_abi): New function.
22865         (TARGET_ASM_FILE_END): New macro definition.
22866         (s390_asm_file_end): New function.
22867         (s390_function_arg): Call s390_check_type_for_vector_abi.
22868         (s390_gimplify_va_arg): Likewise.
22869         * configure: Regenerate.
22870         * configure.ac: Check for .gnu_attribute Binutils feature.
22872 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
22874         PR target/65803
22875         * config/bfin/bfin.c (hwloop_optimize): Initialize
22876         JUMP_LABEL for newly created jump.
22878 2015-06-23  Tristan Gingold  <gingold@adacore.com>
22880         * collect-utils.c (collect_wait): Unlink the response file here
22881         instead of...
22882         (do_wait): ...here.
22883         (utils_cleanup): ...and here.
22885 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
22887         * df-scan.c: Don't include target-def.h.
22888         * targhooks.c: Likewise.
22889         * config/arm/arm-c.c: Likewise.
22890         * config/i386/i386-c.c: Likewise.
22891         * config/nds32/nds32-cost.c: Likewise.
22892         * config/nds32/nds32-fp-as-gp.c: Likewise.
22893         * config/nds32/nds32-intrinsic.c: Likewise.
22894         * config/nds32/nds32-isr.c: Likewise.
22895         * config/nds32/nds32-md-auxiliary.c: Likewise.
22896         * config/nds32/nds32-memory-manipulation.c: Likewise.
22897         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22898         * config/nds32/nds32-predicates.c: Likewise.
22900 2015-06-23  Richard Biener  <rguenther@suse.de>
22902         PR tree-optimization/66636
22903         * tree-vect-stmts.c (vectorizable_store): Properly compute the
22904         def type for further defs for strided stores.
22906 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
22908         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
22909         conditional selects.
22910         (setcc_int<mode>, setcc_float<mode>): Reformat.
22912 2015-06-23  Marek Polacek  <polacek@redhat.com>
22914         * match.pd ((x + y) - (x | y) -> x & y,
22915         (x + y) - (x & y) -> x | y): New patterns.
22917 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
22919         PR 65711
22920         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
22921         '-dynamic-linker' within %{!shared: ...}.
22923 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
22925         PR target/66560
22926         * config/i386/predicates.md (addsub_vm_operator): New predicate.
22927         (addsub_vs_operator): Ditto.
22928         (addsub_vs_parallel): Ditto.
22929         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
22930         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
22931         Put minus RTX before plus and adjust vec_merge selector.
22932         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
22933         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
22934         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
22935         (addsub vec_merge splitters): New combiner splitters.
22936         (addsub vec_select/vec_concat splitters): Ditto.
22938 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
22940         PR tree-optimization/66449
22941         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
22942         POINTER_PLUS_EXPR for pointers.
22944 2015-06-23  Alan Modra  <amodra@gmail.com>
22946         * rtlanal.c (commutative_operand_precedence): Correct comments.
22947         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
22948         declaration.  Return an int.  Distinguish REG,REG return from
22949         others.
22950         (struct simplify_plus_minus_op_data): Make local to function.
22951         (simplify_plus_minus): Don't set canonicalized if merely sorting
22952         registers.  Avoid packing ops if nothing changes.  White space fixes.
22954 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
22956         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
22957         -fdump-ada-spec is passed but not if -fsyntax-only is.
22959 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
22961         PR bootstrap/63740
22962         * lra-lives.c (process_bb_lives): Check insn copying the same
22963         reload pseudo and don't create a copy for it.
22965 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22967         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
22968         for cond_stmt.
22970 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22972         * builtins.def (DEF_GOMP_BUILTIN): Test
22973         'flag_tree_parallelize_loops > 1' instead of
22974         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
22976 2015-06-22  Tom de Vries  <tom@codesourcery.com>
22978         * dominance.c (calculate_dominance_info): Verify dominators if
22979         early-out.
22981 2015-06-22  Marek Polacek  <polacek@redhat.com>
22983         * match.pd ((x ^ y) ^ (x | y) -> x & y,
22984         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
22985         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
22986         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
22988 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
22990         PR target/65871
22991         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
22992         cost of embedded comparison.
22994 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22996         PR target/65914
22997         * config/rs6000/predicates.md (altivec_register_operand): Permit
22998         virtual stack registers.
22999         (vsx_register_operand): Likewise.
23000         (vfloat_operand): Likewise.
23001         (vint_operand): Likewise.
23002         (vlogical_operand): Likewise.
23004 2015-06-22  Richard Biener  <rguenther@suse.de>
23006         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
23007         and single_scalar_iteration_cost members.
23008         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
23009         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
23010         (vect_get_single_scalar_iteration_cost): Remove.
23011         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23012         Use LOOP_VINFO_SCALAR_ITERATION_COST.
23013         * tree-vect-loop.c (destroy_loop_vec_info): Free
23014         scalar_cost_vec.
23015         (vect_get_single_scalar_iteration_cost): Compute result into
23016         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
23017         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
23018         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
23019         (vect_estimate_min_profitable_iters): Use them.
23021 2015-06-22  Christian Bruel  <christian.bruel@st.com>
23023         PR target/52144
23024         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
23025         (TARGET_INSERT_ATTRIBUTES): Define.
23026         (thumb_flipper): New var.
23027         * config/arm/arm.opt (-mflip-thumb): New switch.
23029 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23030             Martin Liska  <mliska@suse.cz>
23032         PR ipa/65908
23033         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
23034         construction of arg_types.
23035         (sem_function::sem_function): Likewise.
23036         (sem_function::~sem_function): Remove destruction of arg_types.
23037         (sem_function::compatible_parm_types_p): New function.
23038         (sem_function::equals_wpa): Reorg matching of return values
23039         and parameter types.
23040         (sem_function::equals_private): Reorg mathcing of argument types.
23041         (sem_function::parse_tree_args): Remove.
23042         * ipa-icf.h (init_wpa): Do not call it.
23043         (parse_tree_args): Remove.
23044         (compatible_parm_types_p): Declare.
23045         (result_type): Remove.
23046         (arg_types): Remove.
23048 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
23050         PR ipa/66351
23051         * ipa-polymorphic-call.c
23052         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
23053         initializing alias oracle; fix formating; set base_alias_set if it
23054         is known.
23056 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
23058         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
23059         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
23060         (find_inc): Likewise.
23061         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
23062         swapping.
23063         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
23064         * df-scan.c (df_swap_refs): Remove.
23065         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
23066         * dominance.c (link_roots): Use std::swap instead of manually swapping.
23067         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
23068         * fold-const.c (fold_relational_const): Likewise.
23069         * genattrtab.c (simplify_test_exp): Likewise.
23070         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
23071         gimple_simplify): Likewise.
23072         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
23073         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
23074         * ipa-devirt.c (add_type_duplicate): Likewise.
23075         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
23076         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
23077         * lra.c (lra_create_copy): Likewise.
23078         * lto-streamer-out.c (DFS::DFS): Likewise.
23079         * modulo-sched.c (get_sched_window): Likewise.
23080         * omega.c (omega_pretty_print_problem): Likewise.
23081         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
23082         * reload1.c (reloads_unique_chain_p): Likewise.
23083         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
23084         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
23085         use std::swap.
23086         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
23087         manually swapping.
23088         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
23089         predicate_mem_writes): Likewise.
23090         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
23091         * tree-predcom.c (combine_chains): Likewise.
23092         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
23093         refs_may_alias_p_1): Likewise.
23094         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
23095         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23096         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
23097         number_of_iterations_cond): Likewise.
23098         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23099         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
23100         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
23101         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
23102         * tree-vrp.c (extract_range_from_binary_expr_1,
23103         extract_range_from_unary_expr_1): Likewise.
23105 2015-06-20  Marek Polacek  <polacek@redhat.com>
23107         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
23109 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23111         PR target/66591
23112         * config/sh/sh.c (prepare_move_operands): Replace subreg
23113         index term with R0 for base and index addressing.
23115 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
23117         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
23118         op1 is an fp zero.
23119         (movsf_aarch64): Change condition from register_operand to
23120         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
23121         load1.  Change type for alternative 7 to store1.
23122         (movdf_aarch64): Likewise.
23124 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
23126         * config/vax/vax.md: Adjust sign/zero extend patterns to
23127         handle SUBREGs in operands[1].
23129 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23131         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
23132         of manually swapping.
23133         (expand_vec_perm_interleave2): Likewise.
23135 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
23137         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
23138         reuse bounds created for abnormal ssa names.
23140 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
23142         * config/nvptx/nvptx.md (allocate_stack): Rename to...
23143         (allocate_stack_<mode>): ... this, and add :P on both
23144         match_operand and unspec.
23145         (allocate_stack): New expander.
23147 2015-06-19  Christian Bruel  <christian.bruel@st.com>
23149         PR target/66541
23150         PR target/52144
23151         * config/arm/arm.c (arm_set_current_function): Handle
23152         explicit default options.
23154 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23156         * config/i386/i386.md (*movsicc_noc_zext): New insn.
23157         (zero-extended cmove with mem peephole2): New pattern.
23158         (cmove with mem peephole2): Merge patterns.
23160 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23162         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
23164 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
23166         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
23167         * config/mips/mips.md (*madd4<mode>): Ditto.
23168         (*nmadd3<mode>) Ditto.
23169         (*nmadd4<mode>_fastmath): Ditto.
23170         (*nmadd3<mode>_fastmath): Ditto.
23171         (*nmsub4<mode>): Ditto.
23172         (*nmsub3<mode>): Ditto.
23173         (*nmsub4<mode>_fastmath): Ditto.
23174         (*nmsub3<mode>_fastmath): Ditto.
23176 2015-06-18  Michael Matz  <matz@suse.de>
23178         PR middle-end/66253
23179         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
23180         grouped strided stores.
23181         (vectorizable_load): Don't use the DR from first_stmt in
23182         the non-SLP grouped strided case.
23184 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23186         PR target/66569
23187         * function.c (assign_bounds): Add arguments assign_regs,
23188         assign_special, assign_bt.
23189         (assign_parms): For vararg functions handle bounds in BT
23190         and special slots after incoming vararg bounds.
23192 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23194         PR middle-end/66568
23195         * cfgexpand.c (expand_return): Handle missing bounds.
23196         (expand_gimple_stmt_1): Likewise.
23197         * tree-chkp.c (chkp_expand_zero_bounds): New.
23198         * tree-chkp.h (chkp_expand_zero_bounds): New.
23200 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23202         PR middle-end/66567
23203         * ipa-chkp.c (chkp_maybe_create_clone): Require
23204         functions to be instrumentable.
23205         * tree-chkp.c (chkp_replace_function_pointer): Use
23206         chkp_instrumentable_p instead of attribute check.
23208 2015-06-18  Richard Biener  <rguenther@suse.de>
23210         PR tree-optimization/66510
23211         * tree-vect-stmts.c (vectorizable_load): Properly compute the
23212         number of vector loads for SLP permuted loads.
23213         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
23214         check the stride for loop vectorization.
23215         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
23216         vectorization factor.
23217         (vect_analyze_group_access): If the group size is not a power
23218         of two require a epilogue loop.
23219         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
23220         compute and optimizing and alias test pruning after final
23221         vectorization factor computation.
23222         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
23223         vector alignment.
23224         (vect_transform_slp_perm_load): Properly compute the original
23225         number of vector load stmts.
23227 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
23229         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
23230         "unlikely character , in @var" warning.
23232 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
23234         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
23235         (ix86_function_arg_advance): Ditto.
23236         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
23238 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23240         * function.h (struct rtl_data): Remove struct and accessor macros.
23241         * emit-rtl.h (struct rtl_data): Relocate to here.
23242         * Makefile.in (GTFILES): Add emit-rtl.h.
23243         * df-core.c: Include emit-rtl.h.
23244         * genattrtab.c: Likewise.
23245         * genconditions.c: Likewise.
23246         * genpreds.c: Likewise.
23247         * genrecog.c: Likewise.
23248         * regcprop.c: Likewise.
23249         * resource.c: Likewise.
23250         * sched-rgn.c: Likewise.
23251         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23252         * config/i386/winnt.c: Likewise.
23254 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
23256         PR middle-end/66429
23257         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
23258         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
23259         and has_force_vectorize_loops flags from cfun into
23260         child_cfun.
23261         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
23262         if simduid is non-NULL.
23263         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
23264         * passes.def (pass_simduid_cleanup): Add new pass after loop
23265         passes.
23266         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
23267         indirection from htab argument's type.
23268         (shrink_simd_arrays): New function.
23269         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
23270         Don't call adjust_simduid_builtins if there are no loops.
23271         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
23272         (pass_simduid_cleanup::execute): New method.
23273         (make_pass_simduid_cleanup): New function.
23275 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
23277         * tree-core.h (tree_target_option): Make opts field a pointer to a
23278         cl_target_option instead of an instance of the struct.
23279         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
23280         the structure.
23281         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
23282         TARGET_OPTION_NODE.
23283         (copy_node_stat): Allocate and copy struct cl_target_option.
23285 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23287         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
23288         Remove conditional exposure of prototypes.
23289         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
23290         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
23291         definitions in tree.h with functions.
23292         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
23293         anon_aggrname_p.
23294         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
23296 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
23298         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
23299         (*cmp<mode>_signed): ... this.
23300         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
23301         (*cmp<mode>_unsigned): ... this.  Remove %b.
23303 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
23305         * coretypes.h: Include input.h and as-a.h.
23306         * rtl.h: Include input.h and as-a.h for generator files.
23307         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
23308         * vec.c: Don't include diagnostic-core.h.
23309         * alias.c: Do not include input.h, line-map.h or is-a.h.
23310         * asan.c: Likewise.
23311         * attribs.c: Likewise.
23312         * auto-inc-dec.c: Likewise.
23313         * auto-profile.c: Likewise.
23314         * bb-reorder.c: Likewise.
23315         * bt-load.c: Likewise.
23316         * builtins.c: Likewise.
23317         * caller-save.c: Likewise.
23318         * calls.c: Likewise.
23319         * ccmp.c: Likewise.
23320         * cfg.c: Likewise.
23321         * cfganal.c: Likewise.
23322         * cfgbuild.c: Likewise.
23323         * cfgcleanup.c: Likewise.
23324         * cfgexpand.c: Likewise.
23325         * cfghooks.c: Likewise.
23326         * cfgloop.c: Likewise.
23327         * cfgloop.h: Likewise.
23328         * cfgloopanal.c: Likewise.
23329         * cfgloopmanip.c: Likewise.
23330         * cfgrtl.c: Likewise.
23331         * cgraph.c: Likewise.
23332         * cgraphbuild.c: Likewise.
23333         * cgraphclones.c: Likewise.
23334         * cgraphunit.c: Likewise.
23335         * cilk-common.c: Likewise.
23336         * combine-stack-adj.c: Likewise.
23337         * combine.c: Likewise.
23338         * compare-elim.c: Likewise.
23339         * convert.c: Likewise.
23340         * coverage.c: Likewise.
23341         * cppbuiltin.c: Likewise.
23342         * cprop.c: Likewise.
23343         * cse.c: Likewise.
23344         * cselib.c: Likewise.
23345         * data-streamer-in.c: Likewise.
23346         * data-streamer-out.c: Likewise.
23347         * data-streamer.c: Likewise.
23348         * dbxout.c: Likewise.
23349         * dce.c: Likewise.
23350         * ddg.c: Likewise.
23351         * debug.c: Likewise.
23352         * df-core.c: Likewise.
23353         * df-problems.c: Likewise.
23354         * df-scan.c: Likewise.
23355         * df.h: Likewise.
23356         * dfp.c: Likewise.
23357         * diagnostic-core.h: Likewise.
23358         * diagnostic.c: Likewise.
23359         * dojump.c: Likewise.
23360         * dominance.c: Likewise.
23361         * domwalk.c: Likewise.
23362         * double-int.c: Likewise.
23363         * dse.c: Likewise.
23364         * dumpfile.c: Likewise.
23365         * dumpfile.h: Likewise.
23366         * dwarf2asm.c: Likewise.
23367         * dwarf2cfi.c: Likewise.
23368         * dwarf2out.c: Likewise.
23369         * emit-rtl.c: Likewise.
23370         * et-forest.c: Likewise.
23371         * except.c: Likewise.
23372         * explow.c: Likewise.
23373         * expmed.c: Likewise.
23374         * expr.c: Likewise.
23375         * final.c: Likewise.
23376         * fixed-value.c: Likewise.
23377         * fold-const.c: Likewise.
23378         * function.c: Likewise.
23379         * fwprop.c: Likewise.
23380         * gcc-plugin.h: Likewise.
23381         * gcse.c: Likewise.
23382         * generic-match-head.c: Likewise.
23383         * ggc-page.c: Likewise.
23384         * gimple-builder.c: Likewise.
23385         * gimple-expr.c: Likewise.
23386         * gimple-fold.c: Likewise.
23387         * gimple-iterator.c: Likewise.
23388         * gimple-low.c: Likewise.
23389         * gimple-match-head.c: Likewise.
23390         * gimple-pretty-print.c: Likewise.
23391         * gimple-ssa-isolate-paths.c: Likewise.
23392         * gimple-ssa-strength-reduction.c: Likewise.
23393         * gimple-streamer-in.c: Likewise.
23394         * gimple-streamer-out.c: Likewise.
23395         * gimple-streamer.h: Likewise.
23396         * gimple-walk.c: Likewise.
23397         * gimple.c: Likewise.
23398         * gimplify-me.c: Likewise.
23399         * gimplify.c: Likewise.
23400         * godump.c: Likewise.
23401         * graph.c: Likewise.
23402         * graphite-blocking.c: Likewise.
23403         * graphite-dependences.c: Likewise.
23404         * graphite-interchange.c: Likewise.
23405         * graphite-isl-ast-to-gimple.c: Likewise.
23406         * graphite-optimize-isl.c: Likewise.
23407         * graphite-poly.c: Likewise.
23408         * graphite-scop-detection.c: Likewise.
23409         * graphite-sese-to-poly.c: Likewise.
23410         * graphite.c: Likewise.
23411         * haifa-sched.c: Likewise.
23412         * hw-doloop.c: Likewise.
23413         * ifcvt.c: Likewise.
23414         * init-regs.c: Likewise.
23415         * input.c: Likewise.
23416         * internal-fn.c: Likewise.
23417         * ipa-chkp.c: Likewise.
23418         * ipa-comdats.c: Likewise.
23419         * ipa-cp.c: Likewise.
23420         * ipa-devirt.c: Likewise.
23421         * ipa-icf-gimple.c: Likewise.
23422         * ipa-icf.c: Likewise.
23423         * ipa-inline-analysis.c: Likewise.
23424         * ipa-inline-transform.c: Likewise.
23425         * ipa-inline.c: Likewise.
23426         * ipa-polymorphic-call.c: Likewise.
23427         * ipa-profile.c: Likewise.
23428         * ipa-prop.c: Likewise.
23429         * ipa-pure-const.c: Likewise.
23430         * ipa-ref.c: Likewise.
23431         * ipa-reference.c: Likewise.
23432         * ipa-split.c: Likewise.
23433         * ipa-utils.c: Likewise.
23434         * ipa-visibility.c: Likewise.
23435         * ipa.c: Likewise.
23436         * ira-build.c: Likewise.
23437         * ira-color.c: Likewise.
23438         * ira-conflicts.c: Likewise.
23439         * ira-costs.c: Likewise.
23440         * ira-emit.c: Likewise.
23441         * ira-lives.c: Likewise.
23442         * ira.c: Likewise.
23443         * jump.c: Likewise.
23444         * langhooks.c: Likewise.
23445         * lcm.c: Likewise.
23446         * loop-doloop.c: Likewise.
23447         * loop-init.c: Likewise.
23448         * loop-invariant.c: Likewise.
23449         * loop-iv.c: Likewise.
23450         * loop-unroll.c: Likewise.
23451         * lower-subreg.c: Likewise.
23452         * lra-assigns.c: Likewise.
23453         * lra-coalesce.c: Likewise.
23454         * lra-constraints.c: Likewise.
23455         * lra-eliminations.c: Likewise.
23456         * lra-lives.c: Likewise.
23457         * lra-remat.c: Likewise.
23458         * lra-spills.c: Likewise.
23459         * lra.c: Likewise.
23460         * lto-cgraph.c: Likewise.
23461         * lto-compress.c: Likewise.
23462         * lto-opts.c: Likewise.
23463         * lto-section-in.c: Likewise.
23464         * lto-section-out.c: Likewise.
23465         * lto-streamer-in.c: Likewise.
23466         * lto-streamer-out.c: Likewise.
23467         * lto-streamer.c: Likewise.
23468         * mcf.c: Likewise.
23469         * mode-switching.c: Likewise.
23470         * modulo-sched.c: Likewise.
23471         * omega.c: Likewise.
23472         * omp-low.c: Likewise.
23473         * optabs.c: Likewise.
23474         * opts-global.c: Likewise.
23475         * opts.h: Likewise.
23476         * passes.c: Likewise.
23477         * plugin.c: Likewise.
23478         * postreload-gcse.c: Likewise.
23479         * postreload.c: Likewise.
23480         * predict.c: Likewise.
23481         * pretty-print.h: Likewise.
23482         * print-rtl.c: Likewise.
23483         * print-tree.c: Likewise.
23484         * profile.c: Likewise.
23485         * real.c: Likewise.
23486         * realmpfr.c: Likewise.
23487         * recog.c: Likewise.
23488         * ree.c: Likewise.
23489         * reg-stack.c: Likewise.
23490         * regcprop.c: Likewise.
23491         * reginfo.c: Likewise.
23492         * regrename.c: Likewise.
23493         * regstat.c: Likewise.
23494         * reload.c: Likewise.
23495         * reload1.c: Likewise.
23496         * reorg.c: Likewise.
23497         * resource.c: Likewise.
23498         * rtl-chkp.c: Likewise.
23499         * rtl-error.c: Likewise.
23500         * rtlanal.c: Likewise.
23501         * rtlhooks.c: Likewise.
23502         * sanopt.c: Likewise.
23503         * sched-deps.c: Likewise.
23504         * sched-ebb.c: Likewise.
23505         * sched-rgn.c: Likewise.
23506         * sched-vis.c: Likewise.
23507         * sdbout.c: Likewise.
23508         * sel-sched-dump.c: Likewise.
23509         * sel-sched-ir.c: Likewise.
23510         * sel-sched.c: Likewise.
23511         * sese.c: Likewise.
23512         * shrink-wrap.c: Likewise.
23513         * simplify-rtx.c: Likewise.
23514         * stack-ptr-mod.c: Likewise.
23515         * statistics.c: Likewise.
23516         * stmt.c: Likewise.
23517         * stor-layout.c: Likewise.
23518         * store-motion.c: Likewise.
23519         * streamer-hooks.c: Likewise.
23520         * stringpool.c: Likewise.
23521         * symtab.c: Likewise.
23522         * target-globals.c: Likewise.
23523         * targhooks.c: Likewise.
23524         * toplev.c: Likewise.
23525         * tracer.c: Likewise.
23526         * trans-mem.c: Likewise.
23527         * tree-affine.c: Likewise.
23528         * tree-browser.c: Likewise.
23529         * tree-call-cdce.c: Likewise.
23530         * tree-cfg.c: Likewise.
23531         * tree-cfgcleanup.c: Likewise.
23532         * tree-chkp-opt.c: Likewise.
23533         * tree-chkp.c: Likewise.
23534         * tree-chrec.c: Likewise.
23535         * tree-complex.c: Likewise.
23536         * tree-data-ref.c: Likewise.
23537         * tree-dfa.c: Likewise.
23538         * tree-diagnostic.c: Likewise.
23539         * tree-dump.c: Likewise.
23540         * tree-eh.c: Likewise.
23541         * tree-emutls.c: Likewise.
23542         * tree-if-conv.c: Likewise.
23543         * tree-inline.c: Likewise.
23544         * tree-into-ssa.c: Likewise.
23545         * tree-iterator.c: Likewise.
23546         * tree-loop-distribution.c: Likewise.
23547         * tree-nested.c: Likewise.
23548         * tree-nrv.c: Likewise.
23549         * tree-object-size.c: Likewise.
23550         * tree-outof-ssa.c: Likewise.
23551         * tree-parloops.c: Likewise.
23552         * tree-phinodes.c: Likewise.
23553         * tree-predcom.c: Likewise.
23554         * tree-pretty-print.c: Likewise.
23555         * tree-profile.c: Likewise.
23556         * tree-scalar-evolution.c: Likewise.
23557         * tree-sra.c: Likewise.
23558         * tree-ssa-address.c: Likewise.
23559         * tree-ssa-alias.c: Likewise.
23560         * tree-ssa-ccp.c: Likewise.
23561         * tree-ssa-coalesce.c: Likewise.
23562         * tree-ssa-copy.c: Likewise.
23563         * tree-ssa-copyrename.c: Likewise.
23564         * tree-ssa-dce.c: Likewise.
23565         * tree-ssa-dom.c: Likewise.
23566         * tree-ssa-dse.c: Likewise.
23567         * tree-ssa-forwprop.c: Likewise.
23568         * tree-ssa-ifcombine.c: Likewise.
23569         * tree-ssa-live.c: Likewise.
23570         * tree-ssa-loop-ch.c: Likewise.
23571         * tree-ssa-loop-im.c: Likewise.
23572         * tree-ssa-loop-ivcanon.c: Likewise.
23573         * tree-ssa-loop-ivopts.c: Likewise.
23574         * tree-ssa-loop-manip.c: Likewise.
23575         * tree-ssa-loop-niter.c: Likewise.
23576         * tree-ssa-loop-prefetch.c: Likewise.
23577         * tree-ssa-loop-unswitch.c: Likewise.
23578         * tree-ssa-loop.c: Likewise.
23579         * tree-ssa-math-opts.c: Likewise.
23580         * tree-ssa-operands.c: Likewise.
23581         * tree-ssa-phiopt.c: Likewise.
23582         * tree-ssa-phiprop.c: Likewise.
23583         * tree-ssa-pre.c: Likewise.
23584         * tree-ssa-propagate.c: Likewise.
23585         * tree-ssa-reassoc.c: Likewise.
23586         * tree-ssa-sccvn.c: Likewise.
23587         * tree-ssa-scopedtables.c: Likewise.
23588         * tree-ssa-sink.c: Likewise.
23589         * tree-ssa-strlen.c: Likewise.
23590         * tree-ssa-structalias.c: Likewise.
23591         * tree-ssa-tail-merge.c: Likewise.
23592         * tree-ssa-ter.c: Likewise.
23593         * tree-ssa-threadedge.c: Likewise.
23594         * tree-ssa-threadupdate.c: Likewise.
23595         * tree-ssa-uncprop.c: Likewise.
23596         * tree-ssa-uninit.c: Likewise.
23597         * tree-ssa.c: Likewise.
23598         * tree-ssanames.c: Likewise.
23599         * tree-stdarg.c: Likewise.
23600         * tree-streamer-in.c: Likewise.
23601         * tree-streamer-out.c: Likewise.
23602         * tree-streamer.c: Likewise.
23603         * tree-switch-conversion.c: Likewise.
23604         * tree-tailcall.c: Likewise.
23605         * tree-vect-data-refs.c: Likewise.
23606         * tree-vect-generic.c: Likewise.
23607         * tree-vect-loop-manip.c: Likewise.
23608         * tree-vect-loop.c: Likewise.
23609         * tree-vect-patterns.c: Likewise.
23610         * tree-vect-slp.c: Likewise.
23611         * tree-vect-stmts.c: Likewise.
23612         * tree-vectorizer.c: Likewise.
23613         * tree-vrp.c: Likewise.
23614         * tree.c: Likewise.
23615         * tsan.c: Likewise.
23616         * ubsan.c: Likewise.
23617         * valtrack.c: Likewise.
23618         * value-prof.c: Likewise.
23619         * var-tracking.c: Likewise.
23620         * varasm.c: Likewise.
23621         * varpool.c: Likewise.
23622         * vmsdbgout.c: Likewise.
23623         * vtable-verify.c: Likewise.
23624         * web.c: Likewise.
23625         * wide-int.cc: Likewise.
23626         * xcoffout.c: Likewise.
23627         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
23628         * common/common-targhooks.c: Likewise.
23629         * config/aarch64/aarch64-builtins.c: Likewise.
23630         * config/aarch64/aarch64.c: Likewise.
23631         * config/alpha/alpha.c: Likewise.
23632         * config/arc/arc.c: Likewise.
23633         * config/arm/aarch-common.c: Likewise.
23634         * config/arm/arm-builtins.c: Likewise.
23635         * config/arm/arm-c.c: Likewise.
23636         * config/arm/arm.c: Likewise.
23637         * config/avr/avr-c.c: Likewise.
23638         * config/avr/avr-log.c: Likewise.
23639         * config/avr/avr.c: Likewise.
23640         * config/bfin/bfin.c: Likewise.
23641         * config/c6x/c6x.c: Likewise.
23642         * config/cr16/cr16.c: Likewise.
23643         * config/cris/cris.c: Likewise.
23644         * config/darwin-c.c: Likewise.
23645         * config/darwin.c: Likewise.
23646         * config/default-c.c: Likewise.
23647         * config/epiphany/epiphany.c: Likewise.
23648         * config/epiphany/mode-switch-use.c: Likewise.
23649         * config/epiphany/resolve-sw-modes.c: Likewise.
23650         * config/fr30/fr30.c: Likewise.
23651         * config/frv/frv.c: Likewise.
23652         * config/ft32/ft32.c: Likewise.
23653         * config/glibc-c.c: Likewise.
23654         * config/h8300/h8300.c: Likewise.
23655         * config/i386/i386-c.c: Likewise.
23656         * config/i386/i386.c: Likewise.
23657         * config/i386/msformat-c.c: Likewise.
23658         * config/i386/winnt-cxx.c: Likewise.
23659         * config/i386/winnt-stubs.c: Likewise.
23660         * config/i386/winnt.c: Likewise.
23661         * config/ia64/ia64-c.c: Likewise.
23662         * config/ia64/ia64.c: Likewise.
23663         * config/iq2000/iq2000.c: Likewise.
23664         * config/lm32/lm32.c: Likewise.
23665         * config/m32c/m32c-pragma.c: Likewise.
23666         * config/m32c/m32c.c: Likewise.
23667         * config/m32r/m32r.c: Likewise.
23668         * config/m68k/m68k.c: Likewise.
23669         * config/mcore/mcore.c: Likewise.
23670         * config/mep/mep-pragma.c: Likewise.
23671         * config/mep/mep.c: Likewise.
23672         * config/microblaze/microblaze-c.c: Likewise.
23673         * config/microblaze/microblaze.c: Likewise.
23674         * config/mips/mips.c: Likewise.
23675         * config/mmix/mmix.c: Likewise.
23676         * config/mn10300/mn10300.c: Likewise.
23677         * config/moxie/moxie.c: Likewise.
23678         * config/msp430/msp430-c.c: Likewise.
23679         * config/msp430/msp430.c: Likewise.
23680         * config/nds32/nds32-cost.c: Likewise.
23681         * config/nds32/nds32-fp-as-gp.c: Likewise.
23682         * config/nds32/nds32-intrinsic.c: Likewise.
23683         * config/nds32/nds32-isr.c: Likewise.
23684         * config/nds32/nds32-md-auxiliary.c: Likewise.
23685         * config/nds32/nds32-memory-manipulation.c: Likewise.
23686         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23687         * config/nds32/nds32-predicates.c: Likewise.
23688         * config/nds32/nds32.c: Likewise.
23689         * config/nios2/nios2.c: Likewise.
23690         * config/nvptx/nvptx.c: Likewise.
23691         * config/pa/pa.c: Likewise.
23692         * config/pdp11/pdp11.c: Likewise.
23693         * config/rl78/rl78-c.c: Likewise.
23694         * config/rl78/rl78.c: Likewise.
23695         * config/rs6000/rs6000-c.c: Likewise.
23696         * config/rs6000/rs6000.c: Likewise.
23697         * config/rx/rx.c: Likewise.
23698         * config/s390/s390-c.c: Likewise.
23699         * config/s390/s390.c: Likewise.
23700         * config/sh/sh-c.c: Likewise.
23701         * config/sh/sh-mem.cc: Likewise.
23702         * config/sh/sh.c: Likewise.
23703         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23704         * config/sh/sh_treg_combine.cc: Likewise.
23705         * config/sol2-c.c: Likewise.
23706         * config/sol2-cxx.c: Likewise.
23707         * config/sol2-stubs.c: Likewise.
23708         * config/sol2.c: Likewise.
23709         * config/sparc/sparc-c.c: Likewise.
23710         * config/sparc/sparc.c: Likewise.
23711         * config/spu/spu-c.c: Likewise.
23712         * config/spu/spu.c: Likewise.
23713         * config/stormy16/stormy16.c: Likewise.
23714         * config/tilegx/mul-tables.c: Likewise.
23715         * config/tilegx/tilegx-c.c: Likewise.
23716         * config/tilegx/tilegx.c: Likewise.
23717         * config/tilepro/mul-tables.c: Likewise.
23718         * config/tilepro/tilepro-c.c: Likewise.
23719         * config/tilepro/tilepro.c: Likewise.
23720         * config/v850/v850-c.c: Likewise.
23721         * config/v850/v850.c: Likewise.
23722         * config/vax/vax.c: Likewise.
23723         * config/visium/visium.c: Likewise.
23724         * config/vms/vms-c.c: Likewise.
23725         * config/vms/vms.c: Likewise.
23726         * config/vxworks.c: Likewise.
23727         * config/winnt-c.c: Likewise.
23728         * config/xtensa/xtensa.c: Likewise.
23730 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
23732         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
23733         function.
23734         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
23736 2015-06-17  Richard Biener  <rguenther@suse.de>
23738         PR tree-optimization/66251
23739         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
23740         stmts for SLP strided stores.
23742         Revert
23743         2015-05-22  Richard Biener  <rguenther@suse.de>
23745         PR tree-optimization/66251
23746         * tree-vect-stmts.c (vectorizable_conversion): Properly
23747         set STMT_VINFO_VEC_STMT even for the SLP case.
23749         2015-05-26  Michael Matz  <matz@suse.de>
23751         PR middle-end/66251
23752         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
23753         STMT_VINFO_VEC_STMT, also with SLP.
23755 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
23757         PR target/56766
23758         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
23759         (*avx_addsubv4df3_1s): Ditto.
23760         (*sse3_addsubv2df3_1): Ditto.
23761         (*sse3_addsubv2df3_1s): Ditto.
23762         (*avx_addsubv8sf3_1): Ditto.
23763         (*avx_addsubv8sf3_1s): Ditto.
23764         (*sse3_addsubv4sf3_1): Ditto.
23765         (*sse3_addsubv4sf3_1s): Ditto.
23767 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
23769         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
23770         (SYSROOT_SUFFIX_SPEC): Update.
23771         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
23772         (STARTFILE_PREFIX_SPEC): Update.
23773         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
23774         (MULTILIB_REQUIRED): New.
23775         (MULTILIB_OSDIRNAMES): New.
23776         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
23777         (MULTILIB_REQUIRED): New.
23778         (MULTILIB_OSDIRNAMES): New.
23780 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
23782         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
23783         * config/aarch64/aarch64-options-extensions.def: Update "fP",
23784         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
23785         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
23786         (AARCH64_FL_PAN): New.
23787         (AARCH64_FL_LOR): New.
23788         (AARCH64_FL_RDMA): New.
23789         (AARCH64_FL_FOR_ARCH8_1): New.
23790         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
23791         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
23793 2015-06-16  Martin Liska  <mliska@suse.cz>
23795         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
23796         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
23797         guard.
23799 2015-06-16  Richard Biener  <rguenther@suse.de>
23801         * tree-vect-stmts.c (vectorizable_store): Adjust.
23802         (vectorizable_load): Likewise.
23803         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23804         Simplify.
23805         (vect_create_data_ref_ptr): Likewise.
23806         (bump_vector_ptr): Adjust.
23808 2015-06-16  Richard Biener  <rguenther@suse.de>
23810         * tree-vect-stmts.c (vectorizable_load): Properly start loads
23811         with the first element if this is grouped loads.
23813 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
23815         * config/arm/arm-protos.h (struct tune_params): Rename
23816         log_op_non_sc to log_op_non_short_circuit, and rename enum
23817         values to expand SC to SHORT_CIRCUIT.
23818         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
23819         to LOG_OP_NON_SHORT_CIRCUIT.
23820         (arm_fastmul_tune):Likewise
23821         (arm_strongarm_tune): Likewise.
23822         (arm_xscale_tune): Likewise.
23823         (arm_9e_tune): Likewise.
23824         (arm_marvell_pj4_tune): Likewise.
23825         (arm_v6t2_tune): Likewise.
23826         (arm_cortex_tune): Likewise.
23827         (arm_cortex_a8_tune): Likewise.
23828         (arm_cortex_a7_tune): Likewise.
23829         (arm_cortex_a15_tune): Likewise.
23830         (arm_cortex_a53_tune): Likewise.
23831         (arm_cortex_a57_tune): Likewise.
23832         (arm_xgene1_tune): Likewise.
23833         (arm_cortex_a5_tune): Likewise.
23834         (arm_cortex_a9_tune): Likewise.
23835         (arm_cortex_a12_tune): Likewise.
23836         (arm_v7m_tune): Likewise.
23837         (arm_cortex_m7_tune): Likewise.
23838         (arm_v6m_tune): Likewise.
23839         (arm_fa726te_tune): Likewise.
23841 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
23843         * altivec.md: Delete UNSPEC_VMLADDUHM.
23844         (mulv4si3_p8): New pattern.
23845         (mulv4si3): Use it for POWER8.
23846         (mulv8hi3): Use vmladduhm with zero addend.
23847         (altivec_vmladduhm): Descriptive RTL.
23849 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
23851         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
23852         to use neon_move instead of mov_imm.
23853         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
23854         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
23856         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
23857         aarch64_float_const_zero_rtx_p check before TFmode check.
23858         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
23859         an fp zero.
23860         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
23861         code and attributes to match.  Change condition from register_operand
23862         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
23863         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
23864         to store2.
23866 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
23868         PR debug/66535
23869         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
23870         there is no parent.
23872 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
23874         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
23875         HOST_WIDE_INT parameter.
23877 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
23879         PR ipa/66181
23880         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
23881         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
23882         TYPE_NO_FORCE_BLK.
23883         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
23885 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
23887         * rtl.h (classify_insn): Declare.
23888         * emit-rtl.c (classify_insn): Move to...
23889         * rtl.c: ...here and add generator support.
23890         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
23891         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
23892         * genemit.c (gen_emit_seq): New function.
23893         (gen_expand, gen_split): Use it.
23895 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
23897         * tree.c (make_vector_stat): Fix comment to state that the
23898         function returns a VECTOR_CST.
23900 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
23902         * gensupport.h (add_implicit_parallel): Declare.
23903         * genrecog.c (add_implicit_parallel): Move to...
23904         * gensupport.c (add_implicit_parallel): ...here.
23905         (process_one_cond_exec): Use it.
23906         * genemit.c (gen_insn): Likewise.
23908 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
23910         PR bootstrap/66448
23911         * passes.c (rest_of_decl_compilation): Do not register globals for
23912         early debug if they are declared in built-ins.
23914 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
23916         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
23918 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23920         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
23921         manually swapping.
23922         (noce_try_cmove_arith): Likewise.
23923         (noce_get_alt_condition): Likewise.
23925 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23927         * common/config/i386/i386-common.c
23928         (OPTION_MASK_ISA_MWAITX_SET): New.
23929         (ix86_handle_option): Handle mwaitx.
23930         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
23931         (x86_64-*-*): Likewise.
23932         * config/i386/mwaitxintrin.h: New header.
23933         * config/i386/cpuid.h (bit_MWAITX):  Define.
23934         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23935         MWAITX support.
23936         * config/i386/i386.opt (mwaitx): New.
23937         * config/i386/i386-builtin-types.def
23938         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
23939         * config/i386/i386-c.c: Define __MWAITX__ if needed.
23940         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
23941         (PTA_MWAITX): New.
23942         (ix86_option_override_internal): Handle new option.
23943         (processor_alias_table): Added PTA_MWAITX.
23944         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
23945         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
23946         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
23947         IX86_BUILTIN_MONITORX  built-ins.
23948         * config/i386/i386.h (TARGET_MWAITX): New.
23949         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
23950         UNSPEC_MONITORX.
23951         (mwaitx):  New pattern.
23952         (monitorx_<mode>): New pattern.
23953         * config/i386/x86intrin.h: Include mwaitxintrin.h.
23954         * doc/extend.texi: Document monitorx and mwaitx builtins.
23955         * doc/invoke.texi: Document -mmwaitx option.
23957 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
23959         * emit-rtl.c (need_atomic_barrier_p): Mask model with
23960         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
23962 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23964         * dbxout.c (xcoff_debug_hooks): Provide a function for
23965         register_main_translation_unit hook.
23967 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
23969         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
23970         variants cases from switch.
23971         (rs6000_post_atomic_barrier): Same.
23972         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
23973         (rs6000_expand_atomic_exchange): Same.
23974         (rs6000_expand_atomic_op): Same.
23975         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
23976         SYNC variants cases from switch.
23977         (atomic_load): Same.
23978         (atomic_store): Same.
23980 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
23982         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
23983         CONST_INT for goto.
23985 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
23987         PR bootstrap/66448
23988         * dwarf2out.c (check_die): Check for common duplicate attributes.
23989         (add_location_or_const_value_attribute): Do not add duplicate
23990         attributes.
23991         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
23992         time around.
23993         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
23994         (gen_type_die_with_usage): Call check_die.
23995         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
23997 2015-06-11  Jason Merrill  <jason@redhat.com>
23999         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
24000         dies.
24002 2015-06-11  Marek Polacek  <polacek@redhat.com>
24004         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
24006 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
24008         PR bootstrap/66252
24009         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
24010         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
24011         (*addx_extend_sp32): Fix pasto.
24012         (*subx_extend): Rename into...
24013         (*subx_extend_sp32): ...this.
24014         (*adddi3_extend_sp32): Add earlyclobber.
24015         (*subdi3_insn_sp32): Likewise.
24016         (*subdi3_extend_sp32): Likewise.
24017         (*and_not_di_sp32): Likewise.
24018         (*or_not_di_sp32): Likewise.
24019         (*xor_not_di_sp32): Likewise.
24020         (*negdi2_sp32): Likewise.
24021         (*one_cmpldi2_sp32): Likewise.
24023 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
24025         * debug.h (struct gcc_debug_hooks): Add a
24026         register_main_translation_unit hook.
24027         * debug.c (do_nothing_debug_hooks): Provide a function for this
24028         new hook.
24029         * dbxout.c (dbx_debug_hooks): Likewise.
24030         * sdbout.c (sdb_debug_hooks): Likewise.
24031         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24032         * dwarf2out.c (main_translation_unit): New global variable.
24033         (dwarf2out_register_main_translation_unit): New function
24034         implementing the new hook.
24035         (dwarf2_debug_hooks): Assign
24036         dwarf2out_register_main_translation_unit to this new hook.
24037         (dwarf2out_init): Associate any main translation unit to
24038         comp_unit_die ().
24040 2015-06-11  Marek Polacek  <polacek@redhat.com>
24042         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
24044 2015-06-11  Marek Polacek  <polacek@redhat.com>
24046         * match.pd: Use single_use throughout.
24048 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24050         * config/arm/arm.c (arm_option_params_internal): When optimising
24051         for speed set max_insns_skipped when arm_restrict_it.
24053 2015-06-11  Christian Bruel  <christian.bruel@st.com>
24055         PR target/52144
24056         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
24057          macros in ...
24058         (arm_cpu_builtins): New function.
24059         (arm_pragma_target_parse): Call arm_cpu_builtins.
24060         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
24061         (arm_register_target_pragmas): Likewise.
24062         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
24063          Call arm_register_target_pragmas.
24064         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
24065         (arm_pragma_target_parse): Likewise.
24067 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24069         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
24070         of the second operand.
24072 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
24074         PR target/66473
24075         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
24076         to prepare mask operand for AVX512 modes.
24078 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24080         PR target/66474
24081         * doc/md.texi (Machine Constraints): Document that on the PowerPC
24082         if you use a constraint that targets a VSX register, you must use
24083         %x<n> in the template.
24085 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
24087         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
24088         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
24089         (define_insn "trap"): New definition.
24091 2015-06-10  Richard Biener  <rguenther@suse.de>
24093         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
24094         out from ...
24095         (vect_supported_load_permutation_p): ... here.  Handle
24096         supportable permutations in reductions.
24097         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
24098         for vectorizing strided group loads.
24100 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
24102         PR target/66470
24103         * config/i386/i386.c (ix86_split_long_move): For collisions
24104         involving direct tls segment refs, move the UNSPEC_TP possibly
24105         wrapped in ZERO_EXTEND out of the address for lea, to each of
24106         the memory loads.
24108 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24110         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
24111         dmb sy. Adjust tabs.
24113 2015-06-10  Tom de Vries  <tom@codesourcery.com>
24115         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
24117 2015-06-10  Martin Liska  <mliska@suse.cz>
24119         PR bootstrap/66471
24120         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
24121         all enum values in mem_alloc_origin.
24122         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
24123         name.
24124         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
24125         * bitmap.c (bitmap_register): Likewise.
24126         (dump_bitmap_statistics): Likewise.
24127         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
24128         (ggc_record_overhead): Likewise.
24129         * hash-map.h: Likewise.
24130         * hash-set.h: Likewise.
24131         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
24132         * hash-table.h: Likewise.
24133         * vec.c (vec_prefix::register_overhead): Likewise.
24134         (vec_prefix::release_overhead): Likewise.
24135         (dump_vec_loc_statistics): Likewise.
24137 2015-06-09  Christian Bruel  <christian.bruel@st.com>
24139         PR target/52144
24140         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
24141         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
24142         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
24143         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
24144         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
24145         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
24146         (arm_valid_target_attribute_p): Likewise.
24147         (arm_set_current_function, arm_can_inline_p): Likewise.
24148         (arm_valid_target_attribute_rec): Likewise.
24149         (arm_previous_fndecl): New variable.
24150         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
24151         (TARGET_CAN_INLINE_P): Define.
24152         (arm_asm_trampoline_template): Emit mode.
24153         (arm_file_start): Don't set unified syntax.
24154         (arm_declare_function_name): Set unified syntax and mode.
24155         (arm_option_override): Init target_option_default_node.
24156         and target_option_current_node.
24157         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
24158         (*call_symbol): Likewise.
24159         * doc/extend.texi: Document ARM/Thumb target attribute.
24160         * doc/invoke.texi: Likewise.
24162 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24164         Revert:
24165         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24166         PR rtl-optimization/64164
24167         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24168         * tree-ssa-copyrename.c: Removed.
24169         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24170         -ftree-coalesce-vars.
24171         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24172         * common.opt (ftree-copyrename): Ignore.
24173         (ftree-coalesce-inlined-vars): Likewise.
24174         * doc/invoke.texi: Remove the ignored options above.
24175         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24176         * tree-ssa-coalesce.h: ... here.
24177         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24178         headers required by it.
24179         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24180         across variables when flag_tree_coalesce_vars.  Check register
24181         use and promoted modes to allow coalescing.  Moved to
24182         tree-ssa-coalesce.c.
24183         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24184         with its member functions to tree-ssa-coalesce.c.
24185         (var_map_base_init): Likewise.  Renamed to
24186         compute_samebase_partition_bases.
24187         (partition_view_normal): Drop want_bases parameter.
24188         (partition_view_bitmap): Likewise.
24189         * tree-ssa-live.h: Adjust declarations.
24190         * tree-ssa-coalesce.c: Include explow.h.
24191         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24192         default defs at the entry point.
24193         (dump_part_var_map): New.
24194         (compute_optimized_partition_bases): New, called by...
24195         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24196         of compute_samebase_partition_bases.  Adjust.
24197         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24198         * cfgexpand.c (leader_merge): New.
24199         (get_rtl_for_parm_ssa_default_def): New.
24200         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24201         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24202         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24203         redundant MEM attr setting.
24204         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24205         from...
24206         (expand_one_stack_var): ... this.  New wrapper to check and
24207         skip already expanded SSA partitions.
24208         (record_alignment_for_reg_var): New, factored out of...
24209         (expand_one_var): ... this.
24210         (expand_one_ssa_partition): New.
24211         (adjust_one_expanded_partition_var): New.
24212         (expand_one_register_var): Check and skip already expanded SSA
24213         partitions.
24214         (expand_used_vars): Don't create DECLs for anonymous SSA
24215         names.  Expand all SSA partitions, then adjust all SSA names.
24216         (pass::execute): Replace the loops that set
24217         SA.partition_to_pseudo from partition leaders and cleared
24218         DECL_RTL for multi-location variables, and that which used to
24219         rename vars and set attrs, with one that clears DECL_RTL and
24220         checks that PARMs and RESULTs default_defs match DECL_RTL.
24221         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24222         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24223         * explow.c (promote_ssa_mode): New.
24224         * explow.h (promote_ssa_mode): Declare.
24225         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24226         * function.c: Include cfgexpand.h.
24227         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24228         (use_register_for_parm_decl): Wrapper for the above to
24229         special-case the result_ptr.
24230         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24231         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24232         multiple locations.
24233         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24234         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24235         (assign_parm_setup_block): Prefer SSA-assigned location.
24236         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24237         if stack_parm is NULL.
24238         (assign_parm_setup_stack): Prefer SSA-assigned location.
24239         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24240         rtl before testing for pointer bounds.  Special-case result_ptr.
24241         (expand_function_start): Maybe reset DECL_RTL of result.
24242         Prefer SSA-assigned location for result and static chain.
24243         Factor out DECL_RESULT and SET_DECL_RTL.
24244         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24245         anonymous SSA names.  Use promote_ssa_mode.
24246         (get_temp_reg): Likewise.
24247         (remove_ssa_form): Adjust.
24248         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24249         and get its reg_usage for reg invalidation.
24250         (compute_bb_dataflow): Pass it insn.
24251         (emit_notes_in_bb): Likewise.
24252         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24253         fail assert on conversion between unsigned types.
24255 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24257         PR tree-optimization/65460
24258         * omp-low.c (expand_omp_target): Set parallelized_function on
24259         cgraph_node for child_fn.
24261 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24263         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
24264         parallelized_function before add_new_function.
24266 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
24268         * gcc-plugin.h: Move decls to plugin.h and include it.
24269         * plugin.h: Relocate decls from gcc-plugin.h
24270         * ggc-page.c: Include required header files.
24271         * passes.c: Likewise.
24272         * cgraphunit.c: Likewise.
24274 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24276         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
24278 2015-06-09  Jason Merrill  <jason@redhat.com>
24280         PR bootstrap/66448
24281         * toplev.c (check_global_declaration): Don't warn about a clone.
24283 2015-06-09  Marek Polacek  <polacek@redhat.com>
24285         PR tree-optimization/66299
24286         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
24287         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
24288         patterns.
24290 2015-06-09  Richard Biener  <rguenther@suse.de>
24292         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
24293         (vect_analyze_slp_instance): Instead do not falsely drop
24294         load permutations.
24296 2015-06-09  Richard Biener  <rguenther@suse.de>
24298         PR middle-end/66423
24299         * match.pd: Handle A % (unsigned)(1 << B).
24301 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
24303         * varasm.c (output_object_block_htab): Remove.
24304         (output_object_block_compare): New.
24305         (output_object_blocks): Sort named object_blocks before outputting
24306         them.
24308 2015-06-09  Richard Biener  <rguenther@suse.de>
24310         PR tree-optimization/66419
24311         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
24312         consider GROUP_GAP when detecting a perfect subchain.
24314 2015-06-09  Nick Clifton  <nickc@redhat.com>
24316         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
24317         place read only data in the .frodata section.
24319 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
24321         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
24322         (atomic_store<mode>): Likewise.
24324 2015-06-09  Richard Biener  <rguenther@suse.de>
24326         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
24328 2015-06-09  Richard Biener  <rguenther@suse.de>
24330         PR middle-end/66413
24331         * tree-inline.c (insert_init_debug_bind): Unshare value.
24333 2015-06-09  Richard Biener  <rguenther@suse.de>
24335         PR tree-optimization/66396
24336         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
24337         Rename virtual operands.
24339 2015-06-09  Tom de Vries  <tom@codesourcery.com>
24341         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
24342         always return false.
24344 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24346         PR rtl-optimization/64164
24347         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
24348         * tree-ssa-copyrename.c: Removed.
24349         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24350         -ftree-coalesce-vars.
24351         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
24352         * common.opt (ftree-copyrename): Ignore.
24353         (ftree-coalesce-inlined-vars): Likewise.
24354         * doc/invoke.texi: Remove the ignored options above.
24355         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
24356         * tree-ssa-coalesce.h: ... here.
24357         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
24358         headers required by it.
24359         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
24360         across variables when flag_tree_coalesce_vars.  Check register
24361         use and promoted modes to allow coalescing.  Moved to
24362         tree-ssa-coalesce.c.
24363         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
24364         with its member functions to tree-ssa-coalesce.c.
24365         (var_map_base_init): Likewise.  Renamed to
24366         compute_samebase_partition_bases.
24367         (partition_view_normal): Drop want_bases parameter.
24368         (partition_view_bitmap): Likewise.
24369         * tree-ssa-live.h: Adjust declarations.
24370         * tree-ssa-coalesce.c: Include explow.h.
24371         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
24372         default defs at the entry point.
24373         (dump_part_var_map): New.
24374         (compute_optimized_partition_bases): New, called by...
24375         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
24376         of compute_samebase_partition_bases.  Adjust.
24377         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
24378         * cfgexpand.c (leader_merge): New.
24379         (get_rtl_for_parm_ssa_default_def): New.
24380         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
24381         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
24382         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
24383         redundant MEM attr setting.
24384         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
24385         from...
24386         (expand_one_stack_var): ... this.  New wrapper to check and
24387         skip already expanded SSA partitions.
24388         (record_alignment_for_reg_var): New, factored out of...
24389         (expand_one_var): ... this.
24390         (expand_one_ssa_partition): New.
24391         (adjust_one_expanded_partition_var): New.
24392         (expand_one_register_var): Check and skip already expanded SSA
24393         partitions.
24394         (expand_used_vars): Don't create DECLs for anonymous SSA
24395         names.  Expand all SSA partitions, then adjust all SSA names.
24396         (pass::execute): Replace the loops that set
24397         SA.partition_to_pseudo from partition leaders and cleared
24398         DECL_RTL for multi-location variables, and that which used to
24399         rename vars and set attrs, with one that clears DECL_RTL and
24400         checks that PARMs and RESULTs default_defs match DECL_RTL.
24401         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
24402         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
24403         * explow.c (promote_ssa_mode): New.
24404         * explow.h (promote_ssa_mode): Declare.
24405         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
24406         * function.c: Include cfgexpand.h.
24407         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
24408         (use_register_for_parm_decl): Wrapper for the above to
24409         special-case the result_ptr.
24410         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
24411         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
24412         multiple locations.
24413         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
24414         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
24415         (assign_parm_setup_block): Prefer SSA-assigned location.
24416         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
24417         if stack_parm is NULL.
24418         (assign_parm_setup_stack): Prefer SSA-assigned location.
24419         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
24420         rtl before testing for pointer bounds.  Special-case result_ptr.
24421         (expand_function_start): Maybe reset DECL_RTL of result.
24422         Prefer SSA-assigned location for result and static chain.
24423         Factor out DECL_RESULT and SET_DECL_RTL.
24424         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
24425         anonymous SSA names.  Use promote_ssa_mode.
24426         (get_temp_reg): Likewise.
24427         (remove_ssa_form): Adjust.
24428         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
24429         and get its reg_usage for reg invalidation.
24430         (compute_bb_dataflow): Pass it insn.
24431         (emit_notes_in_bb): Likewise.
24432         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
24433         fail assert on conversion between unsigned types.
24435 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
24437         PR debug/58315
24438         * tree-inline.c (reset_debug_binding): New.
24439         (reset_debug_bindings): Likewise.
24440         (expand_call_inline): Call it.
24442 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24444         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
24445         TYPE_STRING_FLAG.
24447 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24449         * lto-streamer-out.c (lto_output_location): Stream
24450         reserved locations correctly.
24451         * lto-streamer-in.c (lto_output_location): Likewise.
24453 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
24455         * coretypes.h: Include hash-table.h and hash-set.h for host files.
24456         * ggc.h: Don't include statistics.h>
24457         * hash-map.h: Remove all includes.
24458         * hash-set.h: Likewise.
24459         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
24460         the include list. Remove <new>.
24461         * inchash.h: Remove all includes.
24462         * mem-stats.h: Likewise.
24463         * vec.h: No special processing for generators or ggc.
24464         * alias.c : Adjust include files.
24465         * alloc-pool.c : Likewise.
24466         * alloc-pool.h : Likewise.
24467         * asan.c : Likewise.
24468         * attribs.c : Likewise.
24469         * auto-inc-dec.c : Likewise.
24470         * auto-profile.c : Likewise.
24471         * bb-reorder.c : Likewise.
24472         * bitmap.c : Likewise.
24473         * bitmap.h : Likewise.
24474         * bt-load.c : Likewise.
24475         * builtins.c : Likewise.
24476         * caller-save.c : Likewise.
24477         * calls.c : Likewise.
24478         * ccmp.c : Likewise.
24479         * cfg.c : Likewise.
24480         * cfganal.c : Likewise.
24481         * cfgbuild.c : Likewise.
24482         * cfgcleanup.c : Likewise.
24483         * cfgexpand.c : Likewise.
24484         * cfghooks.c : Likewise.
24485         * cfgloop.c : Likewise.
24486         * cfgloop.h : Likewise.
24487         * cfgloopanal.c : Likewise.
24488         * cfgloopmanip.c : Likewise.
24489         * cfgrtl.c : Likewise.
24490         * cgraph.c : Likewise.
24491         * cgraphbuild.c : Likewise.
24492         * cgraphclones.c : Likewise.
24493         * cgraphunit.c : Likewise.
24494         * cilk-common.c : Likewise.
24495         * combine-stack-adj.c : Likewise.
24496         * combine.c : Likewise.
24497         * compare-elim.c : Likewise.
24498         * context.c : Likewise.
24499         * convert.c : Likewise.
24500         * coverage.c : Likewise.
24501         * cppbuiltin.c : Likewise.
24502         * cprop.c : Likewise.
24503         * cse.c : Likewise.
24504         * cselib.c : Likewise.
24505         * data-streamer-in.c : Likewise.
24506         * data-streamer-out.c : Likewise.
24507         * data-streamer.c : Likewise.
24508         * data-streamer.h : Likewise.
24509         * dbxout.c : Likewise.
24510         * dce.c : Likewise.
24511         * ddg.c : Likewise.
24512         * debug.c : Likewise.
24513         * df-core.c : Likewise.
24514         * df-problems.c : Likewise.
24515         * df-scan.c : Likewise.
24516         * df.h : Likewise.
24517         * dfp.c : Likewise.
24518         * dojump.c : Likewise.
24519         * dominance.c : Likewise.
24520         * domwalk.c : Likewise.
24521         * double-int.c : Likewise.
24522         * dse.c : Likewise.
24523         * dumpfile.c : Likewise.
24524         * dwarf2asm.c : Likewise.
24525         * dwarf2cfi.c : Likewise.
24526         * dwarf2out.c : Likewise.
24527         * emit-rtl.c : Likewise.
24528         * et-forest.c : Likewise.
24529         * except.c : Likewise.
24530         * except.h : Likewise.
24531         * explow.c : Likewise.
24532         * expmed.c : Likewise.
24533         * expr.c : Likewise.
24534         * final.c : Likewise.
24535         * fixed-value.c : Likewise.
24536         * fold-const.c : Likewise.
24537         * function.c : Likewise.
24538         * fwprop.c : Likewise.
24539         * gcc-plugin.h : Likewise.
24540         * gcc.c : Likewise.
24541         * gcse-common.c : Likewise.
24542         * gcse.c : Likewise.
24543         * genattrtab.c : Likewise.
24544         * genautomata.c : Likewise.
24545         * genconditions.c : Likewise.
24546         * genemit.c : Likewise.
24547         * generic-match-head.c : Likewise.
24548         * genextract.c : Likewise.
24549         * gengtype-state.c : Likewise.
24550         * gengtype.c : Likewise.
24551         * genhooks.c : Likewise.
24552         * genmatch.c : Likewise.
24553         * genmodes.c : Likewise.
24554         * genrecog.c : Likewise.
24555         * gensupport.c : Likewise.
24556         * ggc-common.c : Likewise.
24557         * ggc-internal.h : Likewise.
24558         * ggc-none.c : Likewise.
24559         * ggc-page.c : Likewise.
24560         * gimple-builder.c : Likewise.
24561         * gimple-expr.c : Likewise.
24562         * gimple-fold.c : Likewise.
24563         * gimple-iterator.c : Likewise.
24564         * gimple-low.c : Likewise.
24565         * gimple-match-head.c : Likewise.
24566         * gimple-pretty-print.c : Likewise.
24567         * gimple-ssa-isolate-paths.c : Likewise.
24568         * gimple-ssa-strength-reduction.c : Likewise.
24569         * gimple-ssa.h : Likewise.
24570         * gimple-streamer-in.c : Likewise.
24571         * gimple-streamer-out.c : Likewise.
24572         * gimple-streamer.h : Likewise.
24573         * gimple-walk.c : Likewise.
24574         * gimple.c : Likewise.
24575         * gimplify-me.c : Likewise.
24576         * gimplify.c : Likewise.
24577         * godump.c : Likewise.
24578         * graph.c : Likewise.
24579         * graphds.c : Likewise.
24580         * graphite-blocking.c : Likewise.
24581         * graphite-dependences.c : Likewise.
24582         * graphite-interchange.c : Likewise.
24583         * graphite-isl-ast-to-gimple.c : Likewise.
24584         * graphite-optimize-isl.c : Likewise.
24585         * graphite-poly.c : Likewise.
24586         * graphite-scop-detection.c : Likewise.
24587         * graphite-sese-to-poly.c : Likewise.
24588         * graphite.c : Likewise.
24589         * haifa-sched.c : Likewise.
24590         * hard-reg-set.h : Likewise.
24591         * hw-doloop.c : Likewise.
24592         * ifcvt.c : Likewise.
24593         * inchash.c : Likewise.
24594         * incpath.c : Likewise.
24595         * init-regs.c : Likewise.
24596         * input.c : Likewise.
24597         * internal-fn.c : Likewise.
24598         * ipa-chkp.c : Likewise.
24599         * ipa-comdats.c : Likewise.
24600         * ipa-cp.c : Likewise.
24601         * ipa-devirt.c : Likewise.
24602         * ipa-icf-gimple.c : Likewise.
24603         * ipa-icf.c : Likewise.
24604         * ipa-inline-analysis.c : Likewise.
24605         * ipa-inline-transform.c : Likewise.
24606         * ipa-inline.c : Likewise.
24607         * ipa-polymorphic-call.c : Likewise.
24608         * ipa-profile.c : Likewise.
24609         * ipa-prop.c : Likewise.
24610         * ipa-pure-const.c : Likewise.
24611         * ipa-ref.c : Likewise.
24612         * ipa-reference.c : Likewise.
24613         * ipa-split.c : Likewise.
24614         * ipa-utils.c : Likewise.
24615         * ipa-visibility.c : Likewise.
24616         * ipa.c : Likewise.
24617         * ira-build.c : Likewise.
24618         * ira-color.c : Likewise.
24619         * ira-conflicts.c : Likewise.
24620         * ira-costs.c : Likewise.
24621         * ira-emit.c : Likewise.
24622         * ira-lives.c : Likewise.
24623         * ira.c : Likewise.
24624         * jump.c : Likewise.
24625         * langhooks.c : Likewise.
24626         * lcm.c : Likewise.
24627         * libfuncs.h : Likewise.
24628         * lists.c : Likewise.
24629         * loop-doloop.c : Likewise.
24630         * loop-init.c : Likewise.
24631         * loop-invariant.c : Likewise.
24632         * loop-iv.c : Likewise.
24633         * loop-unroll.c : Likewise.
24634         * lower-subreg.c : Likewise.
24635         * lra-assigns.c : Likewise.
24636         * lra-coalesce.c : Likewise.
24637         * lra-constraints.c : Likewise.
24638         * lra-eliminations.c : Likewise.
24639         * lra-lives.c : Likewise.
24640         * lra-remat.c : Likewise.
24641         * lra-spills.c : Likewise.
24642         * lra.c : Likewise.
24643         * lto-cgraph.c : Likewise.
24644         * lto-compress.c : Likewise.
24645         * lto-opts.c : Likewise.
24646         * lto-section-in.c : Likewise.
24647         * lto-section-out.c : Likewise.
24648         * lto-streamer-in.c : Likewise.
24649         * lto-streamer-out.c : Likewise.
24650         * lto-streamer.c : Likewise.
24651         * lto-streamer.h : Likewise.
24652         * mcf.c : Likewise.
24653         * mode-switching.c : Likewise.
24654         * modulo-sched.c : Likewise.
24655         * omega.c : Likewise.
24656         * omp-low.c : Likewise.
24657         * optabs.c : Likewise.
24658         * opts-global.c : Likewise.
24659         * opts.h : Likewise.
24660         * passes.c : Likewise.
24661         * plugin.c : Likewise.
24662         * postreload-gcse.c : Likewise.
24663         * postreload.c : Likewise.
24664         * predict.c : Likewise.
24665         * print-rtl.c : Likewise.
24666         * print-tree.c : Likewise.
24667         * profile.c : Likewise.
24668         * read-md.c : Likewise.
24669         * read-md.h : Likewise.
24670         * read-rtl.c : Likewise.
24671         * real.c : Likewise.
24672         * realmpfr.c : Likewise.
24673         * recog.c : Likewise.
24674         * ree.c : Likewise.
24675         * reg-stack.c : Likewise.
24676         * regcprop.c : Likewise.
24677         * reginfo.c : Likewise.
24678         * regrename.c : Likewise.
24679         * regstat.c : Likewise.
24680         * reload.c : Likewise.
24681         * reload1.c : Likewise.
24682         * reorg.c : Likewise.
24683         * resource.c : Likewise.
24684         * rtl-chkp.c : Likewise.
24685         * rtl.c : Likewise.
24686         * rtl.h : Likewise.
24687         * rtlanal.c : Likewise.
24688         * rtlhash.c : Likewise.
24689         * rtlhash.h : Likewise.
24690         * rtlhooks.c : Likewise.
24691         * sanopt.c : Likewise.
24692         * sched-deps.c : Likewise.
24693         * sched-ebb.c : Likewise.
24694         * sched-rgn.c : Likewise.
24695         * sched-vis.c : Likewise.
24696         * sdbout.c : Likewise.
24697         * sel-sched-dump.c : Likewise.
24698         * sel-sched-ir.c : Likewise.
24699         * sel-sched-ir.h : Likewise.
24700         * sel-sched.c : Likewise.
24701         * sese.c : Likewise.
24702         * shrink-wrap.c : Likewise.
24703         * shrink-wrap.h : Likewise.
24704         * simplify-rtx.c : Likewise.
24705         * stack-ptr-mod.c : Likewise.
24706         * statistics.c : Likewise.
24707         * stmt.c : Likewise.
24708         * stor-layout.c : Likewise.
24709         * store-motion.c : Likewise.
24710         * stringpool.c : Likewise.
24711         * symtab.c : Likewise.
24712         * target-globals.c : Likewise.
24713         * targhooks.c : Likewise.
24714         * tlink.c : Likewise.
24715         * toplev.c : Likewise.
24716         * tracer.c : Likewise.
24717         * trans-mem.c : Likewise.
24718         * tree-affine.c : Likewise.
24719         * tree-affine.h : Likewise.
24720         * tree-browser.c : Likewise.
24721         * tree-call-cdce.c : Likewise.
24722         * tree-cfg.c : Likewise.
24723         * tree-cfgcleanup.c : Likewise.
24724         * tree-chkp-opt.c : Likewise.
24725         * tree-chkp.c : Likewise.
24726         * tree-chrec.c : Likewise.
24727         * tree-complex.c : Likewise.
24728         * tree-data-ref.c : Likewise.
24729         * tree-dfa.c : Likewise.
24730         * tree-diagnostic.c : Likewise.
24731         * tree-dump.c : Likewise.
24732         * tree-eh.c : Likewise.
24733         * tree-eh.h : Likewise.
24734         * tree-emutls.c : Likewise.
24735         * tree-hasher.h : Likewise.
24736         * tree-if-conv.c : Likewise.
24737         * tree-inline.c : Likewise.
24738         * tree-inline.h : Likewise.
24739         * tree-into-ssa.c : Likewise.
24740         * tree-iterator.c : Likewise.
24741         * tree-loop-distribution.c : Likewise.
24742         * tree-nested.c : Likewise.
24743         * tree-nrv.c : Likewise.
24744         * tree-object-size.c : Likewise.
24745         * tree-outof-ssa.c : Likewise.
24746         * tree-parloops.c : Likewise.
24747         * tree-phinodes.c : Likewise.
24748         * tree-predcom.c : Likewise.
24749         * tree-pretty-print.c : Likewise.
24750         * tree-profile.c : Likewise.
24751         * tree-scalar-evolution.c : Likewise.
24752         * tree-sra.c : Likewise.
24753         * tree-ssa-address.c : Likewise.
24754         * tree-ssa-alias.c : Likewise.
24755         * tree-ssa-ccp.c : Likewise.
24756         * tree-ssa-coalesce.c : Likewise.
24757         * tree-ssa-copy.c : Likewise.
24758         * tree-ssa-copyrename.c : Likewise.
24759         * tree-ssa-dce.c : Likewise.
24760         * tree-ssa-dom.c : Likewise.
24761         * tree-ssa-dse.c : Likewise.
24762         * tree-ssa-forwprop.c : Likewise.
24763         * tree-ssa-ifcombine.c : Likewise.
24764         * tree-ssa-live.c : Likewise.
24765         * tree-ssa-loop-ch.c : Likewise.
24766         * tree-ssa-loop-im.c : Likewise.
24767         * tree-ssa-loop-ivcanon.c : Likewise.
24768         * tree-ssa-loop-ivopts.c : Likewise.
24769         * tree-ssa-loop-manip.c : Likewise.
24770         * tree-ssa-loop-niter.c : Likewise.
24771         * tree-ssa-loop-prefetch.c : Likewise.
24772         * tree-ssa-loop-unswitch.c : Likewise.
24773         * tree-ssa-loop.c : Likewise.
24774         * tree-ssa-math-opts.c : Likewise.
24775         * tree-ssa-operands.c : Likewise.
24776         * tree-ssa-phiopt.c : Likewise.
24777         * tree-ssa-phiprop.c : Likewise.
24778         * tree-ssa-pre.c : Likewise.
24779         * tree-ssa-propagate.c : Likewise.
24780         * tree-ssa-reassoc.c : Likewise.
24781         * tree-ssa-sccvn.c : Likewise.
24782         * tree-ssa-scopedtables.c : Likewise.
24783         * tree-ssa-sink.c : Likewise.
24784         * tree-ssa-strlen.c : Likewise.
24785         * tree-ssa-structalias.c : Likewise.
24786         * tree-ssa-tail-merge.c : Likewise.
24787         * tree-ssa-ter.c : Likewise.
24788         * tree-ssa-threadedge.c : Likewise.
24789         * tree-ssa-threadupdate.c : Likewise.
24790         * tree-ssa-uncprop.c : Likewise.
24791         * tree-ssa-uninit.c : Likewise.
24792         * tree-ssa.c : Likewise.
24793         * tree-ssanames.c : Likewise.
24794         * tree-stdarg.c : Likewise.
24795         * tree-streamer-in.c : Likewise.
24796         * tree-streamer-out.c : Likewise.
24797         * tree-streamer.c : Likewise.
24798         * tree-streamer.h : Likewise.
24799         * tree-switch-conversion.c : Likewise.
24800         * tree-tailcall.c : Likewise.
24801         * tree-vect-data-refs.c : Likewise.
24802         * tree-vect-generic.c : Likewise.
24803         * tree-vect-loop-manip.c : Likewise.
24804         * tree-vect-loop.c : Likewise.
24805         * tree-vect-patterns.c : Likewise.
24806         * tree-vect-slp.c : Likewise.
24807         * tree-vect-stmts.c : Likewise.
24808         * tree-vectorizer.c : Likewise.
24809         * tree-vectorizer.h : Likewise.
24810         * tree-vrp.c : Likewise.
24811         * tree.c : Likewise.
24812         * tsan.c : Likewise.
24813         * ubsan.c : Likewise.
24814         * valtrack.c : Likewise.
24815         * valtrack.h : Likewise.
24816         * value-prof.c : Likewise.
24817         * var-tracking.c : Likewise.
24818         * varasm.c : Likewise.
24819         * varpool.c : Likewise.
24820         * vec.c: Likewise.
24821         * vmsdbgout.c : Likewise.
24822         * vtable-verify.c : Likewise.
24823         * vtable-verify.h : Likewise.
24824         * web.c : Likewise.
24825         * wide-int.cc : Likewise.
24826         * xcoffout.c : Likewise.
24827         * config/aarch64/aarch64-builtins.c : Likewise.
24828         * config/aarch64/aarch64.c : Likewise.
24829         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
24830         * config/alpha/alpha.c : Likewise.
24831         * config/arc/arc.c : Likewise.
24832         * config/arm/aarch-common.c : Likewise.
24833         * config/arm/arm-builtins.c : Likewise.
24834         * config/arm/arm-c.c : Likewise.
24835         * config/arm/arm.c : Likewise.
24836         * config/avr/avr-c.c : Likewise.
24837         * config/avr/avr-log.c : Likewise.
24838         * config/avr/avr.c : Likewise.
24839         * config/bfin/bfin.c : Likewise.
24840         * config/c6x/c6x.c : Likewise.
24841         * config/cr16/cr16.c : Likewise.
24842         * config/cris/cris.c : Likewise.
24843         * config/darwin-c.c : Likewise.
24844         * config/darwin.c : Likewise.
24845         * config/default-c.c : Likewise.
24846         * config/epiphany/epiphany.c : Likewise.
24847         * config/epiphany/mode-switch-use.c : Likewise.
24848         * config/epiphany/resolve-sw-modes.c : Likewise.
24849         * config/fr30/fr30.c : Likewise.
24850         * config/frv/frv.c : Likewise.
24851         * config/ft32/ft32.c : Likewise.
24852         * config/glibc-c.c : Likewise.
24853         * config/h8300/h8300.c : Likewise.
24854         * config/i386/i386-c.c : Likewise.
24855         * config/i386/i386.c : Likewise.
24856         * config/i386/msformat-c.c : Likewise.
24857         * config/i386/winnt-cxx.c : Likewise.
24858         * config/i386/winnt-stubs.c : Likewise.
24859         * config/i386/winnt.c : Likewise.
24860         * config/ia64/ia64-c.c : Likewise.
24861         * config/ia64/ia64.c : Likewise.
24862         * config/iq2000/iq2000.c : Likewise.
24863         * config/lm32/lm32.c : Likewise.
24864         * config/m32c/m32c-pragma.c : Likewise.
24865         * config/m32c/m32c.c : Likewise.
24866         * config/m32r/m32r.c : Likewise.
24867         * config/m68k/m68k.c : Likewise.
24868         * config/mcore/mcore.c : Likewise.
24869         * config/mep/mep-pragma.c : Likewise.
24870         * config/mep/mep.c : Likewise.
24871         * config/microblaze/microblaze-c.c : Likewise.
24872         * config/microblaze/microblaze.c : Likewise.
24873         * config/mips/mips.c : Likewise.
24874         * config/mmix/mmix.c : Likewise.
24875         * config/mn10300/mn10300.c : Likewise.
24876         * config/moxie/moxie.c : Likewise.
24877         * config/msp430/msp430-c.c : Likewise.
24878         * config/msp430/msp430.c : Likewise.
24879         * config/nds32/nds32-cost.c : Likewise.
24880         * config/nds32/nds32-fp-as-gp.c : Likewise.
24881         * config/nds32/nds32-intrinsic.c : Likewise.
24882         * config/nds32/nds32-isr.c : Likewise.
24883         * config/nds32/nds32-md-auxiliary.c : Likewise.
24884         * config/nds32/nds32-memory-manipulation.c : Likewise.
24885         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
24886         * config/nds32/nds32-predicates.c : Likewise.
24887         * config/nds32/nds32.c : Likewise.
24888         * config/nios2/nios2.c : Likewise.
24889         * config/nvptx/nvptx.c : Likewise.
24890         * config/pa/pa.c : Likewise.
24891         * config/pdp11/pdp11.c : Likewise.
24892         * config/rl78/rl78-c.c : Likewise.
24893         * config/rl78/rl78.c : Likewise.
24894         * config/rs6000/rs6000-c.c : Likewise.
24895         * config/rs6000/rs6000.c : Likewise.
24896         * config/rx/rx.c : Likewise.
24897         * config/s390/s390-c.c : Likewise.
24898         * config/s390/s390.c : Likewise.
24899         * config/sh/sh-c.c : Likewise.
24900         * config/sh/sh-mem.cc : Likewise.
24901         * config/sh/sh.c : Likewise.
24902         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
24903         * config/sh/sh_treg_combine.cc : Likewise.
24904         * config/sol2-c.c : Likewise.
24905         * config/sol2-cxx.c : Likewise.
24906         * config/sol2-stubs.c : Likewise.
24907         * config/sol2.c : Likewise.
24908         * config/sparc/sparc-c.c : Likewise.
24909         * config/sparc/sparc.c : Likewise.
24910         * config/spu/spu-c.c : Likewise.
24911         * config/spu/spu.c : Likewise.
24912         * config/stormy16/stormy16.c : Likewise.
24913         * config/tilegx/mul-tables.c : Likewise.
24914         * config/tilegx/tilegx-c.c : Likewise.
24915         * config/tilegx/tilegx.c : Likewise.
24916         * config/tilepro/mul-tables.c : Likewise.
24917         * config/tilepro/tilepro-c.c : Likewise.
24918         * config/tilepro/tilepro.c : Likewise.
24919         * config/v850/v850-c.c : Likewise.
24920         * config/v850/v850.c : Likewise.
24921         * config/vax/vax.c : Likewise.
24922         * config/visium/visium.c : Likewise.
24923         * config/vms/vms-c.c : Likewise.
24924         * config/vms/vms.c : Likewise.
24925         * config/vxworks.c : Likewise.
24926         * config/winnt-c.c : Likewise.
24927         * config/xtensa/xtensa.c : Likewise.
24929 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
24931         PR lto/65378
24932         * ipa-utils.h (warn_types_mismatch): Update prototype.
24933         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
24934         parameters.
24935         (type_mismatch_p): New function.
24936         (warn_types_mismatch): Reorg to work better on non-C++ types.
24937         (odr_types_equivalent_p): Add loc1/loc2 parameters.
24938         (add_type_duplicate): Update.
24940 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24942         PR rtl-optimization/66444
24943         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
24944         call_used_regs.
24946 2015-06-08  Richard Biener  <rguenther@suse.de>
24948         PR tree-optimization/66422
24949         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
24950         block after inserted gcc_unreachable.
24952 2015-06-08  Nick Clifton  <nickc@redhat.com>
24954         * config/rx/rx.c (rx_function_value): Do not promote vector types.
24955         (rx_promote_function_mode): Likewise.
24956         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
24958 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
24960         * genattrtab.c (insn_alternatives): Change type from int *
24961         to uint64_t *.
24962         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
24963         (get_attr_value): Change type of num_alt to uint64_t.
24964         (compute_alternative_mask): Change return type from
24965         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
24966         (make_alternative_compare, mk_attr_alt): Change argument type
24967         from int to uint64_t.
24968         (simplify_test_exp): Change type of i from int to uint64_t.
24969         Shift ((uint64_t) 1) instead of 1 up.
24970         (main): Adjust oballocvec first argument from int to uint64_t.
24971         Shift ((uint64_t) 1) instead of 1 up.
24973 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
24975         PR other/65366
24976         * gdbhooks.py: Import sys.
24977         (intptr): New function.  Replace int(...) by intptr(...).
24979 2015-06-08  Richard Biener  <rguenther@suse.de>
24981         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
24982         adjustment for gaps at the end of a SLP load group properly.
24983         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
24984         all permutations we can generate.
24985         (vect_transform_slp_perm_load): Use the correct group-size.
24987 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
24989         * genmatch.c (expr::gen_transform): For conditions, guess the type
24990         from the second operand.
24992 2015-06-08  Tom de Vries  <tom@codesourcery.com>
24994         PR tree-optimization/66442
24995         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
24996         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
24997         if the loop latch is not a singleton.  Use
24998         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
25000 2015-06-08  Marek Polacek  <polacek@redhat.com>
25002         PR sanitizer/66452
25003         * toplev.c (check_global_declaration): Don't warn about artificial
25004         decls.
25006 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25008         PR tree-optimization/66436
25009         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
25010         dump file.
25011         * gimplify.c: Add tree-dump.h include.
25012         (gimplify_function_tree): Dump function to gimple dump file.
25013         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
25014         dump file.
25016 2015-06-08  Tom de Vries  <tom@codesourcery.com>
25018         PR tree-optimization/66435
25019         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
25020         function.
25022 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
25024         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
25025         of ptr_type_node to not be ptr_to_node.
25026         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
25027         TREE_TYPE of pointers.
25028         * gimple-expr.c (useless_type_conversion): Reorder the check for
25029         function pointers and TYPE_CANONICAL.
25031 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
25033         PR bootstrap/66319
25034         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
25035         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
25036         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
25037         later.
25038         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
25039         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
25040         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
25041         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
25042         and non iso if unix2003.
25044 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
25046         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
25048 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
25050         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
25051         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
25052         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
25053         except.c, final.c, function.c, gcse-common.c, genemit.c,
25054         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
25055         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
25056         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
25057         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
25058         more derived ones.
25060 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
25062         * combine.c (combine_split_insns): Remove cast.
25063         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
25064         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
25065         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
25066         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
25067         * genemit.c (gen_split): Change return type of generated functions to
25068         rtx_insn.
25069         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
25070         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
25071         gen_peephole2_* functions.
25072         (print_subroutine, main): Likewise.
25073         * recog.c (peephole2_optimize): Remove cast.
25074         (peep2_next_insn): Promote return type to rtx_insn.
25075         * recog.h (peep2_next_insn): Fix prototype.
25076         * rtl.h (try_split, split_insns): Likewise.
25078 2015-06-06  DJ Delorie  <dj@redhat.com>
25080         * config/msp430/msp430.c (msp430_asm_integer): Support addition
25081         and subtraction too.
25083 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25085         PR target/66410
25086         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
25087         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
25088         instead of Snd.  Disparage Sid/z alternative with '^'.
25090 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
25092         * dwarf2out.c: Remove deferred_locations*.
25093         (dwarf2_debug_hooks): Add early_finish hook.
25094         Remove global_decl hook.
25095         Add early_global_decl and late_global_decl hook.
25096         New global early_dwarf.
25097         New structure set_early_dwarf.
25098         (output_die): Indicate whether a DIE was generated early
25099         when generating assembly with -dA.
25100         (struct limbo_die_struct): Document created_for field.
25101         Remove file_table_last_lookup.
25102         (remove_AT): Return TRUE if successful.
25103         (remove_child_TAG): Clear die_parent.
25104         (reparent_child): New function abstracted from...
25105         (splice_child_die): ...here.
25106         (new_die): ICE if a DIE ends up in limbo too late.
25107         (check_die): New.
25108         (defer_location): Remove.
25109         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
25110         (fill_variable_array_bounds): New.
25111         (decl_start_label): Call fill_variable_array_bounds.
25112         (gen_formal_parameter_die): Rewrite to reuse previously generated
25113         DIEs.
25114         (gen_subprogram_die): Same.
25115         (gen_variable_die): Same.
25116         (gen_const_die): Same.
25117         (gen_label_die): Same.
25118         (gen_lexical_block_die): Same.
25119         (decl_will_get_specification_p): New.
25120         (local_function_static): New.
25121         (gen_struct_or_union_type_die): Fill in variable-length fields.
25122         (gen_typedef_die): Fill in variable-length typedefs.
25123         (gen_tagged_type_die): Gracefully return on error_mark_node.
25124         Handle re-entrancy.
25125         (gen_type_die_with_usage): Handle variable-length types.
25126         Remove duplicate code for ARRAY_TYPE case.
25127         (process_scope_var): Only process imported modules during early
25128         dwarf.
25129         (dwarf2out_early_global_decl): New.
25130         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
25131         (dwarf2out_type_decl): Set early_dwarf while calling
25132         dwarf2out_decl.
25133         (dwarf2out_decl): Verify that we did not recreate a previously
25134         generated DIE.
25135         Do not return on DECL_EXTERNALs in VAR_DECLs.
25136         Abstract some code to local_function_static.
25137         (lookup_filename): Remove use of file_table_last_lookup.
25138         Gracefully exit on missing file_name.
25139         (dwarf2out_finish): Verify limbo list.
25140         Remove deferred_locations_list use.
25141         Move deferred_asm_name and limbo flushing to...
25142         (dwarf2out_early_finish): ...here.  New.
25143         (dwarf2out_c_finalize): Remove set of deferred_location_list,
25144         deferred_asm_name, and file_table_last_lookup.
25145         * cgraph.h (referred_to_p): Add default argument.
25146         * cgraphunit.c (referred_to_p): Add and handle include_self
25147         argument.
25148         (analyze_functions): Add first_time argument.
25149         Call check_global_declaration for all symbols.
25150         Call late_global_decl for nodes for moribund nodes.
25151         (finalize_compilation_unit): Add new argument to
25152         analyze_functions.
25153         Call early_global_decl for functions.
25154         Call early_finish debug hook.
25155         * dbxout.c (dbxout_early_global_decl): New.
25156         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
25157         (dbx_debug_hooks): Add new hooks.
25158         (xcoff_debug_hooks): Same.
25159         * debug.c (do_nothing_debug_hooks): Add early_finish field.
25160         Add early and late debug hooks.
25161         Remove global_decl hook.
25162         * debug.h (struct gcc_debug_hooks): Add early_finish,
25163         early_global_decl, and late_global_decl fields.
25164         Remove global_decl field.
25165         Document gcc_debug_hooks.
25166         * gengtype.c (output_typename): Remove.
25167         * godump.c (go_early_global_decl): New.
25168         (go_late_global_decl): New.
25169         (go_global_decl): Remove.
25170         (dump_go_spec_init): Remove global_decl.  Add
25171         {early,late}_global_decl.
25172         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
25173         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
25174         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
25175         (write_global_declarations): Remove.
25176         (global_decl_processing): New.
25177         * langhooks.h (struct lang_hooks_for_decls): Remove
25178         final_write_globals field.
25179         Add post_compilation_parsing_cleanups field.
25180         * passes.c (rest_of_decl_compilation): Call early_global_decl.
25181         * sdbout.c: Add early and late_global_decl hooks.  Remove
25182         sdbout_global_decl hook.
25183         Add early_finish field for sdb_debug_hooks.
25184         (sdbout_global_decl): Remove.
25185         (sdbout_early_global_decl): New.
25186         (sdbout_late_global_decl): New.
25187         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
25188         * toplev.c (check_global_declaration): Rename from
25189         check_global_declaration_1.
25190         Adapt to use symtab infrastructure.
25191         (check_global_declarations): Remove.
25192         (emit_debug_global_declarations): Remove.
25193         (compile_file): Remove call to final_write_globals langhook.
25194         Run the actual compilation process.
25195         Perform any post compilation parser cleanups.
25196         Generate late debug info.
25197         * toplev.h (check_global_declaration): New.
25198         (check_global_declaration_1): Remove.
25199         (check_global_declarations): Remove.
25200         (write_global_declarations): Remove.
25201         (emit_debug_global_declarations): Remove.
25202         (global_decl_processing): New.
25203         * tree-core.h (struct tree_block): Add DIE field.
25204         * tree.h (BLOCK_DIE): New.
25205         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
25206         throughout.
25207         (vmsdbgout_early_global_decl): New.
25208         (vmsdbgout_late_global_decl): New.
25209         Add early_finish debug hook field to vmsdbg_debug_hooks.
25210         Remove vmsdbgout_decl to vmsdbgout_function_decl.
25211         Add early and late_global_decl debug hooks.
25213 2015-06-05  Julian Brown  <julian@codesourcery.com>
25214             Sandra Loosemore  <sandra@codesourcery.com>
25216         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
25217         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
25218         to print-sysroot-suffix.sh script.
25220 2015-06-05  Tom de Vries  <tom@codesourcery.com>
25222         merge from gomp4 branch:
25223         2015-05-28  Tom de Vries  <tom@codesourcery.com>
25225         PR tree-optimization/65443
25226         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
25227         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
25228         (try_transform_to_exit_first_loop_alt): New function.
25229         (transform_to_exit_first_loop): Use
25230         try_transform_to_exit_first_loop_alt.
25232 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
25234         * builtins.c (expand_builtin_atomic_compare_exchange): Call
25235         emit_cmp_and_jump_insns with the mode of target.
25237 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25239         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
25241 2015-06-04  DJ Delorie  <dj@redhat.com>
25243         * config/msp430/msp430.md (movsi_s): New.  Special case for
25244         storing a 20-bit symbol into a 32-bit register.
25245         * config/msp430/msp430.c (msp430_subreg): Add support for it.
25246         * config/msp430/predicates.md (msp430_symbol_operand): New.
25248 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
25250         * c-family/c-common.c (noplt): New attribute.
25251         (handle_noplt_attribute): New handler.
25252         * calls.c (prepare_call_address): Check for noplt
25253         attribute.
25254         * config/i386/i386.c (ix86_expand_call): Check
25255         for noplt attribute.
25256         (ix86_nopic_noplt_attribute_p): New function.
25257         (ix86_output_call_insn): Output indirect call for non-pic
25258         no plt calls.
25259         * doc/extend.texi (noplt): Document new attribute.
25260         * doc/invoke.texi: Document new attribute.
25262 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
25264         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
25265         real.h, and fixed-value.h when included in host source files.
25266         * double-int.h: Remove redundant #includes listed above.
25267         * fixed-value.h: Likewise.
25268         * real.h: Likewise.
25269         * wide-int.h: Likewise.
25270         * inchash.h: Likewise.
25271         * rtl.h: Add some include files When included from a generator file.
25272         * target.h: Remove wide-int.h and insn-modes.h from the include list.
25273         * internal-fn.h: Don't include coretypes.h.
25274         * alias.c: Adjust includes for restructured coretypes.h.
25275         * asan.c: Likewise.
25276         * attribs.c: Likewise.
25277         * auto-inc-dec.c: Likewise.
25278         * auto-profile.c: Likewise.
25279         * bb-reorder.c: Likewise.
25280         * bt-load.c: Likewise.
25281         * builtins.c: Likewise.
25282         * caller-save.c: Likewise.
25283         * calls.c: Likewise.
25284         * ccmp.c: Likewise.
25285         * cfg.c: Likewise.
25286         * cfganal.c: Likewise.
25287         * cfgbuild.c: Likewise.
25288         * cfgcleanup.c: Likewise.
25289         * cfgexpand.c: Likewise.
25290         * cfghooks.c: Likewise.
25291         * cfgloop.c: Likewise.
25292         * cfgloop.h: Likewise.
25293         * cfgloopanal.c: Likewise.
25294         * cfgloopmanip.c: Likewise.
25295         * cfgrtl.c: Likewise.
25296         * cgraph.c: Likewise.
25297         * cgraphbuild.c: Likewise.
25298         * cgraphclones.c: Likewise.
25299         * cgraphunit.c: Likewise.
25300         * cilk-common.c: Likewise.
25301         * combine-stack-adj.c: Likewise.
25302         * combine.c: Likewise.
25303         * compare-elim.c: Likewise.
25304         * convert.c: Likewise.
25305         * coverage.c: Likewise.
25306         * cppbuiltin.c: Likewise.
25307         * cprop.c: Likewise.
25308         * cse.c: Likewise.
25309         * cselib.c: Likewise.
25310         * data-streamer-in.c: Likewise.
25311         * data-streamer-out.c: Likewise.
25312         * data-streamer.c: Likewise.
25313         * dbxout.c: Likewise.
25314         * dce.c: Likewise.
25315         * ddg.c: Likewise.
25316         * debug.c: Likewise.
25317         * df-core.c: Likewise.
25318         * df-problems.c: Likewise.
25319         * df-scan.c: Likewise.
25320         * df.h: Likewise.
25321         * dfp.c: Likewise.
25322         * dojump.c: Likewise.
25323         * dominance.c: Likewise.
25324         * domwalk.c: Likewise.
25325         * double-int.c: Likewise.
25326         * dse.c: Likewise.
25327         * dumpfile.c: Likewise.
25328         * dwarf2asm.c: Likewise.
25329         * dwarf2cfi.c: Likewise.
25330         * dwarf2out.c: Likewise.
25331         * dwarf2out.h: Likewise.
25332         * emit-rtl.c: Likewise.
25333         * et-forest.c: Likewise.
25334         * except.c: Likewise.
25335         * explow.c: Likewise.
25336         * expmed.c: Likewise.
25337         * expr.c: Likewise.
25338         * final.c: Likewise.
25339         * fixed-value.c: Likewise.
25340         * fold-const.c: Likewise.
25341         * function.c: Likewise.
25342         * fwprop.c: Likewise.
25343         * gcc-plugin.h: Likewise.
25344         * gcse.c: Likewise.
25345         * generic-match-head.c: Likewise.
25346         * ggc-page.c: Likewise.
25347         * gimple-builder.c: Likewise.
25348         * gimple-expr.c: Likewise.
25349         * gimple-fold.c: Likewise.
25350         * gimple-iterator.c: Likewise.
25351         * gimple-low.c: Likewise.
25352         * gimple-match-head.c: Likewise.
25353         * gimple-pretty-print.c: Likewise.
25354         * gimple-ssa-isolate-paths.c: Likewise.
25355         * gimple-ssa-strength-reduction.c: Likewise.
25356         * gimple-streamer-in.c: Likewise.
25357         * gimple-streamer-out.c: Likewise.
25358         * gimple-streamer.h: Likewise.
25359         * gimple-walk.c: Likewise.
25360         * gimple.c: Likewise.
25361         * gimplify-me.c: Likewise.
25362         * gimplify.c: Likewise.
25363         * godump.c: Likewise.
25364         * graph.c: Likewise.
25365         * graphite-blocking.c: Likewise.
25366         * graphite-dependences.c: Likewise.
25367         * graphite-interchange.c: Likewise.
25368         * graphite-isl-ast-to-gimple.c: Likewise.
25369         * graphite-optimize-isl.c: Likewise.
25370         * graphite-poly.c: Likewise.
25371         * graphite-scop-detection.c: Likewise.
25372         * graphite-sese-to-poly.c: Likewise.
25373         * graphite.c: Likewise.
25374         * haifa-sched.c: Likewise.
25375         * hooks.h: Likewise.
25376         * hw-doloop.c: Likewise.
25377         * ifcvt.c: Likewise.
25378         * incpath.c: Likewise.
25379         * init-regs.c: Likewise.
25380         * internal-fn.c: Likewise.
25381         * ipa-chkp.c: Likewise.
25382         * ipa-comdats.c: Likewise.
25383         * ipa-cp.c: Likewise.
25384         * ipa-devirt.c: Likewise.
25385         * ipa-icf-gimple.c: Likewise.
25386         * ipa-icf.c: Likewise.
25387         * ipa-inline-analysis.c: Likewise.
25388         * ipa-inline-transform.c: Likewise.
25389         * ipa-inline.c: Likewise.
25390         * ipa-polymorphic-call.c: Likewise.
25391         * ipa-profile.c: Likewise.
25392         * ipa-prop.c: Likewise.
25393         * ipa-pure-const.c: Likewise.
25394         * ipa-ref.c: Likewise.
25395         * ipa-reference.c: Likewise.
25396         * ipa-split.c: Likewise.
25397         * ipa-utils.c: Likewise.
25398         * ipa-visibility.c: Likewise.
25399         * ipa.c: Likewise.
25400         * ira-build.c: Likewise.
25401         * ira-color.c: Likewise.
25402         * ira-conflicts.c: Likewise.
25403         * ira-costs.c: Likewise.
25404         * ira-emit.c: Likewise.
25405         * ira-lives.c: Likewise.
25406         * ira.c: Likewise.
25407         * jump.c: Likewise.
25408         * langhooks.c: Likewise.
25409         * lcm.c: Likewise.
25410         * loop-doloop.c: Likewise.
25411         * loop-init.c: Likewise.
25412         * loop-invariant.c: Likewise.
25413         * loop-iv.c: Likewise.
25414         * loop-unroll.c: Likewise.
25415         * lower-subreg.c: Likewise.
25416         * lra-assigns.c: Likewise.
25417         * lra-coalesce.c: Likewise.
25418         * lra-constraints.c: Likewise.
25419         * lra-eliminations.c: Likewise.
25420         * lra-lives.c: Likewise.
25421         * lra-remat.c: Likewise.
25422         * lra-spills.c: Likewise.
25423         * lra.c: Likewise.
25424         * lto-cgraph.c: Likewise.
25425         * lto-compress.c: Likewise.
25426         * lto-opts.c: Likewise.
25427         * lto-section-in.c: Likewise.
25428         * lto-section-out.c: Likewise.
25429         * lto-streamer-in.c: Likewise.
25430         * lto-streamer-out.c: Likewise.
25431         * lto-streamer.c: Likewise.
25432         * mcf.c: Likewise.
25433         * mode-switching.c: Likewise.
25434         * modulo-sched.c: Likewise.
25435         * omega.c: Likewise.
25436         * omp-low.c: Likewise.
25437         * optabs.c: Likewise.
25438         * opts-global.c: Likewise.
25439         * passes.c: Likewise.
25440         * plugin.c: Likewise.
25441         * postreload-gcse.c: Likewise.
25442         * postreload.c: Likewise.
25443         * predict.c: Likewise.
25444         * print-rtl.c: Likewise.
25445         * print-tree.c: Likewise.
25446         * profile.c: Likewise.
25447         * real.c: Likewise.
25448         * realmpfr.c: Likewise.
25449         * realmpfr.h: Likewise.
25450         * recog.c: Likewise.
25451         * ree.c: Likewise.
25452         * reg-stack.c: Likewise.
25453         * regcprop.c: Likewise.
25454         * reginfo.c: Likewise.
25455         * regrename.c: Likewise.
25456         * regs.h: Likewise.
25457         * regstat.c: Likewise.
25458         * reload.c: Likewise.
25459         * reload1.c: Likewise.
25460         * reorg.c: Likewise.
25461         * resource.c: Likewise.
25462         * rtl-chkp.c: Likewise.
25463         * rtlanal.c: Likewise.
25464         * rtlhooks.c: Likewise.
25465         * sanopt.c: Likewise.
25466         * sched-deps.c: Likewise.
25467         * sched-ebb.c: Likewise.
25468         * sched-rgn.c: Likewise.
25469         * sched-vis.c: Likewise.
25470         * sdbout.c: Likewise.
25471         * sel-sched-dump.c: Likewise.
25472         * sel-sched-ir.c: Likewise.
25473         * sel-sched.c: Likewise.
25474         * sese.c: Likewise.
25475         * shrink-wrap.c: Likewise.
25476         * shrink-wrap.h: Likewise.
25477         * simplify-rtx.c: Likewise.
25478         * stack-ptr-mod.c: Likewise.
25479         * statistics.c: Likewise.
25480         * stmt.c: Likewise.
25481         * stor-layout.c: Likewise.
25482         * store-motion.c: Likewise.
25483         * stringpool.c: Likewise.
25484         * symtab.c: Likewise.
25485         * target-globals.c: Likewise.
25486         * targhooks.c: Likewise.
25487         * toplev.c: Likewise.
25488         * tracer.c: Likewise.
25489         * trans-mem.c: Likewise.
25490         * tree-affine.c: Likewise.
25491         * tree-affine.h: Likewise.
25492         * tree-browser.c: Likewise.
25493         * tree-call-cdce.c: Likewise.
25494         * tree-cfg.c: Likewise.
25495         * tree-cfgcleanup.c: Likewise.
25496         * tree-chkp-opt.c: Likewise.
25497         * tree-chkp.c: Likewise.
25498         * tree-chrec.c: Likewise.
25499         * tree-complex.c: Likewise.
25500         * tree-data-ref.c: Likewise.
25501         * tree-dfa.c: Likewise.
25502         * tree-diagnostic.c: Likewise.
25503         * tree-dump.c: Likewise.
25504         * tree-eh.c: Likewise.
25505         * tree-emutls.c: Likewise.
25506         * tree-if-conv.c: Likewise.
25507         * tree-inline.c: Likewise.
25508         * tree-into-ssa.c: Likewise.
25509         * tree-iterator.c: Likewise.
25510         * tree-loop-distribution.c: Likewise.
25511         * tree-nested.c: Likewise.
25512         * tree-nrv.c: Likewise.
25513         * tree-object-size.c: Likewise.
25514         * tree-outof-ssa.c: Likewise.
25515         * tree-parloops.c: Likewise.
25516         * tree-phinodes.c: Likewise.
25517         * tree-predcom.c: Likewise.
25518         * tree-pretty-print.c: Likewise.
25519         * tree-pretty-print.h: Likewise.
25520         * tree-profile.c: Likewise.
25521         * tree-scalar-evolution.c: Likewise.
25522         * tree-sra.c: Likewise.
25523         * tree-ssa-address.c: Likewise.
25524         * tree-ssa-alias.c: Likewise.
25525         * tree-ssa-ccp.c: Likewise.
25526         * tree-ssa-coalesce.c: Likewise.
25527         * tree-ssa-copy.c: Likewise.
25528         * tree-ssa-copyrename.c: Likewise.
25529         * tree-ssa-dce.c: Likewise.
25530         * tree-ssa-dom.c: Likewise.
25531         * tree-ssa-dse.c: Likewise.
25532         * tree-ssa-forwprop.c: Likewise.
25533         * tree-ssa-ifcombine.c: Likewise.
25534         * tree-ssa-live.c: Likewise.
25535         * tree-ssa-loop-ch.c: Likewise.
25536         * tree-ssa-loop-im.c: Likewise.
25537         * tree-ssa-loop-ivcanon.c: Likewise.
25538         * tree-ssa-loop-ivopts.c: Likewise.
25539         * tree-ssa-loop-manip.c: Likewise.
25540         * tree-ssa-loop-niter.c: Likewise.
25541         * tree-ssa-loop-prefetch.c: Likewise.
25542         * tree-ssa-loop-unswitch.c: Likewise.
25543         * tree-ssa-loop.c: Likewise.
25544         * tree-ssa-loop.h: Likewise.
25545         * tree-ssa-math-opts.c: Likewise.
25546         * tree-ssa-operands.c: Likewise.
25547         * tree-ssa-phiopt.c: Likewise.
25548         * tree-ssa-phiprop.c: Likewise.
25549         * tree-ssa-pre.c: Likewise.
25550         * tree-ssa-propagate.c: Likewise.
25551         * tree-ssa-reassoc.c: Likewise.
25552         * tree-ssa-sccvn.c: Likewise.
25553         * tree-ssa-scopedtables.c: Likewise.
25554         * tree-ssa-sink.c: Likewise.
25555         * tree-ssa-strlen.c: Likewise.
25556         * tree-ssa-structalias.c: Likewise.
25557         * tree-ssa-tail-merge.c: Likewise.
25558         * tree-ssa-ter.c: Likewise.
25559         * tree-ssa-threadedge.c: Likewise.
25560         * tree-ssa-threadupdate.c: Likewise.
25561         * tree-ssa-uncprop.c: Likewise.
25562         * tree-ssa-uninit.c: Likewise.
25563         * tree-ssa.c: Likewise.
25564         * tree-ssanames.c: Likewise.
25565         * tree-stdarg.c: Likewise.
25566         * tree-streamer-in.c: Likewise.
25567         * tree-streamer-out.c: Likewise.
25568         * tree-streamer.c: Likewise.
25569         * tree-switch-conversion.c: Likewise.
25570         * tree-tailcall.c: Likewise.
25571         * tree-vect-data-refs.c: Likewise.
25572         * tree-vect-generic.c: Likewise.
25573         * tree-vect-loop-manip.c: Likewise.
25574         * tree-vect-loop.c: Likewise.
25575         * tree-vect-patterns.c: Likewise.
25576         * tree-vect-slp.c: Likewise.
25577         * tree-vect-stmts.c: Likewise.
25578         * tree-vectorizer.c: Likewise.
25579         * tree-vrp.c: Likewise.
25580         * tree.c: Likewise.
25581         * tsan.c: Likewise.
25582         * ubsan.c: Likewise.
25583         * valtrack.c: Likewise.
25584         * value-prof.c: Likewise.
25585         * var-tracking.c: Likewise.
25586         * varasm.c: Likewise.
25587         * varpool.c: Likewise.
25588         * vmsdbgout.c: Likewise.
25589         * vtable-verify.c: Likewise.
25590         * web.c: Likewise.
25591         * wide-int-print.cc: Likewise.
25592         * wide-int-print.h: Likewise.
25593         * wide-int.cc: Likewise.
25594         * xcoffout.c: Likewise.
25595         * config/aarch64/aarch64-builtins.c: Likewise.
25596         * config/aarch64/aarch64.c: Likewise.
25597         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25598         * config/alpha/alpha.c: Likewise.
25599         * config/arc/arc.c: Likewise.
25600         * config/arm/aarch-common.c: Likewise.
25601         * config/arm/arm-builtins.c: Likewise.
25602         * config/arm/arm-c.c: Likewise.
25603         * config/arm/arm.c: Likewise.
25604         * config/avr/avr-c.c: Likewise.
25605         * config/avr/avr-log.c: Likewise.
25606         * config/avr/avr.c: Likewise.
25607         * config/bfin/bfin.c: Likewise.
25608         * config/c6x/c6x.c: Likewise.
25609         * config/cr16/cr16.c: Likewise.
25610         * config/cris/cris.c: Likewise.
25611         * config/darwin-c.c: Likewise.
25612         * config/darwin.c: Likewise.
25613         * config/default-c.c: Likewise.
25614         * config/epiphany/epiphany.c: Likewise.
25615         * config/epiphany/mode-switch-use.c: Likewise.
25616         * config/epiphany/resolve-sw-modes.c: Likewise.
25617         * config/fr30/fr30.c: Likewise.
25618         * config/frv/frv.c: Likewise.
25619         * config/ft32/ft32.c: Likewise.
25620         * config/glibc-c.c: Likewise.
25621         * config/h8300/h8300.c: Likewise.
25622         * config/i386/i386-c.c: Likewise.
25623         * config/i386/i386.c: Likewise.
25624         * config/i386/msformat-c.c: Likewise.
25625         * config/i386/winnt-cxx.c: Likewise.
25626         * config/i386/winnt-stubs.c: Likewise.
25627         * config/i386/winnt.c: Likewise.
25628         * config/ia64/ia64-c.c: Likewise.
25629         * config/ia64/ia64.c: Likewise.
25630         * config/iq2000/iq2000.c: Likewise.
25631         * config/lm32/lm32.c: Likewise.
25632         * config/m32c/m32c-pragma.c: Likewise.
25633         * config/m32c/m32c.c: Likewise.
25634         * config/m32r/m32r.c: Likewise.
25635         * config/m68k/m68k.c: Likewise.
25636         * config/mcore/mcore.c: Likewise.
25637         * config/mep/mep-pragma.c: Likewise.
25638         * config/mep/mep.c: Likewise.
25639         * config/microblaze/microblaze-c.c: Likewise.
25640         * config/microblaze/microblaze.c: Likewise.
25641         * config/mips/mips.c: Likewise.
25642         * config/mmix/mmix.c: Likewise.
25643         * config/mn10300/mn10300.c: Likewise.
25644         * config/moxie/moxie.c: Likewise.
25645         * config/msp430/msp430-c.c: Likewise.
25646         * config/msp430/msp430.c: Likewise.
25647         * config/nds32/nds32-cost.c: Likewise.
25648         * config/nds32/nds32-fp-as-gp.c: Likewise.
25649         * config/nds32/nds32-intrinsic.c: Likewise.
25650         * config/nds32/nds32-isr.c: Likewise.
25651         * config/nds32/nds32-md-auxiliary.c: Likewise.
25652         * config/nds32/nds32-memory-manipulation.c: Likewise.
25653         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25654         * config/nds32/nds32-predicates.c: Likewise.
25655         * config/nds32/nds32.c: Likewise.
25656         * config/nios2/nios2.c: Likewise.
25657         * config/nvptx/nvptx.c: Likewise.
25658         * config/pa/pa.c: Likewise.
25659         * config/pdp11/pdp11.c: Likewise.
25660         * config/rl78/rl78-c.c: Likewise.
25661         * config/rl78/rl78.c: Likewise.
25662         * config/rs6000/rs6000-c.c: Likewise.
25663         * config/rs6000/rs6000.c: Likewise.
25664         * config/rx/rx.c: Likewise.
25665         * config/s390/s390-c.c: Likewise.
25666         * config/s390/s390.c: Likewise.
25667         * config/sh/sh-c.c: Likewise.
25668         * config/sh/sh-mem.cc: Likewise.
25669         * config/sh/sh.c: Likewise.
25670         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25671         * config/sh/sh_treg_combine.cc: Likewise.
25672         * config/sol2-c.c: Likewise.
25673         * config/sol2-cxx.c: Likewise.
25674         * config/sol2-stubs.c: Likewise.
25675         * config/sol2.c: Likewise.
25676         * config/sparc/sparc-c.c: Likewise.
25677         * config/sparc/sparc.c: Likewise.
25678         * config/spu/spu-c.c: Likewise.
25679         * config/spu/spu.c: Likewise.
25680         * config/stormy16/stormy16.c: Likewise.
25681         * config/tilegx/mul-tables.c: Likewise.
25682         * config/tilegx/tilegx-c.c: Likewise.
25683         * config/tilegx/tilegx.c: Likewise.
25684         * config/tilepro/mul-tables.c: Likewise.
25685         * config/tilepro/tilepro-c.c: Likewise.
25686         * config/tilepro/tilepro.c: Likewise.
25687         * config/v850/v850-c.c: Likewise.
25688         * config/v850/v850.c: Likewise.
25689         * config/vax/vax.c: Likewise.
25690         * config/visium/visium.c: Likewise.
25691         * config/vms/vms-c.c: Likewise.
25692         * config/vms/vms.c: Likewise.
25693         * config/vxworks.c: Likewise.
25694         * config/winnt-c.c: Likewise.
25695         * config/xtensa/xtensa.c: Likewise.
25696         * common/config/bfin/bfin-common.c: Likewise.
25698 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
25700         * tree.h (tree_code_for_canonical_type_merging): New function.
25701         * tree.c (gimple_canonical_types_compatible_p): Use
25702         tree_code_for_canonical_type_merging..
25704 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25706         PR c++/66192
25707         PR target/66200
25708         * doc/tm.texi: Regenerate.
25709         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
25710         * target.def (TARGET_RELAXED_ORDERING): Likewise.
25711         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
25712         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
25713         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
25714         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
25715         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
25716         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
25717         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
25719 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25721         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
25722         register fma steering pass.
25723         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
25724         AARCH64_TUNE_FMA_STEERING.
25726 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
25728         * tree.c (verify_type_variant): Verify that type and variant is
25729         compatible.
25730         (gimple_canonical_types_compatible_p): Look for main variants.
25732 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25734         * config.gcc (powerpc*-*-*): Add support for a new configure
25735         option --with-advance-toolchain=<xxx> which overrides using the
25736         default header files, libraries and dynamic linker.
25738         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
25739         specs to support the configure --with-advance-toolchain=<xxx>
25740         option.
25741         (INCLUDE_EXTRA_SPEC): Likewise.
25742         (LINK_OS_EXTRA_SPEC32): Likewise.
25743         (LINK_OK_EXTRA_SPEC64): Likewise.
25744         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
25745         (DYNAMIC_LINKER_PREFIX): Likewise.
25746         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
25747         toolchain support.
25748         (GLIBC_DYNAMIC_LINKER32): Likewise.
25749         (GLIBC_DYNAMIC_LINKER64): Likewise.
25750         (LINK_OS_LINUX_SPEC32): Likewise.
25751         (LINK_OS_LINUX_SPEC64): Likewise.
25753         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
25754         configuration option.
25756 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
25758         PR target/66275
25759         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
25760         to determine current function ABI.
25761         (ix86_function_value_regno_p): Ditto.
25763 2015-06-03  Martin Liska  <mliska@suse.cz>
25765         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
25766         * bitmap.h (struct bitmap_usage): Likewise.
25767         * ggc-common.c (struct ggc_usage): Likewise.
25768         * mem-stats.h (struct mem_location): Likewise.
25769         (struct mem_usage): Likewise.
25770         * vec.c (struct vec_usage): Likewise.
25772 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
25774         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
25775         -Bsymbolic.
25777 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
25779         * doc/plugins.texi (enum plugin_event): New event.
25780         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
25781         and PLUGIN_FINISH_FUNCTION.
25782         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
25783         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
25785 2015-06-03  Richard Biener  <rguenther@suse.de>
25787         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25788         compute GROUP_GAP for the first element.
25789         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
25790         on in-group gaps.
25792 2015-06-03  Nick Clifton  <nickc@redhat.com>
25794         * config/rl78/rl78-real.md: Add peepholes to avoid a register
25795         copy when calling a function.
25796         * config/rl78/rl78.c (need_to_save): Do not push the frame
25797         pointer in an interrupt handler prologue if it is never used.
25799 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25801         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
25803 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25805         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
25806         reference when cloning alias node.
25808 2015-06-03  Martin Liska  <mliska@suse.cz>
25810         * alloc-pool.h (struct pool_usage): Correct space padding.
25811         * ggc-page.c (ggc_print_statistics): Align columns in a report.
25812         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
25813         * tree.c (dump_tree_statistics): Align columns in a report.
25815 2015-06-03  Martin Liska  <mliska@suse.cz>
25817         * alloc-pool.c (allocate_pool_descriptor): Remove.
25818         (struct pool_output_info): Likewise.
25819         (print_alloc_pool_statistics): Likewise.
25820         (dump_alloc_pool_statistics): Likewise.
25821         * alloc-pool.h (struct pool_usage): New struct.
25822         (pool_allocator::initialize): Change usage of memory statistics
25823         to a new interface.
25824         (pool_allocator::release): Likewise.
25825         (pool_allocator::allocate): Likewise.
25826         (pool_allocator::remove): Likewise.
25827         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
25828         for a pool allocator.
25829         * mem-stats.h (struct mem_location): Add new ctor.
25830         (struct mem_usage): Add counter for number of
25831         instances.
25832         (mem_alloc_description::register_descriptor): New overload of
25833         * mem-stats.h (mem_location::to_string): New function.
25834         * bitmap.h (struct bitmap_usage): Use this new function.
25835         * ggc-common.c (struct ggc_usage): Likewise.
25836         the function.
25838 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25840         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
25841         of GCC_INSN_FLAGS_H block.
25843 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25845         * explow.c (plus_constant): Update check after force_const_mem call
25846         to see if the value returned is not a NULL_RTX.
25848 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
25850         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
25851         remove instumentation thunks calling reachable functions.
25852         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
25853         * lto/lto-partition.c (privatize_symbol_name_1): New.
25854         (privatize_symbol_name): Privatize both decl and orig_decl
25855         names for instrumented functions.
25856         * cgraph.c (cgraph_node::verify_node): Add transparent
25857         alias chain check for instrumented node.
25859 2015-06-03  Marek Polacek  <polacek@redhat.com>
25861         PR c/64223
25862         PR c/29358
25863         * tree.c (attribute_value_equal): Handle attribute format.
25864         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
25866 2015-06-03  Richard Biener  <rguenther@suse.de>
25868         PR tree-optimization/63916
25869         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
25870         Forward-propagate non-invariant addresses by splicing their
25871         reference ops if the result isn't going to be used by PRE.
25872         (vn_reference_lookup_3): Remove pointless assert.
25874 2015-06-03  Richard Biener  <rguenther@suse.de>
25876         PR tree-optimization/66375
25877         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
25878         add to the evolution before following SSA edges.
25880 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
25882         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
25883         (dump_use, dump_cand, find_induction_variables): Pass new argument
25884         to dump_iv.
25885         (record_use): Preserve the ssa name information in IV.
25887 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
25889         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
25890         NO_MODE_TEST.
25891         (add_mode_tests): Don't add mode tests if the predicate only
25892         accepts scalar constant integers.  Otherwise, allow the mode
25893         of "op" to be VOIDmode if the predicate does accept such integers.
25895 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
25897         PR target/66258
25898         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
25899         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
25900         (aarch64_secondary_reload): Likewise
25901         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
25902         to !TARGET_FLOAT.
25903         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
25904         Likewise.
25906 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
25907             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25909         PR target/65768
25910         * cprop.c (try_replace_reg): Check cost of constants before propagating.
25912 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25914         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
25915         provide access to the IBM extended double floating point mode if
25916         long double is IEEE 128-bit floating point.
25917         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
25918         point if long double is the IBM extended double type.
25920         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
25921         enable adding IEEE 128-bit floating point support.
25922         (-mfloat128-software): Likewise.
25923         (-mfloat128-sw): Likewise.
25925         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
25926         128-bit floating point types to occupy any register if
25927         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
25928         -mfloat128-software is enabled.
25929         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
25930         support.
25931         (rs6000_option_override_internal): Add -mfloat128-* support.
25932         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
25934         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
25935         and float128 type nodes.
25936         (ieee128_float_type_node): Likewise.
25937         (ibm128_float_type_node): Likewise.
25939 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25941         PR target/66136
25942         * config/aarch64/geniterators.sh: Rewrite in awk.
25944 2015-06-02  Martin Liska  <mliska@suse.cz>
25946         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
25947         values to avoid -Wmaybe-uninitialized errors.
25949 2015-06-02  Richard Biener  <rguenther@suse.de>
25951         PR debug/65549
25952         * dwarf2out.c (lookup_context_die): New function.
25953         (resolve_addr): Avoid forcing a full DIE for the
25954         target of a DW_TAG_GNU_call_site during late compilation.
25955         Instead create a stub DIE without a type if we have a
25956         context DIE present.
25958 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
25960         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
25962 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
25964         PR tree-optimization/48052
25965         * cfgloop.h (struct control_iv): New.
25966         (struct loop): New field control_ivs.
25967         * tree-ssa-loop-niter.c : Include "stor-layout.h".
25968         (number_of_iterations_lt): Set no_overflow information.
25969         (number_of_iterations_exit): Init control iv in niter struct.
25970         (record_control_iv): New.
25971         (estimate_numbers_of_iterations_loop): Call record_control_iv.
25972         (loop_exits_before_overflow): New.  Interface factored out of
25973         scev_probably_wraps_p.
25974         (scev_probably_wraps_p): Factor loop niter related code into
25975         loop_exits_before_overflow.
25976         (free_numbers_of_iterations_estimates_loop): Free control ivs.
25977         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
25979 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
25981         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
25982         the target doesn't belong to the current function.
25984 2015-06-02  Marek Polacek  <polacek@redhat.com>
25986         PR middle-end/66345
25987         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
25988         get_maxval_strlen does not produce an INTEGER_CST.
25990 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
25992         * config/arc/constraints.md: Use lower-case names in match_code.
25993         * config/mmix/constraints.md: Likewise.
25995 2015-06-02  Richard Biener  <rguenther@suse.de>
25997         PR tree-optimization/65961
25998         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
25999         check and clarify dump message.
26000         (vect_build_slp_tree): If all children are built up from scalars
26001         build up the parent from scalars instead.
26002         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
26004 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
26006         PR other/65366
26007         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
26008         instead of print ... .
26010 2015-06-02  Alan Modra  <amodra@gmail.com>
26012         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
26013         2014-08-11 change.
26015 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
26017         PR tree-optimization/52563
26018         PR tree-optimization/62173
26019         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
26020         (alloc_iv, set_iv): New parameter.
26021         (determine_biv_step): Delete.
26022         (find_bivs): Inline original determine_biv_step.  Pass new
26023         argument to set_iv.
26024         (idx_find_step): Use no_overflow information for conversion.
26025         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
26026         resolve_mixers handle folded_casts.
26027         (instantiate_scev_name): Change bool parameter to bool pointer.
26028         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
26029         (instantiate_array_ref, instantiate_scev_not): Ditto.
26030         (instantiate_scev_3, instantiate_scev_2): Ditto.
26031         (instantiate_scev_1, instantiate_scev_r): Ditto.
26032         (instantiate_scev_convert, ): Change parameter.  Pass argument
26033         to chrec_convert_aggressive.
26034         (instantiate_scev): Change argument.
26035         (resolve_mixers): New parameter and set it.
26036         (scev_const_prop): New argument.
26037         * tree-scalar-evolution.h (resolve_mixers): New parameter.
26038         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
26039         of chrec_conert_1.
26040         (chrec_convert): New parameter.  Move definition below.
26041         (chrec_convert_aggressive): New parameter and set it.  Call
26042         convert_affine_scev.
26043         * tree-chrec.h (chrec_convert): New parameter.
26044         (chrec_convert_aggressive): Ditto.
26046 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26048         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
26049         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
26050         the LHS of a no-return call if its type has variable size.
26051         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
26052         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
26054 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
26056         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
26057         * config.in: Regenerate.
26059 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26061         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
26062         consecutive accesses within outer-loop with force_vectorize
26063         for references with zero step in inner-loop.
26065 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26067         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
26068         rather than from gcc/build directory.
26070 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26072         PR target/65697
26073         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
26074         for __sync memory models, emit initial loads and final barriers as
26075         appropriate.
26077 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
26079         PR target/65697
26080         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
26081         (aarch64_split_atomic_op): Check for __sync memory models, emit
26082         appropriate initial loads and final barriers.
26084 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
26086         * Makefile.in: Fix gcov dependencies that should
26087         not point to a build folder.
26089 2015-06-01  Richard Biener  <rguenther@suse.de>
26091         Revert
26092         2015-05-29  Richard Biener  <rguenther@suse.de>
26094         PR tree-optimization/66314
26095         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26096         parameter that says which loop the new block belongs to.
26097         (ssa_create_duplicates): Blocks duplicated for the threaded
26098         path belong to the loop of the thread destination.
26100 2015-06-01  Martin Liska  <mliska@suse.cz>
26102         * sched-deps.c: Include pool-alloc.h before
26103         cselib.h header file is included.
26105 2015-06-01  Richard Biener  <rguenther@suse.de>
26107         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
26108         functions.
26110 2015-06-01  Martin Liska  <mliska@suse.cz>
26112         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
26113         a function local variable.
26115 2015-06-01  Martin Liska  <mliska@suse.cz>
26117         * alloc-pool.c (create_alloc_pool): Remove.
26118         (empty_alloc_pool): Likewise.
26119         (free_alloc_pool): Likewise.
26120         (free_alloc_pool_if_empty): Likewise.
26121         (pool_alloc): Likewise.
26122         (pool_free): Likewise.
26123         * alloc-pool.h: Remove old declarations.
26125 2015-06-01  Martin Liska  <mliska@suse.cz>
26127         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
26128         (ira_create_object): Likewise.
26129         (ira_create_allocno): Likewise.
26130         (ira_create_live_range): Likewise.
26131         (copy_live_range): Likewise.
26132         (ira_finish_live_range): Likewise.
26133         (ira_free_allocno_costs): Likewise.
26134         (finish_allocno): Likewise.
26135         (finish_allocnos): Likewise.
26136         (initiate_prefs): Likewise.
26137         (ira_create_pref): Likewise.
26138         (finish_pref): Likewise.
26139         (finish_prefs): Likewise.
26140         (initiate_copies): Likewise.
26141         (ira_create_copy): Likewise.
26142         (finish_copy): Likewise.
26143         (finish_copies): Likewise.
26144         (finish_prefs): Likewise.
26146 2015-06-01  Martin Liska  <mliska@suse.cz>
26148         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
26149         (allocate_and_init_ipcp_value): Likewise.
26150         (ipcp_lattice::add_value): Likewise.
26151         (merge_agg_lats_step): Likewise.
26152         (ipcp_driver): Likewise.
26153         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
26154         (ipa_free_all_structures_after_iinln): Likewise.
26155         * ipa-prop.h: Likewise.
26157 2015-06-01  Martin Liska  <mliska@suse.cz>
26159         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
26160         pool allocator.
26161         (set_hint_predicate): Likewise.
26162         (inline_summary_alloc): Likewise.
26163         (reset_inline_edge_summary): Likewise.
26164         (reset_inline_summary): Likewise.
26165         (set_cond_stmt_execution_predicate): Likewise.
26166         (set_switch_stmt_execution_predicate): Likewise.
26167         (compute_bb_predicates): Likewise.
26168         (estimate_function_body_sizes): Likewise.
26169         (inline_free_summary): Likewise.
26171 2015-06-01  Martin Liska  <mliska@suse.cz>
26173         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
26174         (ipa_edge_duplication_hook): Likewise.
26175         (ipa_free_all_structures_after_ipa_cp): Likewise.
26176         (ipa_free_all_structures_after_iinln): Likewise.
26178 2015-06-01  Martin Liska  <mliska@suse.cz>
26180         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
26181         (ipa_profile_generate_summary): Likewise.
26182         (ipa_profile_read_summary): Likewise.
26183         (ipa_profile): Likewise.
26185 2015-06-01  Martin Liska  <mliska@suse.cz>
26187         * tree-ssa-structalias.c (new_var_info): Use new type-based
26188         pool allocator.
26189         (new_constraint): Likewise.
26190         (init_alias_vars): Likewise.
26191         (delete_points_to_sets): Likewise.
26193 2015-06-01  Martin Liska  <mliska@suse.cz>
26195         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
26196         (free_strinfo): Likewise.
26197         (pass_strlen::execute): Likewise.
26199 2015-06-01  Martin Liska  <mliska@suse.cz>
26201         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
26202         pool allocator.
26203         (vn_reference_insert_pieces): Likewise.
26204         (vn_phi_insert): Likewise.
26205         (visit_reference_op_call): Likewise.
26206         (copy_phi): Likewise.
26207         (copy_reference): Likewise.
26208         (process_scc): Likewise.
26209         (allocate_vn_table): Likewise.
26210         (free_vn_table): Likewise.
26212 2015-06-01  Martin Liska  <mliska@suse.cz>
26214         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
26215         pool allocator.
26216         (add_repeat_to_ops_vec): Likewise.
26217         (get_ops): Likewise.
26218         (maybe_optimize_range_tests): Likewise.
26219         (init_reassoc): Likewise.
26220         (fini_reassoc): Likewise.
26222 2015-06-01  Martin Liska  <mliska@suse.cz>
26224         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
26225         pool allocator.
26226         (bitmap_set_new): Likewise.
26227         (get_or_alloc_expr_for_constant): Likewise.
26228         (get_or_alloc_expr_for): Likewise.
26229         (phi_translate_1): Likewise.
26230         (compute_avail): Likewise.
26231         (init_pre): Likewise.
26232         (fini_pre): Likewise.
26234 2015-06-01  Martin Liska  <mliska@suse.cz>
26236         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
26237         (delete_dep_node): Likewise.
26238         (create_deps_list): Likewise.
26239         (free_deps_list): Likewise.
26240         (sched_deps_init): Likewise.
26241         (sched_deps_finish): Likewise.
26243 2015-06-01  Martin Liska  <mliska@suse.cz>
26245         * regcprop.c (free_debug_insn_changes): Use new type-based
26246         pool allocator.
26247         (replace_oldest_value_reg): Likewise.
26248         (pass_cprop_hardreg::execute): Likewise.
26250 2015-06-01  Martin Liska  <mliska@suse.cz>
26252         * ira-build.c (initiate_cost_vectors): Use new type-based
26253         pool allocator.
26254         (ira_allocate_cost_vector): Likewise.
26255         (ira_free_cost_vector): Likewise.
26256         (finish_cost_vectors): Likewise.
26258 2015-06-01  Martin Liska  <mliska@suse.cz>
26260         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
26261         pool allocator.
26262         (free_sched_pools): Likewise.
26263         * sel-sched-ir.h (_list_alloc): Likewise.
26264         (_list_remove): Likewise.
26266 2015-06-01  Martin Liska  <mliska@suse.cz>
26268         * stmt.c (add_case_node): Use new type-based pool allocator.
26269         (expand_case): Likewise.
26270         (expand_sjlj_dispatch_table): Likewise.
26272 2015-06-01  Martin Liska  <mliska@suse.cz>
26274         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
26275         (free_bb): Likewise.
26276         (pass_cse_reciprocals::execute): Likewise.
26278 2015-06-01  Martin Liska  <mliska@suse.cz>
26280         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
26281         (sra_deinitialize) Likewise.
26282         (create_access_1) Likewise.
26283         (build_accesses_from_assign) Likewise.
26284         (create_artificial_child_access) Likewise.
26286 2015-06-01  Martin Liska  <mliska@suse.cz>
26288         * dse.c (get_group_info):Use new type-based pool allocator.
26289         (dse_step0) Likewise.
26290         (free_store_info) Likewise.
26291         (delete_dead_store_insn) Likewise.
26292         (free_read_records) Likewise.
26293         (record_store) Likewise.
26294         (replace_read) Likewise.
26295         (check_mem_read_rtx) Likewise.
26296         (scan_insn) Likewise.
26297         (dse_step1) Likewise.
26298         (dse_step7) Likewise.
26300 2015-06-01  Martin Liska  <mliska@suse.cz>
26302         * df-scan.c (struct df_scan_problem_data):Use new type-based
26303         pool allocator.
26304         (df_scan_free_internal) Likewise.
26305         (df_scan_alloc) Likewise.
26306         (df_grow_reg_info) Likewise.
26307         (df_free_ref) Likewise.
26308         (df_insn_create_insn_record) Likewise.
26309         (df_mw_hardreg_chain_delete) Likewise.
26310         (df_insn_info_delete) Likewise.
26311         (df_free_collection_rec) Likewise.
26312         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
26313         (df_sort_and_compress_mws) Likewise.
26314         (df_ref_create_structure) Likewise.
26315         (df_ref_record) Likewise.
26317 2015-06-01  Martin Liska  <mliska@suse.cz>
26319         * df-problems.c (df_chain_create):Use new type-based pool allocator.
26320         (df_chain_unlink_1) Likewise.
26321         (df_chain_unlink) Likewise.
26322         (df_chain_remove_problem) Likewise.
26323         (df_chain_alloc) Likewise.
26324         (df_chain_free) Likewise.
26325         * df.h (struct dataflow) Likewise.
26327 2015-06-01  Martin Liska  <mliska@suse.cz>
26329         * cselib.c (new_elt_list):Use new type-based pool allocator.
26330         (new_elt_loc_list) Likewise.
26331         (unchain_one_elt_list) Likewise.
26332         (unchain_one_elt_loc_list) Likewise.
26333         (unchain_one_value) Likewise.
26334         (new_cselib_val) Likewise.
26335         (cselib_init) Likewise.
26336         (cselib_finish) Likewise.
26338 2015-06-01  Martin Liska  <mliska@suse.cz>
26340         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
26341         (sh_reorg) Likewise.
26343 2015-06-01  Martin Liska  <mliska@suse.cz>
26345         * cfg.c (initialize_original_copy_tables):Use new type-based
26346         pool allocator.
26347         (free_original_copy_tables) Likewise.
26348         (copy_original_table_clear) Likewise.
26349         (copy_original_table_set) Likewise.
26351 2015-06-01  Martin Liska  <mliska@suse.cz>
26353         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
26354         pool allocator.
26355         (asan_mem_ref_new) Likewise.
26356         (free_mem_ref_resources) Likewise.
26358 2015-06-01  Martin Liska  <mliska@suse.cz>
26360         * var-tracking.c (variable_htab_free):Use new type-based
26361         pool allocator.
26362         (attrs_list_clear) Likewise.
26363         (attrs_list_insert) Likewise.
26364         (attrs_list_copy) Likewise.
26365         (shared_hash_unshare) Likewise.
26366         (shared_hash_destroy) Likewise.
26367         (unshare_variable) Likewise.
26368         (var_reg_delete_and_set) Likewise.
26369         (var_reg_delete) Likewise.
26370         (var_regno_delete) Likewise.
26371         (drop_overlapping_mem_locs) Likewise.
26372         (variable_union) Likewise.
26373         (insert_into_intersection) Likewise.
26374         (canonicalize_values_star) Likewise.
26375         (variable_merge_over_cur) Likewise.
26376         (dataflow_set_merge) Likewise.
26377         (remove_duplicate_values) Likewise.
26378         (variable_post_merge_new_vals) Likewise.
26379         (dataflow_set_preserve_mem_locs) Likewise.
26380         (dataflow_set_remove_mem_locs) Likewise.
26381         (variable_from_dropped) Likewise.
26382         (variable_was_changed) Likewise.
26383         (set_slot_part) Likewise.
26384         (clobber_slot_part) Likewise.
26385         (delete_slot_part) Likewise.
26386         (loc_exp_insert_dep) Likewise.
26387         (notify_dependents_of_changed_value) Likewise.
26388         (emit_notes_for_differences_1) Likewise.
26389         (vt_emit_notes) Likewise.
26390         (vt_initialize) Likewise.
26391         (vt_finalize) Likewise.
26393 2015-06-01  Martin Liska  <mliska@suse.cz>
26395         * ira-color.c (init_update_cost_records):Use new type-based
26396         pool allocator.
26397         (get_update_cost_record) Likewise.
26398         (free_update_cost_record_list) Likewise.
26399         (finish_update_cost_records) Likewise.
26400         (initiate_cost_update) Likewise.
26402 2015-06-01  Martin Liska  <mliska@suse.cz>
26404         * lra.c (init_insn_regs): Use new type-based pool allocator.
26405         (new_insn_reg) Likewise.
26406         (free_insn_reg) Likewise.
26407         (free_insn_regs) Likewise.
26408         (finish_insn_regs) Likewise.
26409         (init_insn_recog_data) Likewise.
26410         (init_reg_info) Likewise.
26411         (finish_reg_info) Likewise.
26412         (lra_free_copies) Likewise.
26413         (lra_create_copy) Likewise.
26414         (invalidate_insn_data_regno_info) Likewise.
26416 2015-06-01  Martin Liska  <mliska@suse.cz>
26418         * lra-lives.c (free_live_range): Use new type-based pool allocator.
26419         (free_live_range_list) Likewise.
26420         (create_live_range) Likewise.
26421         (copy_live_range) Likewise.
26422         (lra_merge_live_ranges) Likewise.
26423         (remove_some_program_points_and_update_live_ranges) Likewise.
26424         (lra_live_ranges_init) Likewise.
26425         (lra_live_ranges_finish) Likewise.
26427 2015-06-01  Martin Liska  <mliska@suse.cz>
26429         * et-forest.c (et_new_occ): Use new type-based pool allocator.
26430         (et_new_tree): Likewise.
26431         (et_free_tree): Likewise.
26432         (et_free_tree_force): Likewise.
26433         (et_free_pools): Likewise.
26434         (et_split): Likewise.
26436 2015-06-01  Martin Liska  <mliska@suse.cz>
26438         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
26439         to header file.
26440         * alloc-pool.h (pool_allocator::pool_allocator): New function.
26441         (pool_allocator::release): Likewise.
26442         (inline pool_allocator::release_if_empty): Likewise.
26443         (inline pool_allocator::~pool_allocator): Likewise.
26444         (pool_allocator::allocate): Likewise.
26445         (pool_allocator::remove): Likewise.
26447 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26449         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
26450         in comment.
26452 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26454         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
26455         to fusible_ops.
26456         * config/arm/arm.c (arm_print_tune_info): Likewise.
26457         (arm_macro_fusion_p): Likewise.
26458         (arm_macro_fusion_pair_p): Likewise.
26460 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
26462         * config/aarch64/aarch64-protos.h (tune_params): Rename
26463         fuseable_ops to fusible_ops.
26464         * config/aarch64/aarch64.c (generic_tunings): Rename
26465         fuseable_ops to fusible_ops.
26466         (cortexa53_tunings): Likewise.
26467         (cortexa57_tunings): Likewise.
26468         (thunderx_tunings): Likewise.
26469         (xgene1_tunings): Likewise.
26470         (aarch64_macro_fusion_p): Likewise.
26471         (aarch64_macro_fusion_pair_p): Likewise.
26473 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26475         * config/s390/driver-native.c: New file.
26476         * config/s390/x-native: New file.
26477         * config.host: Add new files for s390.
26478         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
26479         and -march=native
26480         * config.gcc: Likewise.
26481         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
26482         * config/s390/s390-opts.h (enum processor_type): Ditto.
26483         * config/s390/s390.c (s390_option_override): Catch unhandled
26484         PROCESSOR_NATIVE
26486 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
26488         PR target/65527
26489         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
26490         redirection for instrumented calls.
26491         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
26492         (append_compiler_options): Append -fcheck-pointer-bounds.
26493         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
26494         (chkp_redirect_edge): New.
26495         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
26496         (chkp_redirect_edge): New.
26498 2015-06-01  Richard Biener  <rguenther@suse.de>
26500         PR tree-optimization/66280
26501         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
26502         def-use walking.
26504 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26506         * config/aarch64/aarch64.md
26507         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
26508         logic_shift_imm.
26510 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
26512         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
26513         Remove obsolete kludge.
26515 2015-06-01  Richard Biener  <rguenther@suse.de>
26517         * tree-ssa-reassoc.c (get_rank): Simplify.
26519 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
26521         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
26522         * configure: Regenerated.
26524 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
26526         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
26527         issue (add space between string literal and macro).
26528         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
26530 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
26532         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
26533         implict or explicit -fPIE or -fpie.
26535 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
26537         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
26539 2015-05-28  DJ Delorie  <dj@redhat.com>
26541         * expmed.c (extract_bit_field_1): Avoid clobbering a
26542         yet-to-be-used base/index register.
26544 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
26546         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
26547         (alias_stats): Add num_universal.
26548         (alias_set_subset_of): Special case pointers; be ready for NULL
26549         children.
26550         (alias_sets_conflict_p): Special case pointers; be ready for NULL
26551         children.
26552         (init_alias_set_entry): Break out from ...
26553         (record_alias_subset): ... here; propagate new fields;
26554         allocate children only when really needed.
26555         (get_alias_set): Do less generous pointer globbing.
26556         (dump_alias_stats_in_alias_c): Update statistics.
26558 2015-05-30  Alan Modra  <amodra@gmail.com>
26560         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
26561         correct block for use of r12.
26562         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
26564 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26566         PR target/66215
26567         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
26568         with -mhotpatch=.
26570 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
26572         PR tree-optimization/66142
26573         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
26574         virtual phis that feed themselves.
26576 2015-05-29  Richard Biener  <rguenther@suse.de>
26578         PR tree-optimization/66314
26579         * tree-ssa-threadupdate.c (create_block_for_threading): Add
26580         parameter that says which loop the new block belongs to.
26581         (ssa_create_duplicates): Blocks duplicated for the threaded
26582         path belong to the loop of the thread destination.
26584 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26586         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
26587         to cleanup-saved-temps.
26588         * doc/sourcebuild.texi (Clean up generated test files): Expand
26589         introduction.
26590         (dg-keep-saved-temps): Document new proc.
26591         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
26592         cleanup-saved-temps): Remove.
26594 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
26596         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
26597         gcc_AC_CHECK_DECLS.
26598         * configure: Regenerate.
26600 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26602         * config/nios2/linux.h (CPP_SPEC): Define.
26604 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26606         * config/microblaze/linux.h (CPP_SPEC): Define.
26608 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
26610         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
26611         -pthread is specified.
26613 2015-05-28  Richard Biener  <rguenther@suse.de>
26615         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
26616         (vect_fixup_scalar_cycles_with_patterns): Likewise.
26617         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
26618         after pattern recog.
26619         (vect_create_epilog_for_reduction): Properly handle reductions
26620         with patterns.
26621         (vectorizable_reduction): Likewise.
26622         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
26623         reduction chains.
26624         (vect_get_constant_vectors): Create the correct number of
26625         initial values for reductions.
26626         (vect_schedule_slp_instance): Handle reduction chains that are
26627         type changing properly.
26628         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
26630 2015-05-28  Richard Biener  <rguenther@suse.de>
26632         PR tree-optimization/66142
26633         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
26634         values better in memcpy destination handling.  Handle non-aliasing
26635         we discover here.
26637 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
26639         PR target/63810
26640         * config/darwin-c.c (version_components): New global enum.
26641         (parse_version, version_as_legacy_macro)
26642         (version_as_modern_macro, macosx_version_as_macro): New functions.
26643         (version_as_macro): Remove.
26644         (darwin_cpp_builtins): Use new function.
26646 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
26648         * builtins.c (expand_builtin_acc_on_device): Mark parameters
26649         with ATTRIBUTE_UNUSED.
26651 2015-05-28  Julian Brown  <julian@codesourcery.com>
26653         PR libgomp/65742
26655         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
26656         sequence for !ACCEL_COMPILER.
26658 2015-05-28  Nick Clifton  <nickc@redhat.com>
26660         * config/rx/rx.c (push_regs): New function.  Extracts code from...
26661         (rx_expand_prologue): ... here.  Use push_regs to push even small
26662         spans of registers.
26663         (pop_regs): New function.
26664         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
26665         registers.
26667 2015-05-28  Richard Biener  <rguenther@suse.de>
26669         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
26670         member.
26671         (SLP_INSTANCE_BODY_COST_VEC): Remove.
26672         (vect_update_slp_costs_according_to_vf): Likewise.
26673         (vect_slp_analyze_operations): Update prototype.
26674         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
26675         vect_update_slp_costs_according_to_vf, adjust.
26676         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
26677         (vect_analyze_slp_cost_1): Likewise.
26678         (vect_analyze_slp_cost): Likewise.  Properly deal with
26679         widening reduction ops.  Commit body costs.
26680         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
26681         cost for loops from here.
26682         (vect_slp_analyze_operations): But do it from here when
26683         the vectorization factor is known and stmts are analyzed.
26684         (vect_bb_vectorization_profitable_p): Simplify.
26685         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
26686         (vect_update_slp_costs_according_to_vf): Remove.
26688 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
26689             H.J. Lu  <hongjiu.lu@intel.com>
26691         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
26692         (BUILD_CFLAGS): Likewise.
26693         (BUILD_CXXFLAGS): Likewise.
26694         (LINKER): Add @NO_PIE_FLAG@.
26695         (BUILD_LDFLAGS): Likewise.
26696         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
26697         --enable-default-pie.
26698         * common.opt (fPIE): Initialize to -1.
26699         (fpie): Likewise.
26700         (no-pie): New option.
26701         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
26702         * configure.ac: Add --enable-default-pie.
26703         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
26704         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
26705         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
26706         * gcc.c (NO_PIE_SPEC): New.
26707         (PIE_SPEC): Likewise.
26708         (NO_FPIE1_SPEC): Likewise.
26709         (FPIE1_SPEC): Likewise.
26710         (NO_FPIE2_SPEC): Likewise.
26711         (FPIE2_SPEC): Likewise.
26712         (NO_FPIE2_SPEC): Likewise.
26713         (FPIE_SPEC): Likewise.
26714         (NO_FPIE_SPEC): Likewise.
26715         (NO_FPIC1_SPEC): Likewise.
26716         (FPIC1_SPEC): Likewise.
26717         (NO_FPIC2_SPEC): Likewise.
26718         (FPIC2_SPEC): Likewise.
26719         (NO_FPIC2_SPEC): Likewise.
26720         (FPIC_SPEC): Likewise.
26721         (NO_FPIC_SPEC): Likewise.
26722         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
26723         (FPIE1_OR_FPIC1_SPEC): Likewise.
26724         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
26725         (FPIE2_OR_FPIC2_SPEC): Likewise.
26726         (NO_FPIE_AND_FPIC_SPEC): Likewise.
26727         (FPIE_OR_FPIC_SPEC): Likewise.
26728         (LD_PIE_SPEC): Likewise.
26729         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
26730         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
26731         * config/darwin.h (PIE_SPEC): Renamed to ...
26732         (DARWIN_PIE_SPEC): This.
26733         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
26734         * config/darwin9.h (PIE_SPEC): Renamed to ...
26735         (DARWIN_PIE_SPEC): This.
26736         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
26737         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
26738         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
26739         FPIE2_OR_FPIC2_SPEC.
26740         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26741         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26742         * config/sol2.h (ASM_PIC_SPEC): Likewise.
26743         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26744         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26745         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
26746         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
26747         * config/m32r/m32r.h (ASM_SPEC): Likewise.
26748         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
26749         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26750         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
26751         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
26752         * config/sparc/linux.h (ASM_SPEC): Likewise.
26753         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26754         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
26755         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
26756         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26757         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26758         * config/sparc/sparc.h (ASM_SPEC): Likewise.
26759         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
26760         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
26761         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
26762         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
26763         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
26764         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
26765         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
26766         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
26767         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
26768         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
26769         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
26770         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
26771         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26772         * config/vax/linux.h (ASM_SPEC): Likewise.
26773         * doc/install.texi: Document --enable-default-pie.
26774         * doc/invoke.texi: Document -no-pie.
26775         * config.in: Regenerated.
26776         * configure: Likewise.
26778 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26780         PR rtl-optimization/66168
26781         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
26782         can_move_invariant_reg.
26784 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
26786         PR target/66148
26787         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
26788         REG_EQUAL note when doing insert.
26790         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
26791         instead of "%d" for 'o' operand.
26793 2015-05-27  Nathan Sidwell  <nathan@acm.org>
26795         PR c++/66270
26796         * tree.c (build_pointer_type_for_mode): Canonical type does not
26797         inherit can_alias_all.
26798         (build_reference_type_for_mode): Likewise.
26800 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26802         * expr.h (array_at_struct_end_p): Move to...
26803         (array_ref_element_size): Likewise.
26804         (component_ref_field_offset): Likewise.
26805         * tree.h (array_ref_element_size): ...here.
26806         (array_at_struct_end_p): Likewise.
26807         (component_ref_field_offset): Likewise.
26808         * expr.c (array_ref_element_size): Move to...
26809         (array_ref_low_bound): Likewise.
26810         (array_at_struct_end_p): Likewise.
26811         (array_ref_up_bound): Likewise.
26812         (component_ref_field_offset): Likewise.
26813         * tree.c (array_ref_element_size): ...here.
26814         (array_ref_low_bound): Likewise.
26815         (array_ref_up_bound): Likewise.
26816         (array_at_struct_end_p): Likewise.
26817         (component_ref_field_offset): Likewise.
26819 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26820             Szabolcs Nagy  <szabolcs.nagy@arm.com>
26822         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
26824 2015-05-27  Jason Merrill  <jason@redhat.com>
26826         PR bootstrap/66304
26827         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
26828         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
26829         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
26831 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
26833         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
26834         is true.
26836         * statistics.c (statistics_fini_pass): Print pass name.
26838 2015-05-27  Richard Biener  <rguenther@suse.de>
26840         PR tree-optimization/66272
26841         Revert parts of
26842         2014-08-15  Richard Biener  <rguenther@suse.de>
26844         PR tree-optimization/62031
26845         * tree-data-ref.c (dr_analyze_indices): Do not set
26846         DR_UNCONSTRAINED_BASE.
26847         (dr_may_alias_p): All indirect accesses have to go the
26848         formerly DR_UNCONSTRAINED_BASE path.
26849         * tree-data-ref.h (struct indices): Remove
26850         unconstrained_base member.
26851         (DR_UNCONSTRAINED_BASE): Remove.
26853 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
26855         * dwarf2out.c: Remove block_map.
26856         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
26857         (gen_lexical_block_die): Same.
26858         (dwarf2out_function_decl): Remove block_map use.
26859         (dwarf2out_c_finalize): Same.
26860         * tree-core.h (struct tree_block): Add die field.
26861         * tree.h (BLOCK_DIE): New.
26863 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26865         PR target/65358
26866         * expr.c (memory_load_overlap): New function.
26867         (emit_push_insn): When pushing partial args to the stack would
26868         clobber the register part load the overlapping part into a pseudo
26869         and put it into the hard reg after pushing.  Change return type
26870         to bool.  Add bool argument.
26871         * expr.h (emit_push_insn): Change return type to bool.
26872         Add bool argument.
26873         * calls.c (expand_call): Cancel sibcall optimization when encountering
26874         partial argument on targets with ARGS_GROW_DOWNWARD and
26875         !STACK_GROWS_DOWNWARD.
26876         (emit_library_call_value_1): Update callsite of emit_push_insn.
26877         (store_one_arg): Likewise.
26879 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
26881         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
26883 2015-05-27  Martin Liska  <mliska@suse.cz>
26885         * Makefile.in: Add additional dependencies related to memory report
26886         enhancement.
26887         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
26888         * bitmap.c (struct bitmap_descriptor_d): Remove.
26889         (struct loc): Likewise.
26890         (struct bitmap_desc_hasher): Likewise.
26891         (bitmap_desc_hasher::hash): Likewise.
26892         (bitmap_desc_hasher::equal): Likewise.
26893         (get_bitmap_descriptor): Likewise.
26894         (bitmap_register): User new memory descriptor API.
26895         (register_overhead): Likewise.
26896         (bitmap_find_bit): Register nsearches and search_iter statistics.
26897         (struct bitmap_output_info): Remove.
26898         (print_statistics): Likewise.
26899         (dump_bitmap_statistics): Use new memory descriptor.
26900         * bitmap.h (struct bitmap_usage): New class.
26901         * genmatch.c: Extend header file inclusion.
26902         * genpreds.c: Likewise.
26903         * ggc-common.c (struct ggc_usage): New class.
26904         (struct ggc_loc_desc_hasher): Remove.
26905         (ggc_loc_desc_hasher::hash): Likewise.
26906         (ggc_loc_desc_hasher::equal): Likewise.
26907         (struct ggc_ptr_hash_entry): Likewise.
26908         (struct ptr_hash_hasher): Likewise.
26909         (ptr_hash_hasher::hash): Likewise.
26910         (ptr_hash_hasher::equal): Likewise.
26911         (make_loc_descriptor): Likewise.
26912         (ggc_prune_ptr): Likewise.
26913         (dump_ggc_loc_statistics): Use new memory descriptor.
26914         (ggc_record_overhead): Likewise.
26915         (ggc_free_overhead): Likewise.
26916         (final_cmp_statistic): Remove.
26917         (cmp_statistic): Likewise.
26918         (ggc_add_statistics): Liekwise.
26919         (ggc_prune_overhead_list): Likewise.
26920         * hash-map-traits.h: New file.
26921         * hash-map.h (struct default_hashmap_traits): Move the traits to a
26922         separate header file.
26923         * hash-set.h: Pass memory statistics info to ctor.
26924         * hash-table.c (void dump_hash_table_loc_statistics): New function.
26925         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
26926         (hash_table::~hash_table): Register memory release operation.
26927         (hash_table::alloc_entries): Handle memory allocation operation.
26928         (hash_table::expand): Likewise.
26929         * inchash.c (iterative_hash_hashval_t): Move implementation to header
26930         file.
26931         (iterative_hash_host_wide_int): Likewise.
26932         * inchash.h (class hash): Likewise.
26933         * mem-stats-traits.h: New file.
26934         * mem-stats.h: New file.
26935         (mem_location): Add new class.
26936         (mem_usage): Likewise.
26937         (mem_alloc_description): Likewise.
26938         * sese.c: Add new header file inclusision.
26939         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
26940         and hash_set.
26941         * tree-sra.c: Add new header file inclusision.
26942         * vec.c (struct vec_descriptor): Remove.
26943         (hash_descriptor): Likewise.
26944         (struct vec_usage): Likewise.
26945         (struct ptr_hash_entry): Likewise.
26946         (hash_ptr): Likewise.
26947         (eq_ptr): Likewise.
26948         (vec_prefix::register_overhead): Use new memory descriptor API.
26949         (vec_prefix::release_overhead): Likewise.
26950         (add_statistics): Remove.
26951         (dump_vec_loc_statistics): Use new memory descriptor API.
26952         * vec.h (struct vec_prefix): Likewise.
26953         (va_heap::reserve): Likewise.
26954         (va_heap::release): Likewise.
26955         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
26957 2015-05-27  Richard Biener  <rguenther@suse.de>
26959         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
26960         earlier and remove ??? comment.
26961         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
26962         and got called from loop analysis bail out.  Always pass the SLP
26963         node to the vectorizable_* functions.
26964         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
26965         the premature SLP check here.
26966         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
26967         detected SLP stmts.
26968         (vect_detect_hybrid_slp_1): Likewise.
26970 2015-05-26  Jeff Law  <law@redhat.com>
26972         * combine.c (find_split_point): Verify that the shift count is a
26973         constant when choosing (plus (ashift ...)) as a split point.
26975         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
26976         No functional changes.
26978 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
26980         * ipa-polymorphic-call.c
26981         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
26982         case when call target is already known.
26984 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
26986         PR target/65979
26987         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
26988         take into account the case that operands[1] and operands[2]
26989         are the same register.
26991 2015-05-26  Michael Matz  <matz@suse.de>
26993         PR middle-end/66251
26995         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
26996         stores.
26997         (vect_create_vectorized_demotion_stmts): Always set
26998         STMT_VINFO_VEC_STMT, also with SLP.
26999         (vectorizable_store): Handle strided group stores.
27001 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27003         PR target/66049
27004         * config/aarch64/aarch64.md
27005         (*adds_shift_imm_<mode>):  New pattern.
27006         (*subs_shift_imm_<mode>):  Likewise.
27007         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
27008         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
27009         (*add_uxt<mode>_shift2): Likewise.
27010         (*add_uxtsi_shift2_uxtw): Likewise.
27011         (*sub_uxt<mode>_shift2): Likewise.
27012         (*sub_uxtsi_shift2_uxtw): Likewise.
27014 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
27016         * config/rs6000/constraints.md (Y, U): Use match_test.
27018 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27020         PR target/52144
27021         * config/arm/arm.c (arm_option_check_internal)
27022         (arm_option_params_internal): Check opts->target_flags to set macros.
27023         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27024         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
27025         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27026         (builtin_define): Replaced with def_or_undef_macro.
27027         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
27028         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
27029         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
27030         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
27031         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
27032         (TARGET_ARM_FEATURE_LDREX_P)
27033         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
27034         * config/arm/arm-c.c (def_or_undef_macro): New function.
27035         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
27037 2015-05-26  Christian Bruel  <christian.bruel@st.com>
27039         * c-common.h (builtin_define_with_int_value)
27040         (builtin_define_type_sizeof): Declare.
27041         * c-cppbuiltin.c (builtin_define_with_int_value)
27042         (builtin_define_type_sizeof): Externalize.
27043         (builtin_define_std): Cleanup declaration.
27044         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
27045         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
27046         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
27047         (builtin_define, builtin_assert): New macros.
27049 2015-05-26  Richard Biener  <rguenther@suse.de>
27051         PR tree-optimization/66142
27052         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
27053         MEM_REFs for the same base address.
27055 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27057         PR ipa/66181
27058         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
27060 2015-05-26  Jason Merrill  <jason@redhat.com>
27062         * configure.ac: Set CXXFLAGS for ISL test.
27063         * configure: Regenerate.
27065         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
27066         strstr and basename.
27067         * configure: Regenerate.
27069 2015-05-26  Richard Biener  <rguenther@suse.de>
27071         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
27072         X % C -> X & (C - 1) for C being a power-of two to ...
27073         * match.pd: ... patterns.
27075 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
27077         * match.pd (swapped_tcc_comparison): New operator list.
27078         (-A CMP -B): New simplification.
27079         * fold-const.c (fold_comparison): Remove corresponding code.
27081 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27083         * caller-save.c (init_caller_save): Base temporary register numbers
27084         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
27085         * cfgloopanal.c (init_set_costs): Likewise.
27086         * dojump.c (prefer_and_bit_test): Likewise.
27087         * expr.c (init_expr_target): Likewise.
27088         * ira.c (setup_prohibited_mode_move_regs): Likewise.
27089         * lower-subreg.c (init_lower_subreg): Likewise.
27090         * postreload.c (reload_cse_regs_1): Likewise.
27092 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
27094         * gensupport.h (compute_test_codes): Declare.
27095         * gensupport.c (compute_predicate_codes): Rename to...
27096         (compute_test_codes): ...this.  Generalize error message.
27097         (process_define_predicate): Update accordingly.
27098         * genpreds.c (compute_maybe_allows): Delete.
27099         (add_constraint): Use compute_test_codes to determine whether
27100         something can accept a SUBREG, REG or MEM.
27102 2015-05-26  Torvald Riegel  <triegel@redhat.com>
27104         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
27105         'memory model' to align with C++11; fix description of memory orders;
27106         fix a few typos.
27108 2015-05-26  Richard Biener  <rguenther@suse.de>
27110         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
27111         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
27112         detect whether we apply SLP.  Remove call to
27113         vect_update_slp_costs_according_to_vf.
27114         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
27115         vect_update_slp_costs_according_to_vf from here.  Dispatch
27116         to vect_slp_analyze_operations to analyze SLP stmts.
27117         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
27118         unused bb_vec_info parameter, adjust assert.
27119         (vect_slp_analyze_operations): Pass in the slp instance tree
27120         instead of bb_vec_info.
27121         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
27122         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
27124 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27126         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
27127         Q_REGS.  Expand comment.
27128         (REG_CLASS_NAMES): Ditto.
27129         (REG_CLASS_CONTENTS): Ditto.
27131 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
27133         PR target/66274
27134         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
27135         when LEGACY_INT_REGNO_P is processed.
27137 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
27139         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
27141 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27143         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
27144         register if not marked dead/unused, before return.
27146 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27148         PR lto/66180
27149         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
27150         is set; check for assembler name at LTO time.
27151         (type_in_anonymous_namespace): Remove hacks, check that all
27152         anonymous types are called "<anon>"
27153         (odr_type_p): Simplify; add check for "<anon>"
27154         (odr_subtypes_equivalent): Add odr_type_p check.
27155         * tree.c (need_assembler_name_p): Even anonymous namespace needs
27156         assembler name.
27158 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27160         * ipa-utils.h (method_class_type): Remove.
27161         * cgraphunit.c (walk_polymorphic_call_targets): Use
27162         TYPE_METHOD_BASETYPE.
27163         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
27164         on main variants only.
27165         (method_class_type): Remove.
27166         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
27167         (build_type_inheritance_graph): Likewise.
27168         * ipa-icf.c (sem_function::equals_wpa): Likewise.
27169         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
27170         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
27172 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
27174         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
27175         is_typedef_decl, typedef_variant_p): Constify.
27176         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
27177         is_typedef_decl, typedef_variant_p): Constify.
27179 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27181         * defaults.h (gen_tablejump): New function.
27182         (HAVE_tablejump): Add default value.
27183         * expr.c: Adjust.
27184         * stmt.c: Likewise.
27186 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27188         * defaults.h (gen_store_multiple): New function.
27189         (HAVE_store_multiple): Add default value.
27190         * expr.c (move_block_from_reg): Adjust.
27192 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27194         * defaults.h (gen_load_multiple): New function.
27195         (HAVE_load_multiple): Add default value.
27196         * expr.c (move_block_to_reg): Adjust.
27198 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27200         * defaults.h (gen_mem_signal_fence): New function.
27201         (HAVE_mem_signal_fence): Add default value.
27202         * optabs.c: Adjust.
27204 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27206         * defaults.h (gen_memory_barrier): New function.
27207         (HAVE_memory_barrier): Add default value.
27208         * optabs.c: Adjust.
27210 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27212         * defaults.h (gen_mem_thread_fence): New function.
27213         (HAVE_mem_thread_fence): Add default definition.
27214         * optabs.c: Adjust.
27216 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27218         * combine.c (find_split_point): Check the value of HAVE_lo_sum
27219         instead of if it is defined.
27220         (combine_simplify_rtx): Likewise.
27221         * lra-constraints.c (process_address_1): Likewise.
27222         * config/darwin.c: Adjust.
27223         * genconfig.c (main): Always define HAVE_lo_sum.
27225 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27227         * genmatch.c (parser::parse_operation): Reject expanding
27228         operator-list inside 'for'.
27230 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27232         * genmatch.c (parser::parse_for): Reject iterator if used as
27233         operator-list.
27235 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27237         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
27238         after end of id-list.
27240 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27242         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
27243         we do not try to compute canonical type for type that does not need
27244         alias set.
27245         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
27246         FUNCITON_TYPE.
27247         * tree.h (type_with_alias_set_p): New.
27249 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
27251         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
27252         function attributes.
27253         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
27255 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
27257         * Makefile.in (check_gcc_parallelize): Delete.
27258         (lang_checks_parallelized): Update comment.
27260 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
27262         PR rtl-optimization/66237
27263         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
27264         location of an "as_a" cast.
27266 2015-05-22  Jeff Law  <law@redhat.com>
27268         * config/pa/pa.md (non-canonical shift-add insns): Remove.
27269         (peepholes with non-canonical RTL sources): Remove.
27270         (peepholes for indexed stores of FP regs in integer modes): Match and
27271         generate canonical RTL.
27273 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27275         PR tree-optimization/63387
27276         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
27277         ((x ord x) & (y ord y) -> (x ord y),
27278         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
27279         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
27280         vectors like scalars.
27282 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27284         * convert.c (convert_to_integer, convert_to_vector): Include the
27285         types in the error message.
27287 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
27289         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
27290         simplifications.
27292 2015-05-22  Jeff Law  <law@redhat.com>
27294         * config/pa/pa.md (integer_indexed_store splitters): Use
27295         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
27296         insns -- adjusting the constant 2nd operand accordingly.
27298         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27299         (plus (ashift X log2) Y) if it is a split point.
27301         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
27302         out of hppa_legitimize_address to handle both forms of a multiply
27303         by 2, 4 or 8.
27304         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
27305         Always generate the ASHIFT variant as the result is not directly
27306         used in a MEM.  Update comments and refactor slightly to improve
27307         readability.
27309 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27311         PR target/65491
27312         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
27313         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
27314         (aarch64_composite_type_p): Return false if given type and mode are
27315         for a short vector.
27317 2015-05-22  Richard Biener  <rguenther@suse.de>
27319         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
27320         member.
27321         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
27322         patterns when determining whether SLP is pure.
27323         (vect_is_slp_reduction): Remove check for pattern stmts.
27324         (vect_is_simple_reduction_1): Remove dead code.
27325         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
27326         (vect_get_and_check_slp_defs): Pass in the stmt number.
27327         Allow the first def in a reduction to be not a pattern stmt when
27328         the rest of the stmts def are patterns.
27329         (vect_build_slp_tree_1): Allow tcc_expression codes like
27330         SAD_EXPR and DOT_PROD_EXPR.
27331         (vect_build_slp_tree): Adjust.
27332         (vect_analyze_slp): Refactor and move BB vect error message ...
27333         (vect_slp_analyze_bb_1): ... here.
27335 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
27337         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
27338         for CSWTCH temporary.
27340 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27342         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
27343         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
27344         unknown unspecs.
27346 2015-05-22  Richard Biener  <rguenther@suse.de>
27348         PR tree-optimization/66251
27349         * tree-vect-stmts.c (vectorizable_conversion): Properly
27350         set STMT_VINFO_VEC_STMT even for the SLP case.
27352 2015-05-22  Marek Polacek  <polacek@redhat.com>
27354         * doc/extend.texi: Use @pxref instead of @xref.
27356 2015-05-22  hiraditya  <hiraditya@msn.com>
27358         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
27359         redundant if.
27361 2015-05-22  Richard Biener  <rguenther@suse.de>
27363         PR tree-optimization/65701
27364         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27365         Move peeling cost models into one place.  Peel for alignment
27366         for single loads only if an aligned load is cheaper than
27367         an unaligned load.
27369 2015-05-22  Marek Polacek  <polacek@redhat.com>
27371         PR c/47043
27372         * doc/extend.texi (Enumerator Attributes): New section.
27373         Document syntax of enumerator attributes.
27375 2015-05-22  Richard Biener  <rguenther@suse.de>
27377         * tree-vect-loop.c (get_reduction_op): New function.
27378         (vect_model_reduction_cost): Use it, add reduc_index parameter.
27379         Make ready for BB reductions.
27380         (vect_create_epilog_for_reduction): Use get_reduction_op.
27381         (vectorizable_reduction): Init reduc_index to a valid value.
27382         Adjust vect_model_reduction_cost call.
27383         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
27384         operand for reduction defaults.  Add SAD_EXPR support.
27385         Assert we have a neutral op for SLP reductions.
27386         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
27387         walking pattern stmt ops only recurse to SSA names.
27389 2015-05-22  Richard Biener  <rguenther@suse.de>
27391         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
27392         assert with guard, remove check on detected reduction.
27393         (vect_recog_sad_pattern): Likewise.
27394         (vect_recog_widen_sum_pattern): Likewise.
27396 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27398         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
27399         __always_inline__ attribute.
27400         (vaesdq_u8): Likewise.
27401         (vaesmcq_u8): Likewise.
27402         (vaesimcq_u8): Likewise.
27403         (vsha1cq_u32): Likewise.
27404         (vsha1mq_u32): Likewise.
27405         (vsha1pq_u32): Likewise.
27406         (vsha1h_u32): Likewise.
27407         (vsha1su0q_u32): Likewise.
27408         (vsha1su1q_u32): Likewise.
27409         (vsha256hq_u32): Likewise.
27410         (vsha256h2q_u32): Likewise.
27411         (vsha256su0q_u32): Likewise.
27412         (vsha256su1q_u32): Likewise.
27413         (vmull_p64): Likewise.
27414         (vmull_high_p64): Likewise.
27416 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27418         * final.c (final_scan_insn): Don't check HAVE_peephole with the
27419         preprocessor.
27420         * output.h: Likewise.
27421         * genconfig.c (main): Alwways define HAVE_peephole.
27422         * genpeep.c: Don't emit checks of HAVE_peephole.
27424 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27426         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
27427         check HAVE_conditional_move with the preprocessor.
27429 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27431         * genconfig.c (main): Always define HAVE_conditional_move.
27432         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
27433         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
27434         is defined.
27436 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27438         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
27439         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
27440         and FRAME_POINTER_REGNUM with the preprocessor.
27442 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27444         * defaults.h: Add default for STACK_PUSH_CODE.
27445         * expr.c: Don't redefine STACK_PUSH_CODE.
27446         * recog.c: Likewise.
27448 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27450         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
27451         sched-deps.c: Use if instead of preprocessor checks with
27452         STACK_GROWS_DOWNWARD.
27454 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27456         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
27457         is defined.
27458         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
27459         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
27460         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
27461         * doc/tm.texi: Regenerate.
27463 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
27465         PR target/66232
27466         * config/i386/constraints.md (Bg): New constraint for GOT memory
27467         operand.
27468         * config/i386/i386.md (*call_got_x32): New pattern.
27469         (*call_value_got_x32): Likewise.
27470         * config/i386/predicates.md (GOT_memory_operand): New predicate.
27472 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
27474         PR tree-optimization/66233
27475         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
27476         Simplify.
27478 2015-05-21  Jeff Law  <law@redhat.com>
27480         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
27481         than MULT for shadd sequences.
27483 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
27485         * alias.c (alias_stats): New static var.
27486         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
27487         (dump_alias_stats_in_alias_c): New function.
27488         * alias.h (dump_alias_stats_in_alias_c): Declare.
27489         * tree-ssa-alias.c (dump_alias_stats): Call it.
27491 2015-05-08  Michael Matz  <matz@suse.de>
27493         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
27494         to strided_p.
27495         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
27496         (STMT_VINFO_STRIDED_P): ... this.
27497         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
27498         (vect_verify_datarefs_alignment): Likewise.
27499         (vect_enhance_data_refs_alignment): Likewise.
27500         (vect_analyze_data_ref_access): Likewise.
27501         (vect_analyze_data_refs): Accept strided stores.
27502         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
27503         (vect_model_load_cost): Adjust for macro rename.
27504         (vectorizable_mask_load_store): Likewise.
27505         (vectorizable_load): Likewise.
27506         (vectorizable_store): Open code strided stores.
27508 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27510         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
27511         Document sqrt_insn.
27513 2015-05-21  Richard Biener  <rguenther@suse.de>
27515         PR c++/66211
27516         * match.pd: Guard pattern optimzing (int)(float)int
27517         conversions to apply only on GIMPLE.
27519 2015-05-21  Jeff Law  <law@redhat.com>
27521         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
27522         multiply-accumulate/shift-add insn generation.
27524 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
27526         PR target/54236
27527         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
27528         operands[1] are the same.
27530 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
27532         PR middle-end/66221
27533         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
27534         build_distinct_type_copy to copy bounds.
27536 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
27538         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
27539         Change to unsigned int.
27541 2015-05-20  Jeff Law  <law@redhat.com>
27543         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
27544         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
27545         (pa_shadd_constant_p): Allow constants for shadd insns rather
27546         than valid scaling constants for memory addresses.
27547         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
27548         * config/pa/predicates.md (mem_shadd_operand): New predicate.
27549         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
27550         (shift-add insns using ASHIFT): New patterns.
27552 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
27554         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
27555         feasible.
27556         (fix_up_fall_thru_edges): Likewise.
27557         (fix_crossing_conditional_branches): Likewise. Promote jump targets
27558         from to rtx_insn to rtx_code_label where feasible.
27559         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
27560         gen_move_insn (returned type changed to rtx_insn).
27561         * builtins.c (expand_errno_check): Fix arguments of
27562         do_compare_rtx_and_jump (now expects rtx_code_label).
27563         (expand_builtin_acc_on_device): Likewise.
27564         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
27565         invert_jump (now exprects rtx_jump_insn).
27566         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
27567         (construct_init_block): Use rtx_code_label.
27568         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
27569         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
27570         calling redirect_jump.
27571         (patch_jump_insn): Likewise.
27572         (redirect_branch_edge): Likewise.
27573         (force_nonfallthru_and_redirect): Likewise.
27574         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
27575         when suitable.
27576         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
27577         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
27578         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
27579         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
27580         to store the value retured by gen_label_rtx.
27581         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
27582         rtx_jump_insn.
27583         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
27584         (split_branches): Fix calls of redirect_jump.
27585         * dojump.c (jumpifnot): Promote argument type from rtx to
27586         rtx_code_label.
27587         (jumpifnot_1): Likewise.
27588         (jumpif): Likewise.
27589         (jumpif_1): Likewise.
27590         (do_jump_1): Likewise.
27591         (do_jump): Likewise. Use rtx_code_label when feasible.
27592         (do_jump_by_parts_greater_rtx): Likewise.
27593         (do_jump_by_parts_zero_rtx): Likewise.
27594         (do_jump_by_parts_equality_rtx): Likewise.
27595         (do_compare_rtx_and_jump): Likewise.
27596         * dojump.h: Update function prototypes.
27597         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
27598         returns rtx_insn).
27599         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
27600         rtx_jump_insn.
27601         (emit_label_before): Likewise.
27602         (emit_jump_insn_after_noloc): Likewise.
27603         (emit_jump_insn_after_setloc): Likewise.
27604         (emit_jump_insn_after): Likewise
27605         (emit_jump_insn_before_setloc): Likewise.
27606         (emit_jump_insn_before): Likewise.
27607         (emit_label_before): Promote return type to rtx_code_label.
27608         (emit_label): Likewise.
27609         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
27610         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
27611         gen_move_insn.
27612         (emit_stack_restore): Likewise.
27613         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
27614         (do_cmp_and_jump): Likewise.
27615         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
27616         from rtx to rtx_code_label.
27617         (gen_move_insn_uncast): New function.
27618         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
27619         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
27620         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
27621         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
27622         invert_jump_1 and redirect_jump_1.
27623         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
27624         do_compare_rtx_and_jump.
27625         (expand_addsub_overflow): Likewise.
27626         (expand_neg_overflow): Likewise.
27627         (expand_mul_overflow): Likewise.
27628         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
27629         return value of gen_move_insn.
27630         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
27631         * loop-doloop.c (add_test): Use rtx_code_label.
27632         (doloop_modify): Likewise.
27633         (doloop_optimize): Likewise.
27634         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
27635         * lra-constraints.c (emit_spill_move): Remove cast of value returned
27636         by gen_move_insn.
27637         (inherit_reload_reg): Add cast when calling dump_insn_slim.
27638         (split_reg): Likewise.
27639         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
27640         gen_move_insn.
27641         * optabs.c (expand_binop_directly): Remove casts of values returned by
27642         maybe_gen_insn.
27643         (expand_unop_direct): Likewise.
27644         (expand_abs): Likewise.
27645         (maybe_emit_unop_insn): Likewise.
27646         (maybe_gen_insn): Promote return type to rtx_insn.
27647         * optabs.h: Update prototype of maybe_gen_insn.
27648         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
27649         redundant cast.
27650         * recog.c (struct peep2_insn_data): Promote type of insn field to
27651         rtx_insn.
27652         (peep2_reinit_state): Use NULL instead of NULL_RTX.
27653         (peep2_attempt): Remove casts of insn in peep2_insn_data.
27654         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
27655         * recog.h (struct insn_gen_fn): Promote return types of function
27656         pointers and operator ().from rtx to rtx_insn.
27657         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
27658         (fill_eager_delay_slots): Likewise.
27659         (relax_delay_slots): Likewise.
27660         (make_return_insns): Likewise.
27661         (dbr_schedule): Likewise.
27662         (optimize_skips): Likewise.
27663         (reorg_redirect_jump): Likewise.
27664         (fill_slots_from_thread): Likewise.
27665         * reorg.h: Update prototypes.
27666         * resource.c (find_dead_or_set_registers): Use dyn_cast to
27667         rtx_jump_insn instead of check.  Use it's jump_target method.
27668         * rtl.h (rtx_jump_insn::jump_label): Define new method.
27669         (rtx_jump_insn::jump_target): Define new method.
27670         (rtx_jump_insn::set_jump_target): Define new method.
27671         * rtlanal.c (tablejump_p): Promote type of one local variable.
27672         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
27673         (sched_analyze_insn): Likewise.
27674         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
27675         (print_insn): Likewise.
27676         * stmt.c (label_rtx): Promote return type to rtx_insn.
27677         (force_label_rtx): Likewise.
27678         (jump_target_rtx): Define new function.
27679         (expand_label): Use it, get rid of one cast.
27680         (expand_naked_return): Promote rtx to rtx_code_label.
27681         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
27682         (expand_case): Use rtx_code_label instread of rtx where feasible.
27683         (expand_sjlj_dispatch_table): Likewise.
27684         (emit_case_nodes): Likewise.
27685         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
27686         * store-motion.c (insert_store): Make use of new return type of
27687         gen_move_insn and remove a cast.
27688         (replace_store_insn): Likewise.
27690 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
27692         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
27693         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
27695 2015-05-20  Jeff Law  <law@redhat.com>
27697         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
27698         dispose of the jump thread path when the jump threading
27699         opportunity is cancelled.
27701 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27703         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
27704         when printing the caret character.
27706 2015-05-20  Marek Polacek  <polacek@redhat.com>
27708         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
27710 2015-05-20  Marek Polacek  <polacek@redhat.com>
27712         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
27713         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
27714         * gimple-fold.c (canonicalize_bool): Likewise.
27715         (same_bool_result_p): Likewise.
27716         * tree-if-conv.c (parse_predicate): Likewise.
27718 2015-05-20  Marek Polacek  <polacek@redhat.com>
27720         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
27721         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
27723 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27725         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
27726         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
27727         values.
27729 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
27731         * config/mips/mips.h (micromips_globals): Declare.
27733 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
27735         * timevar.def (TV_INITIALIZE_RTL): New.
27736         * toplev.c (initialize_rtl): Use an auto_timevar to account this
27737         function's time to TV_INITIALIZE_RTL.
27739 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
27741         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
27742         gimple_build_nop calls.
27743         (chkp_find_bounds_for_elem): Likewise.
27744         (chkp_get_zero_bounds): Likewise.
27745         (chkp_get_none_bounds): Likewise.
27746         (chkp_get_bounds_by_definition): Likewise.
27747         (chkp_generate_extern_var_bounds): Likewise.
27748         (chkp_get_bounds_for_decl_addr): Likewise.
27749         (chkp_get_bounds_for_string_cst): Likewise.
27751 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
27753         PR tree-optimization/65447
27754         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
27755         (dump_use, dump_uses): Support to dump sub use.
27756         (record_use): New parameters to support sub use.  Remove call to
27757         dump_use.
27758         (record_sub_use, record_group_use): New functions.
27759         (compute_max_addr_offset, split_all_small_groups): New functions.
27760         (group_address_uses, rewrite_use_address): New functions.
27761         (strip_offset): New declaration.
27762         (find_interesting_uses_address): Call record_group_use.
27763         (add_candidate): New assertion.
27764         (infinite_cost_p): Move definition forward.
27765         (add_costs): Check INFTY cost and return immediately.
27766         (get_computation_cost_at): Clear setup cost and dependent bitmap
27767         for sub uses.
27768         (determine_use_iv_cost_address): Compute cost for sub uses.
27769         (rewrite_use_address_1): Rename from old rewrite_use_address.
27770         (free_loop_data): Free sub uses.
27771         (tree_ssa_iv_optimize_loop): Call group_address_uses.
27773 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27774             Jim Wilson  <jim.wilson@linaro.org>
27776         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
27777         new  fields loadv and storev.
27778         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
27779         Initialize loadv and storev.
27780         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
27781         (cortexa53_extra_costs): Likewise.
27782         (cortexa57_extra_costs): Likewise.
27783         (xgene1_extra_costs): Likewise.
27784         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
27785         rtx_costs.
27787 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
27789         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
27790          storev.
27791         (cortexa8_extra_costs): Likewise.
27792         (cortexa5_extra_costs): Likewise.
27793         (cortexa7_extra_costs): Likewise.
27794         (cortexa12_extra_costs): Likewise.
27795         (cortexa15_extra_costs): Likewise.
27796         (v7m_extra_costs): Likewise.
27798 2015-05-20  Jeff Law  <law@redhat.com>
27800         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
27801         instead of open-coded version.  Also delete the jump thread created
27802         within this function.
27804 2015-05-20  Alan Modra  <amodra@gmail.com>
27806         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
27807         stack adjusting insn.  Formatting.
27808         (rs6000_emit_prologue): Track stack adjusting insn, and use of
27809         r12.  If possible, emit first -fsplit-stack arg pointer insn
27810         before stack adjust.  Don't use r12 to save cr if split-stack.
27812 2015-05-20  Alan Modra  <amodra@gmail.com>
27814         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
27815         Define.
27816         (rs6000_supports_split_stack): New function.
27817         * config/rs6000/rs6000.c (machine_function): Add
27818         split_stack_arg_pointer.
27819         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
27820         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
27821         rather than virtual_incoming_args_rtx.
27822         (rs6000_va_start): Likewise.
27823         (split_stack_arg_pointer_used_p): New function.
27824         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
27825         (morestack_ref): New var.
27826         (gen_add3_const, rs6000_expand_split_stack_prologue,
27827         rs6000_internal_arg_pointer, rs6000_live_on_entry,
27828         rs6000_split_stack_space_check): New functions.
27829         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
27830         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
27831         (UNSPECV_SPLIT_STACK_RETURN): Define.
27832         (split_stack_prologue, load_split_stack_limit,
27833         load_split_stack_limit_di, load_split_stack_limit_si,
27834         split_stack_return, split_stack_space_check): New expands and insns.
27835         * config/rs6000/rs6000-protos.h
27836         (rs6000_expand_split_stack_prologue): Declare.
27837         (rs6000_split_stack_space_check): Declare.
27839 2015-05-20  Alan Modra  <amodra@gmail.com>
27841         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
27842         (direct_return): Test vrsave_size rather than vrsave_mask.
27843         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
27844         (rs6000_emit_epilogue): Likewise.
27846 2015-05-20  Alan Modra  <amodra@gmail.com>
27848         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
27849         when not saving registers.
27850         (debug_stack_info): Adjust to omit printing unused offsets,
27851         as before.
27852         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
27853         expression.
27855 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27857         PR c++/65835
27858         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
27859         value_type to const char *.
27861 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
27863         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
27864         to build a biarch toolchain again.
27866 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
27868         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
27869         or implicit declarations.
27870         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
27871         into it.
27872         (get_odr_type): Check type has linkage before adding bases.
27873         (register_odr_type): Check that type has linkage before adding it.
27874         (type_known_to_have_no_deriavations_p): Rename to ..
27875         (type_known_to_have_no_derivations_p): This one.
27876         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
27877         (type_known_to_have_no_derivations_p): This one.
27878         * ipa-polymorphic-call.c
27879         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
27880         type has linkage.
27882 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27884         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
27885         (layout_type): Use RECORD_OR_UNION_TYPE_P.
27887 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27889         * config/s390/s390.c (s390_vector_bool_type_p): New function.
27890         (s390_invalid_binary_op): New function.
27891         (TARGET_INVALID_BINARY_OP): Define macro.
27893 2015-05-19  David Sherwood  <david.sherwood@arm.com>
27895         * loop-invariant.c (create_new_invariant): Don't calculate address cost
27896         if mode is not a scalar integer.
27897         (get_inv_cost): Increase computational cost for unused invariants.
27899 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27901         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
27902         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
27903         * config/s390/s390-builtin-types.def: New file.
27904         * config/s390/s390-builtins.def: New file.
27905         * config/s390/s390-builtins.h: New file.
27906         * config/s390/s390-c.c: New file.
27907         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
27908         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
27909         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
27910         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
27911         prototypes.
27912         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
27913         Include.
27914         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
27915         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
27916         variable definitions.
27917         (s390_const_operand_ok): New function.
27918         (s390_expand_builtin): Rewrite.
27919         (s390_init_builtins): New function.
27920         (s390_handle_vectorbool_attribute): New function.
27921         (s390_attribute_table): Add s390_vector_bool attribute.
27922         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
27923         (s390_branch_condition_mask): Generate masks for new modes.
27924         (s390_expand_vec_compare_cc): New function.
27925         (s390_mangle_type): Add mangling for vector bool types.
27926         (enum s390_builtin): Remove.
27927         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
27928         efpc builtins.
27929         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
27930         s390_cpu_cpp_builtins.
27931         (REGISTER_TARGET_PRAGMAS): New macro.
27932         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
27933         (insn_cmp mode attribute): Add new CC modes.
27934         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
27935         (lcbb): New pattern definition.
27936         * config/s390/s390intrin.h: Include vecintrin.h.
27937         * config/s390/t-s390: New file.
27938         * config/s390/vecintrin.h: New file.
27939         * config/s390/vector.md: Include vx-builtins.md.
27940         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
27941         support.
27943 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27945         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
27946         CCVFHE.
27947         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
27948         (s390_select_ccmode): Likewise.
27949         (s390_canonicalize_comparison): Swap operands if necessary.
27950         (s390_expand_vec_compare_scalar): Expand DFmode compare using
27951         single element vector instructions.
27952         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
27953         (s390_branch_condition_mask): Generate CC masks for the new modes.
27954         * config/s390/s390.md (v0, vf, vd): New mode attributes.
27955         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
27956         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
27957         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
27958         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
27959         (*extend<DSF:mode><BFP:mode>2): New insn definition.
27960         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
27961         (extend<DSF:mode><BFP:mode>2): Turn into expander.
27962         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
27963         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
27964         (sqrt<mode>2): Add vector instruction.
27966 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27968         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
27969         constraints.
27970         * config/s390/predicates.md (const0_operand, constm1_operand)
27971         (constable_operand): Accept vector operands.
27972         * config/s390/s390-modes.def: Add supported vector modes.
27973         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
27974         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
27975         (s390_bytemask_vector_p, s390_expand_vec_strlen)
27976         (s390_expand_vec_compare, s390_expand_vcond)
27977         (s390_expand_vec_init): Add prototypes.
27978         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
27979         (s390_vector_mode_supported_p): New function.
27980         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
27981         (s390_contiguous_bitmask_vector_p): New function.
27982         (s390_bytemask_vector_p): New function.
27983         (s390_split_ok_p): Vector regs don't work either.
27984         (regclass_map): Add VEC_REGS.
27985         (s390_legitimate_constant_p): Handle vector constants.
27986         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
27987         (legitimate_reload_vector_constant_p): New function.
27988         (s390_preferred_reload_class): Handle CONST_VECTOR.
27989         (s390_reload_symref_address):  Likewise.
27990         (s390_secondary_reload): Vector memory instructions only support
27991         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
27992         (s390_emit_ccraw_jump): New function.
27993         (s390_expand_vec_strlen): New function.
27994         (s390_expand_vec_compare): New function.
27995         (s390_expand_vcond): New function.
27996         (s390_expand_vec_init): New function.
27997         (s390_dwarf_frame_reg_mode): New function.
27998         (print_operand): Handle addresses with 'O' and 'R' constraints.
27999         (NR_C_MODES, constant_modes): Add vector modes.
28000         (s390_output_pool_entry): Handle vector constants.
28001         (s390_hard_regno_mode_ok): Handle vector registers.
28002         (s390_class_max_nregs): Likewise.
28003         (s390_cannot_change_mode_class): New function.
28004         (s390_invalid_arg_for_unprototyped_fn): New function.
28005         (s390_function_arg_vector): New function.
28006         (s390_function_arg_float): Remove size variable.
28007         (s390_pass_by_reference): Handle vector arguments.
28008         (s390_function_arg_advance): Likewise.
28009         (s390_function_arg): Likewise.
28010         (s390_return_in_memory): Vector values are returned in a VR if
28011         possible.
28012         (s390_function_and_libcall_value): Handle vector arguments.
28013         (s390_gimplify_va_arg): Likewise.
28014         (s390_call_saved_register_used): Consider the arguments named.
28015         (s390_conditional_register_usage): Disable v16-v31 for non-vec
28016         targets.
28017         (s390_preferred_simd_mode): New function.
28018         (s390_support_vector_misalignment): New function.
28019         (s390_vector_alignment): New function.
28020         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
28021         (TARGET_VECTOR_MODE_SUPPORTED_P)
28022         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
28023         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
28024         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
28025         (TARGET_VECTOR_ALIGNMENT): Define target macro.
28026         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
28027         (FIRST_PSEUDO_REGISTER): Increase value.
28028         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
28029         (VECTOR_REG_P): Define macros.
28030         (FIXED_REGISTERS, CALL_USED_REGISTERS)
28031         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
28032         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
28033         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
28034         Add vector registers.
28035         (CANNOT_CHANGE_MODE_CLASS): Call C function.
28036         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
28037         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
28038         memory.
28039         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
28040         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
28041         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
28042         (VR*_REGNUM): New constants.
28043         (ALL): New mode iterator.
28044         (INTALL): Remove mode iterator.
28045         Include vector.md.
28046         (movti): Implement TImode moves for VRs.
28047         Disable TImode splitter for VR targets.
28048         Implement splitting TImode GPR<->VR moves.
28049         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
28050         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
28051         reload<mode>_la_in, reload<mode>_la_out.
28052         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
28053         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
28054         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
28055         (mov<mode> SF SD): Prefer lder, lde for loading.
28056         Add lrl and strl instructions.
28057         Add vector instructions.
28058         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
28059         Call s390_expand_vec_strlen on z13.
28060         (*cc_to_int): Change predicate to nonimmediate_operand.
28061         (addti3): Rename to *addti3.  New expander.
28062         (subti3): Rename to *subti3.  New expander.
28063         * config/s390/vector.md: New file.
28065 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28067         * common/config/s390/s390-common.c (processor_flags_table): Add
28068         z13.
28069         * config.gcc: Add z13.
28070         * config/s390/s390-opts.h (enum processor_type): Add
28071         PROCESSOR_2964_Z13.
28072         * config/s390/s390.c (s390_adjust_priority): Check for
28073         PROCESSOR_2964_Z13.
28074         (s390_reorg): Likewise.
28075         (s390_sched_reorder): Likewise.
28076         (s390_sched_variable_issue): Likewise.
28077         (s390_loop_unroll_adjust): Likewise.
28078         (s390_option_override): Likewise. Default to -mvx when available.
28079         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
28080         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
28081         (TARGET_VX_ABI): Define macros.
28082         macros.
28083         (TARGET_DEFAULT): Add MASK_OPT_VX.
28084         * config/s390/s390.md ("cpu" attribute): Add z13.
28085         ("cpu_facility" attribute): Add vec.
28086         * config/s390/s390.opt (processor_type): Add z13.
28087         (mvx): New options.
28088         * doc/invoke.texi: Add z13 option for -march.
28090 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28092         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
28093         mode check to make sure that only scalar integer values are
28094         accepted.
28096 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
28098         * tree.c (verify_type_variant): Fix #undef.
28099         (gimple_canonical_types_compatible_p): Move here from lto.c
28100         (verify_type): Verify TYPE_CANONICAL compatibility.
28101         * tree.h (gimple_canonical_types_compatible_p): Declare.
28103 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28105         PR middle-end/66199
28106         * tree.h (OMP_TEAMS_COMBINED): Define.
28107         * gimplify.c (enum gimplify_omp_var_data): Add
28108         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
28109         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
28110         (omp_notice_variable): Accept both ORT_TEAMS
28111         and ORT_COMBINED_TEAMS.  Don't recurse if
28112         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
28113         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
28114         GOVD_FIRSTPRIVATE.
28115         (omp_no_lastprivate): New function.
28116         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
28117         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
28118         notice_outer and set appropriate bits, otherwise make
28119         sure default(none) combined constructs won't complain.
28120         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
28121         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
28122         omp_no_lastprivate either remove the clause or turn it
28123         into OMP_CLAUSE_PRIVATE.
28124         (gimplify_omp_for): Fix up handling of implicit
28125         lastprivate or linear iterators.
28126         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
28127         ORT_COMBINED_TEAMS.
28128         * omp-low.c (lower_omp_for_lastprivate): For combined
28129         for simd use fd.loop.n2 from the for rather than simd.
28131 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28133         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
28134         instead of gen_rtx_raw_REG.
28135         (cris_expand_epilogue): Likewise.
28136         * config/microblaze/microblaze.c (microblaze_classify_address):
28137         Likewise.
28138         * config/sparc/sparc.md: Likewise.
28140 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
28142         * config/alpha/alpha.c (alpha_legitimize_reload_address)
28143         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
28144         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
28145         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
28146         Use CASE_CONST_SCALAR_INT.
28147         (print_operand) <case 'M'>: Use mode_width_operand to check the
28148         value of the constant.
28149         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
28150         * config/alpha/predicates.md (input_operand): Use general_operand
28151         instead of match_code as operand check.
28152         (symbolic_operand): Use match_code with subexpression digits.
28153         * config/alpha/constraints.md (Q): Ditto.
28155 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28157         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
28159 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28161         * config/s390/s390.c (s390_secondary_reload): Fix check for
28162         load/store relative.
28164 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28166         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
28167         alternative_mask to uint64_t.
28169 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
28171         PR tree-optimization/66187
28172         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
28173         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
28174         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
28176 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
28178         * diagnostic.c (diagnostic_report_current_module): Strengthen
28179         local "new_map" from const line_map * to
28180         const line_map_ordinary *.
28181         * genmatch.c (error_cb): Likewise for local "map".
28182         (output_line_directive): Likewise for local "map".
28183         * input.c (expand_location_1): Likewise for local "map".
28184         Pass NULL rather than &map to
28185         linemap_unwind_to_first_non_reserved_loc, since the value is never
28186         read from there, and the value written back not read from here.
28187         (is_location_from_builtin_token): Strengthen local "map" from
28188         const line_map * to const line_map_ordinary *.
28189         (dump_location_info): Strengthen locals "map" from
28190         line_map *, one to const line_map_ordinary *, the other
28191         to const line_map_macro *.
28192         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
28193         const line_map * to const line_map_macro *.
28194         (maybe_unwind_expanded_macro_loc): Add a call to
28195         linemap_check_macro when writing to the "map" field of the
28196         loc_map_pair.
28197         Introduce local const line_map_ordinary * "ord_map", using it in
28198         place of "map" in the part of the function where we know we have
28199         an ordinary map.  Strengthen local "m" from const line_map * to
28200         const line_map_ordinary *.
28202 2015-05-19  Nick Clifton  <nickc@redhat.com>
28204         PR target/66156
28205         * config/msp430/msp430.md (zero_extendhisi2): Add support for
28206         separate source and destination registers.
28208 2015-05-19  Richard Biener  <rguenther@suse.de>
28210         PR tree-optimization/66165
28211         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
28212         for no load permutation.
28214         PR tree-optimization/66185
28215         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
28216         when building the SLP node from scalars.
28218 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28219             Tristan Gingold  <gingold@adacore.com>
28221         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
28222         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
28223         (expand_stack_restore): Call record_new_stack_level.
28224         (expand_stack_save): Do not call do_pending_stack_adjust.
28225         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
28226         * calls.c (expand_call): Call record_new_stack_level for alloca.
28227         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
28228         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
28229         (update_sjlj_context): New global function.
28230         * except.h (update_sjlj_context): Declare.
28231         * explow.c (record_new_stack_level): New global function.
28232         (allocate_dynamic_stack_space): Call record_new_stack_level.
28233         * explow.h (record_new_stack_level): Declare.
28234         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
28235         * cfgrtl.c (duplicate_insn_chain): Likewise.
28237 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28239         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
28240         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
28241         STACK_GROWS_DOWNWARD as normal if.
28242         (expand_call): Likewise.
28244 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
28246         PR target/54236
28247         * config/sh/sh.md (*round_int_even): New insn_and_split and
28248         accompanying new unnamed split.
28250 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28252         * bitmap.c (bitmap_set_range): Handle count==1 specially.
28253         (bitmap_clear_range): Likewise.
28254         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
28255         bitmap_set_range unconditionally.
28256         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28257         * df-scan.c (df_mark_reg): Likewise.
28258         * haifa-sched.c (setup_ref_regs): Likewise.
28259         * sched-rgn.c (update_live_1): Likewise.
28261 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28263         * regs.h (END_HARD_REGNO): Delete.
28264         (END_REGNO): Move to...
28265         * rtl.h: ...here.
28266         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
28267         * caller-save.c (mark_set_regs): Likewise.
28268         * combine.c (move_deaths, distribute_notes): Likewise.
28269         * cse.c (invalidate, invalidate_for_call): Likewise.
28270         * df-scan.c (df_ref_record): Likewise.
28271         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
28272         (record_last_reg_set_info): Likewise.
28273         * reg-stack.c (convert_regs_exit): Likewise.
28274         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
28275         * resource.c (update_live_status): Likewise.
28276         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
28278 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28280         * rtl.h (reg_info): Add an nregs field.
28281         (REG_NREGS): Use it.
28282         (SET_REGNO_RAW): Delete.
28283         (set_regno_raw): New function.
28284         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
28285         (END_REGNO): Redefine in terms of REG_NREGS.
28286         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
28287         SET_REGNO_RAW.
28288         * emit-rtl.c (set_mode_and_regno): Likewise.
28289         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
28290         instead of SET_REGNO_RAW.
28292 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28294         * rtl.h (PUT_MODE_RAW): New macro.
28295         (PUT_REG_NOTE_KIND): Use it.
28296         (set_mode_and_regno): Declare.
28297         (gen_raw_REG): Change regno to "unsigned int".
28298         (gen_rtx_REG): Change "unsigned" to "unsigned int".
28299         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
28300         use set_mode_and_regno to change the mode of registers.
28301         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
28302         * emit-rtl.c (set_mode_and_regno): New function.
28303         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
28304         * caller-save.c (reg_save_code): Use set_mode_and_regno.
28305         * expr.c (init_expr_target): Likewise.
28306         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28307         * postreload.c (reload_cse_simplify_operands): Likewise.
28309 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28311         * caller-save.c (init_caller_save): Use word_mode and
28312         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
28313         * expr.c (init_expr_target): Likewise.
28314         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28315         * postreload.c (reload_cse_regs_1): Likewise.
28317 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28319         * rtl.def (REG): Change format to "r".
28320         * rtl.h (rtunion): Remove rt_reg.
28321         (reg_info): New structure.
28322         (rtx_def): Add reg field to main union.
28323         (X0REGATTR): Delete.
28324         (REG_CHECK): New macro.
28325         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
28326         * rtl.c (rtx_format): Document "r".
28327         (rtx_code_size): Handle REG specially.
28328         * gengenrtl.c (special_format): Return true for formats
28329         that include 'r'.
28330         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
28331         Deal with REG_ATTRS after the field loop.
28332         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
28333         * expmed.c (init_expmed): Call gen_raw_REG instead of
28334         gen_rtx_raw_REG.
28335         * expr.c (init_expr_target): Likewise.
28336         * regcprop.c (maybe_mode_change): Likewise.
28337         * varasm.c (make_decl_rtl): Likewise.
28338         * final.c (leaf_renumber_regs_insn): Return early after
28339         handling REGs.
28340         * genemit.c (gen_exp): Handle 'r' fields.
28341         * genpeep.c (match_rtx): Likewise.
28342         * gensupport.c (subst_pattern_match): Likewise.
28343         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
28344         (alter_constraints, subst_dup): Likewise.
28345         * read-rtl.c (read_rtx_code): Likewise.
28346         * print-rtl.c (print_rtx): Likewise.
28347         * genrecog.c (find_operand, find_matching_operand): Likewise.
28348         (validate_pattern, match_pattern_2): Likewise.
28349         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
28350         (rtx_test::regno_field): New function.
28351         (operator ==, safe_to_hoist_p, transition_parameter_type)
28352         (parameter_type_string, print_parameter_value)
28353         (print_nonbool_test, print_test): Handle new enum values.
28354         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
28355         * lra-constraints.c (operands_match_p): Likewise.
28357 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28359         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
28360         Change type of new_regno to unsigned int.
28361         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
28362         new_regno to unsigned int.
28363         (df_ref_change_reg_with_loc): Remove old_regno parameter.
28364         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
28365         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
28366         (SET_REGNO_RAW): Add space after ",".
28368 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28370         * rtl.h (REG_NREGS): New macro
28371         * alias.c (record_set): Use it.
28372         * cfgcleanup.c (mark_effect): Likewise.
28373         * combine.c (likely_spilled_retval_1): Likewise.
28374         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
28375         (move_deaths, distribute_notes): Likewise.
28376         * cselib.c (cselib_record_set): Likewise.
28377         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
28378         * df-scan.c (df_mark_reg): Likewise.
28379         * dse.c (look_for_hardregs): Likewise.
28380         * dwarf2out.c (reg_loc_descriptor): Likewise.
28381         (multiple_reg_loc_descriptor): Likewise.
28382         * expr.c (write_complex_part, read_complex_part): Likewise.
28383         (emit_move_complex): Likewise.
28384         * haifa-sched.c (setup_ref_regs): Likewise.
28385         * ira-lives.c (mark_hard_reg_live): Likewise.
28386         * lra.c (lra_set_insn_recog_data): Likewise.
28387         * mode-switching.c (create_pre_exit): Likewise.
28388         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
28389         (reload_combine_recognize_pattern): Likewise.
28390         (reload_combine_note_use, move2add_record_mode): Likewise.
28391         (reload_cse_move2add): Likewise.
28392         * reg-stack.c (subst_stack_regs_pat): Likewise.
28393         * regcprop.c (kill_value, copy_value): Likewise.
28394         (copyprop_hardreg_forward_1): Likewise.
28395         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
28396         (build_def_use): Likewise.
28397         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
28398         (deps_analyze_insn): Likewise.
28399         * sched-rgn.c (check_live_1, update_live_1): Likewise.
28400         * sel-sched.c (count_occurrences_equiv): Likewise.
28401         * valtrack.c (dead_debug_insert_temp): Likewise.
28403 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
28405         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
28406         * dse.c (note_add_store): Likewise.
28407         * ira-lives.c (mark_hard_reg_dead): Likewise.
28408         * loop-invariant.c (mark_reg_store): Likewise.
28409         (mark_reg_death): Likewise.
28410         * postreload.c (reload_combine): Likewise.
28411         (reload_combine_note_store): Likewise.
28412         (reload_combine_note_use): Likewise.
28413         * recog.c (peep2_reg_dead_p): Likewise.
28415 2015-05-19  Alan Modra  <amodra@gmail.com>
28417         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
28418         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
28419         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
28420         unused predicates.
28421         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
28422         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
28423         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
28424         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
28426 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
28428         * config/mips/mips.md (JOIN_MODE): New mode iterator.
28429         (join2_load_Store<JOIN_MODE:mode>): New pattern.
28430         (join2_loadhi): Likewise.
28431         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
28432         load-load and store-stores.
28433         * config/mips/mips.opt (mload-store-pairs): New option.
28434         (TARGET_LOAD_STORE_PAIRS): New macro.
28435         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
28436         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
28437         * config/mips/mips.c (mips_load_store_bonding_p): New function.
28439 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
28441         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
28442         explicit swaps.
28443         * dojump.c (do_compare_rtx_and_jump): Likewise.
28444         * expmed.c (emit_store_flag_1): Likewise.
28445         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
28446         * final.c (sprint_ul): Use std::reverse for reversing a string.
28447         * fold-const.c (extract_muldiv_1): Use std::swap.
28448         * genmodes.c (emit_mode_int_n): Likewise.
28449         * ifcvt.c (dead_or_predicable): Likewise.
28450         * ira-build.c (ira_merge_live_ranges): Likewise.
28451         (swap_allocno_copy_ends_if_necessary): Likewise.
28452         * ira.c (ira_setup_alts): Likewise.
28453         * loop-iv.c (iv_analyze_expr): Likewise.
28454         (implies_p): Likewise.
28455         (canon_condition): Likewise.
28456         * lra-constraints.c (swap_operands): Likewise.
28457         * lra-lives.c (lra_merge_live_ranges): Likewise.
28458         * omega.c (swap): Remove.
28459         (bswap): Remove.
28460         (omega_unprotect_1): Use std::swap.
28461         (omega_solve_geq): Likewise.
28462         * optabs.c (expand_binop_directly): Likewise.
28463         (expand_binop): Likewise.
28464         (emit_conditional_move): Likewise.
28465         (emit_conditional_add): Likewise.
28466         * postreload.c (reload_cse_simplify_operands): Likewise.
28467         * reg-stack.c (emit_swap_insn): Likewise.
28468         (swap_to_top): Likewise.
28469         (compare_for_stack_reg): Likewise.
28470         (subst_asm_stack_regs): Likewise.
28471         * reload.c (find_reloads): Likewise.
28472         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
28473         * sel-sched.c (invoke_reorder_hooks): Likewise.
28474         (create_block_for_bookkeeping): Likewise.
28475         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
28476         (lambda_matrix_right_hermite): Use std::swap.
28477         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
28478         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
28479         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
28480         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
28481         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
28482         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
28483         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
28484         * tree-vrp.c (compare_ranges): Likewise.
28485         * var-tracking.c (add_with_sets): Likewise.
28486         (vt_find_locations): Likewise.
28488 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
28490         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
28491         pie executables.
28492         (FBSD_ENDFILE_SPEC): Likewise.
28493         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
28494         config/freebsd-spec.h.
28495         (ENDFILE_SPEC): Likewise.
28497 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
28498             Richard Henderson  <rth@redhat.com>
28500         PR target/57032
28501         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
28502         Check for a memory location that is not a reference (using an AND)
28503         to an unaligned location here.
28504         * config/alpha/predicates.md (normal_memory_operand): Remove.
28506 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
28508         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
28509         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
28511 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
28513         * config/mips/mips.c (micromips_globals): New variable.
28514         (mips_set_compression_mode): Save and reinitialize target-dependent
28515         state for microMIPS.
28517 2015-05-18  Martin Liska  <mliska@suse.cz>
28519         * dbgcnt.def: Add new counter.
28520         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
28522 2015-05-18  Martin Liska  <mliska@suse.cz>
28524         * dbgcnt.def: Sort counters.
28525         * opts.c (common_handle_option): Do not compile if
28526         -fdbg-cnt-list is enabled.
28528 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28530         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
28531         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
28532         address operator to va_list operand.
28533         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
28534         unconditionally.
28535         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
28536         operand.
28537         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
28538         * config/s390/s390.c (s390_gimplify_va_arg): Same.
28539         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
28541 2015-05-18  Tom de Vries  <tom@codesourcery.com>
28543         * tree-ssa-tail-merge.c: Fix whitespace.
28545 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
28547         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
28548         cortex-a17, and cortex-a17.cortex-a7.
28550 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
28552         PR target/54236
28553         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
28555 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
28557         PR target/66174
28558         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
28559         QImode inner modes for TARGET_AVX512BW.  Force mask operand
28560         to a register for AVX512F modes.
28562 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28564         * toplev.c (emit_debug_global_declarations): Do not output debug info
28565         when doing slim LTO objects.
28567 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28569         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
28570         odr_types_equivalent_p): Declare.
28571         (odr_type_p): Use gcc_checking_assert.
28572         (type_in_anonymous_namespace_p) Declare.
28573         (type_with_linkage_p): Declare.
28574         * common.opt (Wlto-type-mismatch): New warning.
28575         * ipa-devirt.c (compound_type_base): New function.
28576         (odr_or_derived_type_p): New function.
28577         (odr_types_equivalent_p): New function.
28578         (add_type_duplicate): Simplify.
28579         (type_with_linkage_p): Add hack to prevent false positives on C types
28580         (type_in_anonymous_namespace_p): Likewise.
28581         * tree.c (need_assembler_name_p): Use type_with_linkage.
28582         * tree.h (type_in_anonymous_namespace_p): Remove.
28583         * doc/invoke.texi (-Wlto-type-mismatch): Document
28585 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
28587         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
28588         (verify_type): Verify STRING_FLAG.
28590 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28592         PR fortran/44054
28593         * tree-pretty-print.c (percent_K_format): Replace locus pointer
28594         with accessor function.
28595         * tree-diagnostic.c (diagnostic_report_current_function): Use
28596         diagnostic_location function.
28597         (maybe_unwind_expanded_macro_loc): Likewise.
28598         (virt_loc_aware_diagnostic_finalizer): Likewise.
28599         (default_tree_printer): Replace locus pointer with accessor function.
28600         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
28601         (diagnostic_set_info_translated): Initialize second location.
28602         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
28603         (diagnostic_show_locus): Handle two locations. Call
28604         diagnostic_print_caret_line.
28605         (diagnostic_print_caret_line): New.
28606         (default_diagnostic_starter): Use diagnostic_location function.
28607         (diagnostic_report_diagnostic): Use diagnostic_location function.
28608         (verbatim): Do not set text.locus.
28609         * diagnostic.h (struct diagnostic_info): Remove location field.
28610         (struct diagnostic_context): Make caret_chars an array of two.
28611         (diagnostic_location): New inline.
28612         (diagnostic_expand_location): Handle two locations.
28613         (diagnostic_same_line): New inline.
28614         (diagnostic_print_caret_line): Declare.
28615         (CARET_LINE_MARGIN): New constant.
28616         * pretty-print.c (pp_printf): Do not set text.locus.
28617         (pp_verbatim): Do not set text.locus.
28618         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
28619         (struct text_info): Replace locus pointer with locations
28620         array. Add accessor functions.
28622 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
28623             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28625         PR target/65768
28626         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
28627         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
28628          large constants in register instead of splitting them.
28630 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
28632         PR target/66140
28633         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
28634         replacements in memory addresses.
28635         (get_unaligned_address): Ditto.
28637 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
28639         * config/ft32/*: New files for FT32 port.
28640         * doc/install.texi: Add FT32 information.
28641         * doc/invoke.texi: Add FT32 information.
28642         * doc/md.texi: Add FT32 information.
28643         * doc/contrib.texi: Self added.
28645 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
28647         PR tree-optimization/64454
28648         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
28649         (-1 - A -> ~A): Remove unnecessary condition.
28651 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
28653         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
28654         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
28655         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
28657 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
28659         * ipa-chkp.h (chkp_wrap_function): New.
28660         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
28661         (chkp_wrap_function_name): New.
28662         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
28663         to get wrapper name.
28664         * lto-cgraph.c: Include ipa-chkp.h.
28665         (input_cgraph_1): Avoid alias chain for wrappers.
28667 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
28669         PR middle-end/66134
28670         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
28671         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
28673 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28675         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
28676         (AARCH64_FL_SLOWMUL): Delete.
28677         (AARCH64_FL_CRC): Redefine to 1<<3.
28678         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
28680 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28682         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
28683         casting.
28685 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28687         * config/alpha/alpha.md (extendqidi2): Use general_operand
28688         instead of some_operand for operand[1] predicate.
28689         (extendhidi2): Ditto.
28690         (cbranchdi4): Use general_operand instead of some_operand
28691         for operand[1] and operands[2] predicates.
28692         (cstoredi4): Ditto.
28693         * config/alpha/predicates.md (some_operand): Remove unused predicate.
28694         (some_ni_operand): Ditto.
28696 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
28698         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
28699         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
28700         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
28701         low part of the constant using alpha_emit_set_const_1.
28702         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
28704 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
28706         * varasm.c (output_constant_pool_1): Pass down alignment from
28707         constant pool entry's descriptor to output_constant_pool_2.
28708         (output_object_block): Add comment prior to call to
28709         output_constant_pool_1.
28711 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
28713         PR rtl-optimization/65862
28714         * target.def (ira_change_pseudo_allocno_class): New hook.
28715         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
28716         value of the hook.
28717         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
28718         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
28719         hook.
28720         * ira-costs.c (find_costs_and_classes): Call the hook and change
28721         classes when it is necessary.
28722         * doc/tm.texi: Update.
28724 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
28726         * config/i386/i386.md (sibcall_memory): Check that register with
28727         callee address is not also used as one of the arguments, instead
28728         of checking that it is not live after the sibcall.
28729         (sibcall_pop_memory): Ditto.
28730         (sibcall_value_memory): Ditto.
28731         (sibcall_value_pop_memory): Ditto.
28733 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
28735         * generic-match-head.c (types_match): Handle non-types.
28736         * gimple-match-head.c (types_match): Likewise.
28737         * match.pd: Remove unnecessary TREE_TYPE for types_match.
28739 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
28741         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
28742         (csneg3<mode>_insn): Enable expansion of pattern.
28744 2015-05-14  Nick Clifton  <nickc@redhat.com>
28746         * config/rl78/rl78.c (rl78_select_section): Select the correct
28747         default section based upon the category of the decl.
28749 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28751         PR rtl-optimization/30967
28752         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
28753         destination mode for the cost of scc patterns.
28755 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28757         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
28758         using SWIM248 mode iterator.
28759         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
28760         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
28761         for operand[2] constraint.
28762         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
28764 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28766         PR middle-end/66133
28767         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
28768         make sure it is never noreturn, even when the task body does not
28769         return.
28770         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
28771         right before GIMPLE_OMP_RETURN.
28772         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
28773         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
28774         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
28776 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28778         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
28779         * tree-ssa-math-opts.c: Include params.h
28780         (pow_synth_sqrt_info): New struct.
28781         (representable_as_half_series_p): New function.
28782         (get_fn_chain): Likewise.
28783         (print_nested_fn): Likewise.
28784         (dump_fractional_sqrt_sequence): Likewise.
28785         (dump_integer_part): Likewise.
28786         (expand_pow_as_sqrts): Likewise.
28787         (gimple_expand_builtin_pow): Use above to attempt to expand
28788         pow as series of square roots.  Removed now unused variables.
28790 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
28792         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
28793         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
28794         Remove *p0 and *p1 arguments.  Rewrite function.
28795         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
28796         (alpha_split_const_mov): Update calls to alpha_extract_integer and
28797         alpha_emit_set_long_const.
28798         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
28799         (alpha_output_mi_thunk_osf): Ditto.
28800         * config/alpha/alpha.md (movti): Do not check operands[1]
28801         for CONST_DOUBLE.
28803 2015-05-13  Richard Biener  <rguenther@suse.de>
28805         PR tree-optimization/66129
28806         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
28807         commutative.
28808         (vect_schedule_slp_instance): Fix typo.
28810 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
28812         * common.opt (fdump-internal-locations): New option.
28813         * input.c: Include diagnostic-core.h.
28814         (get_end_location): New function.
28815         (write_digit): New function.
28816         (write_digit_row): New function.
28817         (dump_location_range): New function.
28818         (dump_labelled_location_range): New function.
28819         (dump_location_info): New function.
28820         * input.h (dump_location_info): New prototype.
28821         * toplev.c (compile_file): Handle flag_dump_locations.
28823 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
28825         * gimple-expr.h (is_gimple_constant): Reorder.
28826         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
28828 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
28830         * combine.c (simplify_set): When generating a CC set, if the
28831         source already is in the correct mode, do not wrap it in a
28832         compare.  Simplify the rest of that code.
28834 2015-05-13  Richard Biener  <rguenther@suse.de>
28836         PR tree-optimization/66123
28837         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
28838         a taken edge.
28840 2015-05-13  Richard Biener  <rguenther@suse.de>
28842         PR middle-end/66110
28843         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
28844         specially.
28845         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
28847 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28849         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
28850         * aclocal.m4: Regenerated with automake-1.11.6.
28852 2015-05-13  Tom de Vries  <tom@codesourcery.com>
28854         PR tree-optimization/66010
28855         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
28856         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
28857         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
28858         and rval based on do_deref.
28860 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28862         PR target/65103
28863         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
28864         link time constants into adress expressions and therefore set
28865         their cost to 0.
28867 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
28869         PR target/66112
28870         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
28871         Use SWI248 iterator instead of SWI.
28872         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
28873         Use eq_attr "alternative" "0" instead of match_test in
28874         length_immediate attribute computation.
28875         (*mulvhi4, *mulvhi4_1): New define_insns.
28877         PR target/66112
28878         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
28879         SIGNED to get precision of non-negative value.
28881 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28883         PR target/66048
28884         * function.c (diddle_return_value_1): Process bounds first.
28885         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
28886         register.
28888 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28890         PR rtl-optimization/64616
28891         * loop-invariant.c (can_move_invariant_reg): New.
28892         (move_invariant_reg): Call above new function to decide whether
28893         instruction can just be moved, skipping creation of temporary
28894         register.
28896 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28898         PR target/pr66047.c
28899         * i386.c (ix86_function_sseregparm): Only return -1 if local function
28900         with implied regparm is called from -mno-sse function.
28901         (init_cumulative_args): Output error if ix86_function_sseregparm
28902         return -1 and SSE register would be needed.
28903         (function_arg_advance_32): Likewise.
28904         (function_arg_32): Likewise.
28905         * i386.h (ix86_args): Add decl field.
28907 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
28909         PR ipa/65873
28910         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
28911         inlines across optimization boundary.
28913 2015-05-12  Jason Merrill  <jason@redhat.com>
28915         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
28916         string literal and macro name.
28918 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
28920         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
28921         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
28922         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
28924 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
28926         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
28927         (-Wmisleading-indentation): New option.
28928         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
28930 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
28932         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
28933         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
28934         (alpha_extract_integer): Ditto.
28935         (alpha_legitimate_constant_p): Ditto.
28936         (alpha_split_tmode_pair): Ditto.
28937         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
28938         (alpha_expand_mov): Ditto.
28939         (print_operand): Remove handling of 'H' modifier.
28940         <case 'm'>: Remove CONST_DOUBLE handling.
28941         (summarize_insn): Handle CONST_WIDE_INT.
28942         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
28943         (anddi3): Ditto.
28944         (movti): Handle CONST_WIDE_INT.
28945         * config/alpha/constraints.md ('H'): Remove constraint definition.
28946         ('G'): Do not match MODE_FLOAT class.
28947         * config/alpha/predicates.md (const0_operand): Also match
28948         const_wide_int.
28949         (non_add_const_operand): Ditto.
28950         (non_zero_const_operand): Ditto.
28951         (some_operand): Ditto.
28952         (input_operand): Ditto.  Handle CONST_WIDE_INT.
28953         (and_operand): Do not match const_double.
28954         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
28956 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
28958         PR target/65697
28959         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
28960         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
28961         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
28962         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
28963         is_mm_seq_cst, is_mm_sync): New accessor functions.
28964         * builtins.c (expand_builtin_sync_operation,
28965         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
28966         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
28967         (get_memmodel,  expand_builtin_atomic_compare_exchange,
28968         expand_builtin_atomic_load, expand_builtin_atomic_store,
28969         expand_builtin_atomic_clear): Use new accessor routines.
28970         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
28971         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
28972         (maybe_emit_sync_lock_test_and_set): Use new accessors and
28973         MEMMODEL_SYNC_ACQUIRE.
28974         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
28975         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
28976         expand_atomic_store): Use new accessors.
28977         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
28978         * tsan.c (instrument_builtin_call): Update check for memory model beyond
28979         final enum to use MEMMODEL_LAST.
28980         * c-family/c-common.c: Use new accessor for memmodel_base.
28981         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
28982         accessors.
28983         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
28984         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
28985         mem_thread_fence, *dmb): Likewise.
28986         * config/alpha/alpha.c (alpha_split_compare_and_swap,
28987         alpha_split_compare_and_swap_12): Likewise.
28988         * config/arm/arm.c (arm_expand_compare_and_swap,
28989         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
28990         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
28991         atomic_loaddi): Likewise.
28992         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
28993         Likewise.
28994         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
28995         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
28996         use new accessors.
28997         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
28998         atomic_store<mode>, atomic_compare_and_swap<mode>,
28999         atomic_exchange<mode>): Use new accessors.
29000         * config/mips/mips.c (mips_process_sync_loop): Likewise.
29001         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
29002         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
29003         rs6000_post_atomic_barrier): Add new cases.
29004         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
29005         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
29006         (atomic_load<mode>): Add new cases and use new accessors.
29007         (store_quadpti): Add new cases.
29008         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
29009         accessors.
29010         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
29011         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
29012         model, not 8.
29014 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
29016         * ipa-devirt.c (type_with_linkage_p): New function.
29017         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
29018         type has linkage.
29019         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
29020         (can_be_name_hashed_p): Simplify.
29021         (hash_odr_name): Check that type has linkage before checking if it is
29022         anonymous.
29023         (types_same_for_odr): Likewise.
29024         (odr_name_hasher::equal): Likewise.
29025         (odr_subtypes_equivalent_p): Likewise.
29026         (warn_types_mismatch): Likewise.
29027         (get_odr_type): Likewise.
29028         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
29029         * ipa-utils.h (odr_type_p): Move offline.
29030         * tree.c (need_assembler_name_p): Fix handling of types
29031         without linkages.
29032         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
29034 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
29036         * timevar.c (timevar_enable): Delete in favor of...
29037         (g_timer): New global.
29038         (struct timevar_def): Move to timevar.h inside class timer.
29039         (struct timevar_stack_def): Likewise.
29040         (timevars): Delete global in favor of field "m_timevars" within
29041         class timer in timevar.h
29042         (stack): Likewise, in favor of field "m_stack".
29043         (unused_stack_instances): Likewise, in favor of field
29044         "m_unused_stack_instances".
29045         (start_time): Likewise, in favor of field "m_start_time".
29046         (get_time): Eliminate check for timevar_enable.
29047         (timer::timer): New function, built from part of timevar_init.
29048         (timevar_init): Rewrite idempotency test from using
29049         "timevar_enable" bool to using dynamic allocation of "g_timer".
29050         Move rest of implementation into timer's constructor.
29051         (timevar_push_1): Rename to...
29052         (timer::push): ...this, adding "m_" prefixes to variables that
29053         are now fields of timer.
29054         (timevar_pop_1): Likewise, rename to...
29055         (timer::pop): ...this, and add "m_" prefixes.
29056         (timevar_start): Replace test for "timevar_enable" with one for
29057         "g_timer", and move bulk of implementation to...
29058         (timer::start): ...here, adding "m_" prefixes.
29059         (timevar_stop): Likewise, from here...
29060         (timer::stop): ...to here.
29061         (timevar_cond_start): Likewise, from here...
29062         (timer::cond_start): ...to here.
29063         (timevar_cond_stop): Likewise, from here...
29064         (timer::cond_stop): ...to here.
29065         (validate_phases): Rename to...
29066         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
29067         locals "total" and "tv" const.
29068         (timevar_print): Rename to...
29069         (timer::print): ...this, and add "m_" prefixes.  Make locals
29070         "total" and "tv" const.  Eliminate test for timevar_enable.
29071         * timevar.h (timevar_enable): Eliminate.
29072         (g_timer): New declaration.
29073         (timevar_push_1): Eliminate.
29074         (timevar_pop_1): Eliminate.
29075         (timevar_print): Eliminate.
29076         (class timer): New class.
29077         (timevar_push): Rewrite to use g_timer.
29078         (timevar_pop): Likewise.
29079         * toplev.c (toplev::~toplev): Likewise.
29081 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
29083         * arm-protos.h (arm_sched_autopref): Delete.
29084         (tune_params): Re-organize, use enums for flag values.
29085         (FUSE_OPS): New macro.
29086         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
29087         (ARM_PREFETCH_BENEFICIAL): Likewise.
29088         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
29089         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
29090         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
29091         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
29092         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
29093         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
29094         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
29095         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
29096         format.
29097         (arm_option_override, thumb2_reorg, arm_print_tune_info)
29098         (aarch_macro_fusion_pair_p): Update uses of current_tune.
29099         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
29101 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
29103         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
29104         "break".
29106 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
29107             Sandra Loosemore <sandra@codesourcery.com>
29109         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
29110         value.
29111         (REG_CLASS_NAMES): Add "IJMP_REGS".
29112         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
29113         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
29114         use new "c" register constraint.
29115         * config/nios2/constraint.md (c): New register constraint
29116         corresponding to IJMP_REGS.
29118 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29120         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
29121         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
29122         define_splits): Delete, revamp, transmogrify into ...
29123         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
29124         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
29125         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
29126         New.
29128 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29130         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
29131         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
29133 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29135         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
29136         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
29137         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
29138         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
29139         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
29140         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
29141         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
29142         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
29143         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
29144         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29145         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
29146         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
29147         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
29148         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
29149         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
29150         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
29151         and 30 corresponding splitters): Delete.
29153 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29155         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
29156         zero_extract.
29158 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29160         * combine.c (recog_for_combine_1): New function, factored out
29161         from recog_for_combine.
29162         (change_zero_ext): New function.
29163         (recog_for_combine): If recog fails, try again with the pattern
29164         modified by change_zero_ext; if that still fails, restore the
29165         pattern.
29167 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
29169         * combine.c (get_undo_marker): New function.
29170         (undo_to_marker): New function, largely factored out from ...
29171         (undo_all): ... this.  Adjust.
29173 2015-05-12  Richard Biener  <rguenther@suse.de>
29175         PR tree-optimization/66101
29176         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
29177         fixup if we turn a loop exit edge to a fallthru edge.
29179 2015-05-12  Richard Biener  <rguenther@suse.de>
29181         PR tree-optimization/37021
29182         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
29183         (SLP_TREE_TWO_OPERATORS): New define.
29184         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
29185         SLP_TREE_TWO_OPERATORS.
29186         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
29187         SLP node.
29188         (vect_build_slp_tree): Adjust.
29189         (vect_analyze_slp_cost_1): Likewise.
29190         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
29191         emitting two vector stmts and mixing the results.
29193 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29195         * call.c (print_z_candidates): Remove dead code.
29197 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29199         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
29200         and zEC12_simple_fp.
29201         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
29202         to 1.
29204 2015-05-12  Tom de Vries  <tom@codesourcery.com>
29206         PR tree-optimization/66010
29207         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
29208         ifn_va_arg.
29209         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
29210         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
29211         va_lists are passed, and remove corresponding handling.
29212         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
29213         do_deref argument to ifn_va_arg.
29214         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
29215         ifn_va_arg.
29217 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29219         PR target/65955
29220         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
29221         REG before taking its REGNO.
29223 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29225         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
29226         rsp->sign_bit_copies and rsp->nonzero_bits into ...
29227         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
29228         present to get more accurate information about the number of sign bit
29229         copies and non zero bits.
29231 2015-05-12  Richard Biener  <rguenther@suse.de>
29233         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
29234         do not allow unrolling.
29236 2015-05-11  Richard Henderson  <rth@redhat.com>
29238         * config/i386/i386-modes.def (CCP): New.
29239         * config/i386/i386.c (put_condition_code): Handle it.
29240         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
29242 2015-05-11  Richard Henderson  <rth@redhat.com>
29244         * target.def (md_asm_clobbers): Replace with...
29245         (md_asm_adjust): this.
29246         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
29247         (TARGET_MD_ASM_ADJUST): New.
29248         * tm.texi: Rebuild.
29249         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
29250         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
29251         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
29253         * cfgexpand.c (check_operand_nalternatives): Accept vector of
29254         constraints instead of lists of outputs and inputs.
29255         (expand_asm_stmt): Save and restore input_location around the
29256         body of the function.  Move asm data into vectors instead of
29257         building tree lists.  Generate cleanup sequences as needed,
29258         rather than waiting til the end.  Use new md_asm_adjust hook.
29260         * config/vxworks.c: Include vec.h before target.h.
29261         * gimple.c: Likewise.
29262         * incpath.c: Likewise.
29263         * mode-switching.c: Likewise.
29265         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
29266         (cris_md_asm_adjust): this.
29267         (TARGET_MD_ASM_CLOBBERS): Remove.
29268         (TARGET_MD_ASM_ADJUST): New.
29269         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
29270         (ix86_md_asm_adjust): this.
29271         (TARGET_MD_ASM_CLOBBERS): Remove.
29272         (TARGET_MD_ASM_ADJUST): New.
29273         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
29274         (mn10300_md_asm_adjust): this.
29275         (TARGET_MD_ASM_CLOBBERS): Remove.
29276         (TARGET_MD_ASM_ADJUST): New.
29277         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
29278         (rs6000_md_asm_adjust): this.
29279         (TARGET_MD_ASM_CLOBBERS): Remove.
29280         (TARGET_MD_ASM_ADJUST): New.
29281         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
29282         (visium_md_asm_adjust): this.
29283         (TARGET_MD_ASM_CLOBBERS): Remove.
29284         (TARGET_MD_ASM_ADJUST): New.
29286 2015-05-11  Richard Henderson  <rth@redhat.com>
29288         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
29289         if noutputs is zero.
29290         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
29292         * cfgexpand.c (expand_asm_operands): Merge into...
29293         (expand_asm_stmt): ... here.
29295         * cfgexpand.c (expand_asm_operands): Don't call
29296         resolve_asm_operand_names.
29297         * stmt.c (resolve_asm_operand_names): Clarify block comment.
29299 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
29301         * dwarf2out.c (gen_member_die): Sanity check that we access
29302         TYPE_MAIN_VARIANT for TYPE_METHODS.
29303         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
29304         checking TYPE_METHODS.
29305         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
29306         if non-null.
29307         (build_distinct_type_copy): Clear TYPE_METHODS.
29308         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
29309         (verify_type): Allow TYPE_METHODS to be error_mark_node.
29310         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
29312 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
29314         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
29315         (emit_pattern_before_setloc): Likewise.
29317 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29319         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
29320         for define_peephole2s.
29321         (get_peephole2_pattern): New function.
29322         (main): Use it.  Call validate_pattern.
29324 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29326         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
29327         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
29328         (Last callee saved reg is different for AVR_TINY architecture)
29330 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29332         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
29333         when looking for memory references.
29335 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29337         PR target/65753
29338         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
29339         via function pointers.
29341 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
29343         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
29344         indirect call by forcing address into a pseudo with -fno-plt.
29345         * common.opt (flag_plt): New option.
29346         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
29347         ([-fno-plt]): Document.
29349 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
29351         PR bootstrap/66105
29352         * config/rs6000/option-defaults.h: Add space between string literal
29353         and macro name.
29355 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29357         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
29358         accross ARM targets.
29360 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29362         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
29363         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
29365 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
29367         PR rtl-optimization/66076
29368         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
29369         Don't grow the heap array if it is already big enough from a
29370         previous iteration.
29372 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29374         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
29375         (is_called_in_ARM_mode): Remove.
29376         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
29377         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
29378         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
29379          arm_declare_function_name.
29381 2015-05-11  Christian Bruel  <christian.bruel@st.com>
29383         * config/arm/arm.c (arm_option_override): Reoganized and split into :
29384         (arm_option_params_internal); New function.
29385         (arm_option_check_internal): New function.
29386         (arm_option_override_internal): New function.
29387         (thumb_code, thumb1_code): Remove.
29388         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
29389         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
29390         (thumb_code, thumb1_code): Remove.
29391         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
29393 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
29395         * config/alpha/alpha.c (alpha_emit_set_const_1)
29396         (alpha_emit_set_long_const, alpha_extract_integer)
29397         (alpha_legitimate_constant_p, alpha_split_const_mov)
29398         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
29399         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29400         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
29401         HOST_WIDE_INT_1U.
29402         * config/alpha/predicates.md (mode_mask_operand): Do not match
29403         const_double RTX.
29404         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29405         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
29406         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
29407         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
29408         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
29410 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
29412         PR target/65780
29413         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
29414         default_binds_local_p_2.
29415         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
29416         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
29418 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29420         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
29422 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29424         Patch by Richard Biener
29425         * coverage.c (coverage_obj_init): Delay building of type variant
29426         until the type is finished.
29428 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29430         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
29431         mismatch between C and C++ type; compoare correctly ARG_TYPES
29432         for non-prototypes and output correctly parameter index for METHOD_TYPE.
29433         (odr_types_equivalent_p): Fix wording of warning about attributes;
29434         it is OK to match prototype and non-prototype.
29436 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29438         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
29439         TYPE_ARG_TYPES list.
29440         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
29441         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
29443 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
29445         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
29446         * tree.h (is_lang_specific): Constify.
29448 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
29450         PR tree-optimization/64454
29451         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
29452         Rewrite.
29454 2015-05-08  Jason Merrill  <jason@redhat.com>
29456         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
29457         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
29458         config/darwin.h, config/darwin9.h, config/elfos.h,
29459         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
29460         config/microblaze/microblaze.h, config/mips/mips.h,
29461         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
29462         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
29463         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
29464         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
29465         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
29466         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
29467         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
29468         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
29469         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
29470         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
29471         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
29472         between string literal and macro name.
29474 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29476         * jump.c: Change argument types to rtx_insn *.
29477         * rtl.h: Adjust.
29479 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29481         * lra-constraints.c: Change argument type to rtx_insn *.
29483 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29485         * df-problems.c: Change argument type to rtx_insn *.
29487 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29489         * combine.c: Change argument type to rtx_insn *.
29491 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29493         * rtl.h: Adjust.
29494         * rtlanal.c: Change argument type to rtx_insn *.
29496 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29498         * sched-deps.c: Change argument types to rtx_insn *.
29499         * sched-int.h: Adjust.
29501 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29503         * dwarf2cfi.c: Change argument type to rtx_insn *.
29505 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29507         * ira.c (decrease_live_ranges_number): Changetype of local
29508         variable to rtx_insn *.
29509         * recog.c: Change argument types to rtx_insn *.
29510         * recog.h: Adjust.
29512 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29514         * reorg.c: Change argument types to rtx_insn *.
29516 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29518         * ira-color.c: Change argument types to rtx_insn *.
29519         * lra-eliminations.c: Likewise.
29520         * ira.h: Adjust.
29522 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29524         * gcse.c: Change argument types to rtx_insn *.
29526 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29528         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
29530 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29532         * emit-rtl.c (emit_debug_insn_before): Change argument type to
29533         rtx_insn *.
29534         * rtl.h: Adjust.
29536 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29538         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
29539         * rtl.h: Adjust.
29541 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29543         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
29544         * rtl.h: Adjust.
29546 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29548         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
29549         * rtl.h: Adjust.
29551 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29553         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
29554         * rtl.h: Adjust.
29556 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29558         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
29559         to rtx_insn *.
29560         * rtl.h: Adjust.
29562 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29564         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
29565         to rtx_insn *.
29566         * rtl.h: Likewise.
29568 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29570         * except.c (can_nonlocal_goto): Change type of argument to
29571         rtx_insn *.
29572         * rtl.h: Adjust.
29574 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29576         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
29577         * rtl.h: Adjust.
29579 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29581         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
29582         * cfgrtl.c (can_delete_label_p): Adjust.
29583         * rtl.h: likewise.
29585 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29587         * reorg.c (stop_search_p): Change argument to rtx_insn *.
29589 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29591         * except.c (make_reg_eh_region_note): Change argument to
29592         rtx_insn *.
29593         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
29594         * except.h: Adjust.
29596 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29598         * mode-switching.c (commit_mode_sets): Change type of local
29599         variable from rtx to rtx_insn *.
29601 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
29603         * doc/install.texi (--enable-languages): Add missing jit and lto info.
29604         Add ^ to grep command.
29605         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
29606         arg to last gimple_simplify declaration.  Add missing gimple_build
29607         declaration for built-in function case with four tree args.
29609 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29610             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29612         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
29613         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
29614         (GNU_USER_DYNAMIC_LINKERN32): Update.
29616 2015-05-08  Richard Biener  <rguenther@suse.de>
29618         PR tree-optimization/66036
29619         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29620         Handle strided group loads.
29621         (vect_verify_datarefs_alignment): Likewise.
29622         (vect_enhance_data_refs_alignment): Likewise.
29623         (vect_analyze_group_access): Likewise.
29624         (vect_analyze_data_ref_access): Likewise.
29625         (vect_analyze_data_ref_accesses): Likewise.
29626         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
29627         (vectorizable_load): Likewise.
29629 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
29631         * config/rs6000/rs6000.md: Require operand inequality in one
29632         of the peepholes.
29634 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
29635             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
29637         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
29638         from (set ...).
29639         * config/rx/rx.md (movdi, movdf): Likewise.
29640         Likewise for define_peephole2s.
29642 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29644         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
29645         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
29646         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
29647         vtst_u64): Rewrite using gcc vector extensions.
29649 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29651         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
29652         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
29654 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
29656         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
29658 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29660         * config/glibc-stdint.h (OPTION_MUSL): Define.
29661         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
29662         Change the definition based on OPTION_MUSL for 64 bit targets.
29663         * config/linux.h (OPTION_MUSL): Redefine.
29664         * config/alpha/linux.h (OPTION_MUSL): Redefine.
29665         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
29666         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
29668 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
29669             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29671         * config.gcc (LIBC_MUSL): New tm_defines macro.
29672         * config/linux.h (OPTION_MUSL): Define.
29673         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
29674         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
29675         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29676         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29677         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29678         * config/linux.opt (mmusl): New option.
29679         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
29680         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29681         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29682         * configure: Regenerate.
29684 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
29685             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29687         PR target/48904
29688         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
29689         * config/i386/knetbsd-gnu64.h: New file.
29691 2015-05-08  Marek Polacek  <polacek@redhat.com>
29693         PR c/64918
29694         * doc/invoke.texi: Document -Woverride-init-side-effects.
29696 2015-05-07  Marek Polacek  <polacek@redhat.com>
29698         PR c/65179
29699         * doc/invoke.texi: Document -Wshift-negative-value.
29701 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
29703         * gcov-tool.c (do_merge): Refactore to remove int ret.
29704         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
29705         !type == FUNC to type != FUNC.
29706         * reload.h (struct target_reload): Changee to type of
29707         x_spill_indirect_levels from bool to unsigned char.
29709 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
29711         * rtl.h (always_void_p): New function.
29712         * gengenrtl.c (always_void_p): Likewise.
29713         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
29714         with code foo are always VOIDmode.
29715         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
29716         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
29717         compare-elim.c, config/aarch64/aarch64.c,
29718         config/aarch64/aarch64.md, config/alpha/alpha.c,
29719         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
29720         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
29721         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
29722         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29723         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
29724         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
29725         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
29726         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
29727         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
29728         config/ia64/vect.md, config/iq2000/iq2000.c,
29729         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
29730         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
29731         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
29732         config/mep/mep.c, config/microblaze/microblaze.c,
29733         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
29734         config/mn10300/mn10300.c, config/msp430/msp430.c,
29735         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
29736         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
29737         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
29738         config/rs6000/altivec.md, config/rs6000/rs6000.c,
29739         config/rs6000/rs6000.md, config/rs6000/vector.md,
29740         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
29741         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
29742         config/sh/sh.md, config/sh/sh_treg_combine.cc,
29743         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
29744         config/spu/spu.md, config/stormy16/stormy16.c,
29745         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
29746         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
29747         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
29748         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
29749         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
29750         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
29751         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
29752         var-tracking.c: Update calls accordingly.
29754 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29756         PR middle-end/192
29757         PR middle-end/54303
29758         * varasm.c (function_mergeable_rodata_prefix): New function.
29759         (mergeable_string_section): Use it.
29760         (mergeable_constant_section): Use it.
29762 2015-05-07  Jeff Law  <law@redhat.com>
29764         PR target/39726
29765         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
29766         simplifier to narrow arithmetic.
29767         * generic-match-head.c: (types_match, single_use): New functions.
29768         * gimple-match-head.c: (types_match, single_use): New functions.
29770 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29772         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
29773         rtx type.
29775 2015-05-07  Richard Biener  <rguenther@suse.de>
29777         PR tree-optimization/66002
29778         * passes.def: Schedule another pass_merge_phi after ifcombine, right
29779         before phiopt.
29781 2015-05-07  Marek Polacek  <polacek@redhat.com>
29782             Martin Uecker  <uecker@eecs.berkeley.edu>
29784         * doc/invoke.texi: Document -fsanitize=bounds-strict.
29785         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
29786         into SANITIZE_NONDEFAULT.
29787         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
29789 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
29791         PR target/66015
29792         * config/alpha/alpha.c (alpha_override_options_after_change): New.
29793         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
29794         (alpha_override_options): Move align_loops, align_jumps and
29795         align_functions handling into alpha_override_options_after_change.
29797 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
29798             Chris Jones  <chrisj@nvidia.com>
29799             Joshua Conner  <jconner@nvidia.com>
29801         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
29802         linking of crtfastmath.o.
29803         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
29805 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
29807         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
29808         (cstore<mode>4_unsigned_imm): New expander.
29809         (cstore<mode>4): Remove empty constraint strings.  Use the new
29810         expanders.
29812 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
29814         PR target/64208
29815         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
29816         alternatives.
29818 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29820         * config/aarch64/geniterators.sh: Use standard BRE in sed.
29822 2015-05-06  Alan Modra  <amodra@gmail.com>
29824         PR target/66033
29825         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
29826         (UNSPEC_NOP): Define.
29827         (reload_vsx_from_gpr<mode>): Add missing DONE.
29828         (reload_gpr_from_vsx<mode>): Likewise.
29829         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
29830         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
29832 2015-05-06  Christian Bruel  <christian.bruel@st.com>
29834         PR target/66015
29835         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
29836         align_jumps, align_functions into aarch64_override_options_after_change.
29838 2015-05-06  Richard Biener  <rguenther@suse.de>
29840         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
29841         vect_transform_slp_perm_load to check if we support a permutation
29842         for basic-block vectorization.
29844 2015-05-06  Nick Clifton  <nickc@redhat.com>
29846         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
29847         used, even if it is not being used as a frame pointer.
29849 2015-05-05  Jason Merrill  <jason@redhat.com>
29851         * dwarf2out.c (gen_member_die): Don't emit anything for an
29852         anonymous class constructor.
29854 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
29856         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
29857         that it reflects the block structure.
29858         (afdo_propagate_edge): Likewise.
29859         (afdo_calculate_branch_prob): Likewise.
29860         (afdo_annotate_cfg): Likewise.
29861         * cfgcleanup.c (equal_different_set_p): Likewise.
29862         (try_crossjump_to_edge): Likewise.
29863         * cgraph.c (cgraph_node::verify_node): Likewise.
29864         * cgraphunit.c (expand_all_functions): Likewise.
29865         * config/i386/i386.c (ix86_expand_copysign): Likewise.
29866         (exact_dependency_1): Likewise.
29867         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
29868         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
29869         * gensupport.c (process_define_subst): Likewise.
29870         * lto-wrapper.c (merge_and_complain): Likewise.
29871         * tree-if-conv.c (if_convertible_bb_p): Likewise.
29872         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
29873         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
29874         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
29875         * tree-vect-loop.c (vectorizable_reduction): Likewise.
29876         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29877         * tree-vect-stmts.c (vectorizable_shift): Likewise.
29878         * tree-vrp.c (vrp_finalize): Likewise.
29879         * tree.c (variably_modified_type_p): Likewise.
29881 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
29883         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
29884         on darwin12 and later.
29885         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
29886         file to pass -rdynamic on darwin12 and later.
29887         * config/darwin.opt (rdynamic): Add.
29889 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29891         * doc/extend.texi (C Extensions): Update menu for moved Variable
29892         Attributes and Type Attributes sections.
29894 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29896         PR target/65990
29897         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
29898         if rep_8byte stringop strategy was specified for 32-bit target.
29900 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
29902         PR target/65915
29903         * config/i386/i386.md (vector convert to float spltiter): Check for
29904         xmm16+, when splitting scalar float conversion.
29905         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
29907 2015-05-05  Nick Clifton  <nickc@redhat.com>
29909         * config/msp430/msp430-opts.h (enum msp430_regions): New.
29910         * config/msp430/msp430.c (msp430_override_options): Complain if
29911         -mcode-region or -mdata-region is used on a non MSP430X.
29912         (msp430_section_attr): New function.  Checks lower, upper and
29913         either attributes.
29914         (msp430_attribute_table): Add lower, upper and either.
29915         (gen_prefix): New function.  Generates a prefix for a section
29916         name.
29917         (msp430_select_section): New function - handles the choice of
29918         section for an object.  Takes into account memory region
29919         attributes and options.
29920         (msp430_function_section): Use gen_prefix.
29921         (TARGET_SECTION_TYPE_FLAGS): Define.
29922         (msp430_section_type_flags): New function.
29923         (TARGET_ASM_UNIQUE_SECTION): Define.
29924         (msp430_unique_section): New function.
29925         (msp430_output_aligned_decl_common): New function.
29926         (msp430_do_not_relax_short_jumps): New function.
29927         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
29928         Define.
29929         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29930         * config/msp430/msp430-protos.h
29931         (msp430_do_not_relax_short_jumps): New prototype.
29932         (msp430_output_aligned_decl_common): New prototype.
29933         * config/msp430/msp430.md (length): New attribute.
29934         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
29935         then use a long code sequence for short jumps.
29936         * config/msp430/msp430.opt (mcode-region): New.
29937         (mdata-region): New.
29938         * doc/invoke.texi: Document new options.
29939         * doc/extend.texi: Document new attributes.
29941 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29943         * config/aarch64-protos.h (struct cpu_branch_cost): New.
29944         (tune_params): Add field branch_costs.
29945         (aarch64_branch_cost): Declare.
29946         * config/aarch64.c (generic_branch_cost): New.
29947         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
29948         (cortexa53_tunings): Likewise.
29949         (cortexa57_tunings): Likewise.
29950         (thunderx_tunings): Likewise.
29951         (xgene1_tunings): Likewise.
29952         (aarch64_branch_cost): Define.
29953         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
29955 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29957         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
29958         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
29959         * config/i386/i386.md: Ditto.
29960         * config/i386/winnt.c: Ditto.
29962 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
29964         * doc/extend.texi (__atomic Builtins): Move implementation details
29965         to the end of the description, rewrite opening paragraphs, state
29966         difference with __sync builtins, state C11/C++11 assumptions,
29967         weaken itemized descriptions, add explanation of memory model
29968         behaviour, expand description of compare-exchange, simplify text.
29970 2015-05-05  Renlin Li  <renlin.li@arm.com>
29972         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
29974 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
29976         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
29977         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29978         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
29979         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
29980         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
29981         * configure: Regenerate.
29982         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
29983         * doc/install.texi (aarch64*-*-*): Document new
29984         --enable-fix-cortex-a53-843419 option.
29985         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
29986         and -mno-fix-cortex-a53-843419 options.
29988 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
29990         PR target/65871
29991         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
29993 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
29995         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
29996         fix overactive TYPE_MIN_VALUE check and add FIXME for type
29997         compatibility problems.
29999 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30001         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
30002         constraints.
30003         (cbranchsi4_reg): New.
30004         * config/microblaze/microblaze.c
30005         (microblaze_expand_conditional_branch_reg): New.
30006         * config/microblaze/microblaze-protos.h
30007         (microblaze_expand_conditional_branch_reg): New prototype.
30009 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
30011         * config/microblaze/microblaze.md (peephole2): New.
30013 2015-05-04  Jeff Law  <law@redhat.com>
30015         Revert:
30016         2015-05-04  Jeff Law  <law@redhat.com>
30018         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30019         simplifier to narrow arithmetic.
30020         * generic-match-head.c: (types_match, single_use): New functions.
30021         * gimple-match-head.c: (types_match, single_use): New functions.
30023 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30025         PR target/65987
30026         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
30027         (split_branches): Likewise.
30029 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
30031         * common.opt (fdelete-null-pointer-checks): Init to -1.
30032         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
30033         override flag_delete_null_pointer_checks default.
30034         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
30035         behavior re address zero.  Better document target-specific behavior.
30036         (-fisolate-errneous-paths-dereference): Mention relationship to
30037         -fdelete-null-pointer-checks.
30039 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30041         PR tree-optimization/65984
30042         * ubsan.c: Include tree-cfg.h.
30043         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
30044         stmt_could_throw_p test, rename can_throw variable to ends_bb.
30046 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30048         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
30049         to CONST_DOUBLE_P predicate.
30050         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
30051         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
30052         allow only operands that satisfy standard_sse_constant_p predicate.
30053         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
30054         to CONST_DOUBLE_P predicate.
30056 2015-05-04  Jeff Law  <law@redhat.com>
30058         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
30059         simplifier to narrow arithmetic.
30060         * generic-match-head.c: (types_match, single_use): New functions.
30061         * gimple-match-head.c: (types_match, single_use): New functions.
30063 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
30065         * config/arm/arm.c: Restore bootstrap.
30067 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
30069         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
30070         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
30071         as CONST_WIDE_INT, not CONST_DOUBLE.
30072         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
30073         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
30074         (ix86_find_base_term): Do not check for CONST_DOUBLE.
30075         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
30076         (ix86_build_signbit_mask): Rewrite using wide ints.
30077         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
30078         (ix86_rtx_costs): Handle CONST_WIDE_INT.
30079         (find_constant): Ditto.
30080         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
30081         using gen_int_mode.
30082         * config/i386/predicates.md (x86_64_immediate_operand)
30083         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30084         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
30085         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
30086         (const0_operand): Also match const_wide_int.
30087         (constm1_operand): Ditto.
30088         (const1_operand): Ditto.
30090 2015-05-04  Richard Biener  <rguenther@suse.de>
30092         PR tree-optimization/65965
30093         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
30094         store groups at gaps.
30096 2015-05-04  Richard Biener  <rguenther@suse.de>
30098         PR tree-optimization/65935
30099         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
30100         then make sure to apply that swapping to the IL.
30102 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
30104         * Makefile.in (PATCHLEVEL_c): New variable.
30105         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
30106         expand the same way as if DEVPHASE_c was non-empty.
30108 2015-05-04  Kai Tietz  <ktietz@redhat.com>
30110         PR target/65559
30111         * lto-wrapper.c (run_gcc): Open filename
30112         in binary-mode.
30114 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
30116         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
30117         sections up in file, to immediately after the Function Attributes
30118         section.
30120 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
30122         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
30124 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30126         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
30127         (insert_partition_copy_on_edge): Adjust.
30128         (insert_rtx_to_part_on_edge): Likewise.
30129         (insert_part_to_rtx_on_edge): Likewise.
30131 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30133         * function.c (set_return_jump_label): Change type of argument to
30134         rtx_insn *.
30135         * function.h (set_return_jump_label): Adjust.
30137 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30139         * reload.h (struct reg_equivs_t): Change type of init to
30140         rtx_insn *.
30141         * ira.c (fix_reg_equiv_init): Adjust.
30142         * reload1.c (eliminate_regs_1): Likewise.
30143         (init_eliminable_invariants): Likewise.
30145 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30147         * cselib.c (fp_setter_insn): Take a rtx_insn *.
30148         * cselib.h (fp_setter_insn): Adjust.
30150 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30152         * recog.c (struct validate_replace_src_data): Change type of
30153         insn field to rtx_insn *.
30154         (validate_replace_src_group): Change type of argument to rtx_insn *.
30155         * recog.h (validate_replace_src_group): Adjust.
30157 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30159         * haifa-sched.c: Change the type of some variables to rtx_insn *.
30160         * sched-deps.c: Likewise.
30161         * sched-int.h: Likewise.
30162         * sched-rgn.c: Likewise.
30163         * sel-sched.c: Likewise.
30165 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30167         to rtx_insn *.
30168         * config/i386/i386.c: Change the type of some arguments to
30169         rtx_insn *.
30170         * config/arm/arm.c: Likewise.
30172 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30174         * lra-constraints.c: Change type of some arguments to rtx_insn *.
30176 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30178         * regcprop.c (kill_autoinc_value): Change type of argument to
30179         rtx_insn *.
30181 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30183         * genrecog.c (print_subroutine): Adjust.
30184         * recog.c (get_bool_attr_mask_uncached): Likewise.
30185         * recog.h (struct recog_data_d): Change the type of insn to
30186         rtx_insn *.
30188 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30190         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
30192 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30194         * df-problems.c (df_set_note): Change type of argument to
30195         rtx_insn *.
30197 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30199         * builtins.c (expand_builtin_trap): Change type of local
30200         variable to rtx_insn *.
30201         (add_sched_insns_for_speculation): Likewise.
30202         (ix86_emit_save_regs): Likewise.
30203         (get_scratch_register_on_entry): Likewise.
30204         (ix86_emit_restore_reg_using_pop): Likewise.
30205         (ix86_emit_leave): Likewise.
30206         (ix86_emit_restore_regs_using_mov): Likewise.
30207         (ix86_expand_epilogue): Likewise.
30208         Likewise.
30209         (rl78_alloc_physical_registers_umul): Likewise.
30210         * cselib.c (discard_useless_locs): Likewise.
30211         (cselib_invalidate_regno): Likewise.
30212         (cselib_invalidate_mem): Likewise.
30213         * function.c (expand_function_start): Likewise.
30214         (emit_use_return_register_into_block): Likewise.
30215         * gcse.c: Likewise.
30216         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
30217         * ifcvt.c (noce_get_alt_condition): Likewise.
30218         * loop-doloop.c (doloop_condition_get): Likewise.
30219         * lra-constraints.c (inherit_in_ebb): Likewise.
30220         * modulo-sched.c (sms_schedule_by_order): Likewise.
30221         * recog.c (next_insn_tests_no_inequality): Likewise.
30222         * reorg.c (emit_delay_sequence): Likewise.
30223         (update_reg_dead_notes): Likewise.
30224         (fix_reg_dead_note): Likewise.
30225         (fill_slots_from_thread): Likewise.
30226         (delete_computation): Likewise.
30228 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
30230         * doc/extend.texi (Variable Attributes): Add menu and proper
30231         @nodes to subsections.  Move Microsoft Windows attributes to
30232         their own subsection.
30233         (Type Attributes): Reorganize introduction to remove duplicate
30234         list of attributes.  Add menu and proper @nodes to subsections.
30235         Alphabetize the main table of common attributes.
30237 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
30239         * match.pd: New simplification patterns.
30240         (x + (x & 1))  -> ((x + 1) & ~1)
30241         (x & ~(x & y)) -> ((x & ~y))
30242         (x | ~(x | y)) -> ((x | ~y))
30244 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30246         * target.def (attribute_table): Mention that struct attribute_spec
30247         is defined in tree-core.h rather than tree.h
30248         * doc/tm.texi: Regenerate.
30250 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
30252         * genrecog.c (test): Rename to rtx_test.  Update rest of file
30253         accordingly.
30255 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
30257         PR translation/65959
30258         * params.h (DEFPARAM): Rename msgid to nocmsgid.
30260 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30262         * config/aarch64/aarch64-protos.h (tune_params):
30263         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
30264         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
30265         Return value depending on target.
30266         (generic_tunings): Initialize new target settings.
30267         (cortexa53_tunings): Likewise.
30268         (cortexa57_tunings): Likewise.
30269         (thunderx_tunings): Likewise.
30270         (xgene1_tunings): Likewise.
30272 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30274         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
30275         Make Cortex-A53 shift costs more accurate.
30277 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30279         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
30280         UNSIGNED_FLOAT.
30282 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
30284         * config/aarch64/aarch64.c (aarch64_rtx_costs):
30285         Calculate cost of op0 and op1 in PLUS and MINUS cases.
30287 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30289         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30290         Add cost of op0 in the compare-with-fpzero case.
30292 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
30294         * builtins.c (fold_builtin_1): Remove spurious second
30295         semicolon.
30296         * cgraph.h (symtab_node::get_availability): Likewise.
30297         * opts.c (common_handle_option): Remove spurious second semicolon.
30298         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
30299         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
30301 2015-04-30  Caroline Tice  <cmtice@google.com>
30303         PR gcov-profile/65929
30304         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
30305         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
30306         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
30307         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
30308         * doc/tm.texi: Regenerate.
30309         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
30310         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
30311         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
30312         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
30314 2015-04-30  Marek Polacek  <polacek@redhat.com>
30316         * varasm.c (handle_cache_entry): Fix logic.
30318 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30320         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
30321         (*extrsi5_insn_uxtw_alt): Likewise.
30322         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
30323         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
30324         operations.
30326 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30328         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
30329         fabd in ABS case.
30331 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30333         * config/aarch64/aarch64.md
30334         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
30335         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
30336         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
30337         appropriately.  Handle alternative EON form.
30339 2015-04-30  Renlin Li  <renlin.li@arm.com>
30341         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
30342         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
30344 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30346         PR ipa/65873
30347         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
30348         -fstrict-aliasing boundaries.
30350 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30352         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
30353         and [SU]MNEGL patterns.
30355 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30357         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
30358         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
30359         combined arithmetic-shift ops.  Properly handle all shift and extend
30360         operations that can occur in combination with PLUS/MINUS.
30361         Rename maybe_fma to compound_p.
30362         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
30363         arithmetic and shift operations.
30365 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30367         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
30368         rather than arith_shift cost when costing ADD/MINUS of an
30369         extended value.
30371 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
30373         PR lto/65948
30374         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
30375         to itself.
30377 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
30379         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
30380         are for the same position.
30382 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
30384         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
30385         vectorize_loops.
30386         (vectorize_loops): Use it.
30388 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30390         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
30391         for aggregate types.
30392         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
30393         type to be non_ODR.
30394         * tree.c (need_assembler_name_p): Compute mangled name for
30395         non-fundamental types and integer types.
30397 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
30399         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
30400         manual swaps.
30401         * expr.c (expand_expr_real_2): Likewise.
30403 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30405         * tree.c (build_common_builtin_nodes): Do not build
30406         __builtin_alloca_with_align as equivalent of library alloca.
30408 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
30410         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
30411         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
30412         bugus variants.
30413         * tree.c: Include print-tree.h and ipa-utils.h
30414         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
30415         (free_lang_data_in_cgraph): Call verify_type.
30416         (verify_type_variant): New function.
30417         (verify_type): New function.
30418         * tree.h (verify_type): Declare.
30420 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
30422         * config/mips/mips-cpus.def: (mips4): Change default processor
30423         from PROCESSOR_R8000 to PROCESSOR_R10000.
30425 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
30427         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
30428         la/jalr instead of jal.
30430 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
30432         PR target/65871
30433         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
30434         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
30435         (setcc+movzbl peephole2): Check also clobbered reg.
30436         (setcc+andl peephole2): Ditto.
30438 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30440         PR libgomp/65099
30441         * config/nvptx/mkoffload.c (target_ilp32): New variable.
30442         (main): Set it depending on "-foffload-abi=[...]".
30443         (compile_native, main): Use it to pass "-m32" or "-m64" to the
30444         compiler.
30446 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30448         PR target/65770
30449         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
30450         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
30451         Flip lane index back at assembly time for bigendian.
30453 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
30455         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
30456         * gimplify.c (gimplify_omp_workshare): Use it.
30458 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30460         * Makefile.in (build/genrecog.o): Depend on inchash.h.
30461         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
30462         build/inchash.o
30463         * genrecog.c: Rewrite most of the code except for the third page.
30465 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30467         * inchash.h, inchash.c: Include bconfig.h for build objects.
30468         * Makefile.in (build/inchash.o): New rule.
30470 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
30472         PR target/65924
30473         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
30474         number in type attribute expression.
30476 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
30478         * loop-iv.c (canon_condition): Generalize to all types of integer
30479         constant.
30481 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
30483         * gimple-walk.c: Prune duplicate or unneeded includes.
30484         (walk_gimple_asm): Only call parse_input_constraint or
30485         parse_output_constraint if their findings are used.
30486         Honour parse_input_constraint and parse_output_constraint
30487         result.
30489 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30491         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
30493 2015-04-29  Tom de Vries  <tom@codesourcery.com>
30495         PR tree-optimization/65893
30496         * passes.def (pass_all_optimizations): Move pass_stdarg to after
30497         pass_dce.
30499 2015-04-29  Richard Biener  <rguenther@suse.de>
30501         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
30502         compute GROUP_SIZE for basic-block SLP.
30503         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
30504         take into account gaps.
30505         (vect_get_mask_element): Properly reject references to previous
30506         vectors.
30507         (vect_transform_slp_perm_load): Likewise.
30509 2015-04-29  Christian Bruel  <christian.bruel@st.com>
30511         PR target/64835
30512         * config/i386/i386.c (ix86_default_align): New function.
30513         (ix86_override_options_after_change): Call ix86_default_align.
30514         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
30515         (ix86_override_options_after_change): New function.
30517 2015-04-28  Jeff Law  <law@redhat.com>
30519         * tree-ssa-dom.c (record_equality); Fix comment typos.
30521 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30523         PR tree-optimization/65887
30524         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
30526 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
30528         * doc/extend.texi (Declaring Attributes of Functions): Split into
30529         subsections by target.  Alphabetize the table of common attributes.
30530         Rewrite some of the introductory text to reflect the new structure.
30531         Update some cross-references to point to the new subsections.
30532         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
30533         duplicate copies in the discussion of function, label, and type
30534         attributes.
30536 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
30538         PR bootstrap/65910
30539         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
30541 2015-04-28  Jason Merrill  <jason@redhat.com>
30543         PR c++/65734
30544         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
30545         (finalize_type_size): Respect TYPE_USER_ALIGN.
30546         (layout_type) [ARRAY_TYPE]: Likewise.
30548 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
30550         * config/arm/arm.md (*arm_movt): Fix type attribute.
30551         (*cmpsi_shiftsi): Likewise.
30552         (*cmpsi_shiftsi_swp): Likewise.
30553         (*movsicc_insn): Likewise.
30554         (*cond_move): Likewise.
30555         (*if_plus_move): Likewise.
30556         (*if_move_plus): Likewise.
30557         (*if_arith_move): Likewise.
30558         (*if_move_arith): Likewise.
30559         (*if_shift_move): Likewise.
30560         (*if_move_shift): Likewise.
30561         (*arm_movtas_ze): Likewise.
30562         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
30563         redundancy and type attribute.
30564         (*thumb2_movsi_insn): Fix type attribute.
30565         (*thumb2_addsi_short): Likewise.
30566         (thumb2_addsi3_compare0): Likewise.
30567         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
30568         attributes accordingly.
30570 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
30572         PR other/65911
30573         * function.c (pad_to_arg_alignment): Add parentheses.
30575 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
30577         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
30578         libgcc/config/frv/elf-lib.h.
30580 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30582         * tree-call-cdce.c: Fix example in header comment.
30584 2015-04-28  Richard Biener  <rguenther@suse.de>
30586         PR tree-optimization/62283
30587         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
30588         fails fatally and we are vectorizing a basic-block simply
30589         cause the child to be constructed piecewise.
30590         (vect_analyze_slp_cost_1): Adjust.
30591         (vect_detect_hybrid_slp_stmts): Likewise.
30592         (vect_bb_slp_scalar_cost): Likewise.
30593         (vect_get_constant_vectors): For piecewise constructed
30594         constants place them after the last def.
30595         (vect_get_slp_defs): Adjust.
30596         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
30597         externals for basic-block vectorization.
30599 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30601         PR target/63503
30602         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
30603         aarch64-*-*.
30604         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
30605         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
30606         (AARCH64_TUNE_FMA_STEERING): Likewise.
30607         * config/aarch64/aarch64-cores.def: Set
30608         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
30609         FMUL/FMADD instructions.
30610         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
30611         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
30612         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
30613         * config/aarch64/cortex-a57-fma-steering.h: New file.
30614         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
30616 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
30618         * gensupport.c (std_preds): Add missing codes to address_operand entry.
30620 2015-04-28  Richard Biener  <rguenther@suse.de>
30622         PR tree-optimization/65851
30623         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
30624         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
30625         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
30626         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
30627         (ccp_visit_phi_node): Adjust.
30628         (evaluate_stmt): For simplifications to SSA names return its
30629         lattice value if that isn't VARYING.  Return immediately when
30630         simplified to a constant.
30631         (visit_assignment): Adjust.
30632         (ccp_visit_stmt): Likewise.
30634 2015-04-28  Tom de Vries  <tom@codesourcery.com>
30636         PR tree-optimization/65818
30637         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
30638         evaluated.
30640 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30642         * calls.c (save_fixed_argument_area): Don't check
30643         ARGS_GROW_DOWNWARD with the preprocessor.
30644         (restore_fixed_argument_area): Likewise.
30645         (mem_overlaps_already_clobbered_arg_p): Likewise.
30646         (check_sibcall_argument_overlap): Likewise.
30647         (expand_call): Likewise.
30648         (emit_library_call_value_1): Likewise.
30649         (store_one_arg): Likewise.
30650         * function.c (assign_parms): Likewise.
30651         (locate_and_pad_parm): Likewise.
30652         (pad_to_arg_alignment): Likewise.
30653         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30655 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30657         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
30658         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
30659         * calls.c (save_fixed_argument_area): Don't chekc if
30660         ARGS_GROW_DOWNWARD is defined.
30661         (restore_fixed_argument_area): Likewise.
30662         (mem_overlaps_already_clobbered_arg_p): Likewise.
30663         (check_sibcall_argument_overlap): Likewise.
30664         (expand_call): Likewise.
30665         (emit_library_call_value_1): Likewise.
30666         (store_one_arg): Likewise.
30667         * function.c (assign_parms): Likewise.
30668         (locate_and_pad_parm): Likewise.
30669         (pad_to_arg_alignment): Likewise.
30670         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
30672 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30674         * defaults.h (gen_epilogue): New function.
30675         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
30676         defined.
30677         * cfgrtl.c (cfg_layout_finalize): Likewise.
30678         * df-scan.c: Likewise.
30679         * function.c (thread_prologue_and_epilogue_insns): Likewise.
30680         (reposition_prologue_and_epilogue_notes): Likewise.
30681         * reorg.c (find_end_label): Likewise.
30682         * toplev.c: Likewise.
30684 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30686         * bb-reorder.c (HAVE_return): Don't check if its undefined.
30687         * defaults.h (gen_simple_return): New function.
30688         (gen_simple_return): Likewise.
30689         (HAVE_return): Add default definition to false.
30690         (HAVE_simple_return): Likewise.
30691         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
30692         HAVE_return and HAVE_simple_return are defined.
30693         * function.c (gen_return_pattern): Likewise.
30694         (convert_jumps_to_returns): Likewise.
30695         (thread_prologue_and_epilogue_insns): Likewise.
30696         * reorg.c (find_end_label): Likewise.
30697         (dbr_schedule): Likewise.
30698         * shrink-wrap.c: Likewise.
30699         * shrink-wrap.h: Likewise.
30701 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30703         * defaults.h (EPILOGUE_USES): Add default definition of false.
30704         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
30705         * resource.c (init_resource_info): Likewise.
30707 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30709         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
30710         to false.
30711         * dwarf2out.c (field_byte_offset): REmove check if
30712         PCC_BITFIELD_TYPE_MATTERS is defined.
30713         * stor-layout.c (layout_decl): Likewise.
30714         (update_alignment_for_field): Likewise.
30715         (place_field): Likewise.
30717 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30719         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
30720         true.
30721         * regrename.c (check_new_reg_p): Remove check if
30722         HARD_REGNO_RENAME_OK is defined.
30723         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
30725 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30727         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
30728         * cse.c (fold_rtx): Likewise.
30729         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
30730         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
30731         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
30732         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
30733         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
30734         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
30735         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
30736         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
30737         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
30738         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
30739         * Likewise.
30740         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
30741         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
30742         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
30743         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
30744         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
30745         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
30746         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
30747         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
30748         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
30749         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
30750         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
30751         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
30752         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
30753         * doc/tm.texi: Regenerate.
30754         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
30755         either true or false.
30757 2015-04-27  Jeff Law  <law@redhat.com>
30759         PR tree-optimization/65217
30760         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
30761         of them has a single use, make sure it is the LHS of the implied
30762         copy.
30764 2015-04-28  Alan Modra  <amodra@gmail.com>
30766         PR target/65810
30767         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
30768         (offsettable_ok_by_alignment): Use minimum of decl and toc
30769         pointer alignment.  Replace dead code with assertion.
30770         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
30771         case if size exceeds toc pointer alignment.
30772         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
30773         (rs6000_emit_move): Likewise.
30774         * configure.ac: Add linker toc pointer alignment check.
30775         * configure: Regenerate.
30776         * config.in: Regenerate.
30778 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
30780         * config.gcc: Add h8300-*-linux.
30781         * config/h8300/linux.h: New.
30782         * config/h8300/t-linux: New.
30783         * config/h8300/h8300.c (h8300_option_override): Normal mode
30784         is not supported for h8300-*-linux.
30785         (h8300_file_start): Target priority change.
30786         (get_shift_alg): Likewise.
30787         (h8300_shift_need_scratch_p): Likewise.
30788         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
30789         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
30791 2015-04-27  Caroline Tice  <cmtice@google.com>
30793         * final.c (final_scan_insn):  Output cold_function_name as function
30794         type.
30795         * varasm.c (cold_function_name):  Make global.
30796         (assemble_start_function):  Re-set cold_function_name.
30797         (assemble_end_function): Output cold partition size.
30798         * varasm.h (cold_function_name):  Declare global.
30800 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
30802         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
30803         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
30804         constraint.
30805         (*movxi_internal_avx512f): Ditto.
30806         (define_split): Check for xmm16+, when splitting scalar float_extend.
30807         (*extendsfdf2_mixed): Use "v" constraint.
30808         (define_split): Check for xmm16+, when splitting scalar float_truncate.
30809         (*truncdfsf_fast_sse): Use "v" constraint.
30810         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
30811         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
30812         (define_peephole2): Check for xmm16+, when converting scalar
30813         float_truncate.
30814         (define_peephole2): Check for xmm16+, when converting scalar
30815         float_extend.
30816         (*fop_<mode>_comm_mixed): Use "v" constraint.
30817         (*fop_<mode>_comm_sse): Ditto.
30818         (*fop_<mode>_1_mixed): Ditto.
30819         (*sqrt<mode>2_sse): Ditto.
30820         (*ieee_s<ieee_maxmin><mode>3): Ditto.
30822 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30824         * combine.c (simplify_if_then_else): Use std::swap instead
30825         of manually swapping.
30826         (known_cond): Likewise.
30827         (simplify_comparison): Likewise.
30829 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
30831         PR target/64579
30832         * config/rs6000/htm.md: Remove all define_expands.
30833         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
30834         UNSPECV_HTM_TABORTWCI): Remove.
30835         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
30836         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
30837         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
30838         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
30839         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
30840         tabortwci_internal): Remove define_insns.
30841         (tabort<wd>c, tabort<wd>ci): New define_insns.
30842         (tabort): Use gpc_reg_operand.
30843         (tcheck): Remove operand.
30844         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
30845         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
30846         expected value.
30847         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
30848         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
30849         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
30850         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
30851         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
30852         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
30853         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
30854         (tcheck): Remove builtin argument.
30855         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
30856         not TARGET_64BIT.
30857         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
30858         tabortdc and tabortdci builtins when not in 64-bit mode.
30859         Modify code to handle the loss of the HTM define_expands.
30860         Emit code to copy the CR register to TARGET.
30861         (htm_init_builtins): Modify code to handle the loss of the HTM
30862         define_expands.
30863         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
30864         (RS6000_BTC_64BIT): Likewise.
30865         (RS6000_BTC_CR): New macro.
30866         * doc/extend.texi: Update documentation for htm builtins.
30868 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30870         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
30871         of manually swapping.
30872         (simplify_associative_operation): Likewise.
30873         (simplify_binary_operation): Likewise.
30874         (simplify_plus_minus): Likewise.
30875         (simplify_relational_operation): Likewise.
30876         (simplify_ternary_operation): Likewise.
30878 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30880         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
30881         (xs_hi_nonmemory_operand): Remove error.
30882         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
30883         general_operand rather than xs_hi_general_operand.
30885 2015-04-27  Richard Biener  <rguenther@suse.de>
30887         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
30888         (record_equivalences_from_stmt): Valueize rhs.
30889         (record_equality): Canonicalize x and y order via
30890         tree_swap_operands_p.  Do not swap operands for same loop depth.
30892 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
30894         PR target/65296
30895         PR target/65895
30896         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
30897         Add hint how to use own spec file.
30899 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
30901         PR tree-optimization/65875
30902         * tree-vrp.c (update_value_range): If in is_new case setting
30903         old_vr to VR_VARYING, also set new_vr to it.  Remove
30904         old_vr->type == VR_VARYING test.
30905         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
30906         SSA_PROP_INTERESTING if update_value_range returned true,
30907         but new range is VR_VARYING.
30909 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30911         * combine.c (sign_extend_short_imm): New.
30912         (set_nonzero_bits_and_sign_copies): Use above new function for sign
30913         extension of src short immediate.
30914         (reg_nonzero_bits_for_combine): Likewise for tem.
30916 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30918         * stor-layout.c (self_referential_component_ref_p): New predicate.
30919         (copy_self_referential_tree_r): Use it.
30920         (self_referential_size): Punt for simple operations directly involving
30921         self-referential component references.
30922         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
30924 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30926         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
30928 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
30930         * vec.h (vec): Make splice arguments const.  Update definitions
30931         accordingly.
30933 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
30935         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
30936         alternatives.
30938 2015-04-26  Tom de Vries  <tom@codesourcery.com>
30940         PR tree-optimization/65826
30941         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
30943 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
30945         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
30946         (*madd3<mode>): Ditto.
30947         (*msub4<mode>): Ditto.
30948         (*msub3<mode>): Ditto.
30949         (*nmadd4<mode>): Ditto.
30950         (*nmadd3<mode>): Ditto.
30951         (*nmadd4<mode>_fastmath): Ditto.
30952         (*nmadd3<mode>_fastmath): Ditto.
30953         (*nmsub4<mode>): Ditto.
30954         (*nmsub3<mode>): Ditto.
30955         (*nmsub4<mode>_fastmath): Ditto.
30956         (*nmsub3<mode>_fastmath): Ditto.
30958 2015-04-24  Jason Merrill  <jason@redhat.com>
30960         PR c++/50800
30961         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
30962         down when building TYPE_CANONICAL.
30963         (build_pointer_type_for_mode): Likewise.
30965 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
30967         * genrecog.c (validate_pattern): Check matching constraint refers
30968         to a lower numbered operand.
30970 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30972         PR target/65849
30973         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
30974         save to independent variables use the Save attribute.  This will
30975         allow these options to be modified with the #pragma/attribute
30976         target support.
30977         (-mallow-movmisalign): Likewise.
30978         (-mallow-df-permute): Likewise.
30979         (-msched-groups): Likewise.
30980         (-malways-hint): Likewise.
30981         (-malign-branch-targets): Likewise.
30982         (-mvectorize-builtins): Likewise.
30983         (-msave-toc-indirect): Likewise.
30985         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
30986         can be set via the #pragma/attribute target support.
30987         (rs6000_opt_vars): Likewise.
30988         (rs6000_inner_target_options): If VSX was set, also set
30989         -mno-avoid-indexed-addresses.
30991 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30993         * config/arm/iterators.md (shiftable_ops): Rename to...
30994         (SHIFTABLE_OPS): ... This.  Update use in comments.
30995         (ior_xor): Rename to...
30996         (IOR_XOR): ... This.
30997         (vqh_ops): Rename to...
30998         (VQH_OPS): ... This.
30999         (vqhs_ops): Rename to...
31000         (VQHS_OPS): ... This.
31001         (rshifts): Rename to...
31002         (RSHIFTS): ... This.
31003         (returns): Rename to...
31004         (RETURNS): ... This.
31005         * config/arm/arm.md: Update uses of the above.
31006         * config/arm/neon.md: Likewise.
31008 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31010         * config.host (case ${host}): Add aarch64*-*-linux case.
31011         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
31012         fields to all the cores.
31013         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
31014         Add MCPU_MTUNE_NATIVE_SPECS.
31015         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
31016         field to all extensions.
31017         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
31018         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
31019         Adjust definition of AARCH64_OPT_EXTENSION.
31020         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
31021         (MCPU_MTUNE_NATIVE_SPECS): Define.
31022         * config/aarch64/driver-aarch64.c: New file.
31023         * config/aarch64/x-arch64: New file.
31024         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
31025         -mtune and -march.
31027 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31028             Wei Mi  <wmi@google.com>
31030         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
31031         * config/i386/i386.c (extract_base_offset_in_addr): New function.
31032         (ix86_operands_ok_for_move_multiple): Ditto.
31033         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
31034         (movlpd/movhpd to movupd peephole2): Ditto.
31036 2015-04-24  Marek Polacek  <polacek@redhat.com>
31038         PR c/61534
31039         * input.h (from_macro_expansion_at): Define.
31041         PR c/63357
31042         * doc/invoke.texi: Update description of -Wlogical-op.
31044 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31046         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
31047         ternary operator in fprintf and harmonize spacing.
31049 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31051         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
31052         Mark operand1 commutative.
31054 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
31056         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
31057         input operands in memory.
31058         (*vec_concatv2si_sse4_1): Ditto.
31059         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
31060         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
31061         register_operand.
31062         (vec_extract_hi_v32hi): Ditto.
31063         (vec_extract_hi_v64hi): Ditto.
31064         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
31066 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31067             Steven Bosscher <steven@gcc.gnu.org>
31069         PR rtl-optimization/34503
31070         * cprop.c (cprop_reg_p): New.
31071         (hash_scan_set): Use above function to check if register can be
31072         propagated.
31073         (find_avail_set): Return up to two sets, one whose source is a
31074         register and one whose source is a constant.  Sets are returned in an
31075         array passed as parameter rather than as a return value.
31076         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
31077         sets returned by find_avail_set, starting with the one whose source is
31078         a constant. Use cprop_reg_p to check if register can be propagated.
31079         (do_local_cprop): Use cprop_reg_p to check if register can be
31080         propagated.
31081         (implicit_set_cond_p): Likewise.
31083 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31085         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
31086         (sem_function::equals): IGNORED_NODES parameter is now unused;
31087         update call of equals_private.
31088         (sem_function::equals_private): Do not call equals_wpa; skip
31089         gimple body matching if there is no body.
31090         (sem_function::init): Add logic to hash tthunk info.
31091         (sem_function::parse): Also parse thunks.
31092         * ipa-icf.h (equals_private): Update declaration.
31094 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31096         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
31097         asterisk from name so this can be generated directly.
31098         (*altivec_stvx_<mode>_internal): Likewise.
31099         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
31100         that this is never called during or after reload/lra.
31101         (rs6000_frame_related): Remove split_reg
31102         argument and logic that references it.
31103         (emit_frame_save): Remove last parameter from call to
31104         rs6000_frame_related.
31105         (rs6000_emit_prologue): Remove last parameter from eight calls to
31106         rs6000_frame_related.  Force generation of stvx instruction for
31107         Altivec register saves.  Remove split_reg handling, which is no
31108         longer needed.
31109         (rs6000_emit_epilogue):  Force generation of lvx instruction for
31110         Altivec register restores.
31112 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31114         * config/rs6000/rs6000.opt (mcrypto): Change option description to
31115         match category changes in ISA 2.07B.
31117 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31119         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
31120         iterators.
31121         (cmp_op, cmp_type): New code attributes.
31122         (NEON_VCMP, NEON_VACMP): New int iterators.
31123         (cmp_op_unsp): New int attribute.
31124         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
31125         (neon_vceq<mode>): Delete.
31126         (neon_vc<cmp_op><mode>_insn): New pattern.
31127         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
31128         (neon_vcgeu<mode>): Delete.
31129         (neon_vcle<mode>): Likewise.
31130         (neon_vclt<mode>: Likewise.
31131         (neon_vcage<mode>): Likewise.
31132         (neon_vcagt<mode>): Likewise.
31133         (neon_vca<cmp_op><mode>): New define_expand.
31134         (neon_vca<cmp_op><mode>_insn): New pattern.
31135         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
31137 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31139         * tree.h (attribute_value_equal): Declare.
31140         * tree.c (attribute_value_equal): Export.
31142 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31144         * ipa-icf.c (sem_item::compare_attributes): New function.
31145         (sem_item::compare_referenced_symbol_properties): Compare variable
31146         attributes.
31147         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
31148         (sem_function::param_used_p): New function.
31149         (sem_function::equals_wpa): Fix attribute comparsion; match
31150         parameter type codes; do not compare paremter flags when
31151         they are not used; compare edge flags; compare indirect calls.
31152         (sem_item::update_hash_by_addr_refs): Hash reference type.
31153         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
31154         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
31155         reference use type.
31156         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
31157         * ipa-icf.h (compare_attributes, param_used_p): Declare.
31159 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
31161         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
31162         cleanup.
31163         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
31164         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
31165         (sem_item::compare_referenced_symbol_properties): New.
31166         (sem_item::hash_referenced_symbol_properties): New.
31167         (sem_item::compare_cgraph_references): Rename to ...
31168         (sem_item::compare_symbol_references): ... this one; use
31169         compare_referenced_symbol_properties.
31170         (sem_function::equals_wpa): Do not compare
31171         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
31172         DECL_IS_OPERATOR_NEW; compare pointer sizes.
31173         (sem_item::update_hash_by_addr_refs): Call
31174         hash_referenced_symbol_properties.
31175         (sem_item::update_hash_by_local_refs): Cleanup.
31176         (sem_function::merge): Do not mix up symbol properties.
31177         (sem_variable::equals_wpa): Use compare_symbol_references.
31178         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
31179         (sem_item::hash_referenced_symbol_properties): New.
31180         (sem_item::compare_symbol_references): New.
31181         (sem_item::compare_cgraph_references): Remove.
31183 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
31185         PR target/26702
31186         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
31187         Emit size of local.
31189 2015-04-23  Nick Clifton  <nickc@redhat.com>
31191         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
31192         ATTRIBUTE_UNUSED to x parameter.
31193         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
31195 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31197         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
31198         TARGET_CRYPTO to TARGET_P8_VECTOR>
31199         (crypto_vpermxor_<mode>): Likewise.
31200         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
31201         (BU_CRYPTO_3A): Likewise.
31202         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
31203         (BU_CRYPTO_OVERLOAD_3A): New #define.
31204         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
31205         (VPMSUMH): Likewise.
31206         (VPMSUMW): Likewise.
31207         (VPMSUMD): Likewise.
31208         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
31209         (VPERMXOR_V4SI): Likewise.
31210         (VPERMXOR_V8HI): Likewise.
31211         (VPERMXOR_V16QI): Likewise.
31212         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
31213         BU_CRYPTO_OVERLOAD_2A.
31214         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
31215         BU_CRYPTO_OVERLOAD_3A.
31216         * config/rs6000/rs6000.opt (mcrypto): Change description of
31217         option.
31219 2015-04-23  Richard Biener  <rguenther@suse.de>
31221         * passes.def: Remove copy propagation passes run directly after CCP.
31222         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
31223         SSA names.
31224         (ccp_visit_phi_node): Rework to handle first executable edge
31225         specially.
31227 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
31229         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31230         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31231         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
31232         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
31233         (thumb_legimitimize_reload_address): Remove.
31234         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
31235         Remove.
31236         (thumb_legimitimize_reload_address): Remove.
31238 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31240         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
31242 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31244         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
31245         MAX_LDM_STM_OPS.
31246         (store_multiple): Likewise.
31248 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31250         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
31251         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
31252         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
31253         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
31254         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
31255         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
31256         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
31257         Specify issue_rate value.
31258         (arm_issue_rate): Look up issue rate from tuning structs. Remove
31259         large switch statement.
31260         (arm_marvell_pj4_tune): New struct.
31261         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
31262         struct.
31264 2015-04-23  Richard Biener  <rguenther@suse.de>
31266         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
31267         (vect_find_last_store_in_slp_instance): Rename to ...
31268         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
31269         (vect_analyze_slp_cost_1): Use vector_load for constant defs
31270         and vec_construct for external defs when estimating prologue cost.
31271         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
31272         Compute costs here only when vectorizing loops.
31273         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
31274         have been determined.
31275         (vect_schedule_slp_instance): Simplify vectorized code placement
31276         and prepare for in-BB external defs.
31277         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
31278         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
31279         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
31280         guard.
31281         (vect_model_load_cost): Likewise.
31282         (vectorizable_store): Instead add it here.
31283         (vectorizable_load): Likewise.
31284         (vect_is_simple_use): Dump def type textually.
31286 2015-04-23  Richard Biener  <rguenther@suse.de>
31288         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
31289         * cfgloop.c (verify_loop_structure): Verify the root loop node.
31290         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
31291         instead of get_eh_region_from_lp_number.
31292         * loop-init.c (fix_loop_structure): If we removed a loop, reset
31293         the SCEV cache.
31295 2015-04-23  Anton Blanchard  <anton@samba.org>
31297         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
31298         need for -mprofile-kernel to save LR to stack.
31300 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31302         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
31303         adjustments.
31304         (insn_is_swappable_p): Return 1 for a convert from double to
31305         single precision when all of its uses are splats of BE element
31306         zero.
31308 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
31310         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
31312 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31314         PR target/65456
31315         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
31316         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
31317         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
31318         option.
31319         (rs6000_builtin_mask_for_load): Return 0 for targets with
31320         efficient unaligned VSX accesses so that the vectorizer will use
31321         direct unaligned loads.
31322         (rs6000_builtin_support_vector_misalignment): Always return true
31323         for targets with efficient unaligned VSX accesses.
31324         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
31325         stores on targets with efficient unaligned VSX accesses is almost
31326         always the same as the cost of an aligned load or store, so model
31327         it that way.
31328         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
31329         unaligned vectors if we have efficient unaligned VSX accesses.
31330         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
31331         undocumented option.
31333 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31335         Revert:
31336         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31338         * config.gcc (LIBC_MUSL): New tm_defines macro.
31339         * config/linux.h (OPTION_MUSL): Define.
31340         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31341         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31342         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31344         * config/linux.opt (mmusl): New option.
31345         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31346         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31348         * configure: Regenerate.
31350 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
31352         * config.gcc (LIBC_MUSL): New tm_defines macro.
31353         * config/linux.h (OPTION_MUSL): Define.
31354         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31355         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31356         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31358         * config/linux.opt (mmusl): New option.
31359         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31360         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31362         * configure: Regenerate.
31364 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
31366         * doc/invoke.texi (-fsanitize-sections): Update description.
31367         * asan.c (set_sanitized_sections): Parse incoming arg.
31368         (section_sanitized_p): Support wildcards.
31370 2015-04-22  Tom de Vries  <tom@codesourcery.com>
31372         PR tree-optimization/65823
31373         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
31374         equality between ap_copy and ap.
31376 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31378         PR target/47098
31379         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
31381 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31383         PR target/47122
31384         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
31386 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31388         PR target/55144
31389         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
31390         remove already contained t-files.
31392 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31394         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
31395         Remove unneeded forward declarations.
31396         (suitable_for_tail_call_opt_p): Commentary typo fix.
31398 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31400         * varasm.c (emit_bss): Remove redundant guard.
31402 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31404         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
31406 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31408         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
31410 2015-04-22  Hale Wang  <hale.wang@arm.com>
31411             Terry Guo  <terry.guo@arm.com>
31413         PR rtl-optimization/64818
31414         * combine.c (can_combine_p): Don't combine user-specified
31415         register if it is in an asm input.
31417 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
31419         PR ipa/65076
31420         * passes.def (early_optimizations): Add pass_dse.
31422 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31424         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
31425         * reorg.c (redundant_insn): Remove ifdef
31426         INSN_REFERENCES_ARE_DELAYED.
31427         * resource.c (mark_referenced_resources): Likewise.
31429 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31431         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
31432         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
31433         * resource.c (mark_set_resources): Likewise.
31435 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31437         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
31438         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31439         (flow_find_head_matching_sequence): Likewise.
31440         (try_head_merge_bb): Likewise.
31441         * combine.c (can_combine_p): Likewise.
31442         (try_combine): Likewise.
31443         (distribute_notes): Likewise.
31444         * df-problems.c (can_move_insns_across): Likewise.
31445         * final.c (final): Likewise.
31446         * gcse.c (insert_insn_end_basic_block): Likewise.
31447         * ira.c (find_moveable_pseudos): Likewise.
31448         * reorg.c (try_merge_delay_insns): Likewise.
31449         (fill_simple_delay_slots): Likewise.
31450         (fill_slots_from_thread): Likewise.
31451         * sched-deps.c (sched_analyze_2): Likewise.
31453 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31455         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
31456         PIC_OFFSET_TABLE_REGNUM.
31458 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31460         * alias.c (init_alias_target): Remove ifdef
31461         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
31462         * df-scan.c (df_insn_refs_collect): Likewise.
31463         (df_get_regular_block_artificial_uses): Likewise.
31464         (df_get_eh_block_artificial_uses): Likewise.
31465         (df_get_entry_block_def_set): Likewise.
31466         (df_get_exit_block_use_set): Likewise.
31467         * emit-rtl.c (gen_rtx_REG): Likewise.
31468         * ira.c (ira_setup_eliminable_regset): Likewise.
31469         * reginfo.c (init_reg_sets_1): Likewise.
31470         * regrename.c (rename_chains): Likewise.
31471         * reload1.c (reload): Likewise.
31472         (eliminate_regs_in_insn): Likewise.
31473         * resource.c (mark_referenced_resources): Likewise.
31474         (init_resource_info): Likewise.
31476 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31478         * defaults.h (MASK_RETURN_ADDR): New definition.
31479         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31480         MASK_RETURN_ADDR.
31482 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31484         * defaults.h (RETURN_ADDR_OFFSET): New definition.
31485         * except.c (expand_builtin_extract_return_addr): Remove ifdef
31486         RETURN_ADDR_OFFSET.
31487         (expand_builtin_frob_return_addr): Likewise.
31489 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31491         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
31492         (try_redirect_by_replacing_jump): Likewise.
31493         (rtl_tidy_fallthru_edge): Likewise.
31494         * combine.c (insn_a_feeds_b): Likewise.
31495         (find_split_point): Likewise.
31496         (simplify_set): Likewise.
31497         * cprop.c (cprop_jump): Likewise.
31498         * cse.c (cse_extended_basic_block): Likewise.
31499         * df-problems.c (can_move_insns_across): Likewise.
31500         * function.c (emit_use_return_register_into_block): Likewise.
31501         * haifa-sched.c (sched_init): Likewise.
31502         * ira.c (find_moveable_pseudos): Likewise.
31503         * loop-invariant.c (find_invariant_insn): Likewise.
31504         * lra-constraints.c (curr_insn_transform): Likewise.
31505         * postreload.c (reload_combine_recognize_const_pattern):
31506         * Likewise.
31507         * reload.c (find_reloads): Likewise.
31508         * reorg.c (delete_scheduled_jump): Likewise.
31509         (steal_delay_list_from_target): Likewise.
31510         (steal_delay_list_from_fallthrough): Likewise.
31511         (redundant_insn): Likewise.
31512         (fill_simple_delay_slots): Likewise.
31513         (fill_slots_from_thread): Likewise.
31514         (delete_computation): Likewise.
31515         * sched-rgn.c (add_branch_dependences): Likewise.
31517 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31519         * genconfig.c (main): Always define HAVE_cc0.
31520         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
31521         HAVE_cc0.
31522         * cfgcleanup.c (flow_find_cross_jump): Likewise.
31523         (flow_find_head_matching_sequence): Likewise.
31524         (try_head_merge_bb): Likewise.
31525         * cfgrtl.c (rtl_merge_blocks): Likewise.
31526         (try_redirect_by_replacing_jump): Likewise.
31527         (rtl_tidy_fallthru_edge): Likewise.
31528         * combine.c (do_SUBST_MODE): Likewise.
31529         (insn_a_feeds_b): Likewise.
31530         (combine_instructions): Likewise.
31531         (can_combine_p): Likewise.
31532         (try_combine): Likewise.
31533         (find_split_point): Likewise.
31534         (subst): Likewise.
31535         (simplify_set): Likewise.
31536         (distribute_notes): Likewise.
31537         * cprop.c (cprop_jump): Likewise.
31538         * cse.c (cse_extended_basic_block): Likewise.
31539         * df-problems.c (can_move_insns_across): Likewise.
31540         * final.c (final): Likewise.
31541         (final_scan_insn): Likewise.
31542         * function.c (emit_use_return_register_into_block): Likewise.
31543         * gcse.c (insert_insn_end_basic_block): Likewise.
31544         * haifa-sched.c (sched_init): Likewise.
31545         * ira.c (find_moveable_pseudos): Likewise.
31546         * loop-invariant.c (find_invariant_insn): Likewise.
31547         * lra-constraints.c (curr_insn_transform): Likewise.
31548         * optabs.c (prepare_cmp_insn): Likewise.
31549         * postreload.c (reload_combine_recognize_const_pattern):
31550         * Likewise.
31551         * reload.c (find_reloads): Likewise.
31552         (find_reloads_address_1): Likewise.
31553         * reorg.c (delete_scheduled_jump): Likewise.
31554         (steal_delay_list_from_target): Likewise.
31555         (steal_delay_list_from_fallthrough): Likewise.
31556         (try_merge_delay_insns): Likewise.
31557         (redundant_insn): Likewise.
31558         (fill_simple_delay_slots): Likewise.
31559         (fill_slots_from_thread): Likewise.
31560         (delete_computation): Likewise.
31561         (relax_delay_slots): Likewise.
31562         * sched-deps.c (sched_analyze_2): Likewise.
31563         * sched-rgn.c (add_branch_dependences): Likewise.
31565 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31567         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
31568         that is trivially ded on non cc0 targets.
31569         (simplify_set): Likewise.
31570         (mark_used_regs_combine): Likewise.
31571         * cse.c (new_basic_block): Likewise.
31572         (fold_rtx): Likewise.
31573         (cse_insn): Likewise.
31574         (cse_extended_basic_block): Likewise.
31575         (set_live_p): Likewise.
31576         * rtlanal.c (canonicalize_condition): Likewise.
31577         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
31579 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31581         * conditions.h: Define macros even if HAVE_cc0 is undefined.
31582         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
31583         * final.c: Likewise.
31584         * jump.c: Likewise.
31585         * recog.c: Likewise.
31586         * recog.h: Declare functions even when HAVE_cc0 is undefined.
31587         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
31589 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31591         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
31592         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
31593         * builtins.c (expand_builtin): Remove check if
31594         EH_RETURN_DATA_REGNO is defined.
31595         * df-scan.c (df_bb_refs_collect): Likewise.
31596         (df_get_exit_block_use_set): Likewise.
31597         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
31598         * ira-lives.c (process_bb_node_lives): Likewise.
31599         * lra-lives.c (process_bb_lives): Likewise.
31601 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31603         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
31604         FIRST_PSEUDO_REG): New.
31605         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
31606         (ARG_POINTER_REGNUM): Define to ARGP_REG.
31607         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
31608         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
31609         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
31610         (FIRST_INT_REG): New.
31611         (LAST_INT_REG): New.
31612         (FIRST_*_REG): Define using *_REG.
31613         (LAST_*_REG): Ditto.
31614         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
31615         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
31616         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
31618 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31620         * expmed.c: (synth_mult): Only assume overlapping
31621         shift with previous steps in alg_sub_t_m2 case.
31623 2015-04-21  Richard Biener  <rguenther@suse.de>
31625         PR tree-optimization/65650
31626         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
31627         transitions involving copies.
31628         (set_lattice_value): Adjust for copy lattice state.
31629         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
31630         if that doesn't dominate the merge point.
31631         (bit_value_unop): Adjust what we treat as varying mask.
31632         (bit_value_binop): Likewise.
31633         (bit_value_assume_aligned): Likewise.
31634         (evaluate_stmt): When we simplified to a SSA name record a copy
31635         instead of dropping to varying.
31636         (visit_assignment): Simplify.
31638         * gimple-match.h (gimple_simplify): Add another callback.
31639         * gimple-fold.c (fold_stmt_1): Adjust caller.
31640         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
31641         for the 2nd callback.
31642         * gimple-match-head.c (gimple_simplify): Add a callback that is
31643         used to valueize the stmt operands and use it that way.
31645 2015-04-21  Richard Biener  <rguenther@suse.de>
31647         PR tree-optimization/65788
31648         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
31650 2015-04-21  Richard Biener  <rguenther@suse.de>
31652         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
31653         vec_construct cost by vec_stmt_cost.
31655 2015-04-21  Richard Biener  <rguenther@suse.de>
31657         * cfghooks.h (create_basic_block): Replace with two overloads
31658         for RTL and GIMPLE.
31659         (split_block): Likewise.
31660         * cfghooks.c (split_block): Rename to ...
31661         (split_block_1): ... this.
31662         (split_block): Add two type-safe overloads for RTL and GIMPLE.
31663         (split_block_after_labels): Call split_block_1.
31664         (create_basic_block): Rename to ...
31665         (create_basic_block_1): ... this.
31666         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
31667         (create_empty_bb): Call create_basic_block_1.
31668         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
31669         split_block_after_labels.
31670         * omp-low.c (expand_parallel_call): Likewise.
31671         (expand_omp_target): Likewise.
31672         (simd_clone_adjust): Likewise.
31673         * tree-chkp.c (chkp_get_entry_block): Likewise.
31674         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
31675         create_basic_block overload.
31676         (cgraph_node::expand_thunk): Likewise.
31677         * tree-cfg.c (make_blocks): Likewise.
31678         (handle_abnormal_edges): Likewise.
31679         * tree-inline.c (copy_bb): Likewise.
31681 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31683         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
31684         New pattern.
31685         (*xor_one_cmplsidi3_ze): Likewise.
31687 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31689         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
31690         use df_remove_problem rather than manually removing problems, leaving
31691         holes in df->problems_in_order[].
31693 2015-04-21  Tom de Vries  <tom@codesourcery.com>
31695         PR tree-optimization/65802
31696         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
31698 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31700         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
31701         Increase to 128.
31702         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
31703         at '.'.  Assert that there's enough space for everything.
31705 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
31707         PR tree-optimization/64950
31708         Revert:
31709         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
31711         PR target/41089
31712         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
31713         as volatile.
31715 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
31717         PR rtl-optimization/64916
31718         * cfgcleanup.c (values_equal_p): New function.
31719         (can_replace_by): Use it.
31721 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
31723         PR c++/65801
31724         * doc/invoke.texi ([-Wnarrowing]): Update.
31726 2015-04-20  Jeff Law  <law@redhat.com>
31728         PR tree-optimization/65658
31729         * tree-ssa-threadupdate.c (redirection_block_p): Remove
31730         redundant test for GIMPLE_ASSIGN in last change.
31732 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
31734         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
31735         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
31736         (legitimize_tls_address): Ditto.
31737         (ix86_expand_move): Ditto.
31738         (ix86_expand_binary_operator): Remove reload_in_progress checks.
31739         (ix86_expand_unary_operator): Ditto.
31740         * config/i386/predicates.md (index_register_operand): Ditto.
31742 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
31744         * reorg.c (try_merge_delay_insns): Improve correctness checking
31745         for targets with multiple delay slots.
31747 2015-04-20  Jeff Law  <law@redhat.com>
31749         PR tree-optimization/65658
31750         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
31751         statements too.
31753 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31755         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
31756         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
31757         Delete.
31759 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
31761         PR debug/65807
31762         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
31764 2015-04-20  Richard Biener  <rguenther@suse.de>
31766         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
31767         * gimple-fold.c (gimple_build_valueize): New function.
31768         (gimple_build): Always use gimple_build_valueize as valueize hook.
31770 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
31772         PR target/64134
31773         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
31774         and overwrite variable parts if <= 1/2 the elements are variable.
31776 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31778         PR rtl-optimization/65805
31779         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
31780         Don't use difference of offset and previous offset if
31781         update_sp_offset is non-zero.
31782         (eliminate_regs_in_insn): Ditto.
31783         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
31784         lra_eliminate_regs_1 call.
31785         * lra-constraints.c (get_equiv_with_elimination): Ditto.
31787 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
31789         * hash-table.h: Remove version of hash_table that stored value_type *.
31790         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
31791         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
31792         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
31793         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
31794         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
31795         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
31796         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
31797         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
31798         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
31799         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
31800         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
31801         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
31802         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
31803         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
31804         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
31805         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
31807 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31808             Jakub Jelinek  <jakub@redhat.com>
31810         PR target/65787
31811         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
31812         subsequent SH_NONE operand does not overwrite an existing *special
31813         value.
31814         (adjust_extract): Handle case where a vec_extract operation is
31815         wrapped in a PARALLEL.
31817 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31819         PR target/65780
31820         * config/i386/i386.c (ix86_binds_local_p): Define only if
31821         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
31823 2015-04-17  Jeff Law  <law@redhat.com>
31825         PR tree-optimization/47679
31826         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
31827         * tree-ssa-scopedtables.c: New file.
31828         * tree-ssa-scopedtables.h: New file.
31829         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
31830         (const_and_copies): Change name/type.
31831         (record_const_or_copy): Move into tree-ssa-scopedtables.c
31832         (record_const_or_copy_1): Similarly.
31833         (restore_vars_to_original_value): Similarly.
31834         (pass_dominator::execute): Create and destroy const_and_copies table.
31835         (thread_across_edge): Update passing of const_and_copies.
31836         (record_temporary_equivalence): Use method calls rather than
31837         manipulating const_and_copies directly.
31838         (record_equality, cprop_into_successor_phis): Similarly.
31839         (dom_opt_dom_walker::before_dom_children): Similarly.
31840         (dom_opt_dom_walker::after_dom_children): Similarly.
31841         (eliminate_redundant_computations): Similarly.
31842         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
31843         (record_temporary_equivalence): Likewise.
31844         (invalidate_equivalences): Likewise.
31845         (record_temporary_equivalences_from_phis): Update due to type
31846         change of const_and_copies.  Use method calls rather than
31847         manipulating the stack directly.
31848         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
31849         (thread_through_normal_block, thread_across_edge): Likewise.
31850         (thread_across_edge): Likewise.
31851         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
31852         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
31853         of equiv_stack.
31854         (identify_jump_threads): Update due to type change of equiv_stack.
31855         (finalize_jump_threads): Delete the equiv_stack when complete.
31857 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
31859         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
31860         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
31861         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
31863 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
31865         PR target/65535
31866         * config.gcc: Exit with a comment when we do not have a major version
31867         number for the FreeBSD target.
31869 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31871         PR target/65689
31872         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
31873         maybe_allows_mem bitfields.
31874         (maybe_allows_none_start, maybe_allows_none_end,
31875         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
31876         maybe_allows_mem_end): New variables.
31877         (compute_maybe_allows): New function.
31878         (add_constraint): Use it to initialize maybe_allows_reg and
31879         maybe_allows_mem fields.
31880         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
31881         is_address constraints such that those that allow neither mem nor
31882         reg come first, then those that only allow reg but not mem, then
31883         those that only allow mem but not reg, then the rest.
31884         (write_allows_reg_mem_function): New function.
31885         (write_tm_preds_h): Call it.
31886         * stmt.c (parse_output_constraint, parse_input_constraint): Use
31887         the generated insn_extra_constraint_allows_reg_mem function
31888         instead of always setting *allows_reg = true; *allows_mem = true;
31889         for unknown extra constraints.
31891 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
31893         PR target/65780
31894         * output.h (default_binds_local_p_3): New.
31895         * varasm.c (default_binds_local_p_3): Make it public.  Take an
31896         argument to indicate if common symbol may be local.  If common
31897         symbol may be local, treat non-external variable as defined
31898         locally.
31899         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
31900         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
31901         * config/i386/i386.c (ix86_binds_local_p): New.
31902         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
31903         ix86_binds_local_p.
31905 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
31907         PR debug/65771
31908         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
31909         trying mem_loc_descriptor on XEXP (rtl, 0).
31911 2015-04-17  Martin Liska  <mliska@suse.cz>
31913         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
31914         Release symbol_compare_collection.
31915         * ipa-reference.c: Add TODO that a vector should be released.
31917 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
31919         PR target/65296
31920         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
31921         to new AVR-LibC file layout (bug #44574).
31922         (*avrlibc_devicelib): Same.
31923         * config/avr/avr-mcus.def: Adjust comments.
31924         * config/avr/avr.opt (nodevicelib): Adjust help.
31926 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
31928         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
31930 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
31932         PR c++/64527
31933         * gimplify.c (gimplify_init_constructor): Always emit a
31934         side-effecting constructor.
31936 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31938         PR tree-optimization/64950
31939         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
31940         in cfun->curr_properties.
31941         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
31942         if we generate an IFN_VA_ARG.
31943         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
31944         function if PROP_gimple_lva is not set in src function.
31946 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31947             Michael Matz  <matz@suse.de>
31949         PR tree-optimization/64950
31950         * gimple-iterator.c (update_modified_stmts): Remove static.
31951         * gimple-iterator.h (update_modified_stmts): Declare.
31952         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
31953         (gimplify_va_arg_internal): New function.
31954         (gimplify_va_arg_expr): Use IFN_VA_ARG.
31955         * gimplify.h (gimplify_va_arg_internal): Declare.
31956         * internal-fn.c (expand_VA_ARG): New unreachable function.
31957         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
31958         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
31959         (expand_ifn_va_arg): New function.
31960         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
31961         (pass_stdarg::execute): Call expand_ifn_va_arg.
31962         (pass_data_lower_vaarg): New pass_data.
31963         (pass_lower_vaarg): New gimple_opt_pass.
31964         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
31965         (make_pass_lower_vaarg): New function.
31966         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
31967         properties_required field.
31968         * passes.def (all_passes): Add pass_lower_vaarg.
31969         * tree-pass.h (PROP_gimple_lva): Add define.
31970         (make_pass_lower_vaarg): Declare.
31972 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31974         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
31975         * calls.c (call_expr_flags): Same.
31977 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31979         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
31980         (pass_stdarg::execute): ... here.
31982 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31983             Michael Matz  <matz@suse.de>
31985         * tree-cfg.c (make_blocks_1): Factor out of ...
31986         (make_blocks): ... here.
31987         (make_edges_bb): Factor out of ...
31988         (make_edges): ... here.
31989         (gimple_find_sub_bbs): New function.
31990         * tree-cfg.h (gimple_find_sub_bbs): Declare.
31992 2015-04-17  Tom de Vries  <tom@codesourcery.com>
31994         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
31996 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
31998         * asan.c (set_sanitized_sections): New function.
31999         (section_sanitized_p): Ditto.
32000         (asan_protect_global): Optionally sanitize user-defined
32001         sections.
32002         * asan.h (set_sanitized_sections): Declare new function.
32003         * common.opt (fsanitize-sections): New option.
32004         * doc/invoke.texi (-fsanitize-sections): Document new option.
32005         * opts-global.c (handle_common_deferred_options): Handle new
32006         option.
32008 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
32010         PR debug/65771
32011         * dwarf2out.c (loc_list_from_tree): Return NULL
32012         for DEBUG_EXPR_DECL.
32014 2015-04-17  Christian Bruel  <christian.bruel@st.com>
32016         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
32017         same attributes.
32019 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
32021         * ira-color.c (setup_left_conflict_sizes_p): Do not process
32022         node itself when computing left conflict subnode size.
32024 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32026         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
32027         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
32028         *fop_<mode>_1_sse using enabled attribute.  Use
32029         register_mixssei387nonimm_operand operand 1 predicate. Change
32030         alternative 3 constraints from "x" to "v".
32032 2015-04-16  Richard Biener  <rguenther@suse.de>
32034         PR tree-optimization/65774
32035         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
32036         bit-value tracking on.
32038 2015-04-16  Richard Biener  <rguenther@suse.de>
32040         PR tree-optimization/64277
32041         * tree-vrp.c (check_array_ref): Fix anti-range handling,
32042         simplify upper bound handling.
32043         (search_for_addr_array): Simplify.
32044         (check_array_bounds): Handle ADDR_EXPRs here.
32045         (check_all_array_refs): Simplify.
32047 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
32049         * config/i386/i386.c (print_reg): Rewrite function.
32051 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32053         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
32054         Invert the condition.
32056 2015-04-16  Renlin Li  <renlin.li@arm.com>
32058         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
32059         simplifications for UNSIGNED_FLOAT.
32061 2015-04-16  Nick Clifton  <nickc@redhat.com>
32063         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
32064         MUL_UNINIT.
32065         (enum rl78_cpu_type): New.
32066         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
32067         (umulhi3_shift_virt): Remove m constraint from operand 1.
32068         (umulqihi3_virt): Likewise.
32069         * config/rl78/rl78.c (rl78_option_override): Add code to process
32070         -mcpu and -mmul options.
32071         (rl78_alloc_physical_registers): Add code to handle divhi and
32072         divsi valloc attributes.
32073         (set_origin): Likewise.
32074         * config/rl78/rl78.h (RL78_MUL_G14): Define.
32075         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
32076         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
32077         __RL78_Gxx__.
32078         (ASM_SPEC): Pass -mcpu on to assembler.
32079         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
32080         (mulqi3_rl78): Likewise.
32081         (mulhi3_g13): Likewise.
32082         (mulhi3): Generate the G13 or G14 versions of the insn directly.
32083         (mulsi3): Likewise.
32084         (mulhi3_g14): Add clobbers of AX and BC.
32085         (mulsi3_g14): Likewise.
32086         (mulsi3_g13): Likewise.
32087         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
32088         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
32089         * config/rl78/rl78.opt (mmul): Initialise value to
32090         RL78_MUL_UNINIT.
32091         (mcpu): New option.
32092         (m13, m14, mrl78): New option aliases.
32093         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
32094         (MULTILIB_DIRNAMES): Add g13 and g14.
32095         * doc/invoke.texi: Document -mcpu and -mmul options.
32097 2015-04-16  Richard Biener  <rguenther@suse.de>
32099         * tree-ssa-ccp.c (likely_value): See if we have operands that
32100         are marked as never simulate again and return CONSTANT in this
32101         case.
32102         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
32103         not have any operands that will be simulated again as
32104         not being simulated again.
32106 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
32108         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
32109         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
32110         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
32111         attribute.
32112         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
32113         enabled attribute.
32114         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
32115         *float<SWI48:mode><MODEF:mode>2_sse.
32116         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
32117         enabled attribute.
32118         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
32119         enabled attribute.
32121 2015-04-15  Tom de Vries  <tom@codesourcery.com>
32123         PR other/65487
32124         * function.c (push_dummy_function): New function.
32125         (init_dummy_function_start): Use push_dummy_function.
32126         (pop_dummy_function): New function.  Factored out of ...
32127         (expand_dummy_function_end): ... here.
32128         * function.h (push_dummy_function, pop_dummy_function): Declare.
32129         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
32130         pop_dummy_function.
32131         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
32133 2015-04-15  Jeff Law  <law@redhat.com>
32135         PR tree-optimization/47679
32136         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
32137         need for forward declaration in upcoming changes.
32138         (record_conditions, record_edge_info): Likewise.
32140         PR rtl-optimization/42522
32141         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
32142         SIGN_EXTRACT as a whole object rather than simplifying
32143         its operand.
32145 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
32147         PR ipa/65765
32148         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
32149         and GIMPLE_PREDICT use break instead of return true. For
32150         GIMPLE_EH_DISPATCH, compare dispatch region.
32152 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
32154         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
32155         details about the implementation.  Make clear preference for
32156         __atomic builtins.  Reduce possibility of future change.
32158 2015-04-15  Nick Clifton  <nickc@redhat.com>
32160         * config/rx/rx.opt (mallow-string-insns): New option.
32161         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
32162         builtin if string instructions are denied.
32163         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
32164         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
32165         appropriate.
32166         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
32167         * config/rx/rx.md (movstr): Enable pattern only if string
32168         instructions are allowed.
32169         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
32170         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
32171         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
32172         (MULTILIB_DIRNAMES): Add no-strings.
32173         * doc/invoke.texi: Document -mno-allow-string-insns.
32175 2015-04-15  Alan Modra  <amodra@gmail.com>
32177         PR target/65408
32178         PR target/58744
32179         PR middle-end/36043
32180         * calls.c (load_register_parameters): Don't load past end of
32181         mem unless suitably aligned.
32183 2015-04-15  Nick Clifton  <nickc@redhat.com>
32185         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
32186         decrement instruction as being frame related.
32187         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
32188         based addresses.
32189         If zero extending a function address enclose the operation in
32190         %code(...).
32191         (rl78_preferred_reload_class): New function.
32192         (TARGET_PREFERRED_RELOAD_CLASS): Define.
32193         * config/rl78/rl78.md: Remove useless constraints in expanders.
32194         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
32195         (mulhi3_rl78): Likewise.
32196         (mulhi3_g13): Likewise.
32197         (mulsi3_rl78): Likewise.
32198         (es_addr): Move to before the multiply patterns.
32200 2015-04-15  Alan Modra  <amodra@gmail.com>
32202         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
32203         and sequence_stack.  Add seq.
32204         (seq_stack): Delete.
32205         * function.c (prepare_function_start): Don't access x_last_insn.
32206         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
32207         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
32208         * emit_rtl.c (start_sequence, push_topmost_sequence,
32209         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
32210         sequence accessors.
32211         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
32212         remove_insn): Likewise.  Simplify.
32213         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
32214         and pop_topmost_sequence.
32215         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
32216         debug insns.
32217         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
32219 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
32221         PR target/65729
32222         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
32223         the assertiion.
32225 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32227         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
32228         (LEGACY_INT_REGNO_P): Ditto.
32229         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
32230         (ANY_MASK_REG_P): Remove.
32231         (BND_REG_P): Rename from ANY_BND_REG_P.
32232         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
32233         legacy integer registers.  Do not handle MMX_REG_P in a special way.
32234         Merge 64byte and 32byte SSE handling.
32236 2015-04-14  Nick Clifton  <nickc@redhat.com>
32238         * expr.c (expand_assignment): Force an address offset computation
32239         into a register before changing its mode.
32240         (expand_expr_real_1): Likewise.
32242 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
32244         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
32245         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
32246         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
32247         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
32248         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
32249         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
32250         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
32251         and __aarch64_vget_lane_any.
32253 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
32255         PR rtl-optimization/65761
32256         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
32257         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
32259 2015-04-14  Richard Biener  <rguenther@suse.de>
32261         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
32262         (graphite_can_represent_scev): Use POINTER_TYPE_P.
32264 2015-04-14  Richard Biener  <rguenther@suse.de>
32266         PR tree-optimization/65758
32267         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
32268         against -1.
32269         (ccp_lattice_meet): Likewise.
32270         (bit_value_unop): Likewise.
32271         (bit_value_binop): Likewise.
32272         (bit_value_assume_aligned): Likewise.
32274 2015-04-14  Christian Bruel  <christian.bruel@st.com>
32276         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
32277         function.
32279 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
32281         PR tree-optimization/63387
32282         * match.pd ((x unord x) | (y unord y) -> (x unord y),
32283         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
32285 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
32287         * config/i386/predicates.md (any_QIreg_operand): Rename from
32288         q_regs_operand.  Do not process subregs.
32289         (QIreg_operand): Use QI_REGNO_P predicate.
32290         (ext_QIreg_operand): Ditto.
32291         (ext_register_operand): Ditto.
32292         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
32293         (AND splitters): Ditto.
32294         (AND with -65536 splitter): Add SWI48 mode for operand 0.
32295         (AND with -256 splitter): Use any_QIreg_operand predicate and
32296         SWI248 mode for operand 0.
32297         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
32298         mode for operand 0.
32299         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
32301 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
32303         * doc/plugins.texi: Rewrite first introductory paragraph.
32305 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32307         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
32308         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
32310 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32312         * ipa-profie.c (ipa_profile): Check number of parameters
32313         and possible polymorphic call targets before
32314         devirtualizing.
32316 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
32318         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
32319         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
32321 2015-04-13  Richard Biener  <rguenther@suse.de>
32323         PR tree-optimization/65204
32324         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
32325         takens for bit-CCP.
32327 2015-04-13  Richard Biener  <rguenther@suse.de>
32329         PR target/65660
32330         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
32331         and cond_not_taken_branch_cost to 4 and 2.
32332         (bdver2_cost): Likewise.
32333         (bdver3_cost): Likewise.
32334         (bdver4_cost): Likewise.
32336 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32338         * hash-table.h (hash_table constructor): Add mem stats.
32339         (alloc_entries): Likewise.
32341 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32343         * ipa-cp.c (ipcp_driver): Relase prev_edge.
32344         * passes.c (execute_one_pass): Only add transform if pass has one.
32346 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
32348         * config/i386/i386.c (ix86_option_override_internal): Don't set
32349         -fprefetch-loop-arrays if optimizing for size.
32351 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
32352             Gerald Pfeifer  <gerald@pfeifer.com>
32354         * doc/contrib.texi (Contributors): Add Martin Jambor and
32355         Michael Matz.
32357 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
32359         * BASE-VER: Set to 6.0.0.
32361         PR tree-optimization/65747
32362         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
32363         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
32365 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32367         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
32368         sentence.  Improve grammar.
32370 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
32372         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
32374 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32376         PR ipa/65743
32377         * ipa-inline-transform.c (speculation_removed): Remove static var.
32378         (check_speculations): New function.
32379         (clone_inlined_nodes): Do not check spculations.
32380         (inline_call): Call check_speculations.
32381         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
32382         consider non-invariants.
32384 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
32385             Martin Liska  <mliska@suse.cz>
32387         PR ipa/65722
32388         * ipa-icf.c (sem_item::compare_cgraph_references): function and
32389         variable can not match.
32390         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
32391         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
32393 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
32395         PR tree-optimization/65735
32396         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
32397         Remove visited_phis argument, add visited_bbs, avoid recursing into the
32398         same bb rather than just into the same phi node.
32399         (thread_through_normal_block): Adjust caller.
32401 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32403         * doc/contrib.texi (Contributors): Add Ira Rosen.
32405 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
32407         * gcov.c (find_source): Fix miswording in error message.
32408         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
32409         (ix86_expand_sse_comi_round): Fix typo in error message.
32411 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
32413         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
32415 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
32417         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
32419 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32421         PR target/65710
32422         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
32423         Print bad_spills_num and insn_pseudos_num.
32425 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32427         PR target/65694
32428         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
32429         when creating +1 values for SImode.
32431 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
32433         PR target/65729
32434         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
32435         assert.
32437 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
32438             Iain Sandoe  <iain@codesourcery.com>
32440         PR target/65351
32441         * configure: Regenerate.
32443 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32445         PR target/65671
32446         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
32448 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
32450         * doc/contrib.texi (Contributors): Add John Marino.
32452 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32454         PR tree-optimization/65709
32455         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
32456         TREE_TYPE (TREE_TYPE (t)).
32458 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
32460         PR target/65710
32461         * lra-int.h (lra_bad_spill_regno_start): New.
32462         * lra.c (lra_bad_spill_regno_start): New.
32463         (lra): Set up lra_bad_spill_regno_start.  Set up
32464         lra_constraint_new_regno_start unconditionally.
32465         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
32466         spill preferences.
32468 2015-04-09  Marek Polacek  <polacek@redhat.com>
32469             Jakub Jelinek  <jakub@redhat.com>
32471         PR middle-end/65554
32472         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
32473         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
32474         of STRIP_NOPS.
32476 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
32478         PR rtl-optimization/65693
32479         * combine.c (is_parallel_of_n_reg_sets): Move outside of
32480         #ifndef HAVE_cc0.
32482 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
32484         PR target/65296
32485         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
32486         device specs file if "device-specs%s" didn't resolve to a path.
32488 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
32490         PR target/65676
32491         * config/i386/i386.c (fixup_modeless_constant): New.
32492         (ix86_expand_args_builtin): Fixup modeless constant operand.
32493         (ix86_expand_round_builtin): Ditto.
32494         (ix86_expand_special_args_builtin): Ditto.
32495         (ix86_expand_builtin): Ditto.
32497 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
32499         PR target/65693
32500         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
32501         any pow2 integer in between 2 and 0x80000000U inclusive.
32503 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
32505         PR rtl-optimization/65693
32506         * combine.c (is_parallel_of_n_reg_sets): Change first argument
32507         from an rtx_insn * to an rtx.
32508         (try_combine): Adjust both callers.  Use it once more.
32510 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32512         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
32513         (chkp_make_static_const_bounds): Search existing
32514         symbol by assembler name.  Use make_decl_one_only.
32515         (chkp_get_zero_bounds_var): Remove node search which
32516         is now performed in chkp_make_static_const_bounds.
32517         (chkp_get_none_bounds_var): Likewise.
32519 2015-04-08  Michael Witten  <mfwitten@gmail.com>
32521         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
32522         to an example.
32524 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32526         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
32528 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32530         * doc/extend.texi (__sync Builtins): Fix grammar.
32532 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32534         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
32536 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32538         * varasm.c (emit_local): Move definition of align.
32540 2015-04-08  Julian Brown  <julian@codesourcery.com>
32542         * config/nvptx/mkoffload.c (process): Support variable mapping.
32544 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
32546         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
32547         alpha_links **.
32548         (alpha_write_one_linkage): Correct typo.
32550 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32552         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
32554 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
32556         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
32558 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
32560         * tree-chkp.h (chkp_insert_retbnd_call): New.
32561         * tree-chkp.c (chkp_insert_retbnd_call): New.
32562         * ipa-split.c (insert_bndret_call_after): Remove.
32563         (split_function): Use chkp_insert_retbnd_call.
32564         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
32565         bounds for instrumented functions.
32567 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
32569         PR ipa/65540
32570         * calls.c (initialize_argument_information): When producing tail
32571         call also turn SSA_NAMES passed by references to original PARM_DECLs
32573 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
32575         PR target/65648
32576         * lra-remat.c (do_remat): Process input and non-input insn
32577         registers separately.
32579 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32581         PR debug/65678
32582         * valtrack.c (debug_lowpart_subreg): New function.
32583         (dead_debug_insert_temp): Use it.
32585         PR middle-end/65680
32586         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
32587         into signed HOST_WIDE_INT the same as negative bit_offset.
32589 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
32591         * ipa-comdats.c (ipa_comdats): Visit all thunks
32592         to set proper comdat group.
32594 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32596         PR target/65489
32597         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
32598         on constants for NEON VSTRUCT modes.
32600 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
32601             Iain Sandoe  <iain@codesourcery.com>
32603         PR target/65351
32604         * configure: Regenerate.
32606 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
32608         PR target/65614
32609         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
32610         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
32611         that LFD is used to load double constants instead of LFS.  Add
32612         defaults for all costs structures.  Add comments for missing
32613         initialization fields.
32614         (size32_cost): Likewise.
32615         (size64_cost): Likewise.
32616         (rs64a_cost): Likewise.
32617         (mpccore_cost): Likewise.
32618         (ppc403_cost): Likewise.
32619         (ppc405_cost): Likewise.
32620         (ppc440_cost): Likewise.
32621         (ppc476_cost): Likewise.
32622         (ppc601_cost): Likewise.
32623         (ppc603_cost): Likewise.
32624         (ppc604_cost): Likewise.
32625         (ppc604e_cost): Likewise.
32626         (ppc620_cost): Likewise.
32627         (ppc630_cost): Likewise.
32628         (ppccell_cost): Likewise.
32629         (ppc750_cost): Likewise.
32630         (ppc7450_cost): Likewise.
32631         (ppc8540_cost): Likewise.
32632         (ppce300c2c3_cost): Likewise.
32633         (ppce500mc_cost): Likewise.
32634         (ppce500mc64_cost): Likewise.
32635         (ppce5500_cost): Likewise.
32636         (ppce6500_cost): Likewise.
32637         (titan_cost): Likewise.
32638         (power4_cost): Likewise.
32639         (power6_cost): Likewise.
32640         (power7_cost): Likewise.
32641         (power8_cost): Likewise.
32642         (ppca2_cost): Likewise.
32643         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
32645         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
32646         instead of XXLOR to copy SFmode to clear out dirty bits created
32647         when SFmode denormals are generated.
32648         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
32649         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
32651 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32653         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
32654         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
32655         * config/aarch64/aarch64-tune.md: Regenerate.
32657 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
32659         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
32660         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
32661         * config/arm/arm-cores.def (exynos-m1): New core.
32662         * config/arm/arm-tune.md: Regenerate.
32663         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
32664         * config/arm/bpabi.h: Likewise.
32666 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32668         * ipa-cp (set_single_call_flag): Remove too
32669         restrictive assert.
32671 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
32673         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
32674         GOMP_offload_unregister from the destructor.
32676 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
32678         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
32679         flags for instrumentation thunk.
32680         (chkp_produce_thunks): Likewise.
32682 2015-04-05  Martin Liska  <mliska@suse.cz>
32684         PR ipa/65665
32685         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
32686         has computed data structure.
32687         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32689 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
32691         * invoke.texi (inline-unit-growth): Increase growth to 20%
32692         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
32694 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
32696         PR target/65647
32697         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
32698         value checking.
32699         (lra_rematerialization_iter): New.
32700         * lra.c (lra): Initialize lra_rematerialization_iter.
32701         Stop updating lra_constraint_new_regno_start after switching of
32702         inheritance and rematerialization.
32703         * lra-remat.c (lra_rematerialization_iter): New.
32704         (lra_remat): Add printing pass iteration.  Do rematerialization
32705         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
32707 2015-04-04  Richard Biener  <rguenther@suse.de>
32709         PR tree-optimization/64909
32710         PR tree-optimization/65660
32711         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
32712         to take a cost vector for scalar iteration cost.
32713         (vect_get_single_scalar_iteration_cost): Likewise.
32714         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
32715         Compute the scalar iteration cost into a cost vector.
32716         (vect_get_known_peeling_cost): Use the scalar cost vector to
32717         account for the cost of the peeled iterations.
32718         (vect_estimate_min_profitable_iters): Likewise.
32719         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
32720         Likewise.
32722 2015-04-04  Alan Modra  <amodra@gmail.com>
32724         PR target/65576
32725         PR target/65240
32726         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
32727         0.0 constant unless TARGET_VSX.
32728         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
32729         alternative.
32731 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32733         PR ipa/65654
32734         * ipa-inline-transform.c (inline_call): Skip sanity check to work
32735         around the ICE
32737 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32739         PR ipa/65655
32740         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
32741         speculative indirect edges to avoid ordering issue.
32743 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
32745         PR ipa/65076
32746         * ipa-inline.c (edge_badness): Add combined size to the denominator.
32748 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
32750         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
32751         TYPE_ARTIFICIAL on the .omp_data* types.
32753 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32755         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
32756         instrumentation thunks.
32758 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32760         * config/i386/i386.c (ix86_expand_call): Avoid nested
32761         PARALLEL in returned call value.
32763 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32765         * lto-cgraph.c (input_cgraph_1): Always link instrumented
32766         assembler name with original one.
32768 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32770         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
32772 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32774         Revert parts of r216820.
32775         * config/i386/i386.md (movqi_internal): Correct type calculation
32776         for alternatives 3 and 5.
32778 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
32780         PR preprocessor/61977
32781         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
32782         predefine __vector/__bool/__pixel macros nor context sensitive
32783         macros for CLK_ASM.
32784         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
32786 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
32788         * config/pa/pa.c (pa_output_move_double): Directly handle register
32789         indexed memory operand.  Simplify handling of scaled register indexed
32790         memory operands.
32792 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32794         PR driver/65444
32795         * config/i386/linux-common.h (MPX_SPEC): New.
32796         (CHKP_SPEC): Add MPX_SPEC.
32797         * doc/invoke.texi (-fcheck-pointer-boudns): Document
32798         possible issues with '-z bndplt' support in linker.
32800 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
32802         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
32803         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
32804         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
32805         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
32806         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
32808 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
32810         * config/i386/sync.md (UNSPEC_MOVA): Remove.
32811         (atomic_load<mode>): Change operand 0 predicate to
32812         nonimmediate_operand and fix up the destination when needed.
32813         Use UNSPEC_LDA.
32814         (atomic_loaddi_fpu): Use UNSPEC_LDA.
32815         (atomic_store<mode>): Change operand 1 predicate to
32816         nonimmendate_operand and move the source to register when needed.
32817         Use UNSPEC_STA.
32818         (atomic_store<mode>_1): Use UNSPEC_STA.
32819         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
32820         Fix moves from memory operand.  Use UNSPEC_STA.
32822 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32824         * expmed.c (strict_volatile_bitfield_p): Check that the access will
32825         not cross a MODESIZE boundary.
32826         (store_bit_field, extract_bit_field): Added assertions in the
32827         strict volatile bitfields code path.
32829 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32831         PR target/65624
32832         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
32833         Increase args array size by one to avoid buffer overflow.
32835 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32837         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
32838         split_part.
32839         * ipa-inline.c (edge_badness): Add wrapper penalty.
32840         (sum_callers): Move up.
32841         (inline_small_functions): Set single_caller.
32842         * ipa-inline.h (inline_summary): Add single_caller.
32843         * ipa-split.c (split_function): Set split_part.
32844         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
32845         * cgraph.h (cgraph_node): Add split_part.
32847 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
32849         PR target/58945
32850         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
32851         Do not split operands 0 and operands 2 to halfmode.
32852         (atomic_compare_and_swap<mode>): Update for
32853         atomic_compare_and_swap<dwi>_doubleword changes.
32855 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
32857         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
32858         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
32859         no caching is done.
32861 2015-03-31  Martin Liska  <mliska@suse.cz>
32863         PR ipa/65557
32864         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
32865         has already filled up function summary.
32866         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
32868 2015-03-31  Richard Biener  <rguenther@suse.de>
32870         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
32871         of types.
32873 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32875         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
32876         nested functions.
32877         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
32878         (s390_asm_output_function_label): Adapt to new signature of
32879         s390_function_num_hotpatch_hw
32880         Optimise the code generating assembler output.
32881         Add comments to assembler file.
32883 2015-03-31  Richard Biener  <rguenther@suse.de>
32885         PR middle-end/65626
32886         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
32887         of the noreturn call so it is last and cleanup_control_flow_bb
32888         can do the CFG part.
32890 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
32892         PR target/65531
32893         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
32894         same_comdat_group for external symbols.
32895         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
32896         infinite same_comdat_group traversal loop.
32898 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
32900         PR plugins/61176
32901         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
32902         automatically to $headers.
32904 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
32906         PR ipa/65610
32907         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
32908         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
32909         function.
32910         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
32911         Use it.
32912         * ipa-prop.c (param_type_may_change_p): Likewise.
32913         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
32914         (remove_unused_scope_block_p): Add in_ctor_dtor_block
32915         argument.  Before inlining, preserve
32916         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
32917         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
32918         recursive calls.
32919         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
32921 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32923         PR ipa/65076
32924         * ipa-inline.c (edge_badness): Base denominator on callee's
32925         grwoth squared.
32927 2015-03-27  Martin Jambor  <mjambor@suse.cz>
32929         PR ipa/65478
32930         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
32931         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
32932         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
32933         node_calling_single_call.
32934         * ipa-cp.c (count_callers): New function.
32935         (set_single_call_flag): Likewise.
32936         (initialize_node_lattices): Count callers and set single_flag_call if
32937         necessary.
32938         (incorporate_penalties): New function.
32939         (good_cloning_opportunity_p): Use it, dump new flags.
32940         (propagate_constants_topo): Set node_within_scc flag if appropriate.
32941         * doc/invoke.texi (ipa-cp-recursion-penalty,
32942         ipa-cp-single-call-pentalty): Document.
32944 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32946         PR ipa/65588
32947         * symtab.c (symtab_node::get_partitioning_class): Register vars
32948         are duplicated.
32949         * varpool.c (symbol_table::output_variables) Do not assemble unefined
32950         decls for non-symbols.
32952 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
32954         PR target/65248
32955         * output.h (default_binds_local_p_2): New.
32956         * varasm.c (default_binds_local_p_2): Renamed to ...
32957         (default_binds_local_p_3): This.  Don't return true on protected
32958         data symbol if protected data may be external.
32959         (default_binds_local_p): Use default_binds_local_p_3.
32960         (default_binds_local_p_1): Likewise.
32961         (default_binds_local_p_2): New.
32962         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
32963         default_binds_local_p_2 if TARGET_MACHO is undefined.
32965 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
32967         PR target/65593
32968         * config/i386/i386.c (legitimize_pic_address): If base
32969         is SYMBOL_REF or LABEL_REF using %rip addressing, force
32970         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
32972 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32974         PR target/65531
32975         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
32976         comdat groups.
32978 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
32980         PR ipa/65600
32981         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
32982         of optimized out indirect call.
32983         (redirect_to_unreachable): Always build symbol table node for
32984         BUILT_IN_UNREACHABLE
32986 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
32988         PR target/65407
32989         * ira-costs.c (record_reg_classes): Process all constraint string
32990         containing 0-9.
32992 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
32994         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
32995         memory_operand.
32997         PR target/65052
32998         * config/c6x/constraints.md (S3): New constraint.
32999         * config/c6x/c6x.md (real_jump): Use it.
33001 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33003         PR middle-end/65595
33004         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
33005         do redirection if the call is not optimized out.
33007 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
33009         PR target/65495
33010         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
33011         (fchkp-check-incomplete-type): Add LTO.
33012         (fchkp-zero-input-bounds-for-main): Likewise.
33013         (fchkp-first-field-has-own-bounds): Likewise.
33014         (fchkp-narrow-bounds): Likewise.
33015         (fchkp-narrow-to-innermost-array): Likewise.
33016         (fchkp-use-static-bounds): Likewise.
33017         (fchkp-use-static-const-bounds): Likewise.
33018         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33020 2015-03-27  Marek Polacek  <polacek@redhat.com>
33022         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
33024 2015-03-27  Marek Polacek  <polacek@redhat.com>
33026         PR sanitizer/65583
33027         * ubsan.c (ubsan_create_edge): New function.
33028         (instrument_bool_enum_load): Call it.
33029         (instrument_nonnull_arg): Likewise.
33030         (instrument_nonnull_return): Likewise.
33031         (instrument_object_size): Likewise.
33033 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33035         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
33036         auto_vec.
33038 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33040         PR lto/65536
33041         * lto-streamer.h (class lto_location_cache): New.
33042         (struct data_in): Add location_cache.
33043         (lto_input_location): Update prototype.
33044         (stream_input_location_now): New.
33045         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
33046         pointer to location.
33047         (stream_input_location): Update.
33048         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
33049         (warn_odr): Apply location cache before warning.
33050         (lto_input_location): Update prototype.
33051         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
33052         Use stream_input_location_now.
33053         * lto-streamer-in.c (lto_location_cache::current_cache): New static
33054         variable.
33055         (lto_location_cache::cmp_loc): New function.
33056         (lto_location_cache::apply_location_cache): New function.
33057         (lto_location_cache::accept_location_cache): New function.
33058         (lto_location_cache::revert_location_cache): New function.
33059         (lto_location_cache::input_location): New function.
33060         (lto_input_location): Do location caching.
33061         (stream_input_location_now): New function.
33062         (input_eh_region, input_struct_function_base): Use
33063         stream_input_location_now.
33064         (lto_data_in_create): use new.
33065         (lto_data_in_delete): Use delete.
33066         * tree-streamer-in.c (unpack_ts_block_value_fields,
33067         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
33068         lto_input_ts_exp_tree_pointers): Update for cached location api.
33070 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33072         PR ipa/65076
33073         * passes.def: Add pass_nothrow.
33074         * ipa-pure-const.c: (pass_data_nothrow): New.
33075         (pass_nothrow): New.
33076         (pass_nothrow::execute): New.
33077         (make_pass_nothrow): New.
33078         * tree-pass.h (make_pass_nothrow): Declare.
33080 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33082         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
33083         edge to change by speculation resolution or redirection.
33084         (edge_set_predicate): Likewise.
33085         (inline_summary_t::duplicate): Likewise.
33086         (remap_edge_summaries): Likewise.
33088 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33090         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
33091         New macros.
33092         (can_inline_edge_p): Relax option matching for always inline functions.
33094 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
33096         PR target/65561
33097         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
33098         Check operand 4 and operand 0 for equality.
33099         (avx512f_vextract<shuffletype>32x4_1_maskm):
33100         Check operand 6 and operand 0 for equality.
33101         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
33102         for equality.
33103         (vec_extract_hi_<mode>_maskm): Ditto.
33105 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33107         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
33108         dead calls back to live.
33109         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
33110         cross check to ...
33111         (cgraph_node::verify_node): ... here; verify only callee edges,
33112         not caller.
33113         * cif-code.def (CILK_SPAWN): New code.
33115 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
33117         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
33118         (edge_set_predicate): Use it to mark unreachable edges.
33119         (inline_summary_t::duplicate): Remove unnecesary code.
33120         (remap_edge_summaries): Likewise.
33121         (dump_inline_summary): Report contains_cilk_spawn.
33122         (compute_inline_parameters): Compute contains_cilk_spawn.
33123         (inline_read_section, inline_write_summary): Stream
33124         contains_cilk_spawn.
33125         * ipa-inline.c (can_inline_edge_p): Do not touch
33126         DECL_STRUCT_FUNCTION that may not be available;
33127         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
33128         remove check for callee_fun->can_throw_non_call_exceptions and
33129         replace it by optimization attribute check; check for flag_exceptions.
33130         * ipa-inline-transform.c (inline_call): Maintain
33131         DECL_FUNCTION_PERSONALITY
33132         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
33134 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33136         PR tree-optimization/65551
33137         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
33138         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
33140 2015-03-26  Richard Biener  <rguenther@suse.de>
33142         PR middle-end/65555
33143         * tree-cfg.c (verify_gimple_call): Do not require a call to
33144         have no LHS if it wasn't recognized as control altering yet.
33146 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
33148         PR tree-optimization/64715
33149         * passes.def: Add another instance of pass_object_sizes before ccp1.
33150         * tree-object-size.c (pass_object_sizes::execute): In
33151         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
33152         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
33153         __bos result and the computed constant.  Remove redundant
33154         checks, obsoleted by gimple_call_builtin_p test.
33156         * var-tracking.c (variable_tracking_main_1): Don't track
33157         variables for targetm.no_register_allocation targets.
33159 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
33161         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
33162         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
33164 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33166         PR target/65569
33167         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
33168         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
33169         0.0 is correctly setup.
33170         (extenddftf2_internal): Likewise.
33172 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
33174         PR tree-optimization/65177
33175         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
33176         (bb_in_bbs): New.
33177         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
33178         edges not adjacent on the path to the original code.
33180 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
33182         PR bootstrap/65537
33183         * doc/install.texi (Building a native compiler): Document new
33184         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
33185         configuration assumes that the host supports the linker plugin.
33187 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33189         PR target/65508
33190         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
33191         chain for generated call.
33193 2015-03-25  Richard Biener  <rguenther@suse.de>
33195         * passes.c (pass_manager::execute_early_local_passes): Guard
33196         execution of pass_chkp_instrumentation_passes with
33197         flag_check_pointer_bounds.
33198         (pass_chkp_instrumentation_passes::gate): Likewise.
33200 2015-03-25  Martin Liska  <mliska@suse.cz>
33202         PR tree-optimization/65538
33203         * symbol-summary.h (function_summary::~function_summary):
33204         Relese memory for allocated summaries.
33205         (function_summary::release): New function.
33207 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
33209         PR lto/65515
33210         * lto-streamer-out.c (DFS::worklist): New struct.
33211         (DFS::worklist_vec): New data member.
33212         (DFS::next_dfs_num): Remove.
33213         (DFS::DFS): Rewritten using worklist instead of recursion,
33214         using most of code from DFS::DFS_write_tree.
33215         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
33216         pass it to DFS_write_tree calls.
33217         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
33218         quick initial checks push it into worklist_vec and return.
33220 2015-03-25  Richard Biener  <rguenther@suse.de>
33222         PR middle-end/65519
33223         * genmatch.c (expr::gen_transform): Re-write to avoid
33224         using gimple_build.
33226 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33228         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
33230 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
33232         * config/arm/arm.opt (print_tune_info): New option.
33233         * config/arm/arm.c (arm_print_tune_info): New function.
33234         (arm_file_start): Call arm_print_tune_info.
33235         * config/arm/arm-protos.h (struct tune_params): Add comment.
33236         * doc/invoke.texi (@item -mprint-tune-info): New item.
33237         (-mtune): mention it in ARM Option Summary.
33239 2015-03-25  DJ Delorie  <dj@redhat.com>
33241         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
33242         correct clause.
33244 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
33245             Martin Liska  <mliska@suse.cz>
33247         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
33248         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
33249         (sem_item::add_type): New function.
33250         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
33251         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
33252         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
33253         (sem_function::equals_wpa): Fix typo.
33254         * ipa-icf.h (sem_item::add_type): New function.
33255         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
33256         order.
33258 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
33260         PR tree-optimization/65533
33261         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
33262         with swapped operands, call vect_free_slp_tree on
33263         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
33264         vector.
33266 2015-03-24  Richard Biener  <rguenther@suse.de>
33268         PR middle-end/65517
33269         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
33270         for fixup if necessary.
33272 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
33274         * doc/extend.texi (Function Attributes): Add @cindex entries
33275         for all attributes and regularize their format.  Delete text
33276         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
33277         information about "eightbit_data", "tiny_data", and "model"
33278         variable attributes to the Variable Attributes section.  Fix
33279         some obvious typos and copy-editing issues.
33280         (Variable Attributes, Type Attributes): Likewise add/fix
33281         @cindex entries for all attributes.
33283 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33285         PR target/65523
33286         * tree-chkp.c (chkp_build_returned_bound): Ignore
33287         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
33289 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
33291         PR target/65505
33292         * config/sh/predicates.md (simple_mem_operand,
33293         displacement_mem_operand): Add test for reg.
33294         (short_displacement_mem_operand): Test for displacement_mem_operand
33295         before invoking sh_disp_addr_displacement.
33296         * config/sh/constraints.md (Sdd, Sra): Simplify.
33297         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
33298         Remove redundant displacement_mem_operand tests.
33300 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
33302         PR target/65296
33303         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
33304         the same -mmcu=MCU more than once.
33306 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
33308         PR bootstrap/65522
33309         * ipa-devirt.c: Remove duplicate demangle.h include.
33311         PR target/65504
33312         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
33313         on the pseudo.
33314         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
33315         REG_POINTER on *destptr after adjusting it for prologue size.
33317         PR ipa/65521
33318         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
33319         ultimate_alias_target ()->order ints instead of
33320         ultimate_alias_target () pointers.
33322 2015-03-23  Richard Biener  <rguenther@suse.de>
33324         PR tree-optimization/65518
33325         * tree-vect-stmts.c (vectorizable_load): Reject single-element
33326         interleaving cases we generate absymal code for.
33328 2015-03-23  Richard Biener  <rguenther@suse.de>
33330         PR tree-optimization/65494
33331         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
33332         matches here.
33333         (vect_analyze_slp_instance): But do that here, always and once.
33335 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33337         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
33338         adding T or multiplying by T+1 and subracting T.
33340 2015-03-22  Jeff Law  <law@redhat.com>
33342         PR rtl-optimization/64317
33343         * Makefile.in (OBJS): Add gcse-common.c
33344         * gcse.c: Include gcse-common.h
33345         (struct modify_pair_s): Move structure definition to gcse-common.h
33346         (compute_transp): Move function to gcse-common.c.
33347         (canon_list_insert): Similarly.
33348         (record_last_mem_set_info): Break out some code and put it into
33349         gcse-common.c.  Call into the new common code.
33350         (compute_local_properties): Pass additional arguments to compute_transp.
33351         * postreload-gcse.c: Include gcse-common.h and df.h
33352         (modify_mem_list_set, blocks_with_calls): New variables.
33353         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
33354         (get_bb_avail_insn): Pass in the expression index too.
33355         (alloc_mem): Allocate memory for the new bitmaps and lists.
33356         (free_mem): Free memory for the new bitmaps and lists.
33357         (insert_expr_in_table): Record a bitmap index for each entry we
33358         add to the table.
33359         (record_last_mem_set_info): Call into common code in gcse-common.c.
33360         (get_bb_avail_insn): If no available insn was found in the requested
33361         BB.  If BB has a single predecessor, see if the expression is
33362         transparent in BB and available in that single predecessor.
33363         (compute_expr_transp): New wrapper for compute_transp.
33364         (eliminate_partially_redundant_load): Pass expression's bitmap_index
33365         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
33366         (gcse_after_reload_main): If there are elements in the hash table,
33367         then compute transparency for all the elements in the hash table.
33368         * gcse-common.h: New file.
33369         * gcse-common.c: New file.
33371 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
33373         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
33374         as an adjective.
33375         (System Headers): Likewise.
33376         (Ifdef): Likewise.
33377         (Traditional macros): Likewise.
33378         (Invocation): Likewise.
33379         (Option Index): Likewise.
33380         * doc/cppopts.texi (-M): Likewise.
33381         (-finput-charset): Likewise.
33382         (--help): Likewise.
33383         * doc.invoke.texi (AVR Options): Likewise.
33384         (V850 Options): Likewise.
33386 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
33388         PR ipa/65475
33389         * ipa-devirt.c: Include demangle.h
33390         (odr_type_d): Add field rtti_broken.
33391         (odr_subtypes_equivalent_p): Do not require name to match.
33392         (compare_virtual_tables): Fix typo; if type already has ODR violation,
33393         bypass the tests; be ready for function referneces in vtables that are
33394         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
33395         (warn_odr): Give up for nameless types.
33396         (warn_types_mismatch): Report mismatch in mangled names;
33397         report mismatch in anonymous namespaces; look into component types to
33398         give useful error; report when mismatch is dragged in from other ODR
33399         type.
33400         (odr_types_equivalent_p): Match types for being polymorphic; avoid
33401         duplicated diagnostics.
33402         (add_type_duplicate): Reorder checks so more informative ones come
33403         first; fix typo; do not output "the extra base is defined here" when
33404         we did not warn.
33405         (BINFO_N_BASE_BINFOS): Relax sanity check.
33407 2015-03-22  Martin Liska  <mliska@suse.cz>
33408             Jakub Jelinek  <jakub@redhat.com>
33410         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
33411         masks that can potentially include a builtin.
33412         (ix86_add_new_builtins): Introduce fast filter for isa values
33413         that cannot trigger builtin inclusion.
33415 2015-03-22  Martin Liska  <mliska@suse.cz>
33417         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
33418         (sem_item::update_hash_by_local_refs): Likewise.
33419         (sem_variable::get_hash): Empty line is fixed.
33420         (sem_item_optimizer::execute): Include adding of hash references.
33421         (sem_item_optimizer::update_hash_by_addr_refs): New function.
33422         (sem_item_optimizer::build_hash_based_classes): Use local hash.
33423         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
33424         (sem_item::update_hash_by_local_refs): Likewise.
33426 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33428         PR ipa/65502
33429         * ipa-comdats.c (enqueue_references): Walk through thunks.
33430         (ipa_comdats): Likewise.
33431         (set_comdat_group_1): New function.
33433 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33435         PR ipa/65475
33436         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
33437         non-polymorphic
33439 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
33440             Gerald Pfeifer  <gerald@pfeifer.com>
33442         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
33444 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
33445             Sandra Loosemore  <sandra@codesourcery.com>
33447         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
33448         function parameter declaration.
33449         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
33450         Update arguments to nios2_adjust_call_address().
33451         (sibcall_internal): Rename from *sibcall.
33452         (sibcall_value_internal): Rename from *sibcall_value.
33453         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
33454         (nios2_large_got_address): Add target temp reg parameter.
33455         (nios2_got_address): Adjust call to nios2_large_got_address, add
33456         force_reg around it.
33457         (nios2_load_pic_address): Add target temp reg parameter, replace call
33458         to nios2_got_address with corresponding code.
33459         (nios2_legitimize_constant_address): Update call to
33460         nios2_load_pic_address.
33461         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
33462         to use temp reg for PIC loading purposes.
33463         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
33464         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33465         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
33467 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33469         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
33470         usage of "the @option{...}".
33471         (-Wopenmp-simd): Likewise.
33472         (-fsanitize-recover): Likewise.
33473         (-fsanitize-undefined-trap-on-error): Likewise.
33474         (-flto): Likewise.
33475         (tracer-dynamic-coverage-feedback): Likewise.
33476         (reorder-block-duplicate-feedback): Likewise.
33477         (loop-unroll-jam-size): Likewise.
33478         (-B): Likewise.
33479         (-I-): Likewise.
33480         (-mabs=legacy): Likewise.
33481         (-mupper-regs-df): Likewise.
33482         (-mupper-regs-sf): Likewise.
33483         (-mpointers-to-nested-functions): Likewise.
33485 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33487         * doc/extend.texi (Cilk Plus Builtins): Add markup.
33489 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
33491         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
33492         additional index entries and cross-references.
33493         (-fchkp-check-incomplete-type): Likewise.
33494         (-fchkp-first-field-has-own-bounds): Likewise.
33495         (-fchkp-narrow-to-innermost-array): Likewise.
33496         (-fchkp-use-fast-string-functions): Likewise.
33497         (-fchkp-use-nochk-string-functions): Likewise.
33498         (-fchkp-use-static-const-bounds): Likewise.
33499         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
33500         (-fchkp-instrument-marked-only): Likewise.
33501         (-fchkp-use-wrappers): Likewise.
33502         (-static-libmpx): Likewise.
33503         (-static-libmpxwrappers): Likewise.
33504         * doc/extend.texi (bnd_legacy): Likewise.
33505         (bnd_instrument): Likewise.
33506         (bnd_variable_size): Likewise.
33507         (Pointer Bounds Checker builtins): Likewise.
33509 2015-03-21  Tom de Vries  <tom@codesourcery.com>
33511         PR tree-optimization/65458
33512         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
33513         * cgraph.h (cgraph_node): Add parallelized_function field.
33514         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
33515         (input_overwrite_node): Read parallelized_function field.
33516         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
33517         parallelized_function on cgraph_node for child_fn.
33518         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
33519         Remove include of gt-tree-parloops.h.
33520         (parallelized_functions): Remove static variable.
33521         (parallelized_function_p): Rewrite using parallelized_function field of
33522         cgraph_node.
33523         (create_loop_fn): Remove adding to parallelized_functions.
33524         * Makefile.in (GTFILES): Remove tree-parloops.c
33526 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
33528         PR rtl-optimization/64366
33529         * lra.c (lra_update_insn_regno_info): Consider regs in
33530         CALL_INSN_FUNCTION_USAGE memory.
33532 2015-03-20  Richard Biener  <rguenther@suse.de>
33534         PR middle-end/64715
33535         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
33536         for type comparison and gcc_checking_assert.
33537         (chrec_fold_plus_poly_poly): Likewise.
33538         (chrec_fold_multiply_poly_poly): Likewise.
33539         (chrec_convert_1): Likewise.
33540         * gimplify.c (gimplify_expr): Remove premature folding of
33541         &X + CST to &MEM[&X, CST].
33543 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
33545         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
33546         already is final.
33547         (ipa_inline): Recompute inline_failed codes.
33548         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33549         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
33550         CIF_FINAL_ERROR.
33552 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
33554         PR rtl-optimization/60851
33555         * recog.c (constrain_operands): Accept a pseudo register before reload
33556         for LRA enabled targets.
33558 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33560         PR target/65240
33561         * config/rs6000/predicates.md (easy_fp_constant): Remove special
33562         -ffast-math handling that kept non-0 constants live in the RTL
33563         until reload.  Remove logic testing the number of instructions it
33564         took to create a constant in a GPR that was never used, due to a
33565         test for soft-float earlier.
33566         (memory_fp_constant): Delete, no longer used.
33568         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
33569         alternatives for loading non-0 constants into GPRs for hard
33570         floating point that is no longer needed due to changes in
33571         easy_fp_constant.  Add support for loading 0.0 into GPRs.
33572         (mov<mode>_hardfloat32): Likewise.
33573         (mov<mode>_hardfloat64): Likewise.
33574         (mov<mode>_64bit_dm): Likewise.
33575         (movtd_64bit_nodm): Likewise.
33576         (pre-reload move FP constant define_split): Delete define_split,
33577         since it is no longer used.
33578         (extenddftf2_internal): Remove GHF constraints that are not valid
33579         for extenddftf2.
33581 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
33583         PR rtl-optimization/63491
33584         * lra-constraints.c (check_and_process_move): Use src instead of
33585         sreg.  Remove some dead code.
33587 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
33589         PR ipa/65380
33590         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
33591         (sem_variable::merge): Likewise.
33593 2015-03-19  Martin Liska  <mliska@suse.cz>
33595         PR ipa/65465
33596         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
33597         all fields of cgraph_thunk_info.
33599 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33601         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
33602         clone instrumented thunks.
33604 2015-03-19  Richard Biener  <rguenther@suse.de>
33606         Revert
33607         2015-03-10  Richard Biener  <rguenther@suse.de>
33609         PR middle-end/63155
33610         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
33611         * tree-ssa-coalesce.c: Include timevar.h.
33612         (attempt_coalesce): Handle graph being NULL.
33613         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
33614         Split out abnormal coalescing to ...
33615         (perform_abnormal_coalescing): ... this function.
33616         (coalesce_ssa_name): Perform abnormal coalescing without computing
33617         live/conflict.
33618         (verify_ssa_coalescing_worker): New function.
33619         (verify_ssa_coalescing): Likewise.
33621 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33622             Jakub Jelinek  <jakub@redhat.com>
33624         PR sanitizer/65400
33625         * tsan.c (instrument_gimple): Clear tail call flag on
33626         calls.
33628 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
33630         PR sanitizer/65400
33631         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
33632         call in the return bb.
33633         (find_split_points): Add RETURN_BB argument, don't call
33634         find_return_bb.
33635         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
33636         if true append TSAN_FUNC_EXIT internal call after the call to
33637         the split off function.
33638         (execute_split_functions): Call find_return_bb here.
33639         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
33640         Adjust find_split_points and split_function calls.
33642 2015-03-18  DJ Delorie  <dj@redhat.com>
33644         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
33645         (iorqi3_virt): Likewise.
33647 2015-03-18  Tom de Vries  <tom@codesourcery.com>
33649         * tree-parloops.c (parallelize_loops): Make static.
33650         * tree-parloops.h (parallelize_loops): Remove extern declaration.
33652 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
33654         PR middle-end/64491
33655         Revert:
33656         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
33658         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
33659         condition would be removed due to undefined behaviour.
33661 2015-03-18  Martin Liska  <mliska@suse.cz>
33663         PR ipa/65432
33664         * cgraph.c (cgraph_node::get_create): Remove unnecessary
33665         xstrdup_for_dump wrapper.
33666         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
33667         sem_item::name.
33668         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
33669         with xstrdup_for_dump.
33670         (sem_variable::equals): Likewise.
33671         (sem_item_optimizer::read_section): Use symtab_node::name instead of
33672         sem_item::name.
33673         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
33674         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
33675         symtab_node::asm_name with xstrdup_for_dump.
33676         (congruence_class::dump): Use symtab_node::name instead of
33677         sem_item::name.
33678         * ipa-icf.h (symtab_node::name): Remove.
33679         (symtab_node::asm_name): Likewise.
33681 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33683         PR tree-optimization/65450
33684         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
33685         function.
33686         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
33687         it instead of duplicate_ssa_name_ptr_info.
33689         PR target/65222
33690         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
33692 2015-03-18  Richard Biener  <rguenther@suse.de>
33694         * tree-data-ref.h (struct access_matrix): Remove.
33695         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
33696         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
33697         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
33698         (am_vector_index_for_loop): Likewise.
33699         (struct data_reference): Remove access_matrix member.
33700         (DR_ACCESS_MATRIX): Remove.
33701         (lambda_vector_new): Add comment.
33702         (lambda_matrix_new): Use XOBNEWVEC.
33704 2015-03-18  Richard Biener  <rguenther@suse.de>
33706         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
33707         (pass_ch::execute): Cleanup the CFG only if we did sth.
33708         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
33710 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33712         * expmed.c (synth_mult): Use std::swap instead of manually
33713         swapping algorithms.
33715 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
33717         PR target/65078
33718         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
33720 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
33722         PR target/65296
33723         * config/avr/avr.opt (-nodevicelib): New option.
33724         * doc/invoke.texi (AVR Options): Document it.
33725         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
33726         libgcc.a, libc.a, libm.a.
33727         * config/avr/specs.h: Same.
33728         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
33729         which don't (directly) depend on the device.  Print more help.
33730         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
33731         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
33732         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
33733         case of an error.
33734         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
33735         for specs file name.
33736         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
33737         * config/avr/avr-mcus.def: Adjust initializers and comments.
33739 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
33741         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
33742         DECL_ONE_ONLY to check if decl is one only.
33743         * ipa-split.c (consider_split): Limit splitt of one only functions.
33745 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33747         PR tree-optimization/65427
33748         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
33749         functions.
33750         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
33752 2015-03-16  Marek Polacek  <polacek@redhat.com>
33754         * cgraph.h (add_new_static_var): Remove declaration.
33755         * varpool.c (add_new_static_var): Remove function.
33757 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
33759         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
33760         instead of vec<tree> * with vec_alloc and release for args.
33761         Adjust all users.
33763         PR middle-end/65431
33764         * omp-low.c (delete_omp_context): Only splay_tree_delete
33765         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
33766         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
33768 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33770         PR sanitizer/64820
33771         * cfgexpand.c (align_base): New function.
33772         (alloc_stack_frame_space): Call it.
33773         (expand_stack_vars): Align prev_frame to be sure
33774         data->asan_vec elements aligned properly.
33776 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
33778         PR middle-end/65409
33779         * expr.c (store_field): Do not do a direct block copy if the source is
33780         a PARALLEL with BLKmode.
33782 2015-03-16  Tom de Vries  <tom@codesourcery.com>
33784         PR middle-end/65414
33785         Revert:
33786         2015-03-12  Tom de Vries  <tom@codesourcery.com>
33788         PR rtl-optimization/64895
33789         * lra-lives.c (check_pseudos_live_through_calls): Use
33790         actual_call_used_reg_set instead of call_used_reg_set, if available.
33792 2015-03-16  Alan Modra  <amodra@gmail.com>
33794         PR target/63150
33795         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
33796         Modify Z->r bswapdi splitter to use dest in place of scratch.
33797         In r->Z and Z->r bswapdi splitter rename word_high, word_low
33798         to word1, word2 and rearrange logic to suit.
33799         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
33800         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
33801         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
33802         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
33803         early clobber.
33805 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
33807         PR tree-optimization/65369
33808         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
33809         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
33810         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
33812         PR tree-optimization/65418
33813         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
33814         are casts in the first PLUS_EXPR operand, ensure tbias and
33815         *totallowp are in the inner type.
33817         PR rtl-optimization/65401
33818         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
33819         argument.  If true, adjust_address_nv of x with big-endian
33820         correction for the mode widening to GET_MODE (y).
33821         (make_field_assignment): Don't do MEM mode widening here.
33822         Use MEM_P instead of GET_CODE == MEM.
33824 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
33826         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
33827         the external decls.
33829 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33831         PR target/64600
33832         * config/arm/arm.c (arm_gen_constant, AND case): Use
33833         ARM_SIGN_EXTEND when constructing AND mask.
33835 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33837         * graph.c (print_graph_cfg): Make function names visible and append
33838         parenthesis to it.  Also make groups of basic blocks belonging to the
33839         same function visible.
33841 2015-03-12  Richard Biener  <rguenther@suse.de>
33843         PR middle-end/44563
33844         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
33845         to avoid quadratic behavior with inline expansion splitting blocks.
33846         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
33847         with the successor if the predecessor will be merged with it.
33848         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
33849         entry block with its successor.
33851 2015-03-13  Richard Biener  <rguenther@suse.de>
33853         PR middle-end/44563
33854         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
33855         (cleanup_tree_cfg_1): Do not call it.
33856         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
33857         (fixup_noreturn_call): Mark the stmt as control altering.
33858         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
33859         here.
33860         (pass_data_fixup_cfg): Produce a dump file.
33861         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
33862         (need_noreturn_fixup): New global.
33863         (pass_dominator::execute): Fixup queued noreturn calls.
33864         (optimize_stmt): Queue calls that became noreturn for fixup.
33865         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
33866         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
33867         (el_to_fixup): New global.
33868         (eliminate_dom_walker::before_dom_childre): Queue calls that
33869         became noreturn for fixup.
33870         (eliminate): Fixup queued noreturn calls.
33871         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
33872         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
33873         (substitute_and_fold_dom_walker::before_dom_children): Queue
33874         alls that became noreturn for fixup.
33875         (substitute_and_fold): Fixup queued noreturn calls.
33877 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
33879         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
33880         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
33881         are building; for methods check ODR type of class they belong to if
33882         they may lead to a polymorphic call.
33883         (sem_function::compare_polymorphic_p): Be bit smarter about testing
33884         when function may lead to a polymorphic call.
33885         (sem_function::compare_type_list): Remove.
33886         (sem_variable::equals): Update use of compatible_types_p.
33887         (sem_variable::parse_tree_refs): Remove.
33888         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
33889         cdtor.
33890         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
33891         matching here.
33892         (func_checker::compatible_polymorphic_types_p): Break out from ...
33893         (unc_checker::compatible_types_p): ... here.
33894         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
33895         Declare.
33896         (unc_checker::compatible_types_p): Update.
33897         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
33898         Remove.
33900 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33902         PR rtl-optimization/65235
33903         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
33904         When first element of vec_concat is const_int, calculate its size
33905         using second element.
33907 2015-03-12  Richard Biener  <rguenther@suse.de>
33909         PR middle-end/65270
33910         * fold-const.c (operand_equal_p): Fix ordering of resetting
33911         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
33913 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33915         * config/s390/s390.c (s390_reorg): Move code to output nops after label
33916         to s390_reorg ().
33917         (s390_asm_output_function_label): Likewise.
33918         * config/s390/s390.c (s390_asm_output_function_label):
33919         Fix function label alignment with -mhtopatch.
33920         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
33921         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
33922         ("nop_2_byte"): New define_insn.
33923         ("nop_4_byte"): Likewise.
33924         ("nop_6_byte"): Likewise.
33925         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
33926         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
33928 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33930         PR target/65103
33931         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
33932         register.
33934 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
33936         PR target/65044
33937         * toplev.c (process_options): Restrict Pointer Bounds Checker
33938         usage with Address Sanitizer.
33940 2015-03-12  Richard Biener  <rguenther@suse.de>
33942         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
33943         to split on.
33944         * omp-low.c (expand_omp_taskreg): Split block before removing
33945         the stmt.
33946         (expand_omp_target): Likewise.
33947         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
33948         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
33949         stmt to split_block.
33951 2015-03-12  Tom de Vries  <tom@codesourcery.com>
33953         PR rtl-optimization/64895
33954         * lra-lives.c (check_pseudos_live_through_calls): Use
33955         actual_call_used_reg_set instead of call_used_reg_set, if available.
33957 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
33959         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
33960         (cgraph_node::remove): Likewise.
33961         (cgraph_node::get_untransformed_body): Likewise.
33962         * varpool.c (varpool_node::remove): Likewise.
33963         (varpool_node::get_constructor): Add sanity check.
33965 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
33967         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
33968         old GCC versions.
33969         (-fabi-compat-version): Likewise.
33970         (-ffriend-injection): Likewise.
33971         (-Wdeclaration-after-statement): Likewise.
33972         (-fomit-frame-pointer): Likewise.
33973         (-ftree-coalesce-inlined-vars): Likewise.
33974         (-fvisibility=): Likewise.
33975         * doc/extend.texi (Typeof): Likewise.
33976         (Zero Length): Likewise.
33977         (Escaped Newlines): Likewise.
33978         (Compound Literals): Likewise.
33979         (Function Attributes): Likewise.
33980         (Label Attributes): Likewise.
33981         (Type Attributes): Likewise.
33982         (Function Names): Likewise.
33983         (Other Builtins): Likewise.
33984         (Function Specific Option Pragmas): Likewise.
33985         (C++ Interface): Likewise.
33987 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
33989         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
33991 2015-03-11  Marek Polacek  <polacek@redhat.com>
33993         PR tree-optimization/65388
33994         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
33996 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
33998         PR target/65296
33999         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
34000         * configure: Regenerate.
34001         * config.in: Regenerate.
34002         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
34003         [-mn-flash]: Document it.
34004         [__AVR_ARCH__]: Document avrtiny.
34006         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
34007         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
34008         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
34010 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34012         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
34014 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34016         PR target/65242
34017         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
34018         allow reloads of PLUS in floating point/VSX registers.
34020 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
34022         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
34023         crypto_sha256_fast.
34024         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
34026 2015-03-11  Richard Biener  <rguenther@suse.de>
34028         PR tree-optimization/65310
34029         * tree-sra.c (build_ref_for_offset): Also preserve larger
34030         alignment.
34032 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
34034         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
34036 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34038         PR target/65368
34039         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
34040         new define_expand.
34041         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
34043 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34045         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
34046         (sem_function::equals_wpa): ... here.
34048 2015-03-10  Marek Polacek  <polacek@redhat.com>
34049             Jakub Jelinek  <jakub@redhat.com>
34051         PR sanitizer/65367
34052         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
34053         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
34054         separately.
34056 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34058         PR target/65286
34059         * config/rs6000/t-linux: For powerpc64* target set
34060         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
34062 2015-03-10  Richard Biener  <rguenther@suse.de>
34064         PR middle-end/44563
34065         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
34066         for redirect_all_calls.
34068 2015-03-10  Marek Polacek  <polacek@redhat.com>
34070         * gdbinit.in (pcfun): Define and document.
34072 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
34074         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
34075         of libgomp-plugin.h.
34076         (find_target_compiler): Support a case when the path to gcc is
34077         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
34078         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
34079         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
34080         libgomp-plugin.h.
34081         (main): Use GCC_INSTALL_NAME as target_driver_name.
34082         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
34083         define.
34084         (mkoffload.o): Remove obsolete include path and defines.
34085         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
34087 2015-03-10  Richard Biener  <rguenther@suse.de>
34089         PR middle-end/63155
34090         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
34091         * tree-ssa-coalesce.c: Include timevar.h.
34092         (attempt_coalesce): Handle graph being NULL.
34093         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
34094         Split out abnormal coalescing to ...
34095         (perform_abnormal_coalescing): ... this function.
34096         (coalesce_ssa_name): Perform abnormal coalescing without computing
34097         live/conflict.
34098         (verify_ssa_coalescing_worker): New function.
34099         (verify_ssa_coalescing): Likewise.
34101 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
34103         PR target/65296
34104         * config.gcc (extra_options) [avr]: Remove.
34105         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
34106         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
34107         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
34109         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
34110         (-mmcu=): Add Var and MissingArgError properties.
34111         (-march=): Remove.
34112         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
34113         * config/avr/t-multilib: Regenerate.
34114         * config/avr/specs.h: New file.
34115         * config/avr/driver-avr.c: New file.
34116         * config/avr/genopt.sh: Remove file.
34117         * config/avr/avr-tables.opt: Remove file.
34118         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
34119         * config/avr/avr-c.c: Same.
34120         * avr-arch.h: Same.
34121         (avr_current_device): Remove proto.
34122         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
34123         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
34124         (EXTRA_SPEC_FUNCTIONS): Define.
34125         (avr_devicespecs_file): New specs function proto.
34126         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
34127         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
34128         (avr_current_device): Remove definition and usage.
34129         (avr_set_core_architecture): New static function.
34130         (avr_option_override): Use it.
34131         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
34132         (mcu_name): New static array.
34133         (comparator, avr_archs_str, avr_mcus_str): New static functions.
34134         (avr_inform_devices, avr_inform_core_architectures): New functions.
34135         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
34136         (avrlibc.h) [WITH_AVRLIBC]: Include.
34137         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
34138         (print_mcu): Rewrite from scratch.
34139         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
34140         Forward to avr-specific specs defined in device-specs file.
34141         * config/avr/t-avr (driver-avr.o): New rule.
34142         (avr-devices.o): Depend on avr-arch.h.
34143         (avr-mcus): No more depend on avr-tables.opt.
34144         (avr-tables.opt): Remove rule.
34145         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
34147 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34149         * c-family/c.opt (fchkp-use-wrappers): New.
34150         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
34151         (chkp_wrap_function): New.
34152         (chkp_build_instrumented_fndecl): Support wrapped
34153         functions.
34154         * doc/invoke.texi (-fcheck-pointer-bounds): New.
34155         (-fchkp-check-incomplete-type): New.
34156         (-fchkp-first-field-has-own-bounds): New.
34157         (-fchkp-narrow-bounds): New.
34158         (-fchkp-narrow-to-innermost-array): New.
34159         (-fchkp-optimize): New.
34160         (-fchkp-use-fast-string-functions): New.
34161         (-fchkp-use-nochk-string-functions): New.
34162         (-fchkp-use-static-bounds): New.
34163         (-fchkp-use-static-const-bounds): New.
34164         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
34165         (-fchkp-check-read): New.
34166         (-fchkp-check-write): New.
34167         (-fchkp-store-bounds): New.
34168         (-fchkp-instrument-calls): New.
34169         (-fchkp-instrument-marked-only): New.
34170         (-fchkp-use-wrappers): New.
34171         (-static-libmpx): New.
34172         (-static-libmpxwrappers): New.
34174 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34176         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
34177         (CHKP_SPEC): Add wrappers library.
34178         * c-family/c.opt (static-libmpxwrappers): New.
34180 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
34182         * config/i386/linux-common.h (LIBMPX_LIBS): New.
34183         (LIBMPX_SPEC): New.
34184         (CHKP_SPEC): New.
34185         * gcc.c (CHKP_SPEC): New.
34186         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
34187         * c-family/c.opt (static-libmpx): New.
34189 2015-03-10  Richard Biener  <rguenther@suse.de>
34191         PR middle-end/44563
34192         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
34193         for compare_type.
34194         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
34195         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
34196         (cgraph_add_edge_to_call_site_hash): Likewise.
34197         (cgraph_node::get_edge): Likewise.
34198         (cgraph_edge::set_call_stmt): Likewise.
34199         (cgraph_edge::remove_caller): Likewise.
34201 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
34203         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
34204         (callee_saved_gpr_regs_size): ... this.
34205         (callee_saved_regs_first_regno): Rename to ...
34206         (callee_saved_first_gpr_regno): ... this.
34207         (callee_saved_regs_last_regno) Rename to ...
34208         (callee_saved_last_gpr_regno): ... this.
34209         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
34210         variables.
34211         (nds32_initial_elimination_offset): Likewise.
34212         (nds32_expand_prologue): Likewise.
34213         (nds32_expand_epilogue): Likewise.
34214         (nds32_expand_prologue_v3push): Likewise.
34215         (nds32_expand_epilogue_v3pop): Likewise.
34216         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
34217         Adjust renamed variables.
34218         (nds32_output_stack_pop): Likewise.
34220 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34222         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
34223         code in comment.
34225 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
34227         PR rtl-optimization/65321
34228         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
34229         than shift mode.
34230         * var-tracking.c (use_narrower_mode): Likewise.
34232 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
34234         PR tree-optimization/65355
34235         * varasm.c (notice_global_symbol): Do not produce RTL.
34236         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
34237         anchor.
34238         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
34239         check for section anchors.
34241 2015-03-10  Alan Modra  <amodra@gmail.com>
34243         PR target/65286
34244         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
34245         to be single-arch by default.  Set cpu_is_64bit for powerpc64
34246         given --with-cpu=native.
34247         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
34248         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
34249         and powerpc64le.
34250         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
34251         rs6000_isa_flags rather than TARGET_64BIT.
34253 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
34254             Kaz Kojima  <kkojima@gcc.gnu.org>
34256         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
34258 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
34260         PR lto/65361
34261         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
34262         on a TREE_BINFO, instead use BINFO_TYPE.
34264 2015-03-09  Richard Biener  <rguenther@suse.de>
34266         PR middle-end/65270
34267         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
34268         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
34269         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
34270         of that.  When comparing dereferences compare alignment.
34271         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
34273 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34275         * ipa-inline-analysis.c (check_callers): Check
34276         node->can_remove_if_no_direct_calls_and_refs_p.
34277         (growth_likely_positive): Reorganize to call
34278         can_remove_if_no_direct_calls_p later.
34279         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
34280         will_be_removed_from_program_if_no_direct_calls_p): Add
34281         will_inline parameter.
34282         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
34283         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34284         Handle inliner case correctly.
34286 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34288         PR tree-optimization/63743
34289         * cfgexpand.c (reorder_operands): Also reorder if only second operand
34290         had its definition forwarded by TER.
34292 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
34294         PR lto/65316
34295         * ipa-utils.h (types_odr_comparable): Add strict argument.
34296         * ipa-devirt.c: Fix whitespace;
34297         (odr_hasher): Remove.
34298         (odr_name_hasher, odr_vtable_hasher): New hashers.
34299         (can_be_name_hashed_p): New predicate.
34300         (hash_type_name): remove.
34301         (hash_odr_name): New.
34302         (odr_name_hasher::hash): new.
34303         (can_be_vtable_hashed_p): New.
34304         (hash_odr_vtable): New.
34305         (odr_vtable_hasher::hash): New.
34306         (types_same_for_odr): Add strict parameter.
34307         (types_odr_comparable): Likewise.
34308         (odr_name_hasher::equal): New.
34309         (odr_vtable_hasher::equal): New.
34310         (odr_name_hasher::remove): New.
34311         (odr_hash_type): Change to hash_table<odr_name_hasher>.
34312         (odr_vtable_hash_type): New.
34313         (odr_vtable_hash): New.
34314         (odr_subtypes_equivalent_p): Do strict comparsion.
34315         (add_type_duplicate): Merge type names; cleanup; avoid type
34316         duplicates.
34317         (register_odr_type): Initialize vtable hash.
34318         (build_type_inheritance_graph): Likewise
34319         (get_odr_type): Reorg to use two hashes.
34320         (dump_possible_polymorphic_call_targets): Move sanity check after debug
34321         output.
34322         (ipa_devirt): Dump type_inheritance_graph.
34323         (types_same_for_odr): Add strict mode.
34325 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34327         PR ipa/65334
34328         * cgraph.h (symtab_node): Add definition_alignment,
34329         can_increase_alignment_p and increase_alignment.
34330         * symtab.c (symtab_node::can_increase_alignment_p,
34331         increase_alignment_1, symtab_node::increase_alignment,
34332         symtab_node::definition_alignment): New.
34333         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
34334         can_increase_alignment_p.
34335         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
34336         * tree-vect-stmts.c (ensure_base_align): Likewise.
34337         * varasm.c (function_section_1): Use definition_alignment.
34338         (assemble_start_function): Likewise.
34339         (emit_local): likewise.
34340         (build_constant_desc): Likewsie.
34341         (output_constant_def_contents): Likewise.
34342         (place_block_symbol): Likewise.
34343         (output_object_block): Likewise.
34345 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34347         PR ipa/65316
34348         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
34349         when outputting debug.
34351 2015-03-07  Marek Polacek  <polacek@redhat.com>
34352             Martin Uecker  <uecker@eecs.berkeley.edu>
34354         PR sanitizer/65280
34355         * doc/invoke.texi: Update description of -fsanitize=bounds.
34357 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
34359         * tree-ssa-phiopt.c (neg_replacement): Remove.
34360         (tree_ssa_phiopt_worker): Remove negate optimization.
34362 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34364         PR ipa/65302
34365         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
34367 2015-03-06  Richard Biener  <rguenther@suse.de>
34369         PR middle-end/64928
34370         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
34371         and liveout_obstack members.
34372         (calculate_live_on_exit): Remove.
34373         (calculate_live_ranges): Change declaration.
34374         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
34375         (new_tree_live_info): Adjust.
34376         (calculate_live_ranges): Delete livein when not wanted.
34377         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
34378         Deal with partly deleted live info.
34379         (loe_visit_block): Remove temporary bitmap by using
34380         bitmap_ior_and_compl_into.
34381         (live_worklist): Adjust accordingly.
34382         (calculate_live_on_exit): Make static.
34383         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34384         we do not need livein.
34386 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
34388         * real.c (real_from_string): Fix typo in assertion.
34390 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
34392         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
34393         the patch.
34395 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
34397         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
34399 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
34401         PR target/64342
34402         * lra-assigns.c (find_hard_regno_for): Rename to
34403         find_hard_regno_for_1.  Add a new parameter.
34404         (find_hard_regno_for): New function using find_hard_regno_for_1.
34406 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34408         PR rtl-optimization/65067
34409         * expmed.c (store_bit_field, extract_bit_field): Reworked the
34410         strict volatile bitfield handling.
34412 2015-03-05  Martin Liska  <mliska@suse.cz>
34414         PR ipa/65318
34415         * ipa-icf.c (sem_variable::equals): Compare variables types.
34417 2015-03-05  Richard Henderson  <rth@redhat.com>
34419         PR target/65121
34420         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
34421         correctly check weak symbol binding.
34423 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
34425         PR middle-end/65315
34426         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
34427         needed alignment.
34429 2015-03-05  Martin Liska  <mliska@suse.cz>
34431         * ipa-inline.c (inline_small_functions): Set default value to
34432         prevent warning during bootstrap.
34433         * tree.h: Add pragma guard that ignores false positives during
34434         bootstrap.
34436 2015-03-05  Richard Biener  <rguenther@suse.de>
34438         PR tree-optimization/65310
34439         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
34440         Properly preserve alignment of the base of the access.
34442 2015-03-05  Richard Biener  <rguenther@suse.de>
34444         PR ipa/65270
34445         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
34446         Compare dependence info.
34448 2015-03-05  Richard Biener  <rguenther@suse.de>
34450         PR middle-end/65233
34451         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
34452         tree-into-ssa.h.
34453         (walk_ssa_copies): Revert last chage.  Instead do not walk
34454         SSA names registered for SSA update.
34456 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34458         PR ipa/65270
34459         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
34460         vtable references for their containing type.
34461         (sem_function::equals_wpa): Compare TYPE_RESTRICT
34462         and type attributes.
34464 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
34466         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
34467         before negating it.
34468         * stor-layout.c (finalize_record_size): Revert latest change.
34470 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
34472         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
34474 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34476         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
34477         for correct comdat handling.
34478         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
34479         Likewise.
34480         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
34481         (used_from_object_file_p_worker): Remove.
34482         (cgraph_node::only_called_directly_or_alised): Add
34483         used_from_object_file_p.
34484         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
34485         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
34486         can_remove_if_no_direct_calls_and_refs_p.
34488 2015-03-04  Nick Clifton  <nickc@redhat.com>
34490         * config/rl78/rl78.h (enum reg_class): Remove real registers from
34491         General register class.
34492         * config/rl78/rl78-real.md: Replace general register constraints
34493         with real+virtual register constraints.
34495 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
34497         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
34498         from checking for -mhtm option.
34500 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
34502         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34503         (struct ipa_sra_check_caller_data): Add has_thunk field.
34504         (ipa_sra_check_caller): Check for thunk.
34505         (ipa_sra_preliminary_function_checks): Give up on function with
34506         thunks.
34507         (ipa_early_sra): Use call_for_symbol_and_aliases.
34509 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
34511         PR target/65249
34512         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
34513         called for __stack_chk_guard symbol.
34515 2015-03-03  DJ Delorie  <dj@redhat.com>
34517         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
34518         inc/dec.
34519         (*addhi3_real): Likewise.
34520         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34521         pattern to match incrementing memory.
34522         * config/rl78/predicates.md (rl78_1_2_operand): New.
34523         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
34524         it's the same and only mem.
34525         (rl78_alloc_physical_registers_op2): If there's effectively only
34526         one MEM, transcode it into HL.
34527         (rl78_far_p): Reject addresses that aren't legitimate.
34529 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34531         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
34532         negating it.
34534         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
34536 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34538         Implement call0 ABI for xtensa
34539         * config/xtensa/constraints.md ("a" constraint): Include stack
34540         pointer in case of call0 ABI.
34541         ("q" constraint): Make empty in case of call0 ABI.
34542         ("D" constraint): Include stack pointer in case of call0 ABI.
34543         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
34544         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
34545         prototypes.
34546         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
34547         variable.
34548         (xtensa_regno_to_class): Make it a local variable in the
34549         function xtensa_regno_to_class.
34550         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
34551         macro, function prototype and implementation.
34552         (reg_nonleaf_alloc_order): Make it a local variable in the
34553         function order_regs_for_local_alloc.
34554         (xtensa_conditional_register_usage): New function.
34555         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
34556         (xtensa_valid_move): Allow direct moves to stack pointer
34557         register in call0 ABI.
34558         (xtensa_setup_frame_addresses): Only spill register windows in
34559         windowed ABI.
34560         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
34561         call0 ABI respectively.
34562         (xtensa_function_arg_1): Only mark a7 register for copying in
34563         windowed ABI.
34564         (xtensa_call_save_reg): New function.
34565         (compute_frame_size): Add space for callee saved register
34566         storage to the frame size in call0 ABI.
34567         (xtensa_expand_prologue): Generate code to set up stack frame
34568         and save callee-saved registers in call0 ABI.
34569         (xtensa_expand_epilogue): New function.
34570         (xtensa_set_return_address): New function.
34571         (xtensa_return_addr): Calculate return address in call0 ABI.
34572         (xtensa_builtin_saveregs): Only mark a7 register for copying and
34573         emit copying code in windowed ABI.
34574         (order_regs_for_local_alloc): Add preferred register allocation
34575         order for non-leaf function in call0 ABI.
34576         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
34577         (xtensa_asm_trampoline_template): Add trampoline generation for
34578         call0 ABI.
34579         (xtensa_trampoline_init): Add trampoline initialization for
34580         call0 ABI.
34581         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
34582         functions.
34583         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
34584         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
34585         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
34586         ABI call-used registers.
34587         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
34588         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
34589         call0 ABI.
34590         (REG_CLASS_CONTENTS): Include all registers into the preferred
34591         reload registers set, adjust the set in the
34592         xtensa_conditional_register_usage.
34593         (xtensa_regno_to_class): Drop variable declaration.
34594         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
34595         function.
34596         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
34597         respectively.
34598         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
34599         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
34600         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
34601         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
34602         location in call0 ABI.
34603         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
34604         stack adjustment size when handling exception.
34605         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
34606         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
34607         definitions.
34608         ("return" pattern): Generate ret.n/ret in call0 ABI.
34609         ("epilogue" pattern): Expand epilogue.
34610         ("nonlocal_goto" pattern): Use default in call0 ABI.
34611         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
34612         emit eh_set_a0_* depending on ABI.
34613         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
34614         ("eh_set_a0_call0", "blockage"): New patterns.
34616 2015-03-03  Martin Liska  <mliska@suse.cz>
34618         PR ipa/65287
34619         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
34621 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
34623         PR 65138/target
34624         * config/rs6000/rs6000-tables.opt: Regenerate table.
34626 2015-03-03  Renlin Li  <renlin.li@arm.com>
34628         * doc/md.texi (@item ^): Change ? into ^.
34630 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
34632         * doc/tm.texi: Regenerated.
34634 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
34636         * builtins.c (expand_builtin_return_addr): Add
34637         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
34638         surrounding #ifdef.
34639         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
34640         definition to 1.
34641         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
34642         Likewise.
34643         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
34644         undefined.
34645         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
34646         paragraph.
34648 2015-03-03  Martin Jambor  <mjambor@suse.cz>
34649             Eric Botcazou  <ebotcazou@adacore.com>
34651         * tree-sra.c (ipa_sra_check_caller_data): New type.
34652         (has_caller_p): Removed.
34653         (ipa_sra_check_caller): New function.
34654         (ipa_sra_preliminary_function_checks): Use it.
34656 2015-03-03  Martin Liska  <mliska@suse.cz>
34658         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
34659         instead of if branch.
34661 2015-03-03  Martin Liska  <mliska@suse.cz>
34663         PR ipa/65282
34664         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
34666 2015-03-23  Jeff Law  <law@redhat.com>
34668         PR tree-optimization/65241
34669         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
34670         hash table if INSERT is true.
34672 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34674         PR target/65296
34675         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
34677 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34679         PR target/64331
34680         * config/avr/avr.c (context.h, tree-pass.h): Include them.
34681         (avr_pass_data_recompute_notes): New static variable.
34682         (avr_pass_recompute_notes): New class.
34683         (avr_register_passes): New static function.
34684         (avr_option_override): Call it.
34686 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
34688         Fix various problems with specs file generation.
34690         PR target/65296
34691         * config.gcc (extra_gcc_objs) [avr]: Remove.
34692         * config/avr/driver-avr.c: Remove file.
34693         * config/avr/t-avr (driver-avr.o): Remove rule.
34694         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
34695         INCLUDES to build.  Depend on TM_H.
34696         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
34697         build warnings.  Fix non-matching types and non-existing %-codes.
34698         (tm.h): Include.
34699         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
34700         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
34701         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
34702         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
34703         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
34704         (LIBGCC_SPEC): Remove definitions.
34706 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34708         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
34709         to create a register in testing mode.
34711 2015-03-03  Martin Liska  <mliska@suse.cz>
34712             Jan Hubicka  <hubicka@ucw.cz>
34714         PR ipa/65263
34715         * cgraph.c (cgraph_node::has_thunk_p): New function.
34716         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
34717         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
34718         (sem_function::merge): Assert is changed.
34720 2015-03-03  Martin Liska  <mliska@suse.cz>
34721             Martin Jambor  <mjambor@suse.cz>
34723         PR ipa/65087
34724         * ipa-icf.c (sem_item_optimizer::execute): Change function
34725         return value to boolean.
34726         (sem_item_optimizer::merge_classes): Likewise.
34727         (ipa_icf_driver): Return TODO_remove_functions in case there's
34728         a merge operation processed.
34729         * ipa-icf.h: Change function return value to boolean.
34731 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
34733         PR 65138/target
34734         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
34735         processor type for 64-bit little endian PowerPC.
34737         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
34738         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
34739         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
34740         printing built-in mask so it does not pass NULL pointers.
34742         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
34743         -mcpu=powerpc64le.
34745 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
34747         PR target/58158
34748         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
34749         !ISA_HAS_FP_CONDMOVE.
34751 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
34753         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
34754         reload_completed.
34756 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
34758         * doc/invoke.texi (Options for Code Generation Conventions):
34759         Fix URL of DSO paper.
34761 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34763         PR ipa/65130
34764         * ipa-inline.c (check_callers): Looks for recursion.
34765         (inline_to_all_callers): Give up on uninlinable or recursive edges.
34766         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
34767         summary of inline clones.
34768         (do_estimate_growth_1): Fix recursion check.
34770 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34772         PR ipa/64988
34773         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
34774         comdat groups.
34776 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
34777             Aldy Hernandez  <aldyh@redhat.com>
34779         PR lto/65276
34780         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
34781         when checking TYPE_BINFO.
34783 2015-03-02  Richard Biener  <rguenther@suse.de>
34785         PR ipa/65270
34786         * ipa-icf-gimple.c: Include builtins.h.
34787         (func_checker::compare_memory_operand): Compare base alignment.
34789 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34791         PR target/65184
34792         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
34793         passed by reference.
34795 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34797         PR target/65183
34798         * tree-chkp.c (chkp_check_lower): Don't check against
34799         zero bounds for already instrumented functions.
34800         (chkp_check_upper): Likewise.
34801         (chkp_fini): Clean pass local data to avoid wrong reusage.
34803 2015-02-28  Martin Liska  <mliska@suse.cz>
34804             Jan Hubicka  <hubicka@ucw.cz>
34806         * ipa-icf.c (sem_variable::equals): Improve debug output;
34807         get variable constructor.
34808         (sem_variable::parse): Do not filter out too early; give up on
34809         volatile and register vars.
34810         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
34811         variables.
34812         * ipa-icf.h (sem_variable::init): Do not set ctor.
34813         (sem_variable::ctor): Remove.
34815 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
34817         PR middle-end/65233
34818         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
34820 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34822         * ipa-icf.c: Include stor-layout.h
34823         (sem_function::compare_cgraph_references): Rename to ...
34824         (sem_item::compare_cgraph_references): ... this one.
34825         (sem_variable::equals_wpa): New function
34826         (sem_variable::equals): Do not check stuff already verified by
34827         equals_wpa.
34828         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
34829         * ipa-icf.h (sem_item): Add compare_cgraph_references.
34830         (sem_function): Remove compare_cgraph_references.
34831         (sem_variable): Turns equals_wpa into non-inline.
34833 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34835         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
34836         (sem_item::add_expr): New function.
34837         (sem_function::hash_stmt): Handle operands of most statements.
34838         (sem_variable::get_hash): Hash the actual constructor.
34839         * ipa-icf.h (sem_item): Add add_expr.
34840         (sem_function): Update prototype of hash_stmt
34842 2015-02-28  Martin Liska  <mliska@suse.cz>
34843             Jan Hubicka  <hubicka@ucw.cz>
34845         PR ipa/65245
34846         * ipa-icf-gimple.c (func_checker::compare_function_decl):
34847         Remove.
34848         (func_checker::compare_variable_decl): Skip symtab vars.
34849         (func_checker::compare_cst_or_decl): Update.
34850         * ipa-icf.c (sem_function::parse): Do not consider aliases.
34851         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
34852         use correct symtab predicates.
34853         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
34854         (sem_variable::parse):  Update comment.
34855         (sem_item_optimizer::build_graph): Consider ultimate aliases
34856         for references.
34858 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34860         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
34861         of OBJ_TYPE_REF.
34863 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34865         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
34866         (sem_variable::merge) Likewise.
34868 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34870         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
34871         target; also match flag_ipa_devirt.
34873 2015-03-01  Martin Liska  <mliska@suse.cz>
34874             Jan Hubicka  <hubicka@ucw.cz>
34876         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
34877         Validate variable alignment.
34878         * ipa-icf.c (sem_function::equals_private): Be more precise
34879         about non-common function attributes.
34880         (sem_variable::equals): Likewise.
34882 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34884         PR ipa/65237
34885         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
34886         across COMDAT group boundary.
34888 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34890         PR ipa/65232
34891         * ipa-icf.c (clear_decl_rtl): New function.
34892         (sem_function::merge): Clear RTL before forming alias.
34893         (sem_variable::merge): Clear RTL before forming alias.
34895 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
34897         PR ipa/65236
34898         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
34900 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
34902         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
34903         to neon_to_gp<q>.
34905 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34907         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
34908         a typo in the description.
34910 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34912         PR target/64317
34913         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34914         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
34915         * lra-constraints.c: Include "params.h".
34916         (EBB_PROBABILITY_CUTOFF): Use
34917         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
34918         (lra_inheritance): Use '<' instead of '<=' for
34919         EBB_PROBABILITY_CUTOFF.
34920         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
34921         Document change.
34923 2015-02-27  Martin Liska  <mliska@suse.cz>
34925         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
34926         vector length condition.
34928 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
34930         * doc/extend.texi (x86 transactional memory intrinsics):
34931         Reorganize discussion of _xbegin.  Clarify that the return
34932         value is a bit mask.  Expand example and move to end of section.
34934 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
34935             Aldy Hernandez  <aldyh@redhat.com>
34937         PR rtl-optimization/65220
34938         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
34940 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34942         PR target/65032
34943         * lra-remat.c (update_scratch_ops): New.
34944         (do_remat): Call it.
34945         * lra.c (lra_register_new_scratch_op): New. Take code from ...
34946         (remove_scratches): ... here.
34947         * lra-int.h (lra_register_new_scratch_op): New prototype.
34949 2015-02-27  Marek Polacek  <polacek@redhat.com>
34951         PR c/65040
34952         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
34953         -Wformat-signedness anymore.
34955 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34957         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
34958         function.
34959         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
34961 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34963         * config/s390/s390.c (enum s390_builtin):
34964         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
34965         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
34966         (s390_init_builtins): Generate new builtin functions.
34967         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
34968         (s390_sfpc, s390_efpc): New pattern definitions.
34970 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34972         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
34973         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
34974         (s390_builtin_decls): New array.
34975         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
34976         (s390_builtin_decl): New function.
34977         (TARGET_BUILTIN_DECL): Define macro.
34979 2015-02-27  Richard Biener  <rguenther@suse.de>
34981         PR middle-end/63175
34982         * builtins.c (get_object_alignment_2): Make sure to re-apply
34983         the ANDed mask after recursing to its operand gets us a new
34984         misalignment bit position.
34986 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
34987             Martin Liska  <mliska@suse.cz>
34989         PR bootstrap/65150
34990         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
34991         Use address_matters_p.
34992         (redirect_all_callers, set_addressable): New functions.
34993         (sem_function::merge): Reorganize and fix merging issues.
34994         (sem_variable::merge): Likewise.
34995         (sem_variable::compare_sections): Remove.
34996         * common.opt (fmerge-all-constants, fmerge-constants): Remove
34997         Optimization flag.
34998         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
34999         redirect them.
35000         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
35001         decl is used.
35002         (address_matters_1): New function.
35003         (symtab_node::address_matters_p): New function.
35004         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
35005         check for merged flag.
35006         * cgraph.h (address_matters_p): Declare.
35007         (symtab_node::address_taken_from_non_vtable_p): Remove.
35008         (symtab_node::address_can_be_compared_p): New method.
35009         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
35010         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
35011         Remove.
35012         (comdat_can_be_unshared_p_1) Use address_matters_p.
35013         (update_vtable_references): Fix formating.
35014         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
35015         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
35016         * cgraphclones.c: Preserve merged and icf_merged flags.
35018 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
35020         * doc/extend.texi (Function Attributes): Fix spelling and typos.
35021         (Label Attributes): Likewise.
35022         (Cilk Plus Builtins): Likewise.
35023         (ARC SIMD Built-in Functions): Likewise.
35024         (ARM C Language Extensions (ACLE)): Likewise.
35025         (PowerPC Built-in Functions): Likewise.
35026         (PowerPC Hardware Transactional Memory Built-in Functions):
35027         Likewise.
35029 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35031         PR tree-optimization/65216
35032         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
35033         new stmt and new SSA_NAME for lhs whenever the arguments have
35034         changed and weren't just swapped.  Fix comment typo.
35036         PR tree-optimization/65215
35037         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
35038         for PDP endian targets.
35039         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
35040         Fix up formatting issues.
35041         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
35042         size is smaller than the original, adjust MEM_REF offset by the
35043         difference of sizes.  Use is_gimple_mem_ref_addr instead of
35044         is_gimple_min_invariant test to avoid adding address temporaries.
35046 2015-02-26  Martin Liska  <mliska@suse.cz>
35047             Jan Hubicka  <hubicka@ucw.cz>
35049         PR ipa/64693
35050         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
35051         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
35052         (sem_item_optimizer::process_cong_reduction): Include division by
35053         sensitive references.
35054         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
35055         * ipa-ref.c (ipa_ref::address_matters_p): New function.
35056         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
35058 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
35060         PR target/65192
35061         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
35062         Remove.
35063         * config/avr/avr.c: Same.
35064         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
35065         Refuse any constant address not in 0..0xbf.
35066         * config/avr/avr.md (*mov<mode>, *movsf): Remove
35067         tiny_valid_direct_memory_access_range from insn conditions.
35068         (mov<mode>): Don't special-case expansion of avrtiny addresses.
35070 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
35072         PR target/61142
35073         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
35074         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
35075         * config/sh/predicates.md (const_logical_operand): New predicate.
35076         * config/sh/sh.md: Add new peephole2 patterns.
35078 2015-02-26  Marek Polacek  <polacek@redhat.com>
35080         PR ipa/65008
35081         * ipa-inline.c (early_inliner): Recompute inline parameters.
35083 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35085         PR target/65171
35086         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
35087         instructions with TImode operands are included in the analysis.
35089 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35091         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
35092         of an EDGE_FSM_THREAD.
35094 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35096         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
35098 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
35100         PR debug/46102
35101         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
35103 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
35105         PR tree-optimization/65048
35106         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
35107         (thread_through_all_blocks): Call valid_jump_thread_path.
35108         Remove invalid FSM jump-thread paths.
35110 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
35112         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
35113         (ipa_write_optimization_summaries): Likewise.
35114         * tree-streamer.h: Include data-streamer.h.
35115         (streamer_mode_table): Declare extern variable.
35116         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
35117         * lto-streamer-out.c (lto_output_init_mode_table,
35118         lto_write_mode_table): New functions.
35119         (produce_asm_for_decls): Call lto_write_mode_table when streaming
35120         offloading LTO.
35121         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
35122         (lto_create_simple_input_block): Add mode_table argument to the
35123         lto_input_block constructors.
35124         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
35125         Likewise.
35126         * data-streamer-in.c (string_for_index): Likewise.
35127         * ipa-inline-analysis.c (inline_read_section): Likewise.
35128         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
35129         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
35130         * lto-streamer-in.c (lto_read_body_or_constructor,
35131         lto_input_toplevel_asms): Likewise.
35132         (lto_input_mode_table): New function.
35133         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
35134         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
35135         Use bp_pack_machine_mode.
35136         * real.h (struct real_format): Add name field.
35137         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
35138         (class lto_input_block): Add mode_table member.
35139         (lto_input_block::lto_input_block): Add mode_table_ argument,
35140         initialize mode_table.
35141         (struct lto_file_decl_data): Add mode_table field.
35142         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
35143         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
35144         unpack_ts_decl_common_value_fields,
35145         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
35146         * tree-streamer.c (streamer_mode_table): New variable.
35147         * real.c (ieee_single_format, mips_single_format,
35148         motorola_single_format, spu_single_format, ieee_double_format,
35149         mips_double_format, motorola_double_format,
35150         ieee_extended_motorola_format, ieee_extended_intel_96_format,
35151         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
35152         ibm_extended_format, mips_extended_format, ieee_quad_format,
35153         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
35154         decimal_single_format, decimal_double_format, decimal_quad_format,
35155         ieee_half_format, arm_half_format, real_internal_format): Add name
35156         field.
35157         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
35159 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
35161         PR target/65161
35162         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
35163         reordering for selective scheduling.
35165 2015-02-26  Terry Guo  <terry.guo@arm.com>
35167         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
35168         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
35169         (arm_arch_no_volatile_ce): Declare new global variable.
35170         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
35171         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
35172         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
35173         (TARGET_NO_VOLATILE_CE): New macro.
35174         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
35175         volatile memory access in IT block
35177 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35179         PR tree-optimization/61917
35180         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
35181         that reduc_def_stmt is null.
35183 2015-02-25  Martin Liska  <mliska@suse.cz>
35185         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
35186         hard register variables.
35188 2015-02-25  Kai Tietz  <ktietz@redhat.com>
35190         PR target/64212
35191         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
35192         (symtab::noninterposable_alias): Likewise.
35194 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35196         PR target/65167
35197         * config/i386/i386.c (ix86_function_arg_regno_p): Support
35198         bounds registers.
35199         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
35201 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
35203         PR target/64997
35204         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
35205         as split condition; force split via '#' in output pattern.
35207 2015-02-25  Richard Biener  <rguenther@suse.de>
35208             Kai Tietz  <ktietz@redhat.com>
35210         PR tree-optimization/61917
35211         * tree-vect-loop.c (vectorizable_reduction): Allow
35212         vect_internal_def without reduction to exit graceful.
35214 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35216         PR target/65196
35217         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
35218         only with NONDEBUG_INSN_P.
35220 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
35222         Use variadic macros with avr-log.c.
35224         * config/avr/avr-protos.h (avr_vdump): New prototype.
35225         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
35226         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
35227         * config/avr/avr-log.c: Adjust comments.
35228         (avr_vdump): New function.
35229         (avr_vadump): Pass caller as 2nd argument instead of format string.
35230         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
35231         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
35233 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
35235         PR lto/64374
35236         * target.def (target_option_stream_in): New target hook.
35237         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
35238         targetm.target_option.post_stream_in if non-NULL.
35239         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
35240         * doc/tm.texi: Updated.
35241         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
35242         function.
35243         (TARGET_OPTION_POST_STREAM_IN): Redefine.
35245 2015-02-24  Jeff Law  <law@redhat.com>
35247         PR target/65117
35248         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
35249         of operand 0 and operand 2.
35250         (zero_cost_loop_end, loop_end): Similarly.
35252 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
35254         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
35255         CXX_MEM_STAT_INFO.
35257 2015-02-24  DJ Delorie  <dj@redhat.com>
35259         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
35260         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
35261         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
35262         instead of hardcoding SImode.
35264 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
35266         * omp-low.c (create_omp_child_function): Tag entrypoint
35267         functions with a special attribute.
35269 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
35271         PR target/65058
35272         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
35274 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
35276         PR rtl-optimization/65123
35277         * lra-remat.c (operand_to_remat): Check hard regs in insn
35278         definition too.
35280 2015-02-24  Nick Clifton  <nickc@redhat.com>
35282         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
35283         to the assembler.
35285 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
35287         PR libgomp/64625
35288         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
35289         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
35290         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
35291         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
35292         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
35293         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
35294         (BUILT_IN_GOACC_PARALLEL): Specify as
35295         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
35296         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
35297         * builtin-types.def
35298         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35299         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35300         Remove function types.
35301         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
35302         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35303         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35304         New function types.
35306 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
35308         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
35310 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
35312         PR tree-optimization/65170
35313         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
35314         if val[1] < 0, clear also val[2] and return 3.
35316 2015-02-24  Alan Modra  <amodra@gmail.com>
35318         PR target/65172
35319         * config/rs6000/rs6000.c (get_memref_parts): Only return true
35320         when *base is a reg.  Handle nested plus addresses.  Simplify
35321         pre_modify test.
35323 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
35325         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
35326         use natural alignment when optimizing for size.
35328 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
35330         PR target/65153
35331         * config/sh/sh.md (movsicc_true+3): Remove peephole.
35332         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
35333         * config/sh/sh.c (replace_n_hard_rtx): Remove.
35335 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
35337         PR fortran/63427
35338         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
35339         too big for a wide_int.  Implement missing wrapping operation.
35341 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
35343         PR target/65163
35344         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
35345         instead of const_int 4294901760.
35347 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
35349         * config/avr/t-avr: Fix typo in comment.
35351 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
35353         * doc/rtl.texi (fma): Clarify documentation.
35355 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
35357         PR debug/58123
35358         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
35359         over input_location.
35361 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35363         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
35364         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
35365         restrict alignments to absolute_biggest_alignment.
35366         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
35367         Define.
35368         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
35369         * doc/tm.texi: Regenerate.
35370         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
35372 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
35374         PR target/64172
35375         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
35377 2015-02-20  Richard Biener  <rguenther@suse.de>
35379         PR tree-optimization/65136
35380         * tree-ssa-propagate.c: Include cfgloop.h.
35381         (replace_phi_args_in): Avoid replacing loop latch edge PHI
35382         arguments with constants.
35384 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
35385             Martin Liska  <mliska@suse.cz>
35387         PR target/63892
35388         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
35389         don't try to create_thunk if stdarg_p.  If
35390         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
35391         redirect_callers if possible.
35392         (sem_item_optimizer::execute): Call unregister_hooks here...
35393         (ipa_icf_driver): ... instead of here.
35395 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35397         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
35398         Mark operand 0 as earlyclobber in 2nd alternative.
35399         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
35400         Write negated shift amount into QI lowpart operand 0 and use it
35401         in the shift step.
35402         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
35404 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35406         * cgraph.h (clone_function_name_1): Declare.
35407         * cgraphclones.c (clone_function_name_1): New function.
35408         (clone_function_name): Use it.
35409         * lto-partition.c: Include "stringpool.h".
35410         (must_not_rename, maybe_rewrite_identifier)
35411         (validize_symbol_for_target): New static functions.
35412         (privatize_symbol_name): Use must_not_rename.
35413         (promote_symbol): Call validize_symbol_for_target.
35414         (lto_promote_cross_file_statics): Likewise.
35415         (lto_promote_statics_nonwpa): Likewise.
35417 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
35419         PR target/64452
35420         * config/avr/avr.md (pushhi_insn): New insn.
35421         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
35423 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
35424             Jakub Jelinek  <jakub@redhat.com>
35426         * tree-streamer.c (preload_common_nodes): Don't preload
35427         TI_VA_LIST* for offloading.
35428         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
35429         in_lto_p.
35431 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
35433         * config/pa/pa.c (pa_emit_move_sequence): Always force
35434         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
35435         note on insn.
35437         * config/pa/pa.c (pa_reloc_rw_mask): New function.
35438         (TARGET_ASM_RELOC_RW_MASK): Define.
35439         (pa_cannot_force_const_mem): Revert previous change.
35441 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
35442             Jan Hubicka  <hubicka@ucw.cz>
35444         PR ipa/65028
35445         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
35446         across jump functions.
35448 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
35450         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
35452 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
35454         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
35456 2015-02-19  Richard Henderson  <rth@redhat.com>
35458         PR middle-end/65074
35459         * varasm.c (default_binds_local_p_2): Don't test node->definition;
35460         test DECL_EXTERNAL independent of symtab_node.
35462 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
35464         PR lto/65012
35465         * varpool.c (varpool_node::get_constructor): Return early
35466         if this->lto_file_data is NULL.
35468 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35470         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
35471         (rank_for_schedule_debug): Update.
35472         (ready_sort): Make static.  Move sorting logic to ...
35473         (ready_sort_debug, ready_sort_real): New static functions.
35474         (schedule_block): Sort both debug insns and real insns in preparation
35475         for ready list trimming.  Improve debug output.
35476         * sched-int.h (ready_sort): Remove global declaration.
35478 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
35480         * ipa-icf.c (sem_function::equals_private): Adjust.
35481         (sem_function::bb_dict_test): Take a vec<int> * instead of
35482         auto_vec<int>.
35483         * ipa-icf.h (bb_dict_test): Likewise.
35485 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35487         PR gcov-profile/64634
35488         * tree-eh.c (frob_into_branch_around): Fix up typos
35489         in function comment.
35490         (lower_catch): Put eh_seq resulting from EH lowering of
35491         the cleanup sequence after the cleanup rather than before it.
35493 2015-02-18  Tom de Vries  <tom@codesourcery.com>
35495         * common.opt (fstdarg-opt): New option.
35496         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
35497         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
35498         (@item -fstdarg-opt): New item.
35500 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
35502         PR target/65064
35503         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
35504         for common symbols.
35506 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35508         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
35509         insn-modes.h.
35510         (ALL_HOST_OBJS): Add mkoffload.o.
35511         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
35513 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
35515         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
35516         (compare_virtual_tables): Be smarter about skipping typeinfos;
35517         do sane output on virtual table table mismatch.
35518         (warn_odr): Be ready for forward declarations of enums;
35519         output sane info on base mismatch and virtual table mismatch.
35520         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
35521         when only one type is polymorphic.
35522         (get_odr_type): Fix hashtable corruption.
35523         (dump_odr_type): Dump mangled names.
35525 2015-02-18  Richard Biener  <rguenther@suse.de>
35527         PR tree-optimization/65063
35528         * tree-predcom.c (determine_unroll_factor): Return 1 if we
35529         have replaced looparound PHIs.
35531 2015-02-18  Martin Liska  <mliska@suse.cz>
35533         * lto-streamer.c (lto_streamer_init): Encapsulate
35534         streamer_check_handled_ts_structures with checking macro.
35536 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
35538         PR ipa/65087
35539         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
35540         section if !implicit_section.
35541         (cgraph_node::create_version_clone_with_body): Likewise.
35542         * trans-mem.c (ipa_tm_create_version): Likewise.
35544 2015-02-18  Richard Biener  <rguenther@suse.de>
35546         PR tree-optimization/62217
35547         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
35548         into BIVs.
35550 2015-02-18  Marek Polacek  <polacek@redhat.com>
35552         PR sanitizer/65081
35553         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
35554         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
35555         is in range [-16K, -1].  Don't issue run-time error if
35556         (ptr > ptr + offset).
35558 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
35560         * doc/install.texi (nvptx-*-none): New section.
35561         * doc/invoke.texi (Nvidia PTX Options): Likewise.
35562         * config/nvptx/nvptx.opt: Update.
35564         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
35565         (access_check): New functions, copied from
35566         config/i386/intelmic-mkoffload.c.
35567         (main): For non-installed testing, look in all COMPILER_PATHs for
35568         GCC_INSTALL_NAME.
35570         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
35572 2015-02-18  Andrew Pinski  <apinski@cavium.com>
35573             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35575         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
35576         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
35578 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35580         * ipa-visibility.c (function_and_variable_visibility): Only
35581         check locality if node is not already local.
35582         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35583         call_for_symbol_and_aliases instead of
35584         call_for_symbol_thunks_and_aliases.
35585         (ipa_inline): Likewise.
35586         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35587         first walk aliases.
35588         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35589         call_for_symbol_and_aliases.
35590         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35591         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35592         (ipa_propagate_frequency): Update.
35593         (ipa_profile): Add opt_for_fn gueards.
35595 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35597         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
35598         * doc/invoke.texi (SH options): Document it.
35599         * config/sh/sh.c (sh_insn_length_adjustment): Check
35600         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
35602 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
35604         * common.opt (fipa-cp-alignment): New.
35605         * ipa-cp.c (ipcp_store_alignment_results): Check
35606         flag_ipa_cp_alignment.
35607         * opts.c (default_options_table): Enable -fipa-cp-alignment for
35608         -O2.
35609         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
35610         * doc/invoke.texi: Document -fipa-cp-alignment.
35612 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
35614         PR target/64793
35615         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
35616         to nil.  Adjust comments.
35618 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
35620         * ipa-visibility.c (function_and_variable_visibility): Only
35621         check locality if node is not already local.
35622         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
35623         call_for_symbol_and_aliases instead of
35624         call_for_symbol_thunks_and_aliases.
35625         (ipa_inline): Likewise.
35626         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
35627         first walk aliases.
35628         * ipa.c (symbol_table::remove_unreachable_nodes): Use
35629         call_for_symbol_and_aliases.
35630         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
35631         (ipa_propagate_frequency_1): Use it; use opt_for_fn
35632         (ipa_propagate_frequency): Update.
35633         (ipa_profile): Add opt_for_fn guards.
35635 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
35637         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
35638         skipping of "strange" tokens.
35640 2015-02-17  Jeff Law  <law@redhat.com>
35642         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
35643         obsolete comment.
35645 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
35647         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
35648         as forcing a HARD_DEP between instructions, thereby
35649         disallowing rewriting to break dependencies.
35651 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35653         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
35654         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
35655         variables in boundary that have no inlitalizer encoded and are
35656         not aliases.
35657         * varasm.c (default_binds_local_p_2): External definitions do not
35658         count as definitions here.
35660 2015-02-16  Jeff Law  <law@redhat.com>
35662         PR tree-optimization/64823
35663         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
35664         statements.
35665         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35666         threading through blocks with PHIs, but no statements.
35667         (thread_through_normal_block): Distinguish between blocks where
35668         we did not process all the statements and blocks with no statements.
35670 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
35671             James Greenhalgh  <james.greenhalgh@arm.com>
35673         PR ipa/64963
35674         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
35675         section if not linkonce.  Fix up formatting.
35676         (cgraph_node::create_version_clone_with_body): Copy section.
35677         * trans-mem.c (ipa_tm_create_version): Likewise.
35679 2015-02-16  Richard Biener  <rguenther@suse.de>
35681         PR tree-optimization/65077
35682         * tree-ssa-structalias.c (get_constraint_for_1): Handle
35683         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
35684         (find_func_aliases): Allow float values to carry pointers again.
35686 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
35688         * doc/install.texi (Specific): Reorder targets list to put
35689         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
35690         from the top menu.
35692 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
35693             David Edelsohn  <dje.gcc@gmail.com>
35695         PR target/65058
35696         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
35697         mapping class to external variable or function reference.
35698         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
35699         mapping class.
35701 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
35703         PR target/53348
35704         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
35705         ASM_WEAKEN_DECL if defined.
35707 2015-02-16  Richard Biener  <rguenther@suse.de>
35709         PR lto/65015
35710         * varasm.c (default_file_start): For LTO produced units
35711         emit <artificial> as file directive.
35713 2015-02-16  Richard Biener  <rguenther@suse.de>
35715         PR tree-optimization/63593
35716         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
35717         stmts and releasing SSA names until...
35718         (execute_pred_commoning): ... after processing all chains.
35720 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
35722         PR ipa/65059
35723         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
35724         external functions.
35726 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
35728         * doc/bugreport.texi: Adjust section titles throughout the file
35729         to use "Title Case".
35730         * doc/extend.texi: Likewise.
35731         * doc/gcov.texi: Likewise.
35732         * doc/implement-c.texi: Likewise.
35733         * doc/implement-cxx.texi: Likewise.
35734         * doc/invoke.texi: Likewise.
35735         * doc/objc.texi: Likewise.
35736         * doc/standards.texi: Likewise.
35737         * doc/trouble.texi: Likewise.
35739 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
35741         * cgraph.h (symtab_node::has_aliases_p): Simplify.
35742         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
35743         * tree.c (lookup_binfo_at_offset): Make static.
35744         (get_binfo_at_offset): Do not shadow offset; add explanatory
35745         comment.
35747 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
35749         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
35750         for all floading point loads and stores except those using a register
35751         index address.
35752         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
35753         to a register.
35755 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35757         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
35758         (do_estimate_growth_1): Record if any uninlinable edge was seen.
35759         (estimate_growth): Handle uninlinable edges correctly.
35760         (check_callers): New.
35761         (growth_likely_positive): Handle aliases correctly.
35763 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
35765         * ipa-chkp.c: Use iterate_direct_aliases.
35766         * symtab.c (resolution_used_from_other_file_p): Move inline.
35767         (symtab_node::create_reference): Fix formating.
35768         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35769         (symtab_node::iterate_reference): Move inline.
35770         (symtab_node::iterate_referring): Move inline.
35771         (symtab_node::iterate_direct_aliases): Move inline.
35772         (symtab_node::used_from_object_file_p_worker): Inline into ...
35773         (symtab_node::used_from_object_file_p): ... this one; move inline.
35774         (symtab_node::call_for_symbol_and_aliases): Move inline;
35775         use iterate_direct_aliases.
35776         (symtab_node::call_for_symbol_and_aliases_1): New method.
35777         (cgraph_node::call_for_symbol_and_aliases): Move inline;
35778         use iterate_direct_aliases.
35779         (cgraph_node::call_for_symbol_and_aliases_1): New method.
35780         (varpool_node::call_for_node_and_aliases): Rename to ...
35781         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
35782         use iterate_direct_aliases.
35783         (varpool_node::call_for_symbol_and_aliases_1): New method.
35784         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
35785         (ipa_discover_readonly_nonaddressable_var): Update.
35786         * ipa-devirt.c: Fix formating.
35787         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
35788         Move inline.
35789         (cgraph_node::call_for_symbol_and_aliases): Move inline.
35790         (cgraph_node::call_for_symbol_and_aliases_1): New function..
35791         * cgraph.h (used_from_object_file_p_worker): Remove.
35792         (resolution_used_from_other_file_p): Move inline.
35793         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
35794         (symtab_node::iterate_reference): Move inline.
35795         (symtab_node::iterate_referring): Move inline.
35796         (symtab_node::iterate_direct_aliases): Move inline.
35797         (symtab_node::used_from_object_file_p_worker): Inline into ...
35798         (symtab_node::used_from_object_file_p): Move inline.
35799         * tree-emutls.c (ipa_lower_emutls): Update.
35800         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
35801         (varpool_node::call_for_node_and_aliases): Remove.
35803 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
35805         PR tree-optimization/62209
35806         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
35807         op == range->exp, insert seq and gimplified code after labels
35808         instead of after the phi.
35810 2015-02-13  Jeff Law  <law@redhat.com>
35812         PR bootstrap/65060
35813         Revert my change for tree-optimization/64823.
35815 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35817         PR tree-optimization/65053
35818         * tree-ssa-phiopt.c (value_replacement): When moving assign before
35819         cond, either reset VR on lhs or set it to phi result VR.
35821 2015-02-13  Jeff Law  <law@redhat.com>
35823         PR tree-optimization/64823
35824         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
35825         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
35826         threading through blocks with PHIs, but no statements.
35827         (thread_through_normal_block): Distinguish between blocks where
35828         we did not process all the statements and blocks with no statements.
35830         PR rtl-optimization/47477
35831         * match.pd (convert (plus/minus (convert @0) (convert @1): New
35832         simplifier to narrow arithmetic.
35834 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
35836         PR ipa/65028
35837         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
35838         polymorphic call info when type is not known to be preserved.
35840 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
35842         PR ipa/65028
35843         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
35844         (inline_call): Use it.
35846 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
35848         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
35849         GOMP_DEVICE_NVIDIA_PTX.
35851 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
35853         PR ipa/65034
35854         * stmt.c (emit_case_nodes): Use void_type_node instead of
35855         NULL_TREE as LABEL_DECL type.
35857 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
35859         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
35860         constraints.
35861         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
35862         symbolic references to data to be forced to constant memory on the
35863         SOM target.
35865 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
35867         PR tree-optimization/65002
35868         * tree-cfg.c (pass_data_fixup_cfg): Don't update
35869         SSA on start.
35870         * tree-sra.c (some_callers_have_no_vuse_p): New.
35871         (ipa_early_sra): Reject functions whose callers
35872         assume function is read only.
35874 2015-02-13  Richard Biener  <rguenther@suse.de>
35876         PR lto/65015
35877         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
35878         for LTO produced CUs.
35880 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
35882         PR tree-optimization/64705
35883         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
35884         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
35885         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
35886         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
35887         expand_simple_operations.
35889 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
35890             Richard Henderson  <rth@redhat.com>
35892         PR rtl/32219
35893         * cgraphunit.c (cgraph_node::finalize_function): Set definition
35894         before notice_global_symbol.
35895         (varpool_node::finalize_decl): Likewise.
35896         * varasm.c (default_binds_local_p_2): Rename from
35897         default_binds_local_p_1, add weak_dominate argument.  Use direct
35898         returns instead of assigning to local variable.  Unify varpool and
35899         cgraph paths via symtab_node.  Reject undef weak variables before
35900         testing visibility.  Reorder tests for simplicity.
35901         (default_binds_local_p): Use default_binds_local_p_2.
35902         (default_binds_local_p_1): Likewise.
35903         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
35904         via symtab_node.
35905         (default_elf_asm_output_external): Emit visibility when specified.
35907 2015-02-13  Alan Modra  <amodra@gmail.com>
35909         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
35910         code setting up r11 for out-of-line fp restore.
35912 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
35914         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
35915         (muser-mode): Likewise.
35917 2015-02-13  Alan Modra  <amodra@gmail.com>
35919         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
35920         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
35922 2015-02-12  David Howells  <dhowells@redhat.com>
35924         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
35925         warning.
35926         * tree-ssa-uninit.c (dump_predicates): Likewise.
35927         * opts.c (print_filtered_help): Likewise.
35929 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35931         * dwarf2out.c (output_die): Use "%s", name instead of name to
35932         avoid -Wformat-security warning.
35934         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
35935         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35936         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
35937         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
35939 2015-02-12  Jason Merrill  <jason@redhat.com>
35941         * common.opt (-flifetime-dse): New.
35943 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
35945         PR sanitizer/65019
35946         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
35948         PR tree-optimization/65014
35949         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
35950         use original second operand of arg0 or arg1 instead of
35951         that adjusted by STRIP_NOPS.
35953 2015-02-11  Jeff Law  <law@redhat.com>
35955         PR target/63347
35956         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
35957         that needs to be queued, just queue it for a single cycle.
35959 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
35961         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
35962         bodies of thunks; comment on why.
35963         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
35964         symbols are extern.
35966 2015-02-11  Richard Henderson  <rth@redhat.com>
35968         PR sanitize/65000
35969         * tree-eh.c (mark_reachable_handlers): Mark source and destination
35970         regions of __builtin_eh_copy_values.
35972 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
35974         PR middle-end/65003
35975         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
35976         ultimate alias is MEM with SYMBOL_REF satisfying
35977         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
35978         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
35980 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
35982         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
35983         "diagnostic-core.h".
35984         (main): Initialize progname, and call diagnostic_initialize.
35986         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
35987         instead of __OPENMP_TARGET__.
35989         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
35990         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
35991         hard-coding PTX_ID.
35993 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
35995         * doc/sourcebuild.texi (pie_enabled): Document.
35997 2015-02-11  Martin Liska  <mliska@suse.cz>
35999         PR ipa/64813
36000         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
36001         a return value for call to a function that is noreturn.
36003 2015-02-11  Richard Biener  <rguenther@suse.de>
36005         PR lto/65015
36006         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
36007         and -fresolution.
36009 2015-02-11  Andrew Pinski  <apinski@cavium.com>
36011         PR target/64893
36012         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
36013         Change the first argument type to size_type_node and add another
36014         size_type_node.
36015         (aarch64_simd_expand_builtin): Handle the new argument to
36016         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
36017         print an out when the first two arguments are not
36018         nonzero integer constants.
36019         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
36020         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
36022 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
36024         PR target/61925
36025         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
36026         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
36027         (ix86_set_current_function): Rewritten.
36028         (ix86_add_new_builtins): Temporarily clear current_target_pragma
36029         when creating builtin fndecls.
36031 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36033         PR ipa/65005
36034         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
36035         function.
36036         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
36037         have no comdat group.
36038         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
36039         (lto_output_varpool_node): Always output alias info.
36040         (output_refs): Output refs of boundary aliases, too.
36041         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
36042         (output_symtab): Output call eges in thunks in boundary.
36043         (get_alias_symbol): Remove.
36044         (input_node, input_varpool_node): Do not special case weakrefs.
36045         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
36046         alias and thunks targets in the boundary; do not take removed symbols
36047         from their comdat groups.
36048         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
36049         (cgraph_node::global_info): Remove.
36050         (cgraph_node::rtl_info): Look through aliases and thunks.
36051         * cgrpah.h (global_info): Remove.
36052         (non_local_p): Remove.
36054 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36055             Sandra Loosemore  <sandra@codesourcery.com>
36057         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
36058         to inline asm.  List dialects in proper order.
36060 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36061             Sandra Loosemore  <sandra@codesourcery.com>
36063         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
36065 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
36067         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
36068         modified) reference to Solaris.
36070 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
36072         * doc/extend.texi (Extended Asm): Fix typos.
36074 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
36076         PR sanitizer/65004
36077         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
36079 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
36081         PR target/64661
36082         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
36083         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
36084         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
36085         * config/sh/constraints.md (Ara, Add): New constraints.
36086         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
36087         predicates.
36088         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
36089         atomic_mem_operand_0.  Don't use force_reg on the memory address.
36090         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
36091         Sra constraint.  Convert to insn_and_split.  Add workaround for
36092         PR 64974.
36093         (atomic_compare_and_swap<mode>_hard): Copy to
36094         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
36095         Use atomic_mem_operand_0 predicate.
36096         (atomic_compare_and_swap<mode>_soft_gusa,
36097         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
36098         AraAdd constraints.
36099         (atomic_compare_and_swap<mode>_soft_tcb,
36100         atomic_compare_and_swap<mode>_soft_imask,
36101         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
36102         atomic_mem_operand_0 predicate and SraSdd constraints.
36103         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
36104         constraint.
36105         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
36106         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
36107         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
36108         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
36109         force_reg on the memory address.
36110         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
36111         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
36112         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
36113         atomic_mem_operand_1 predicate and Sra constraint.
36114         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
36115         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36116         Use atomic_mem_operand_1 predicate.
36117         (atomic_<fetchop_name><mode>_hard): Copy to
36118         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
36119         Use atomic_mem_operand_1 predicate.
36120         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
36121         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36122         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
36123         insn_and_split.  Use atomic_mem_operand_1 predicate.
36124         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
36125         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
36126         Use atomic_mem_operand_1 predicate.
36127         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
36128         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
36129         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
36130         in generated insn with original mem operand before emitting the insn.
36131         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
36132         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
36133         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
36134         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
36135         Use atomic_mem_operand_1 predicate and AraAdd constraints.
36136         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
36137         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
36138         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
36139         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
36140         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
36141         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
36142         atomic_not_fetch<mode>_soft_tcb,
36143         atomic_<fetchop_name>_fetch<mode>_soft_imask,
36144         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
36145         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
36146         Use atomic_mem_operand_1 predicate and SraSdd constraints.
36148 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
36150         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
36151         and 3 earlyclobber operands.
36153 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36155         * common.opt (fstack-reuse): Mark as optimization.
36157 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
36159         PR ipa/64982
36160         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
36162 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
36164         PR tree-optimization/64326
36165         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
36167 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
36169         PR gcov-profile/61889
36170         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
36172 2015-02-10  Richard Biener  <rguenther@suse.de>
36174         PR tree-optimization/64995
36175         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
36176         value we use is final.
36177         (visit_reference_op_store): Always valueize op.
36178         (visit_use): Properly valueize vuses.
36180 2015-02-10  Richard Biener  <rguenther@suse.de>
36182         PR tree-optimization/64909
36183         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
36184         pass a scalar-stmt count estimate to the cost model.
36185         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
36187 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
36189         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
36190         enabled by default together with var-tracking.
36192 2015-02-10  Nick Clifton  <nickc@redhat.com>
36194         * config/rl78/rl78.c: Remove DIV attribute code accidentally
36195         included in previous rl78 commit.
36197 2015-02-10  Richard Biener  <rguenther@suse.de>
36199         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
36200         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
36201         return the bitpack.
36203 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36205         PR gcov-profile/61889
36206         * config.in: regenerate.
36207         * configure.in: Likewise.
36208         * configure.ac: Check for ftw.h.
36209         * gcov-tool.c: Check for ftw.h before using nftw.
36211 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
36213         PR lto/64076
36214         * ipa-visibility.c (update_visibility_by_resolution_info): Only
36215         assert when not in lto mode.
36217 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
36219         * ira-color.c (setup_left_conflict_sizes_p): Simplify
36220         initialization/assignment of conflict_size.
36222 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
36224         PR ipa/64978
36225         * ipa-cp.c (gather_caller_stats): Skip thunks.
36226         (propagate_constants_topo): Skip aliases.
36228 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
36230         PR target/64761
36231         * config/sh/sh.c (sh_option_override): Don't change
36232         -freorder-blocks-and-partition to -freorder-blocks even when
36233         unwinding is enabled.
36234         (sh_can_follow_jump): Return false if the followee jump is
36235         a crossing jump when -freorder-blocks-and-partition is specified.
36236         * config/sh/sh.md (*jump_compact_crossing): New insn.
36238 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
36239             Kaz Kojima  <kkojima@gcc.gnu.org>
36241         PR target/64761
36242         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
36243         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
36244         (sh_can_redirect_branch): Rename to ...
36245         (sh_can_follow_jump): ... this.  Constify argument types.
36246         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
36247         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
36248         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
36249         * doc/tm.texi: Regenerate.
36251 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36253         PR sanitizer/64981
36254         * builtins.c (expand_builtin): Call targetm.expand_builtin
36255         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
36257 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36259         PR ipa/61548
36260         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
36262 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36264         PR ipa/63566
36265         * ipa-icf.c (set_local): New function.
36266         (sem_function::merge): Use it.
36268 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36270         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
36271         (add_type_duplicate): Fix comparison of BINFOs.
36273 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36275         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
36276         on getting VOID pointer.
36278 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
36280         PR target/64979
36281         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
36282         va_list escapes.
36284 2015-02-09  Richard Biener  <rguenther@suse.de>
36286         * genmatch.c (replace_id): Copy expr_type.
36288 2015-02-09  Richard Biener  <rguenther@suse.de>
36290         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
36291         (streamer_write_tree_bitfields): Declare.
36292         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
36293         properly unpack padding.
36294         (unpack_value_fields): Inline ...
36295         (streamer_read_tree_bitfields): ... here.
36296         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
36297         and properly add padding bits.
36298         (streamer_pack_tree_bitfields): Fold into ...
36299         (streamer_write_tree_bitfields): ... this new function,
36300         exposing the bitpack object.
36301         * lto-streamer-out.c (lto_write_tree_1): Call
36302         streamer_write_tree_bitfields.
36304 2015-02-09  Richard Biener  <rguenther@suse.de>
36306         PR tree-optimization/54000
36307         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
36308         (struct ivopts_data): Add loop_loc member.
36309         (tree_ssa_iv_optimize_loop): Dump loop location.
36310         (create_new_ivs): Likewise, also dump number of IVs generated.
36312 2015-02-09  Martin Liska  <mliska@suse.cz>
36314         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
36315         just if not yet registered.
36316         (ipa_icf_generate_summary): Register callgraph hooks.
36318 2015-02-08  Andrew Pinski  <apinski@cavium.com>
36320         * config/aarch64/aarch64.c (gty_dummy): Delete.
36322 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36324         PR ipa/63566
36325         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
36326         (cgraph_node::local_p): Remove thunk related FIXME.
36328 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36330         PR ipa/63566
36331         * i386.c (ix86_function_regparm): Look through aliases to see if callee
36332         is local and optimized.
36333         (ix86_function_sseregparm): Likewise; also use target's SSE math
36334         settings; error out instead of silently generating wrong code
36335         on mismatches.
36336         (init_cumulative_args): Look through aliases.
36338 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36340         PR ipa/63566
36341         * ipa-split.c (execute_split_functions): Split if function has aliases.
36343 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
36345         PR ipa/63566
36346         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
36347         aliases before trying to expand it.
36348         (cgraph_node::expand_thunk): Fix formating.
36350 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
36352         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
36353         (Using Assembly Language with C): Expand introduction.
36354         (Basic Asm): Copy-edit.  Add more information about uses of
36355         basic asm.
36356         (Extended Asm): Copy-edit.  Document new escape syntax and
36357         %l[label] syntax.
36358         (Global Reg Vars): Copy-edit.
36359         (Local Reg Vars): Likewise.
36361 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
36363         PR debug/2714
36364         PR bootstrap/64256
36365         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
36366         (DBX_CONTIN_CHAR): Define.
36368 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
36369             Brian Rzycki  <b.rzycki@samsung.com>
36371         PR tree-optimization/64878
36372         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
36373         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
36374         Stop recursion at loop phi nodes after having visited a loop phi node.
36376 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36378         * toplev.c (process_options): Change flag_ipa_ra before creating
36379         optimization_{default,current}_node.
36381         PR ipa/64896
36382         * cgraphunit.c (cgraph_node::expand_thunk): If
36383         restype is not is_gimple_reg_type nor the thunk_fndecl
36384         returns aggregate_value_p, set restmp to a temporary variable
36385         instead of resdecl.
36387 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
36389         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
36391 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
36393         PR target/64205
36394         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
36395         add a general secondary reload handler for SDmode, unless we have
36396         both read/write support for SDmode.
36398 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36400         PR middle-end/64937
36401         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
36402         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
36403         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
36404         1 before, push it to abstract_vec.
36405         (dwarf2out_abstract_function): Adjust caller.  Don't call
36406         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
36407         DECL_ABSTRACT_P flags for all abstract_vec elts.
36409 2015-02-06  Renlin Li  <renlin.li@arm.com>
36411         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
36412         complex gimple.
36413         * tree-ssa.c (execute_update_addresses_taken): Likewise.
36415 2015-02-06  Jeff Law  <law@redhat.com>
36417         PR target/64889
36418         * config/h8300/h8300.c (push): New argument "in_prologue".
36419         Pass "in_prologue" along to "F".
36420         (h8300_push_pop): Corresponding changes.
36421         (h8300_expand_prologue): Likewise.
36422         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
36424 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
36426         PR rtl-optimization/64957
36427         PR debug/64817
36428         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
36429         IOR rather than for AND.
36431 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
36433         PR target/62631
36434         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
36435         of shift-add and (add + shift) operations.  Rename local variable.
36437 2015-02-05  Jeff Law  <law@redhat.com>
36439         PR target/17306
36440         * config/h8300/constraints.md (U): Correctly dectect
36441         "eightbit_data" memory addresses.
36442         * config/h8300/h8300.c (eightbit_constant_address_p): Also
36443         handle (const (plus (symbol_ref (x)))) where x is declared
36444         as an 8-bit data memory address.
36445         * config/h8300/h8300.md (call, call_value): Correctly detect
36446         "funcvec" functions.
36448         PR target/43264
36449         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
36450         24 to 28 bits for the H8/300.
36452 2015-02-06  Alan Modra  <amodra@gmail.com>
36454         PR target/64876
36455         * config/rs6000/rs6000.c (chain_already_loaded): New function.
36456         (rs6000_call_aix): Use it.
36458 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
36460         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
36461         check.
36463 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
36465         * config/h8300/constraints.md ("U" constraint): Use strict
36466         variant of REG_OK_FOR_BASE_P after reload has started.
36468 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
36470         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
36471         define to zero if !TARGET_NEON.
36472         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
36474 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36475             Trevor Saunders  <tsaunders@mozilla.com>
36477         PR ipa/61548
36478         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
36480 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36482         PR ipa/61548
36483         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
36484         when removing varpool nodes.
36486 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36488         PR ipa/61548
36489         * varpool.c (varpool_node::remove): Fix order of variables.
36491 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36493         PR ipa/64686
36494         * ipa-inline.c (inline_small_functions): Fix ordering issue between
36495         speculation resolution and key updates.
36497 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36499         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
36500         about not letting any speculative edges unupdated.
36502 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36504         PR gcov/64123
36505         * gcov-io.c (gcov_var): Export.
36507 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36509         PR middle-end/64922
36510         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
36511         edges that become speculative.
36513 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36515         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
36516         or DW_LANG_Fortran08.
36517         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
36518         DW_LANG_Fortran08.
36519         (gen_compile_unit_die): Handle "GNU Fortran2003" and
36520         "GNU Fortran2008" language strings.
36521         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
36522         * langhooks.h (lang_GNU_Fortran): New prototype.
36523         * langhooks.c (lang_GNU_Fortran): New function.
36524         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
36525         lang_GNU_Fortran.
36527 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36529         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
36530         (RTX_OK_FOR_OLO10_P): Likewise.
36532 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
36534         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
36536 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
36538         PR middle-end/64922
36539         * gimple.c: Include gimple-ssa.h.
36540         (maybe_remove_unused_call_args): New function.
36541         * gimple.h (maybe_remove_unused_call_args): Declare.
36542         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
36543         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
36544         * gimple-fold.c (gimple_fold_call): Likewise.
36546 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
36548         PR rtl-optimization/64905
36549         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
36550         pointer alignment if it isn't needed.
36552 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36554         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
36555         cortex-a72.cortex-a53.
36556         * config/aarch64/aarch64-tune.md: Regenerate.
36557         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
36559 2015-02-04  Nick Clifton  <nickc@redhat.com>
36561         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
36562         inside a MEM.
36564 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
36566         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
36567         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
36568         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
36569         of DEF_BUILTIN.
36570         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
36571         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
36572         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
36573         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
36574         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
36575         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
36576         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
36577         * tree-core.h (enum built_in_function): In between
36578         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
36579         for builtins that use DEF_BUILTIN_CHKP macro.
36581 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
36583         PR debug/64817
36584         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
36585         operands for tcc_comparison exprs.  Fix typos.
36587         PR debug/64817
36588         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
36589         of two XORs that have an intervening AND or IOR.
36591         PR debug/64817
36592         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
36593         simplification of XOR of AND to not allocate new rtx before
36594         committing to a simplification.
36596 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36598         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
36599         manual swaps in all peepholes.
36601 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36603         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
36604         of manual swapping implementation.
36605         (aarch64_expand_vec_perm_const_1): Likewise.
36607 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
36609         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
36610         (generic_addrcost_table): Remove NAMED_PARAM.
36611         (cortexa57_addrcost_table): Likewise.
36612         (xgene1_addrcost_table): Likewise.
36613         (generic_regmove_table): Likewise.
36614         (cortexa53_regmove_table): Likewise.
36615         (xgene1_regmove_table): Likewise.
36616         (generic_vector_table): Likewise.
36617         (cortexa57_vector_table): Likewise.
36618         (xgene1_vector_table): Likewise.
36619         (generic_tunings): Likewise.
36620         (cortexa53_tunings): Likewise.
36621         (cortexa57_tunings): Likewise.
36622         (xgene1_tunings): Likewise.
36624 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
36626         * config/arm/arm-cores.def: Add cortex-a72 and
36627         cortex-a72.cortex-a53.
36628         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
36629         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
36630         * config/arm/arm-tune.md: Regenerate.
36631         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
36632         "cortex-a72.cortex-a53".
36633         * doc/invoke.texi (ARM Options/-mtune): Likewise.
36635 2015-02-04  Nick Clifton  <nickc@redhat.com>
36637         PR target/64408
36638         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
36639         of accepted codes.
36640         (nonimmediate_di_operand): Likewise.
36642         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
36643         prefixes of known F5 using MSP430 MCUs.
36645 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36647         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
36648         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
36649         instead of __builtin_sqrt.
36651 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
36653         * varasm.c (do_assemble_alias): Follow transparent alias
36654         chain for target.
36655         (default_assemble_visibility): Follow transparent alias
36656         chain for decl name.
36658 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36660         PR middle-end/62103
36661         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
36662         to compute size of referenced value in the constant case.
36664 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36666         PR rtl-optimization/64756
36667         * cse.c (invalidate_dest): New function.
36668         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
36669         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
36670         invalidate and do not record it.
36672 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
36674         PR target/64660
36675         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
36676         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
36677         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
36678         atomic_nand<mode>_soft_tcb): New insns.
36679         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
36680         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
36681         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
36682         Split into atomic_not_fetchsi_hard if operands[0] is unused.
36683         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
36684         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36685         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
36686         atomic_not<mode>_hard if operands[0] is unused.
36687         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
36688         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
36689         if operands[0] is unused.
36690         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
36691         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
36692         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
36693         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36694         unused.
36695         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
36696         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36697         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
36698         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
36699         if operands[0] is unused.
36700         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
36701         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
36702         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
36703         atomic_nand_fetchsi_hard if operands[0] is unused.
36704         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
36705         atomic_nand<mode>_hard if operands[0] is unused.
36706         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
36707         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
36708         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
36709         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36710         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
36711         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
36712         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
36713         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
36714         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
36715         atomic_not<mode>_hard if operands[0] is unused.
36716         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
36717         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
36718         unused.
36719         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36720         into atomic_not<mode>_soft_tcb if operands[0] is unused.
36721         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
36722         atomic_nand<mode>_hard if operands[0] is unused.
36723         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
36724         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
36726 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
36728         PR jit/64810
36729         * Makefile.in (GCC_OBJS): Add gcc-main.o.
36730         * gcc-main.c: New file, containing "main" taken from gcc.c.
36731         * gcc.c (do_self_spec): Free decoded_options.
36732         (class driver): Move declaration to gcc.h.
36733         (main): Move declaration and implementation to new file
36734         gcc-main.c.
36735         (driver_get_configure_time_options): New function.
36736         * gcc.h (class driver): Move this declaration here, from
36737         gcc.c.
36738         (driver_get_configure_time_options): New declaration.
36740 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
36742         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
36743         cross-module inlining.
36744         * cgraph.h (cgraph_node): Add flag merged.
36745         * ipa-icf.c (sem_function::merge): Maintain it.
36747 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
36749         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
36750         instead of OBJECT_P.
36752 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
36754         PR target/62631
36755         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
36756         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
36757         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
36758         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
36760 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
36762         PR other/63504
36763         * combine.c (reg_n_sets_max): New variable.
36764         (can_change_dest_mode, reg_nonzero_bits_for_combine,
36765         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
36766         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
36767         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
36768         (rest_of_handle_combine): Initialize reg_n_sets_max.
36770 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
36772         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
36773         if some always_inline was inlined, apply changes before inlining
36774         heuristically.
36776 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
36778         PR jit/64810
36779         * config/arm/arm.c (arm_option_override): Set
36780         arm_selected_arch/cpu/tune to NULL on entry.
36782 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
36783             Andrew Pinski  <pinskia@gcc.gnu.org>
36784             Jakub Jelinek  <jakub@gcc.gnu.org>
36786         PR target/64231
36787         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
36788         integer typing for small model. Use IN_RANGE.
36790 2015-02-02  Richard Biener  <rguenther@suse.de>
36792         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
36793         * tree-vrp.c (vrp_valueize_1): Likewise.
36795 2015-02-02  Alan Modra  <amodra@gmail.com>
36797         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
36798         than mem for toc_restore.
36799         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
36800         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
36801         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
36803 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
36805         PR target/64047
36806         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
36807         explicit default options.
36809 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
36811         PR ipa/64872
36812         * ipa-utils.c (ipa_merge_profiles): Add release argument.
36813         * ipa-icf.c (sem_function::merge): Do not release body when merging.
36814         * ipa-utils.h (ipa_merge_profiles): Update prototype.
36816 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
36818         PR debug/64817
36819         * cfgexpand.c (deep_ter_debug_map): New variable.
36820         (avoid_deep_ter_for_debug): New function.
36821         (expand_debug_expr): If TERed SSA_NAME is in
36822         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
36823         instead of trying to expand SSA_NAME's def stmt.
36824         (expand_debug_locations): When expanding debug bind
36825         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
36826         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
36827         value.
36828         (pass_expand::execute): Call avoid_deep_ter_for_debug on
36829         all debug bind stmts.  Delete deep_ter_debug_map after
36830         expand_debug_location if non-NULL and clear it.
36832 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
36834         PR target/64851
36835         * config/sh/sync.md (atomic_fetch_notsi_hard,
36836         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
36837         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
36838         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
36839         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
36840         atomic_not_fetch<mode>_soft_imask): New insns.
36842 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36844         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
36845         (rank_for_schedule_debug): Split from ...
36846         (rank_for_schedule): ... this.
36847         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
36848         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
36850 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36852         * doc/md.texi (Machine Constraints): Alphabetize table by target.
36853         * doc/extend.texi (x86 Variable Attributes): Move section to
36854         correct alphabetization after renaming.
36855         (x86 Type Attributes): Likewise.
36856         (Target Builtins): Re-alphabetize menu.
36857         (x86 Built-in Functions): Move section to correct alphabetization
36858         after renaming.
36859         (x86 transactional memory intrinsics): Likewise.
36860         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
36861         and x86 Windows Options in table and menu.
36862         (x86 Options): Move section to correct alphabetization after
36863         renaming.
36864         (x86 Windows Options): Likewise.
36866 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
36868         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
36869         preferred names of the architecture and its 32- and 64-bit
36870         variants.
36871         * doc/invoke.texi: Likewise.
36872         * doc/md.texi: Likewise.
36874 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36876         PR target/64882
36877         * config/i386/predicates.md (address_no_seg_operand): Reject
36878         non-CONST_INT_P operands in invalid mode.
36880 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
36882         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
36883         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
36884         * config/i386/predicates.md (address_no_seg_operand): Call
36885         address_operand with VOIDmode.
36886         (vsib_address_operand): Ditto.
36887         (address_mpx_no_base_operand): Ditto.
36888         (address_mpx_no_index_operand): Ditto.
36890 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36892         PR target/64688
36893         * lra-constraints.c (original_subreg_reg_mode): New.
36894         (simplify_operand_subreg): Try to simplify subreg of const.  Use
36895         original_subreg_reg_mode for it.
36896         (swap_operands): Update original_subreg_reg_mode.
36897         (curr_insn_transform): Set up original_subreg_reg_mode.
36899 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36901         PR target/64617
36902         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
36903         function.
36904         (process_alt_operands): Use it.
36905         (curr_insn_transform): Check the optional reload pseudo class is
36906         ok for the mode.
36908 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
36910         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
36911         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
36912         prototype.
36913         * toplev.h (init_asm_output): Update comment on use of
36914         UNKNOWN_LOCATION with fatal_error.
36915         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
36916         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
36917         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
36918         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
36919         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
36920         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
36921         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
36922         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
36923         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
36924         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
36925         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
36926         fatal_error changed to pass input_location as first argument.
36928 2015-01-30  Martin Liska  <mliska@suse.cz>
36930         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
36931         in #pragma GCC diagnostic guards.
36933 2015-01-30  Richard Biener  <rguenther@suse.de>
36935         PR tree-optimization/64829
36936         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
36937         not add a widening conversion pattern but hand off extra
36938         widenings to callers.
36939         (vect_recog_widen_mult_pattern): Handle extra widening produced
36940         by vect_handle_widen_op_by_const.
36941         (vect_recog_widen_shift_pattern): Likewise.
36942         (vect_pattern_recog_1): Remove excess vertical space in dumping.
36943         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
36944         (vect_init_vector_1): Likewise.
36945         (vect_get_vec_def_for_operand): Likewise.
36946         (vect_finish_stmt_generation): Likewise.
36947         (vectorizable_load): Likewise.
36948         (vect_analyze_stmt): Likewise.
36949         (vect_is_simple_use): Likewise.
36951 2015-01-29  Jeff Law  <law@redhat.com>
36953         * combine.c (try_combine): Fix typo in comment.
36955 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
36957         PR target/64580
36958         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
36959         (rs6000_stack_info): Add assert.
36960         (rs6000_output_savres_externs): New function, split off from...
36961         (rs6000_output_function_prologue): ... here.  Do not call it for
36962         thunks.
36964 2015-01-29  Jeff Law  <law@redhat.com>
36966         PR target/15184
36967         * combine.c (try_combine): If I0 is a memory load and I3 a store
36968         to a related address, increase the "goodness" of doing a 4-insn
36969         combination with I0-I3.
36970         (make_field_assignment): Handle SUBREGs in the ior+and case.
36972 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
36974         PR tree-optimization/64746
36975         * tree-if-conv.c (mask_exists): New function.
36976         (predicate_mem_writes): Save created mask with given size for further
36977         use.
36978         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
36979         (ifcvt_repair_bool_pattern): Collect all statements that are root
36980         of bool pattern and use iterative algorithm to remove multiple uses
36981         of predicates, display number of required iterations.
36983 2015-01-29  Richard Biener  <rguenther@suse.de>
36985         PR tree-optimization/64853
36986         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
36987         stmt will get simulated again.
36988         * tree-ssa-ccp.c (valueize_op_1): Likewise.
36990 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36992         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
36993         return_in_pc.  Remove redundant assignments.
36994         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
36995         (arm_expand_epilogue): Don't compare boolean with true in if condition.
36997 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
36999         * config/i386/i386.c (ix86_mode_after): Make static.
37001 2015-01-29  Richard Biener  <rguenther@suse.de>
37003         PR tree-optimization/64844
37004         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
37005         dump cost model analysis.
37006         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37007         Do not register adjusted load/store costs here.
37009 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37010             Uros Bizjak  <ubizjak@gmail.com>
37012         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
37013         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
37014         using x86_use_pseudo_pic_reg.
37015         * config/i386/i386.c (ix86_conditional_register_usage): Remove
37016         support for fixed PIC register.
37017         (ix86_use_pseudo_pic_reg): Not static any more.
37019 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
37021         PR middle-end/64805
37022         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
37023         to avoid error in cgraph node verification.
37025 2015-01-29  Marek Polacek  <polacek@redhat.com>
37027         * doc/standards.texi: Reflect that the default for C is gnu11.
37029 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
37031         PR target/64761
37032         * reorg.c (switch_text_sections_between_p): New function.
37033         (relax_delay_slots): Call it when testing if the jump insn
37034         is removable.  Use targetm.can_follow_jump when testing if
37035         the conditional branch can follow an unconditional jump.
37037 2015-01-27  Caroline Tice  <cmtice@google.com>
37039         Committing VTV Cywin/Ming patch for Patrick Wollgast
37040         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
37041         if -fvtable-verify=preinit/std is used.
37042         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
37043         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
37044         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
37045         if -fvtable-verify=preinit/std is used.
37046         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
37047         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
37048         if -fvtable-verify=preinit/std is used.
37049         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
37050         * config/i386/mingw32.h (LIB_SPEC): Likewise.
37051         * varasm.c (assemble_variable): Add code to properly set the comdat
37052         section and name for the .vtable_map_vars section in case the
37053         target is PE or COFF.
37055 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37057         PR ipa/64801
37058         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
37059         make sane BB profile.
37060         (cgraph_node::expand_thunk): Make sane BB profile.
37061         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
37062         * cgraph.h (init_lowered_empty_function): Update prototype.
37063         * config/i386/i386.c (make_resolver_func): Update call.
37064         * predict.c (gate): Disable branch prediction pass if
37065         profile is already there.
37067 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
37069         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
37070         * opth-gen.awk: Likewise.
37071         * common.opt: Mark flag_fp_contract_mode as Optimization.
37073 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37075         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
37076         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
37078 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
37080         PR target/64659
37081         * config/sh/predicates.md (atomic_arith_operand,
37082         atomic_logical_operand): Remove.
37083         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
37084         (atomic_arith_operand_0): New predicate.
37085         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
37086         Use atomic_arith_operand_0 for input values.
37087         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
37088         atomic_compare_and_swap<mode>_soft_gusa,
37089         atomic_compare_and_swap<mode>_soft_tcb,
37090         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
37091         arith_reg_operand instead of register_operand.
37092         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
37093         atomic_arith_operand_0 for newval input.
37094         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
37095         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
37096         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
37097         arith_reg_operand instead of register_operand.
37098         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
37099         fetchop_predicate_1, fetchop_constraint_1_llcs,
37100         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
37101         fetchop_constraint_1_imask): New code iterator attributes.
37102         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
37103         register_operand.  Use fetchop_predicate_1.
37104         (atomic_fetch_<fetchop_name>si_hard,
37105         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
37106         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
37107         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
37108         and arith_reg_operand instead of register_operand.  Use
37109         fetchop_predicate_1, fetchop_constraint_1_gusa.
37110         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
37111         and arith_reg_operand instead of register_operand.  Use
37112         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
37113         to allow R0 usage.
37114         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
37115         and arith_reg_operand instead of register_operand.  Use
37116         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
37117         to allow R0 usage.
37118         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
37119         register_operand.  Use atomic_logical_operand_1.
37120         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
37121         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
37122         arith_reg_operand instead of register_operand.
37123         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
37124         Use arith_reg_dest and arith_reg_operand instead of register_operand.
37125         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
37126         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
37127         register_operand.  Use fetchop_predicate_1.
37128         (atomic_<fetchop_name>_fetchsi_hard,
37129         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
37130         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37131         fetchop_constraint_1_llcs.
37132         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
37133         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37134         fetchop_constraint_1_gusa.
37135         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
37136         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37137         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
37138         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
37139         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
37140         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
37141         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
37142         register_operand.  Use atomic_logical_operand_1.
37143         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
37144         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
37145         arith_reg_operand instead of register_operand.
37146         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
37147         arith_reg_operand instead of register_operand.  Use logical_operand
37148         and K08.  Adjust asm sequence to allow R0 usage.
37149         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
37150         arith_reg_operand instead of register_operand.  Use logical_operand
37151         and K08.
37153 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37155         PR other/63504
37156         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
37157         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
37158         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
37159         only get_full_len HOST_WIDE_INTs from get_val () array rather than
37160         all bits in *val_wide.
37162 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
37164         * varpool.c (tls_model_names): Fix names.
37165         (varpool_node::dump): Dump tls- prefix for tls models.
37167 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
37168             Bernd Schmidt  <bernds@codesourcery.com>
37169             Nathan Sidwell  <nathan@codesourcery.com>
37171         * config/nvptx/mkoffload.c: New file.
37172         * config/nvptx/t-nvptx: Add build rules for it.
37173         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
37174         (extra_programs): Add mkoffload.
37175         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
37176         function.
37177         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
37179 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
37181         PR middle-end/64809
37182         * cfgexpand.c (reorder_operands): Skip debug gimples.
37184 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
37186         PR tree-optimization/64277
37187         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
37188         range info when possible to refine estimation.
37190 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37192         PR tree-optimization/64718
37193         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
37194         be a 16bit unsigned integer when n->range is 16.
37195         (bswap_replace): Convert src to that type if necessary for all bswap
37196         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
37197         set in pass_optimize_bswap::execute ().
37199 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
37201         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
37202         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
37203         integer and floating point variants.
37204         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
37206 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
37208         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
37209         for all vector modes.
37211 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
37213         PR bootstrap/64612
37214         * doc/sourcebuild.texi (comdat_group): Document.
37216 2015-01-28  Terry Guo  <terry.guo@arm.com>
37218         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
37220 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
37222         * toplev.c (print_version): Add param "show_global_state", and
37223         only print GGC and plugin information if it is true.
37224         (init_asm_output): Pass in "true" for the new param when calling
37225         print_version.
37226         (process_options): Likewise.
37227         (toplev::main): Likewise.
37228         * toplev.h (print_version): Add new param to decl.
37230 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37232         PR ipa/60871
37233         PR ipa/64139
37234         * tree.c (lookup_binfo_at_offset): New function.
37235         (get_binfo_at_offset): Use it.
37237 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
37239         PR ipa/64282
37240         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
37241         on vtable being vtable.
37243 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
37245         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
37246         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
37247         -mhotpatch= option.
37248         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
37249         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
37250         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
37251         Renamed.
37252         (s390_hotpatch_trampoline_halfwords_max): Renamed.
37253         (s390_hotpatch_hw_max): New name.
37254         (s390_hotpatch_trampoline_halfwords): Renamed.
37255         (s390_hotpatch_hw_before_label): New name.
37256         (get_hotpatch_attribute): Removed.
37257         (s390_hotpatch_hw_after_label): New name.
37258         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
37259         attribute.
37260         (s390_attribute_table): Ditto.
37261         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
37262         (s390_function_num_hotpatch_hw): New name.
37263         Remove special handling of inline functions and hotpatching.
37264         Return number of nops before and after the function label.
37265         (s390_can_inline_p): Removed.
37266         (s390_asm_output_function_label): Emit a configurable number of nops
37267         after the function label.
37268         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
37269         (TARGET_CAN_INLINE_P) Removed.
37270         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
37272 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37273             Jiong Wang  <jiong.wang@arm.com>
37275         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
37276         of scratch reg.
37277         (cb<optab><mode>1): Likewise.
37278         * config/aarch64/iterators.md (bcond): New define_code_attr.
37280 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37282         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
37283         memory accesses.
37285 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37287         * config/s390/s390.c (s390_register_move_cost): Increase costs for
37288         FPR->GPR moves.
37290 2015-01-27  Richard Biener  <rguenther@suse.de>
37292         * tree-vrp.c (update_value_range): Intersect the range with
37293         old recorded SSA name range information.
37295 2015-01-27  Nick Clifton  <nickc@redhat.com>
37297         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
37298         BC, DE and HL registers directly, not via AX.
37299         When decrementing the stack pointer by a large amount, transfer SP
37300         into AX and perform the subtraction there.
37301         (rl78_expand_epilogue): Perform the inverse of the above
37302         enhancements.
37304 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37306         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
37308 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37309             Yury Gribov  <y.gribov@samsung.com>
37311         PR ubsan/64741
37312         * ubsan.c (ubsan_source_location): Refactor code.
37313         (ubsan_type_descriptor): Update type size. Refactor code.
37315 2015-01-27  Richard Biener  <rguenther@suse.de>
37317         PR tree-optimization/56273
37318         PR tree-optimization/59124
37319         PR tree-optimization/64277
37320         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
37321         from the first VRP pass.
37323 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37325         PR ipa/64776
37326         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
37327         handle the first argument in the same loop as all the other arguments.
37329         PR rtl-optimization/61058
37330         * jump.c (cleanup_barriers): Update basic block boundaries
37331         if BLOCK_FOR_INSN is non-NULL on PREV.
37333 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
37335         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
37336         bounds narrowing, already instrumented calls and calls to
37337         not instrumentable functions.
37339 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
37341         PR tree-optimization/64807
37342         * wide-int.cc (wi::divmod_internal): Clear
37343         b_dividend[dividend_blocks_needed].
37345 2015-01-26  DJ Delorie  <dj@redhat.com>
37347         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
37348         volatile memory references.
37350 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
37352         PR target/49263
37353         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
37354         remove_insn.
37355         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
37356         shifts if it already fits into K08.
37358 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37360         PR ipa/64730
37361         * ipa-inline.c (inline_small_functions): Print "unknown" even
37362         if edge->call_stmt is non-NULL, but has builtins or unknown
37363         location.
37365         PR middle-end/64421
37366         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
37367         with asterisk, skip the first character.
37369 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37371         PR target/64806
37372         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
37373         order change.
37375 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
37377         PR target/64795
37378         * config/i386/i386.md (*movdi_internal): Also check operand 0
37379         to determine TYPE_LEA operand.
37380         (*movsi_internal): Ditto.
37382 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
37384         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
37385         OPTION_MASK_QUAD_MEMORY_ATOMIC.
37387 2015-01-26  Renlin Li  <renlin.li@arm.com>
37389         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
37390         the comment.
37391         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
37392         for higher part.
37394 2015-01-26  Richard Biener  <rguenther@suse.de>
37396         PR middle-end/64764
37397         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
37398         combining two BIT_AND_EXPR predicates.
37400 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
37402         PR bootstrap/64754
37403         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
37405 2015-01-26  Terry Guo  <terry.guo@arm.com>
37407         * config/arm/arm.c (arm_file_start): Update the assignment of
37408         Tag_ABI_HardFP_use.
37410 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
37412         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
37413         pipeline model.
37414         config/arm/arm.md: Include the new Cortex-A57 model.
37415         (generic_sched): Don't use generic_sched when tuning for
37416         Cortex-A57.
37418 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
37419             Uros Bizjak  <ubizjak@gmail.com>
37421         * config/i386/i386.c (get_builtin_code_for_version): Add
37422         support for BMI and BMI2 multiversion functions.
37424 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37426         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
37427         (extract_bit_field): Likewise.
37428         (extract_low_bits): Likewise.
37429         (expand_mult): Likewise.
37430         (expand_mult_highpart_adjust): Likewise.
37432 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
37434         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
37435         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
37436         * config/i386/i386.c (processor_model): Add
37437         M_INTEL_COREI7_BROADWELL.
37438         (arch_names_table): Add "broadwell".
37440 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
37442         PR target/49263
37443         PR target/53987
37444         PR target/64345
37445         PR target/59533
37446         PR target/52933
37447         PR target/54236
37448         PR target/51244
37449         * config/sh/sh-protos.h
37450         (sh_extending_set_of_reg::can_use_as_unextended_reg,
37451         sh_extending_set_of_reg::use_as_unextended_reg,
37452         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
37453         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
37454         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
37455         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
37456         (sh_treg_insns): New class.
37457         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
37458         (scope_counter): New class.
37459         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
37460         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
37461         sh_extending_set_of_reg::can_use_as_unextended_reg,
37462         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
37463         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
37464         sh_split_treg_set_expr): New functions.
37465         (addsubcosts): Handle treg_set_expr.
37466         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
37467         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
37468         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
37469         (sh_insn_operands_modified_between_p): Make non-static.
37470         * config/sh/predicates.md (zero_extend_movu_operand): Allow
37471         simple_mem_operand in addition to displacement_mem_operand.
37472         (zero_extend_operand): Don't allow zero_extend_movu_operand.
37473         (treg_set_expr, treg_set_expr_not_const01,
37474         arith_reg_or_treg_set_expr): New predicates.
37475         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
37476         arith_or_int_operand instead of logical_operand.  Convert to
37477         insn_and_split.  Try to optimize constant operand in splitter.
37478         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
37479         (*tstqi_t_zero): Delete.
37480         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
37481         (tstsi_t_and_not): Delete.
37482         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
37483         Convert to insn_and_split.
37484         (unnamed split, tstsi_t_zero_extract_xor,
37485         tstsi_t_zero_extract_subreg_xor_little,
37486         tstsi_t_zero_extract_subreg_xor_big): Delete.
37487         (*tstsi_t_shift_mask): New insn_and_split.
37488         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
37489         to recombine with surrounding insns when splitting.
37490         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
37491         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
37492         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
37493         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
37494         (*cbranch_div0s: Delete.
37495         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37496         Try to recombine with surrounding insns when splitting.  Add operand
37497         order variants.
37498         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
37499         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
37500         *addc_r_r_msb, *addc_2r_msb): Delete.
37501         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
37502         order variant.
37503         (*addc_negreg_t): New insn_and_split.
37504         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
37505         Try to recombine with surrounding insns when splitting.
37506         Add operand order variants.
37507         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
37508         insn_and_split patterns.
37509         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
37510         surrounding insns when splitting.
37511         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
37512         (*rotcl): Likewise.  Add zero_extract variant.
37513         (*ashrsi2_31): New insn_and_split.
37514         (*negc): Convert to insn_and_split.  Use treg_set_expr.
37515         (*zero_extend<mode>si2_disp_mem): Update comment.
37516         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
37517         condition.
37518         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
37519         with surrounding insns when splitting.
37520         (any_treg_expr_to_reg): New insn_and_split.
37521         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
37522         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
37523         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
37524         *zero_extract_2): New single bit zero extract patterns.
37525         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
37526         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
37527         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
37528         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
37529         set destination.
37530         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
37531         register_operand for set source.
37533 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
37535         * i386.opt (prefetch_sse): New targetsave.
37536         * i386.c (ix86_function_specific_save): Save prefetch_sse.
37537         (ix86_function_specific_restore): Restore prefetch_sse and initialize
37538         ix86_cost/ix86_tune_cost.
37540 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37542         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
37543         Support the JIT by using 0 as the language type.
37545 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
37547         PR target/64317
37548         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
37549         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
37550         (mark_regno_live, process_bb_lives): Pass new parameter value to
37551         make_hard_regno_born.
37553 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37555         PR rtl-optimization/63637
37556         PR rtl-optimization/60663
37557         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
37558         if elt->cost is MAX_COST for ASM_OPERANDS.
37559         (find_sets_in_insn): Fix up comment typo.
37560         (cse_insn): Don't set src_volatile for all non-volatile
37561         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
37562         or with "memory" clobber.  Set elt->cost to MAX_COST
37563         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
37564         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
37566 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37568         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
37569         alternative 1.
37571 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
37573         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
37574         libgcc/config/i386/elf-lib.h.
37576 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37578         PR driver/64737
37579         * gcc.c (print_configuration): Don't print a blank line at the end
37580         here...
37581         (run_attempt): ... but here unstead.
37583         PR middle-end/64734
37584         * omp-low.c (scan_sharing_clauses): Don't ignore
37585         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
37586         on target data/update constructs.
37588 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37590         PR target/50928
37591         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
37592         (DEBUG_RELOAD): Removed define.
37593         (m32c_limit_reload_class): Enable traces with if DEBUG0.
37594         (m32c_function_arg): Added a type cast.
37595         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
37596         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
37597         * config/m32c/bitops.md (andqi3_16): Likewise.
37598         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
37599         (push_a01_l): Likewise.
37601 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37603         PR jit/64721
37604         * main.c (main): Construct toplev instances with init_signals=true.
37605         * toplev.c (general_init): Add param "init_signals", and use it to
37606         conditionalize the calls to signal and host_hooks.extra_signals.
37607         (toplev::toplev): Add param "init_signals".
37608         (toplev::main): When invoking general_init, pass m_init_signals
37609         to control whether signal-handlers are installed.
37610         * toplev.h (toplev::toplev): Add param "init_signals".
37611         (toplev::m_init_signals): New field.
37613 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
37615         PR jit/64722
37616         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
37617         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
37618         latter may be affected by the former (e.g. on i686).
37620 2015-01-23  Martin Liska  <mliska@suse.cz>
37622         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
37623         false positive during profiledbootstrap.
37625 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37627         PR libgomp/64672
37628         * lto-opts.c (lto_write_options): Output non-explicit conservative
37629         -fno-openacc.
37630         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
37631         (append_compiler_options): Pass -fopenacc through.
37633 2015-01-23  Tom de Vries  <tom@codesourcery.com>
37635         PR libgomp/64707
37636         * lto-opts.c (lto_write_options): Output non-explicit conservative
37637         -fno-openmp.
37638         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
37639         (append_compiler_options): Pass -fopenmp through.
37641 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
37643         PR debug/64511
37644         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
37645         GTY markup.
37647         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
37648         * diagnostic.def (DK_ICE_NOBT): New kind.
37649         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
37650         like DK_ICE, but never print backtrace.
37651         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
37652         (internal_error_no_backtrace): New function.
37653         * gcc.c (execute): Use internal_error_no_backtrace instead of
37654         internal_error.
37656 2015-01-22  Jeff Law  <law@redhat.com>
37658         PR target/52076
37659         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
37660         improve code density for small immediate to memory case.
37661         (insv): Better handle bitfield assignments when the field is
37662         being set to all ones.
37663         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
37664         operand predicate.
37666 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37667             Jakub Jelinek  <jakub@redhat.com>
37669         PR middle-end/64729
37670         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
37671         for !TARGET_LIBC_PROVIDES_SSP version and
37672         -fstack-protector-{all,strong,explicit} otherwise.
37673         * config/freebsd.h (LINK_SSP_SPEC): Handle
37674         -fstack-protector-{strong,explicit}.
37676 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
37677             H.J. Lu  <hongjiu.lu@intel.com>
37679         PR ipa/64694
37680         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
37681         heap.
37683 2015-01-22  Wei Mi  <wmi@google.com>
37685         PR rtl-optimization/64557
37686         * dse.c (record_store): Call get_addr for mem_addr.
37687         (check_mem_read_rtx): Likewise.
37689 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
37691         * fold-const.c (const_binop): Add early return for non-tcc_binary.
37693 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
37695         * toplev.c (init_local_tick): Process the failure when read
37696         fails for random_seed.
37698         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
37699         'pretty_name' to avoid memory overflow.
37701 2015-01-22  Richard Biener  <rguenther@suse.de>
37703         PR middle-end/64728
37704         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
37705         abnormal coalescing on undefined SSA names.
37707 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
37709         PR target/64688
37710         PR target/64477
37711         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
37712         for alternative 3.
37713         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
37715 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
37717         PR middle-end/63325
37718         * fold-const.c (fold_checksum_tree): Don't include value of
37719         expr->decl_with_vis.symtab_node in the checksum.
37721 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37723         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
37725 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
37727         PR driver/64690
37728         * gcc.c (insert_comments): New function.
37729         (try_generate_repro): Call it.
37730         (append_text): Removed.
37732 2015-01-22  Richard Biener  <rguenther@suse.de>
37734         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
37735         with IL incompatible options.  Properly honor user optimize
37736         attributes.
37738 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
37740         PR rtl-optimization/64682
37741         * combine.c (distribute_notes): When moving a death note for
37742         a register that is set in the new I2, make sure to put it
37743         before that new I2.
37745 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
37747         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
37748         not TARGET_DEFAULT.
37750 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
37752         PR debug/64511
37753         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
37754         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
37755         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
37757         PR sanitizer/64706
37758         * doc/invoke.texi (-fsanitize=vptr): Document.
37760         PR rtl-optimization/62078
37761         * dse.c: Include cfgcleanup.h.
37762         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
37763         anything call purge_all_dead_edges and cleanup_cfg at the end
37764         of the pass.
37766 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
37768         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
37769         edges.
37771 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37773         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
37774         decl attribute.
37776 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37777             Tejas Belagod <Tejas.Belagod@arm.com>
37779         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
37780         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
37781         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
37782         Removed.
37784 2015-01-21  David Sherwood  <david.sherwood@arm.com>
37785             Tejas Belagod <Tejas.Belagod@arm.com>
37787         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
37788         (aarch64_reverse_mask): New decls.
37789         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
37790         (insn_count): New mode_attr.
37791         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
37792         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
37793         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
37794         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
37795         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
37796         (aarch64_simd_st4): New patterns.
37797         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
37798         (aarch64_reverse_mask): New functions.
37800 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37802         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
37803         Declare.
37804         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
37805         addressing modes for BE.
37806         (aarch64_print_operand): Add 'R' specifier.
37807         (aarch64_simd_disambiguate_copy): Delete.
37808         (aarch64_simd_emit_reg_reg_move): New function.
37809         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
37810         in define_splits for structural moves.
37811         (mov<mode>): Use less restrictive predicates.
37812         (*aarch64_mov<mode>): Simplify and only allow for LE.
37813         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
37815 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
37817         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
37819 2015-01-21  Richard Henderson  <rth@redhat.com>
37821         PR target/64669
37822         * ccmp.c (used_in_cond_stmt_p): Remove.
37823         (expand_ccmp_expr): Don't use it.
37825 2015-01-21  Nick Clifton  <nickc@redhat.com>
37827         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
37828         PARALLELs.
37830 2015-01-21  Richard Biener  <rguenther@suse.de>
37832         PR middle-end/64313
37833         * tree-core.h (builtin_info, builtin_info_type): Turn from
37834         an object with two arrays into an array of an object with
37835         decl and two flags, implicit_p and declared_p.
37836         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
37837         set_builtin_decl, set_builtin_decl_implicit_p,
37838         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
37839         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
37840         * builtins.c (builtin_info): Adjust.
37841         * gimplify.c (gimplify_addr_expr): References to builtins
37842         that have been declared by the user makes them eligible for
37843         use by the compiler.  Call set_builtin_decl_implicit_p on them.
37845 2015-01-20  Jeff Law  <law@redhat.com>
37847         PR target/59946
37848         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
37849         allow pc-relative addresses in operand predicates or constraints.
37851 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
37853         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
37854         neon on aarch32 processors for stringops.
37856 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37858         PR ipa/63576
37859         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
37861 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37863         PR lto/45375
37864         * ipa-inline.c: Include lto-streamer.h
37865         (report_inline_failed_reason): Output source file differences and
37866         flags on optimization/target node mismatch.
37867         (can_inline_edge_p): Consider caller to be the outer inline function;
37868         be less restrictive about matching opimize and optimize_size attributes.
37869         (inline_account_function_p): Break out from ...
37870         (inline_small_functions): ... here.
37871         * ipa-inline-transform.c (clone_inlined_nodes): Use
37872         inline_account_function_p.
37873         (inline_call): Use optimize attribution; use inline_account_function_p.
37874         (inline_transform): Use opt_for_fn.
37875         * ipa-inline.h (inline_account_function_p): Declare.
37877 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
37879         PR debug/64663
37880         * dwarf2out.c (decl_piece_node): Don't put bitsize into
37881         mode if bitsize <= 0.
37882         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
37883         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
37884         sizes and positions.
37886 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
37888         * config/nios2/nios2.c (nios2_asm_file_end): Implement
37889         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
37890         needed.
37891         (TARGET_ASM_FILE_END): Define.
37893 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37895         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
37896         (struct tune_params): Use the enum.
37897         * arm.c (arm_*_tune): Update.
37898         (arm_option_override): Update.
37900 2015-01-20  Richard Biener  <rguenther@suse.de>
37902         PR ipa/64684
37903         * ipa-reference.c (add_static_var): Inline ...
37904         (analyze_function): ... here after splitting out from ...
37905         (is_proper_for_analysis): ... this.
37907 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
37909         PR target/64149
37910         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
37911         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
37912         replace the conditional with it's true branch.
37913         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
37914         (arm_lra_p): Remove.
37916 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
37918         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
37920 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37922         * config/tilegx/mul-tables.c: Move symtab.h include after
37923         coretypes.h include.
37924         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
37925         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
37926         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
37927         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
37928         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37930 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
37932         PR bootstrap/64676
37933         Revert:
37934         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
37936         PR rtl-optimization/64081
37937         * loop-iv.c (def_pred_latch_p): New function.
37938         (latch_dominating_def): Allow specific cases with non-single
37939         definitions.
37940         (iv_get_reaching_def): Likewise.
37941         (check_complex_exit_p): New function.
37942         (check_simple_exit): Use check_complex_exit_p to allow certain cases
37943         with exits not executing on any iteration.
37945 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37947         PR lto/45375
37948         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
37949         to set branch cost.
37951 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37953         PR lto/45375
37954         * i386.c (gate): Check flag_expensive_optimizations and
37955         optimize_size.
37956         (ix86_option_override_internal): Drop optimize_size condition
37957         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
37958         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
37959         MASK_PREFER_AVX128.
37960         (ix86_avx256_split_vector_move_misalign,
37961         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
37962         * sse.md (all uses of TARGET_PREFER_AVX128): Add
37963         optimize_insn_for_speed_p check.
37965 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
37967         * config/mips/mips.h (FP_ASM_SPEC): New define.
37968         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
37969         instead.
37971 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
37973         PR target/53988
37974         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
37975         nullptr for insn when reaching the first insn.
37976         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
37977         (sh_insn_operands_modified_between_p): Add nullptr check.
37978         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
37979         sign extending mem load if the insn contains any UNSPEC or
37980         UNSPEC_VOLATILE.
37982 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37984         * params.def (inline-unit-growth): Drop to 15%.
37985         * invoke.texi (inline-unit-growth): Document change.
37987 2015-01-19  Martin Liska  <mliska@suse.cz>
37989         PR ipa/64668
37990         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
37991         function for second argument of OBJ_TYPE_REF.
37993 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
37995         PR ipa/64218
37996         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
37997         whether function is an alias.
37999 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
38001         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
38002         cases.
38004 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
38006         PR rtl-optimization/64671
38007         * lra-remat.c (operand_to_remat): Don't consider jump and call
38008         insns.
38010 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
38012         PR target/59828
38013         * config/rs6000/default64.h: Include rs6000-cpus.def.
38014         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
38015         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
38016         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
38017         and POWER8.
38018         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
38019         POWER8.
38020         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
38021         pseudo-op to specify assembler dialect.
38023 2015-01-19  Martin Liska  <mliska@suse.cz>
38025         PR ipa/64664
38026         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
38027         Handle safe potentially removed nodes during filtering.
38029 2015-01-19  Martin Liska  <mliska@suse.cz>
38031         * doc/extend.texi (no_icf): Add new attribute description.
38032         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
38033         where the pass attempts to merge a function with no_icf attribute.
38035 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38037         PR target/64532
38038         * doc/md.texi (ARM Options): Document register constraints.
38040 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
38041             Andrew Pinski  <apinski@cavium.com>
38043         PR target/64304
38044         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
38045         (ashl<mode>3): Don't expand if operands[2] is not constant.
38047 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38049         PR target/64448
38050         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
38051         Match xor-and-xor RTL pattern.
38053 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
38055         PR rtl-optimization/64081
38056         * loop-iv.c (def_pred_latch_p): New function.
38057         (latch_dominating_def): Allow specific cases with non-single
38058         definitions.
38059         (iv_get_reaching_def): Likewise.
38060         (check_complex_exit_p): New function.
38061         (check_simple_exit): Use check_complex_exit_p to allow certain cases
38062         with exits not executing on any iteration.
38064 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
38066         * common.opt (fgraphite): Fix a typo.
38068 2015-01-19  Felix Yang  <felix.yang@huawei.com>
38070         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
38071         pattern.
38072         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
38073         uminp, smax_nanp, smin_nanp): New builtins.
38074         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
38075         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
38076         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
38077         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
38078         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
38079         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
38080         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
38081         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
38082         vpminnms_f32): Rewrite using builtin functions.
38084 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
38086         PR libgomp/64625
38087         * omp-low.c (offload_symbol_decl): Remove variable.
38088         (get_offload_symbol_decl): Remove function.
38089         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
38090         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
38091         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
38092         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
38093         BUILT_IN_GOACC_UPDATE don't pass it at all.
38095 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38097         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
38098         callers.
38100 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
38102         * ipa-chkp.c (chkp_produce_thunks): Add early param
38103         to split thunks production into two passes.  Keep
38104         'always_inline' function bodies after the first pass.
38105         (pass_data_ipa_chkp_early_produce_thunks): New.
38106         (pass_ipa_chkp_early_produce_thunks): New.
38107         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
38108         chkp_produce_thunks signature.
38109         (make_pass_ipa_chkp_early_produce_thunks): New.
38110         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
38111         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
38112         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
38114 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38116         * cgraph.c (cgraph_node::dump): Dump profile flags.
38118 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
38120         PR target/64652
38121         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
38122         reg appear first in the parallel.
38124 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38126         * ipa-reference.c (set_reference_optimization_summary,
38127         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
38128         disabled.
38129         (ignore_module_statics): New static var.
38130         (propagate_bits): If ipa-reference is disabled, do not look into local
38131         properties.
38132         (analyze_function): Disable analysis when ipa_reference is disabled.
38133         (generate_summary): Do not dump when reference is disabled;
38134         collect vars accessed from functions with ipa-reference disabled.
38135         (get_read_write_all_from_node): When ipa-reference is disabled, use the
38136         node flags.
38137         (gate): Enable for LTO.
38138         (ignore_edge_p): New function.
38139         (propagate): Skip functions w/o ipa-reference analysis.
38140         * optc-save-gen.awk: Handle optimize_debug correctly.
38141         * opth-gen.awk: Likewise.
38142         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
38143         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
38144         fira-share-save-slots, fira-share-spill-slots,
38145         fmodulo-sched-allow-regmoves, fpartial-inlining,
38146         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
38147         ftracer, ftree-parallelize-loops, fassociative-math,
38148         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
38149         Optimization
38150         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
38151         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
38152         Optimization.
38153         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
38154         Fix for IPA.
38156 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
38158         PR ipa/64378
38159         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
38160         flag correctly.
38161         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
38163 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
38165         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
38166         Remove duplicate option listings.
38168 2015-01-18  Felix Yang  <felix.yang@huawei.com>
38170         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
38171         (autofdo_source_profile::get_callsite_total_count,
38172         function_instance::get_function_instance_by_decl,
38173         string_table::get_index, string_table::get_index_by_decl,
38174         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
38175         Fix comment typos. Reformatting and minor code rearrangement.
38177 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38179         * config/rs6000/rs6000.md (probe_stack): Delete.
38180         (probe_stack_address): New.
38182 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38184         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
38185         to test for 32-bit ABIs, not !TARGET_POWERPC64.
38187 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
38189         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
38190         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
38191         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
38192         snafu.
38193         (rs6000_libcall_value): Use the new function.
38195 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
38197         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
38199 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
38201         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
38202         implement a more precise life analysis for it during backward scan.
38204 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
38206         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
38208 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
38210         PR rtl-optimization/52773
38211         * calls.c (emit_library_call_value): When pushing arguments use
38212         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
38213         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
38214         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
38216 2015-01-17  Jeff Law  <law@redhat.com>
38218         PR rtl-optimization/32790
38219         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
38220         not ZERO_EXTEND in SET_DESTs.
38222 2015-01-17  Alan Modra  <amodra@gmail.com>
38224         * cprop.c (do_local_cprop): Revert last change.
38226 2015-01-16  DJ Delorie  <dj@redhat.com>
38227             Nick Clifton  <nickc@redhat.com>
38229         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
38230         (addhi3_real): Likewise.  Fix [HL+0] syntax.
38231         (subqi3_real): Likewise.
38232         (subhi3_real): Likewise.
38233         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
38234         (cbranchhi4_real): Likewise.
38235         (cbranchhi4_real_inverted): Likewise.
38236         (cbranchsi4_real_lt): Likewise.
38237         (cbranchsi4_real_ge): Likewise.
38238         (cbranchsi4_real_ge): Likewise.
38239         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
38240         (sub<mode>3_virt): Likewise.
38241         (cbranchqi4_virt): Likewise.
38242         (cbranchhi4_virt): Likewise.
38243         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
38244         always use '[reg+imm]' even when imm is zero.
38245         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
38246         (rl78_general_operand): New.
38247         (rl78_nonimmediate_operand): New.
38248         (rl78_nonfar_operand): Use them.
38249         (rl78_nonfar_nonimm_operand): Likewise.
38250         (rl78_stack_based_mem): Fix.
38251         * config/rl78/constraints.md (Ibqi): New.
38252         (IBqi): New.
38253         (Wsa): New.
38254         (Wsf): New.
38255         (Cs1): Fix.
38256         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
38257         (iorqi3): Likewise.
38258         (xorqi3): Likewise.
38259         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
38261         * config/rl78/constrains (Qs8): New constraint.
38262         * config/rl78/rl78.c (rl78_flags_already_set): New function.
38263         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
38264         * config/rl78/rl78-real.md (update_Z): New attribute.
38265         Update patterns to set it.
38266         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
38267         shorter compare and branch sequence can be used.
38268         (cbranchhi4_real): Likewise.
38269         (cbranchhi4_real_inverted): Likewise.
38271         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
38272         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
38273         address space.
38274         * config/rl78/rl78.c (rl78_get_name_encoding): New.
38275         (rl78_option_override): Allow -mes0 only if C.
38276         (characterize_address): Support subregs of symbol_refs.
38277         (rl78_addr_space_address_mode): Move.  Add __near.
38278         (rl78_far_p): Likewise.
38279         (rl78_addr_space_pointer_mode): Likewise.
38280         (rl78_as_legitimate_address): Likewise.
38281         (rl78_addr_space_subset_p): Likewise.
38282         (rl78_addr_space_convert): Likewise.
38283         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
38284         symbols with -mes0.
38285         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
38286         addressing.
38287         (rl78_alloc_physical_registers_op1): Change logic to prefer
38288         symbol[BC] addressing.
38289         (frodata_section): New.
38290         (rl78_asm_init_sections): Initialize it.
38291         (rl78_select_section): Put __far readonly symbols in .frodata.
38292         (rl78_make_type_far): New.
38293         (rl78_insert_attributes): Force all readonly symbols to be
38294         __far when -mes0.
38295         (rl78_asm_out_integer): New.
38296         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
38297         * config/rl78/rl78.opt (-mes0): New.
38299         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
38300         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
38301         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
38302         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
38303         (rl78_saddr_p): New.
38304         (rl78_output_aligned_common): New.
38305         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
38306         (rl78_handle_saddr_attribute): New.
38307         (rl78_handle_naked_attribute): New.
38308         (rl78_attribute_table): Add saddr.
38309         (rl78_print_operand_1): Don't print '!' on saddr operands.
38310         (rl78_print_operand_1): Strip encodings.
38311         (rl78_sfr_p): New.
38312         (rl78_strip_name_encoding): New.
38313         (rl78_attrlist_to_encoding): New.
38314         (rl78_encode_section_info): New.
38315         (rl78_asm_init_sections): New.
38316         (rl78_select_section): New.
38317         (rl78_output_labelref): New.
38318         (rl78_output_aligned_common): New.
38319         (rl78_asm_out_integer): New.
38320         (rl78_asm_ctor_dtor): New.
38321         (rl78_asm_constructor): New.
38322         (rl78_asm_destructor): New.
38324         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
38325         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
38326         (transcode_memory_rtx): Update.
38327         (rl78_expand_epilogue): Use A_REG instead of 0.
38329 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38331         * config/arm/arm-protos.h (struct tune_params): New field
38332         sched_autopref_queue_depth.
38333         * config/arm/arm.c (sched-int.h): Include header.
38334         (arm_first_cycle_multipass_dfa_lookahead_guard,)
38335         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
38336         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
38337         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
38338         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
38339         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
38340         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
38341         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
38342         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
38343         * config/arm/t-arm (arm.o): Update.
38344         * haifa-sched.c (update_insn_after_change): Update.
38345         (rank_for_schedule): Use auto-prefetcher model, if requested.
38346         (autopref_multipass_init): New static function.
38347         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
38348         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
38349         variable for debug dumps.
38350         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
38351         (autopref_multipass_dfa_lookahead_guard): New global function that
38352         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
38353         (init_h_i_d): Update.
38354         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
38355         * sched-int.h (enum autopref_multipass_data_status): New const enum.
38356         (autopref_multipass_data_): Structure for auto-prefetcher data.
38357         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
38358         (struct _haifa_insn_data:autopref_multipass_data): New field.
38359         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
38360         (autopref_multipass_dfa_lookahead_guard): Declare.
38362 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38364         * rtlanal.c (get_base_term): Handle SCRATCH.
38366 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38368         * config/aarch64/aarch64.c
38369         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
38370         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38371         * config/arm/arm.c
38372         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
38373         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
38375 2015-01-17  Alan Modra  <amodra@gmail.com>
38377         * cprop.c (do_local_cprop): Disallow replacement of fixed
38378         hard registers.
38380 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38382         PR target/62066
38383         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
38384         early return 0.
38386 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38388         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
38389         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
38391 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38393         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
38394         * config/arm/thumb1.md: ... Here.
38396 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38398         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
38399         TImode for TARGET_32BIT.
38401 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38403         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
38404         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
38405         as ...
38406         (rs6000_abi_word_mode): New function.
38408 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38410         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
38411         instead of UNITS_PER_WORD to describe the size of stack slots.
38413 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38415         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
38416         as rs6000_promote_function_mode.  Move comment to there.
38417         (rs6000_promote_function_mode): New function.
38419 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
38421         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
38422         -mpowerpc64 is active.
38424 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38426         PR middle-end/64353
38427         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
38428         virtuals on start.
38430 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38432         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
38433         introduced in revision 219724.
38435 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38436             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38438         PR target/64263
38439         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
38440         destination is not a GP reg.
38441         (*movdi_aarch64): Likewise.
38443 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
38445         PR target/64623
38446         * config/rs6000/default64.h: Revert ISA change.
38448 2015-01-16  Richard Biener  <rguenther@suse.de>
38450         PR middle-end/64614
38451         * tree-ssa-uninit.c: Include tree-cfg.h.
38452         (MAX_SWITCH_CASES): New define.
38453         (convert_control_dep_chain_into_preds): Handle switch statements.
38454         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
38455         (normalize_one_pred_1): Do not split bit-manipulations.
38456         Record (x & CST).
38458 2015-01-16  Richard Biener  <rguenther@suse.de>
38460         PR tree-optimization/64568
38461         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
38462         complex load rewriting for TARGET_MEM_REFs.
38464 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
38466         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
38468 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
38470         PR target/64149
38471         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
38472         variable.
38473         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
38474         (aarch64_lra_p): Remove.
38476 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38478         PR target/64363
38479         * ipa-chkp.h (chkp_instrumentable_p): New.
38480         * ipa-chkp.c: Include tree-inline.h.
38481         (chkp_instrumentable_p): New.
38482         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
38483         Fix processing of not instrumentable functions.
38484         (chkp_versioning): Use chkp_instrumentable_p. Warn about
38485         not instrumentable functions.
38486         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
38487         chkp_instrumentable_p.
38488         * tree-inline.h (copy_forbidden): New.
38489         * tree-inline.c (copy_forbidden): Not static anymore.
38491 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38493         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
38494         ptr1, ptr2 unused.
38496 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38498         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
38499         type OP_OUT to OP_INOUT.
38501 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
38503         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
38504         (high x) y) to y if x and y have the same base.
38506 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
38508         * config/arm/cortex-a57.md: New.
38509         * config/aarch64/aarch64.md: Include it.
38510         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
38511         * config/aarch64/aarch64-tune.md: Regenerate.
38513 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
38515         PR target/64015
38516         * ccmp.c (expand_ccmp_next): New function.
38517         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
38518         and compare insn sequence.
38519         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
38520         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
38521         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
38522         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
38523         (*ccmp_ior): Changed to ccmp_ior<mode>.
38524         (cmp<mode>): New pattern.
38525         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
38526         parameters.
38527         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
38529 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
38531         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
38532         _mm256_bsrli_epi128): New.
38533         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
38535 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38537         * expmed.c (store_bit_field_using_insv): Improve warning message.
38538         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
38540 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
38542         PR rtl-optimization/64011
38543         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
38544         there is partial overflow.
38546 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38548         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
38549         prototype.
38550         (nds32_expand_epilogue_v3pop): Likewise.
38551         * config/nds32/nds32.md (sibcall): Define this for sibling call
38552         optimization.
38553         (sibcall_register): Likewise.
38554         (sibcall_immediate): Likewise.
38555         (sibcall_value): Likewise.
38556         (sibcall_value_register): Likewise.
38557         (sibcall_value_immediate): Likewise.
38558         (sibcall_epilogue): Likewise.
38559         (epilogue): Pass false to indicate this is not a sibcall epilogue.
38560         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
38561         (nds32_expand_epilogue_v3pop): Likewise.
38563 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38565         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
38566         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
38567         (return_internal): New.
38568         (return): Define this named pattern.
38569         (simple_return): Define this named pattern.
38570         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
38571         pattern instead of unspec_volatile_func_return.
38572         (nds32_expand_epilogue_v3pop): Likewise.
38573         (nds32_can_use_return_insn): New function.
38575 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38577         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
38578         * config/nds32/nds32.md (pop25return): New.
38579         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
38580         pop25return pattern.
38582 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38584         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
38585         -mforbid-fp-as-gp, and -mex9 options.
38587 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
38589         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
38590         remove -mgp-direct option.
38592 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38594         * doc/invoke.texi (--param early-inlining-insns): Update default value.
38595         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
38597 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38599         * ipa-inline.c (inline_small_functions): Work around hints
38600         cache issue.
38602 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
38604         PR target/59710
38605         * doc/invoke.texi (Option Summary): Document new Nios II
38606         -mgpopt= syntax.
38607         (Nios II Options): Likewise.
38608         * config/nios2/nios2.opt: Add -mgpopt= option support.
38609         Modify existing -mgpopt and -mno-gpopt options to be aliases.
38610         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
38611         * config/nios2/nios2.c (nios2_option_override): Adjust
38612         -mgpopt defaulting.
38613         (nios2_in_small_data_p): Return true for explicit small data
38614         sections even with -G0.
38615         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
38616         option choices.
38618 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38620         PR ipa/64612
38621         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
38622         of comdat locals.
38623         (inline_call): Fix removal of aliases.
38625 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
38627         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
38628         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
38629         * opts.c (common_handle_option): Add -fsanitize=vptr.
38630         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
38631         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
38632         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
38633         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
38634         (ubsan_expand_vptr_ifn): New prototype.
38635         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
38636         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
38637         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
38638         expand_LOOP_VECTORIZED): Make argument nameless, remove
38639         ATTRIBUTE_UNUSED.
38640         (expand_UBSAN_VPTR): New function.
38641         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
38642         in fn spec.
38643         (UBSAN_VPTR): New internal function.
38644         * sanopt.c (tree_map_traits): Renamed to ...
38645         (sanopt_tree_map_traits): ... this.
38646         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
38647         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
38648         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
38649         (maybe_optimize_ubsan_vptr_ifn): New function.
38650         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
38651         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
38652         -fsanitize=vptr.
38653         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
38654         internal calls like pure functions for aliasing, even when they
38655         have other side-effects that prevent making them ECF_PURE.
38656         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
38657         (ubsan_expand_vptr_ifn): New function.
38659 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38661         PR rtl-optimization/64110
38662         * stmt.c (parse_output_constraint): Process '^' and '$'.
38663         (parse_input_constraint): Ditto.
38664         * lra-constraints.c (process_alt_operands): Process the new
38665         constraints.
38666         * ira-costs.c (record_reg_classes): Process the new constraint
38667         '^'.
38668         * genoutput.c (indep_constraints): Add '^' and '$'.
38669         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
38670         * doc/md.texi: Add description of the new constraints.
38672 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
38673             Bernd Schmidt  <bernds@codesourcery.com>
38674             Cesar Philippidis  <cesar@codesourcery.com>
38675             James Norris  <jnorris@codesourcery.com>
38676             Tom de Vries  <tom@codesourcery.com>
38677             Ilmir Usmanov  <i.usmanov@samsung.com>
38678             Dmitry Bocharnikov  <dmitry.b@samsung.com>
38679             Evgeny Gavrin  <e.gavrin@samsung.com>
38680             Jakub Jelinek  <jakub@redhat.com>
38682         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
38683         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38684         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38685         New function types.
38686         * builtins.c: Include "gomp-constants.h".
38687         (expand_builtin_acc_on_device): New function.
38688         (expand_builtin, is_inexpensive_builtin): Handle
38689         BUILT_IN_ACC_ON_DEVICE.
38690         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
38691         New macros.
38692         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
38693         flag_openmp.
38694         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
38695         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
38696         i386/intelmic-offload.h.
38697         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
38698         to libgomp and its dependencies.
38699         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
38700         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
38701         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
38702         * config/ia64/hpux.h (LIB_SPEC): Likewise.
38703         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
38704         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
38705         * doc/generic.texi: Update for OpenACC changes.
38706         * doc/gimple.texi: Likewise.
38707         * doc/invoke.texi: Likewise.
38708         * doc/sourcebuild.texi: Likewise.
38709         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
38710         GF_OMP_FOR_KIND_OACC_LOOP.
38711         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
38712         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
38713         GF_OMP_TARGET_KIND_OACC_UPDATE,
38714         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38715         Dump more data.
38716         * gimple.c: Update comments for OpenACC changes.
38717         * gimple.def: Likewise.
38718         * gimple.h: Likewise.
38719         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
38720         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38721         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
38722         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
38723         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
38724         appropriate place.
38725         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
38726         * gimplify.c: Include "gomp-constants.h".
38727         Update comments for OpenACC changes.
38728         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
38729         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
38730         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38731         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
38732         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38733         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38734         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
38735         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38736         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
38737         OMP_CLAUSE_SEQ.
38738         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
38739         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38740         OMP_CLAUSE_SET_MAP_KIND.
38741         (gimplify_oacc_cache): New function.
38742         (gimplify_omp_for): Handle OACC_LOOP.
38743         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
38744         OACC_DATA.
38745         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
38746         OACC_EXIT_DATA, OACC_UPDATE.
38747         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
38748         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
38749         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
38750         (gimplify_body): Consider flag_openacc next to flag_openmp.
38751         * lto-streamer-out.c: Include "gomp-constants.h".
38752         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
38753         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
38754         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
38755         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
38756         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
38757         (BUILT_IN_ACC_ON_DEVICE): New builtins.
38758         * omp-low.c: Include "gomp-constants.h".
38759         Update comments for OpenACC changes.
38760         (struct omp_context): Add reduction_map, gwv_below, gwv_this
38761         members.
38762         (extract_omp_for_data, use_pointer_for_field, install_var_field)
38763         (new_omp_context, delete_omp_context, scan_sharing_clauses)
38764         (create_omp_child_function, scan_omp_for, scan_omp_target)
38765         (check_omp_nesting_restrictions, lower_reduction_clauses)
38766         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
38767         Update for OpenACC changes.
38768         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
38769         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
38770         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
38771         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
38772         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
38773         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
38774         OMP_CLAUSE_MAP_*.
38775         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
38776         Handle GF_OMP_FOR_KIND_OACC_LOOP.
38777         (expand_omp_target, lower_omp_target): Handle
38778         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
38779         GF_OMP_TARGET_KIND_OACC_UPDATE,
38780         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
38781         GF_OMP_TARGET_KIND_OACC_DATA.
38782         (pass_expand_omp::execute, execute_lower_omp)
38783         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
38784         flag_openmp.
38785         (offload_symbol_decl): New variable.
38786         (oacc_get_reduction_array_id, oacc_max_threads)
38787         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
38788         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
38789         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
38790         (oacc_gimple_assign, oacc_initialize_reduction_data)
38791         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
38792         functions.
38793         (is_targetreg_ctx): Remove function.
38794         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
38795         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
38796         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
38797         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
38798         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
38799         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
38800         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
38801         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
38802         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
38803         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
38804         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
38805         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
38806         * tree-core.h: Update comments for OpenACC changes.
38807         (enum omp_clause_map_kind): Remove.
38808         (struct tree_omp_clause): Change type of map_kind member from enum
38809         omp_clause_map_kind to unsigned char.
38810         * tree-inline.c: Update comments for OpenACC changes.
38811         * tree-nested.c: Likewise.  Include "gomp-constants.h".
38812         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
38813         (convert_tramp_reference_stmt, convert_gimple_call): Update for
38814         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
38815         OMP_CLAUSE_SET_MAP_KIND.
38816         * tree-pretty-print.c: Include "gomp-constants.h".
38817         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
38818         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
38819         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
38820         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
38821         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
38822         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
38823         instead of OMP_CLAUSE_MAP_*.
38824         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
38825         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
38826         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
38827         * tree-streamer-in.c: Include "gomp-constants.h".
38828         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
38829         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
38830         * tree-streamer-out.c: Include "gomp-constants.h".
38831         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
38832         OMP_CLAUSE_MAP_*.
38833         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
38834         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
38835         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
38836         * tree.c (omp_clause_num_ops): Update accordingly.
38837         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
38838         Likewise.
38839         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
38840         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
38841         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
38842         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
38843         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
38844         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
38845         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
38846         (OMP_CLAUSE_SET_MAP_KIND): New macro.
38847         * varpool.c (varpool_node::get_create): Consider flag_openacc next
38848         to flag_openmp.
38849         * config/i386/intelmic-offload.h: New file.
38850         * config/nvptx/offload.h: Likewise.
38852 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38854         * explow.h: Remove duplicate contents.
38855         * dojump.h: Likewise.
38857 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
38859         * arm.c (arm_xgene_tune): Add default initializer for instruction
38860         fusion.
38862 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
38864         PR ipa/64068
38865         PR ipa/64559
38866         * ipa.c (symbol_table::remove_unreachable_nodes):
38867         Do not put abstract origins into boundary.
38869 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
38871         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
38872         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
38874 2015-01-15  Steve Ellcey  <sellcey@mips.com>
38876         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
38877         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
38878         builtins.def, and chkp-builtins.def.
38880 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
38882         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
38883         ISA 2.7 (POWER8).
38885 2015-01-15  Richard Biener  <rguenther@suse.de>
38887         PR tree-optimization/61743
38888         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
38889         information on PHIs for some simple cases.
38891 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38893         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
38894         Include xgene1.md.
38895         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
38896         * config/arm/arm-cores.def (xgene1): New entry.
38897         * config/arm/arm-tables.opt: Regenerate.
38898         * config/arm/arm-tune.md: Regenerate.
38899         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
38901 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
38903         * tree-if-conv.c: Include hash-map.h.
38904         (aggressive_if_conv): New variable.
38905         (fold_build_cond_expr): Add simplification of non-zero condition.
38906         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
38907         destination block is not always executed.
38908         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
38909         than two predecessors if AGGRESSIVE_IF_CONV is true.
38910         (if_convertible_stmt_p): Fix commentary.
38911         (all_preds_critical_p): New function.
38912         (has_pred_critical_p): New function.
38913         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
38914         BB can have more than two predecessors and all incoming edges can be
38915         critical.
38916         (predicate_bbs): Skip predication for loop exit block, use build2_loc
38917         to compute predicate for true edge.
38918         (find_phi_replacement_condition): Delete this function.
38919         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
38920         Allow interchange PHI arguments if EXTENDED is false.
38921         Change check that block containing reduction statement candidate
38922         is predecessor of phi-block since phi may have more than two arguments.
38923         (phi_args_hash_traits): New helper structure.
38924         (struct phi_args_hash_traits): New type.
38925         (phi_args_hash_traits::hash): New function.
38926         (phi_args_hash_traits::equal_keys): New function.
38927         (gen_phi_arg_condition): New function.
38928         (predicate_scalar_phi): Add handling of phi nodes with more than two
38929         arguments, delete COND and TRUE_BB arguments, insert body of
38930         find_phi_replacement_condition to predicate ordinary phi nodes.
38931         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
38932         delete call of find_phi_replacement_condition and invoke
38933         predicate_scalar_phi with two arguments.
38934         (insert_gimplified_predicates): Add assert that non-predicated block
38935         don't have statements to insert.
38936         (ifcvt_split_critical_edges): New function.
38937         (ifcvt_split_def_stmt): Likewise.
38938         (ifcvt_walk_pattern_tree): Likewise.
38939         (stmt_is_root_of_bool_pattern): Likewise.
38940         (ifcvt_repair_bool_pattern): Likewise.
38941         (ifcvt_local_dce): Likewise.
38942         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
38943         is copy of inner or outer loop force_vectorize field, invoke
38944         ifcvt_split_critical_edges, ifcvt_local_dce and
38945         ifcvt_repair_bool_pattern for aggressive if-conversion.
38947 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
38949         * config/aarch64/aarch64.md: Include xgene1.md.
38950         * config/aarch64/xgene1.md: New file.
38952 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
38954         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
38955         xgene1 (APM XGene-1) core definition.
38956         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
38957         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
38958         * doc/invoke.texi: Document -mcpu=xgene1.
38960 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38962         * dojump.h: New header file.
38963         * explow.h: Likewise.
38964         * expr.h: Remove includes.
38965         Move expmed.c prototypes to expmed.h.
38966         Move dojump.c prototypes to dojump.h.
38967         Move alias.c prototypes to alias.h.
38968         Move explow.c prototypes to explow.h.
38969         Move calls.c prototypes to calls.h.
38970         Move emit-rtl.c prototypes to emit-rtl.h.
38971         Move varasm.c prototypes to varasm.h.
38972         Move stmt.c prototypes to stmt.h.
38973         (saved_pending_stack_adjust): Move to dojump.h.
38974         (adjust_address): Move to explow.h.
38975         (adjust_address_nv): Move to emit-rtl.h.
38976         (adjust_bitfield_address): Likewise.
38977         (adjust_bitfield_address_size): Likewise.
38978         (adjust_bitfield_address_nv): Likewise.
38979         (adjust_automodify_address_nv): Likewise.
38980         * explow.c (expr_size): Move to expr.c.
38981         (int_expr_size): Likewise.
38982         (tree_expr_size): Likewise.
38983         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
38984         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
38985         * genemit.c (main): Generate includes statistics.h, real.h,
38986         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
38987         stmt.h.
38988         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
38989         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
38990         explow.h, emit-rtl.h, stmt.h.
38991         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
38992         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
38993         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
38994         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
38995         emit-rtl.h, varasm.h, stmt.h.
38996         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
38997         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
38998         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
38999         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
39000         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39001         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
39002         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
39003         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
39004         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
39005         tm.h tree.h varasm.h vec.h wide-int.h.
39006         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39007         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39008         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
39009         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
39010         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
39011         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
39012         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
39013         * loop-iv.c: Likewise.
39014         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
39015         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
39016         statistics.h stmt.h tree.h varasm.h wide-int.h.
39017         * lra-constraints.c: Likewise.
39018         * lra-eliminations.c: Likewise.
39019         * lra-lives.c: Likewise.
39020         * lra-remat.c: Likewise.
39021         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39022         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
39023         statistics.h stmt.h tree.h varasm.h wide-int.h.
39024         * hw-doloop.c: Likewise.
39025         * ira-color.c: Likewise.
39026         * ira-emit.c: Likewise.
39027         * loop-doloop.c: Likewise.
39028         * loop-invariant.c: Likewise.
39029         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39030         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
39031         statistics.h stmt.h tree.h varasm.h wide-int.h.
39032         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
39033         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
39034         statistics.h stmt.h tree.h varasm.h wide-int.h.
39035         * combine-stack-adj.c: Likewise.
39036         * cse.c: Likewise.
39037         * ddg.c: Likewise.
39038         * ifcvt.c: Likewise.
39039         * ira-costs.c: Likewise.
39040         * jump.c: Likewise.
39041         * lra-coalesce.c: Likewise.
39042         * lra-spills.c: Likewise.
39043         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39044         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
39045         stmt.h varasm.h wide-int.h.
39046         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
39047         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39048         varasm.h.
39049         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
39050         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
39051         statistics.h stmt.h varasm.h wide-int.h.
39052         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
39053         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
39054         varasm.h wide-int.h.
39055         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
39056         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39057         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
39058         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
39059         statistics.h stmt.h.
39060         * config/tilepro/tilepro.c: Likewise.
39061         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
39062         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
39063         * config/pdp11/pdp11.c: Likewise.
39064         * config/xtensa/xtensa.c: Likewise.
39065         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
39066         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
39067         varasm.h.
39068         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39069         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39070         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
39071         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39072         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
39073         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
39074         * rtl-chkp.c: Likewise.
39075         * tree-chkp-opt.c: Likewise.
39076         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
39077         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
39078         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
39079         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39080         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39081         statistics.h stmt.h.
39082         * tree-vect-data-refs.c: Likewise.
39083         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
39084         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39085         rtl.h statistics.h stmt.h varasm.h.
39086         * internal-fn.c: Likewise.
39087         * ipa-icf-gimple.c: Likewise.
39088         * lto-section-out.c: Likewise.
39089         * tree-data-ref.c: Likewise.
39090         * tree-nested.c: Likewise.
39091         * tree-outof-ssa.c: Likewise.
39092         * tree-predcom.c: Likewise.
39093         * tree-pretty-print.c: Likewise.
39094         * tree-scalar-evolution.c: Likewise.
39095         * tree-ssa-strlen.c: Likewise.
39096         * tree-vect-loop.c: Likewise.
39097         * tree-vect-patterns.c: Likewise.
39098         * tree-vect-slp.c: Likewise.
39099         * tree-vect-stmts.c: Likewise.
39100         * tsan.c: Likewise.
39101         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39102         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
39103         stmt.h.
39104         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
39105         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39106         statistics.h stmt.h varasm.h.
39107         * loop-unroll.c: Likewise.
39108         * ubsan.c: Likewise.
39109         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
39110         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
39111         stmt.h varasm.h.
39112         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39113         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
39114         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
39115         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39116         statistics.h stmt.h.
39117         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
39118         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
39119         statistics.h stmt.h varasm.h.
39120         * gimple-match-head.c: Likewise.
39121         * lto-cgraph.c: Likewise.
39122         * lto-section-in.c: Likewise.
39123         * lto-streamer-in.c: Likewise.
39124         * lto-streamer-out.c: Likewise.
39125         * tree-affine.c: Likewise.
39126         * tree-cfg.c: Likewise.
39127         * tree-cfgcleanup.c: Likewise.
39128         * tree-if-conv.c: Likewise.
39129         * tree-into-ssa.c: Likewise.
39130         * tree-ssa-alias.c: Likewise.
39131         * tree-ssa-copyrename.c: Likewise.
39132         * tree-ssa-dse.c: Likewise.
39133         * tree-ssa-forwprop.c: Likewise.
39134         * tree-ssa-live.c: Likewise.
39135         * tree-ssa-math-opts.c: Likewise.
39136         * tree-ssa-pre.c: Likewise.
39137         * tree-ssa-sccvn.c: Likewise.
39138         * tree-tailcall.c: Likewise.
39139         * tree-vect-generic.c: Likewise.
39140         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39141         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
39142         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39143         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
39144         * varasm.c: Likewise.
39145         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39146         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
39147         varasm.h.
39148         * init-regs.c: Likewise.
39149         * ira.c: Likewise.
39150         * omp-low.c: Likewise.
39151         * stack-ptr-mod.c: Likewise.
39152         * tree-ssa-reassoc.c: Likewise.
39153         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39154         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
39155         varasm.h.
39156         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39157         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
39158         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39159         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
39160         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39161         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
39162         * tree-ssa-phiopt.c: Likewise.
39163         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39164         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39165         * config/fr30/fr30.c: Likewise.
39166         * config/frv/frv.c: Likewise.
39167         * expr.c: Likewise.
39168         * final.c: Likewise.
39169         * optabs.c: Likewise.
39170         * passes.c: Likewise.
39171         * simplify-rtx.c: Likewise.
39172         * stmt.c: Likewise.
39173         * toplev.c: Likewise.
39174         * var-tracking.c: Likewise.
39175         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39176         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39177         * lower-subreg.c: Likewise.
39178         * postreload-gcse.c: Likewise.
39179         * ree.c: Likewise.
39180         * reginfo.c: Likewise.
39181         * store-motion.c: Likewise.
39182         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39183         fixed-value.h hashtab.h real.h stmt.h varasm.h.
39184         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39185         fixed-value.h hashtab.h statistics.h stmt.h.
39186         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39187         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
39188         * except.c: Likewise.
39189         * explow.c: Likewise.
39190         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39191         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
39192         varasm.h.
39193         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39194         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
39195         * tree-ssa-structalias.c: Likewise.
39196         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39197         fixed-value.h insn-config.h real.h statistics.h.
39198         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39199         fixed-value.h insn-config.h real.h statistics.h stmt.h.
39200         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39201         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39202         * cfgbuild.c: Likewise.
39203         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39204         fixed-value.h real.h rtl.h statistics.h stmt.h.
39205         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39206         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39207         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39208         fixed-value.h real.h statistics.h stmt.h.
39209         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
39210         fixed-value.h real.h statistics.h stmt.h varasm.h.
39211         * cprop.c: Likewise.
39212         * modulo-sched.c: Likewise.
39213         * postreload.c: Likewise.
39214         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39215         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
39216         statistics.h stmt.h varasm.h.
39217         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
39218         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39219         rtl.h statistics.h stmt.h varasm.h.
39220         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
39221         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
39222         varasm.h.
39223         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
39224         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
39225         varasm.h.
39226         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
39227         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
39228         varasm.h.
39229         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
39230         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39231         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39232         function.h real.h statistics.h stmt.h varasm.h.
39233         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39234         insn-config.h real.h statistics.h stmt.h.
39235         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
39236         statistics.h stmt.h.
39237         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
39238         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
39239         statistics.h stmt.h varasm.h.
39240         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
39241         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
39242         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39243         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
39244         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
39245         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
39246         statistics.h stmt.h varasm.h.
39247         * ipa-polymorphic-call.c: Likewise.
39248         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
39249         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39250         statistics.h stmt.h.
39251         * config/c6x/c6x.c: Likewise.
39252         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
39253         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
39254         statistics.h stmt.h varasm.h.
39255         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
39256         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
39257         stmt.h varasm.h.
39258         * ipa-split.c: Likewise.
39259         * tree-eh.c: Likewise.
39260         * tree-ssa-dce.c: Likewise.
39261         * tree-ssa-loop-niter.c: Likewise.
39262         * tree-vrp.c: Likewise.
39263         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
39264         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
39265         stmt.h.
39266         * config/nds32/nds32-fp-as-gp.c: Likewise.
39267         * config/nds32/nds32-intrinsic.c: Likewise.
39268         * config/nds32/nds32-isr.c: Likewise.
39269         * config/nds32/nds32-md-auxiliary.c: Likewise.
39270         * config/nds32/nds32-memory-manipulation.c: Likewise.
39271         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
39272         * config/nds32/nds32-predicates.c: Likewise.
39273         * config/nds32/nds32.c: Likewise.
39274         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
39275         fixed-value.h hashtab.h real.h statistics.h.
39276         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
39277         fixed-value.h hashtab.h real.h statistics.h stmt.h.
39278         * config/arm/arm.c: Likewise.
39279         * config/avr/avr.c: Likewise.
39280         * config/bfin/bfin.c: Likewise.
39281         * config/h8300/h8300.c: Likewise.
39282         * config/i386/i386.c: Likewise.
39283         * config/ia64/ia64.c: Likewise.
39284         * config/iq2000/iq2000.c: Likewise.
39285         * config/m32c/m32c.c: Likewise.
39286         * config/m32r/m32r.c: Likewise.
39287         * config/m68k/m68k.c: Likewise.
39288         * config/mcore/mcore.c: Likewise.
39289         * config/mep/mep.c: Likewise.
39290         * config/mips/mips.c: Likewise.
39291         * config/mn10300/mn10300.c: Likewise.
39292         * config/moxie/moxie.c: Likewise.
39293         * config/pa/pa.c: Likewise.
39294         * config/rl78/rl78.c: Likewise.
39295         * config/rx/rx.c: Likewise.
39296         * config/s390/s390.c: Likewise.
39297         * config/sh/sh.c: Likewise.
39298         * config/sparc/sparc.c: Likewise.
39299         * config/spu/spu.c: Likewise.
39300         * config/stormy16/stormy16.c: Likewise.
39301         * config/v850/v850.c: Likewise.
39302         * config/vax/vax.c: Likewise.
39303         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
39304         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
39305         * config/msp430/msp430.c: Likewise.
39306         * predict.c: Likewise.
39307         * value-prof.c: Likewise.
39308         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
39309         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
39310         * config/microblaze/microblaze.c: Likewise.
39311         * config/nios2/nios2.c: Likewise.
39312         * config/rs6000/rs6000.c: Likewise.
39313         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39314         insn-config.h real.h rtl.h statistics.h stmt.h.
39315         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
39316         insn-config.h real.h statistics.h stmt.h.
39317         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
39318         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
39319         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
39320         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
39321         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
39322         fixed-value.h real.h statistics.h stmt.h.
39323         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
39324         fixed-value.h statistics.h stmt.h.
39325         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
39326         stmt.h.
39328 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
39330         * gengtype.c (create_user_defined_type): Workaround
39331         -Wmaybe-uninitialized false positives.
39332         * cse.c (fold_rtx): Likewise.
39333         * loop-invariant.c (gain_for_invariant): Likewise.
39335 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
39337         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
39338         set the memory attributes in all cases but clear MEM_EXPR if need be.
39340 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
39342         PR tree-optimization/64434
39343         * cfgexpand.c (reorder_operands): New function.
39344         (expand_gimple_basic_block): Insert call of reorder_operands if
39345         optimized is true.
39347 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
39349         * config/mips/micromips.md (*swp): Remove explicit parallel.
39350         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
39351         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
39352         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
39353         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
39354         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
39355         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
39356         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
39357         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
39358         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
39359         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
39360         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
39361         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
39362         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
39363         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
39364         (mips_wrdsp): Likewise.
39365         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
39366         parallel.
39367         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
39368         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
39369         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
39370         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
39371         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
39372         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
39373         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
39374         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
39375         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
39377 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39379         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
39380         (mips_print_operand): Support 'y' to print exact log2 in decimal
39381         of a const_int.
39382         * config/mips/mips.h (ISA_HAS_LSA): New define.
39383         (ISA_HAS_DLSA): Likewise.
39384         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
39385         * config/mips/predicates.md (const_immlsa_operand): New predicate.
39387 2015-01-15  Martin Liska  <mliska@suse.cz>
39389         PR target/64377
39390         * optc-save-gen.awk: Add support for array types.
39392 2015-01-15  Richard Biener  <rguenther@suse.de>
39394         PR middle-end/64365
39395         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
39396         for MEM_REF access functions with the same base can never partially
39397         overlap.
39399 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
39401         * common.opt: New option -fstack-protector-explicit.
39402         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
39403         (stack_protect_decl_phase): Handle stack_protect attribute for
39404         explicit stack protection requests.
39405         (expand_used_vars): Similarly.
39406         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
39407         * doc/extend.texi: Add documentation for "stack_protect" attribute.
39408         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
39410 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
39412         PR target/53988
39413         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
39414         reg-reg copies.
39415         (sh_extending_set_of_reg): New struct.
39416         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
39417         sh_remove_reg_dead_or_unused_notes): New Declarations.
39418         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
39419         sh_find_extending_set_of_reg, sh_split_tst_subregs,
39420         sh_extending_set_of_reg::use_as_extended_reg): New functions.
39421         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
39422         convert to insn_and_split and use new function sh_split_tst_subregs.
39424 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
39426         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
39427         option.
39428         (Optimization Options): Move -fuse-ld documentation to...
39429         (Link Options): ...here.
39431 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39433         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
39434         offsets.
39435         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
39436         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
39437         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
39438         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
39439         instead of ZR for the memory operand of LL/SC.
39440         (compare_and_swap_12, sync_add<mode>): Likewise.
39441         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
39442         (sync_new_<optab>_12, sync_nand_12): Likewise.
39443         (sync_old_nand_12, sync_new_nand_12): Likewise.
39444         (sync_sub<mode>, sync_old_add<mode>): Likewise.
39445         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
39446         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
39447         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
39448         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
39449         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
39450         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
39451         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
39452         * doc/md.texi (ZC): Update description.
39454 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39456         * builtins.c (expand_builtin_atomic_exchange): Remove error when
39457         memory model is CONSUME.
39458         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
39459         expand_builtin_atomic_store): Change invalid memory model errors to
39460         warnings.
39461         (expand_builtin_atomic_clear): Change invalid model errors to warnings
39462         and issue warning for CONSUME.
39464 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
39466         * lto-cgraph: Update function comments for
39467         lto_symtab_encoder_encode_*.
39469 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39471         * Makefile.in (site.exp): Do not set ENABLE_LTO.
39473 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
39475         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
39476         * lto-cgraph.c (select_what_to_stream): Remove argument, use
39477         lto_stream_offload_p instead.
39478         * lto-streamer.h (select_what_to_stream): Remove argument.
39479         * passes.c (ipa_write_summaries): Likewise.
39480         * tree-pass.h (ipa_write_summaries): Likewise.
39482 2015-01-14  Richard Biener  <rguenther@suse.de>
39484         PR tree-optimization/59354
39485         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
39486         groups larger than the slp group size as having gaps.
39488 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
39490         PR middle-end/59448
39491         * builtins.c (get_memmodel): Promote consume to acquire always.
39493 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39495         PR target/64386
39496         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
39497         V32HImode.
39499 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39501         PR target/64393
39502         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
39503         Enable AVX512BW.
39504         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
39505         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
39506         AVX512VBMI, as it implies AVX512BW.
39508 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
39510         PR target/64387
39511         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
39512         (vec_unpacks_hi_v16sf): Ditto.
39514 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39516         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
39517         is not available.
39519 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39521         * doc/invoke.texi (mapcs): Mention deprecation.
39522         (mapcs-frame): Likewise.
39524 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39526         PR target/64453
39527         * config/arm/arm.c (callee_saved_reg_p): Define.
39528         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
39529         register is callee saved instead of !call_used_regs[reg].
39530         (thumb1_compute_save_reg_mask): Likewise.
39532 2015-01-14  Hale Wang  <hale.wang@arm.com>
39534         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
39535         Cortex-M7.
39537 2015-01-14  Richard Biener  <rguenther@suse.de>
39539         PR lto/64415
39540         * tree-inline.c (insert_debug_decl_map): Check destination
39541         function MAY_HAVE_DEBUG_STMTS.
39542         (insert_init_debug_bind): Likewise.
39543         (insert_init_stmt): Remove redundant check.
39544         (remap_gimple_stmt): Drop debug stmts if the destination
39545         function has var-tracking assignments disabled.
39547 2015-01-14  Martin Liska  <mliska@suse.cz>
39549         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
39550         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
39552 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39554         PR target/64460
39555         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
39556         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
39558 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
39560         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
39561         level from an ARCH; do not inject the default.
39562         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
39563         MIPS_ISA_LEVEL_SPEC.
39564         (MIPS_ISA_NAN2008_SPEC): Update comment.
39565         (BASE_DRIVER_SELF_SPECS): Likewise.
39566         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
39567         MIPS_DEFAULT_ISA_LEVEL_SPEC.
39568         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
39569         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
39570         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
39572 2015-01-14  Richard Biener  <rguenther@suse.de>
39574         PR tree-optimization/64493
39575         PR tree-optimization/64495
39576         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
39577         assign the proper vectorized PHI to the inner loop exit PHIs.
39579 2015-01-14  Joey Ye  <joey.ye@arm.com>
39581         * config/arm/arm.c (arm_compute_save_reg_mask):
39582         Do not save lr in case of tail call.
39583         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
39585 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
39587         * tree-vrp.c (check_array_ref): Emit more warnings
39588         for warn_array_bounds >= 2.
39589         * common.opt: New option -Warray-bounds=.
39590         * doc/invoke.texi: Document -Warray-bounds=.
39592 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
39594         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
39595         (mforbid-fp-as-gp): Remove.
39596         (mex9): Remove.
39597         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
39598         (nds32_symbol_load_store_p): Remove.
39599         (nds32_fp_as_gp_check_available): Clean up implementation.
39600         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
39601         cases.
39602         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
39603         fp-as-gp and ex9 cases.
39605 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39607         * tree-profile.c (init_ic_make_global_vars): Drop workaround
39608         for bintuils bug 14342.
39609         (init_ic_make_global_vars): Likewise.
39610         (gimple_init_edge_profiler): Likewise.
39611         (gimple_gen_ic_func_profiler): Likewise.
39613 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
39615         * ipa-inline.c (inline_small_functions): Swap the operands in
39616         enum.
39618 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39620         PR ipa/64481
39621         * ipa-inline-analysis.c (node_growth_cache): Remove.
39622         (initialize_growth_caches): Do not initialize it.
39623         (free_growth_caches): Do not free it.
39624         (do_estimate_growth): Rename to ...
39625         (estimate_growth): ... this one; drop growth cache code.
39626         (growth_likely_positive): Always go the heuristics way.
39627         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
39628         (reset_edge_caches): Do not reset node growth.
39629         (heap_edge_removal_hook): Do not maintain cache.
39630         (inline_small_functions): Likewise; strenghten sanity check.
39631         (ipa_inline): Do not maintain caches.
39632         * ipa-inline.h (node_growth_cache): Remove.
39633         (do_estimate_growth): Remove to ...
39634         (estimate_growth): this one; remove inline version.
39635         (reset_node_growth_cache): Remove.
39637 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
39639         PR ipa/64565
39640         * ipa-inline.c (inline_small_functions): Update callee keys after
39641         resolving speculation
39642         (inline_small_functions): Always check monotonicity of the queue.
39644 2015-01-13  Marek Polacek  <polacek@redhat.com>
39646         PR middle-end/64391
39647         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
39649 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39651         PR rtl-optimization/64286
39652         * ree.c (combine_reaching_defs): Move part of comment earlier,
39653         remove !SCALAR_INT_MODE_P check.
39654         (add_removable_extension): Don't add vector mode
39655         extensions if all uses of the source register aren't the same
39656         vector extensions.
39658 2015-01-13  Renlin Li  <renlin.li@arm.com>
39660         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
39661         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
39663 2015-01-13  Martin Liska  <mliska@suse.cz>
39665         * ipa-icf.c (sem_function::equals_private): Call new functions
39666         cl_target_option_print_diff and cl_optimization_print_diff.
39667         * optc-save-gen.awk (cl_target_option_print_diff): New function.
39668         (cl_optimization_print_diff): Likewise.
39669         * opth-gen.awk: Likewise.
39671 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
39673         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
39674         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
39675         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
39676         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
39677         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
39678         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
39680 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39682         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
39683         instead of src mode.
39685 2015-01-13  Richard Biener  <rguenther@suse.de>
39687         PR lto/64373
39688         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
39689         DECL_CONTEXT.
39691 2015-01-13  Andrew Pinski  <apinski@cavium.com>
39693         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
39694         volatile mems.
39695         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
39697 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
39699         PR middle-end/63974
39700         * cfgexpand.c (expand_computed_goto): Don't call
39701         convert_memory_address here.
39703 2015-01-13  Richard Biener  <rguenther@suse.de>
39705         PR tree-optimization/64406
39706         * tree-loop-distibution.c (pass_loop_distribution::execute):
39707         Reset the SCEV hashtable if we distributed anything.
39709 2015-01-13  Richard Biener  <rguenther@suse.de>
39711         PR tree-optimization/64404
39712         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
39713         SLP types for CSEd loads.
39715 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39717         PR tree-optimization/64436
39718         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
39719         merge of two symbolic numbers for a bitwise OR to ...
39720         (perform_symbolic_merge): This. Also fix computation of the range and
39721         end of the symbolic number corresponding to the result of a bitwise OR.
39723 2015-01-13  Richard Biener  <rguenther@suse.de>
39725         PR tree-optimization/64568
39726         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
39727         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
39729 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39731         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
39732         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
39734 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39736         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
39737         target-specific symbol_ref flag.
39738         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
39739         resides in rodata section.
39740         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
39741         (nds32_encode_section_info): New function.
39743 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39745         * config/nds32/nds32.md (call): Use pseudo instruction bal which
39746         clobbers TA_REGNUM if large code model is specified.
39747         (call_register): Likewise.
39748         (call_immediate): Likewise.
39749         (call_value): Likewise.
39750         (call_value_register): Likewise.
39751         (call_value_immediate): Likewise.
39753 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39755         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
39756         (TARGET_CMODEL_MEDIUM): New macro.
39757         (TARGET_CMODEL_LARGE): New macro.
39758         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
39759         code model setting in assembly code.
39761 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39763         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39764         Remove MASK_GP_DIRECT flag.
39765         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
39766         one of the multilib default options.
39767         * config/nds32/nds32.opt (mgp-direct): Remove.
39768         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
39769         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
39771 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
39773         * config/nds32/nds32.opt (mcmodel): Add new option.
39774         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
39775         to describe code model.
39777 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
39779         PR target/64479
39780         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
39782 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
39784         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
39785         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39786         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
39787         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
39788         __builtin_sh_set_fpscr.
39790 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39792         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
39793         after a funtion name just to indicate it is a function.
39794         ([-fsanitize-undefined-trap-on-error]): Likewise.
39795         ([-fdbg-cnt=]): Likewise.
39796         ([-mmemcpy]): Likewise.
39797         ([-mflush-func]): Likewise.
39798         ([-msynci]): Likewise.
39800 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
39802         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
39803         example.
39805 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
39807         PR tree-optimization/64563
39808         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
39809         instead of != VR_VARYING.
39811         PR target/64513
39812         * config/i386/i386.c (ix86_expand_prologue): Add
39813         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
39815         PR tree-optimization/64454
39816         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
39817         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
39818         for signed or [0, op1 - 1] for unsigned modulo.
39819         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
39820         even if op1 does not satisfy integer_pow2p.
39822         PR other/64370
39823         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
39825 2015-01-12  Jeff Law  <law@redhat.com>
39827         PR target/64461
39828         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
39829         (trunchiqi2, truncsihi2): Similarly.
39831         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
39832         rather than calling F.
39834 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39836         * tsan.c (instrument_expr): Use force_gimple_operand.
39837         Use may_be_nonaddressable_p instead of is_gimple_addressable.
39839 2015-01-12  Richard Biener  <rguenther@suse.de>
39841         PR tree-optimization/64530
39842         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
39843         back dr1.
39845 2015-01-12  Richard Biener  <rguenther@suse.de>
39847         PR middle-end/64357
39848         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
39849         latches properly.
39851 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39853         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
39854         Cortex-A17 tuning parameters.
39855         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
39857 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39859         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
39860         * config/arm/arm.c (arm_macro_fusion_p): New function.
39861         (arm_macro_fusion_pair_p): Likewise.
39862         (TARGET_SCHED_MACRO_FUSION_P): Define.
39863         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
39864         (ARM_FUSE_NOTHING): Likewise.
39865         (ARM_FUSE_MOVW_MOVT): Likewise.
39866         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
39867         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
39868         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
39869         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
39870         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
39871         arm_cortex_a5_tune): Specify fuseable_ops value.
39873 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
39875         PR bootstrap/64561
39876         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
39877         test for PIE with copy reloc.
39878         * configure: Regenerated.
39880 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39882         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
39883         in gen_rtx_REG.
39884         (arm_tls_descseq_addr): Likewise.
39885         (arm_gen_movmemqi): Likewise.
39886         (arm_expand_epilogue_apcs_frame): Likewise.
39887         (arm_expand_epilogue): Likewise.
39888         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
39889         in gen_rtx_REG.
39891 2015-01-12  Martin Liska  <mliska@suse.cz>
39893         PR ipa/64550
39894         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
39895         volatility for correct operands.
39897 2015-01-12  Martin Liska  <mliska@suse.cz>
39899         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
39900         indication that a function is not leaf.
39901         (sem_function::compare_polymorphic_p): Likewise.
39903 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39905         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
39906         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
39907         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
39908         fold-const.h, tree-check.h.
39910 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39912         PR ipa/63967
39913         PR ipa/64425
39914         * ipa-inline.c (compute_uninlined_call_time,
39915         compute_inlined_call_time): Use counts for extra precision when
39916         needed possible.
39917         (big_speedup_p): Fix formating.
39918         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
39919         (relative_time_benefit): Remove.
39920         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
39921         merge guessed and read profile paths.
39922         (inline_small_functions): Count only !optimize_size functions into
39923         initial size; be more lax about sanity check when profile is used;
39924         be sure to update inlined function profile when profile is read.
39926 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
39928         PR ipa/63470
39929         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
39930         cost when edge becomes direct.
39931         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
39932         is resolved or when introducing new speculation.
39934 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
39936         PR ipa/64551
39937         PR ipa/64552
39938         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
39939         '||' to fix typo issue.
39941         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
39942         accept and return NULL.
39944 2015-01-12  Martin Liska  <mliska@suse.cz>
39946         * cgraph.c (cgraph_edge::remove_callee): Move function to header
39947         file for being inlined.
39948         (cgraph_set_edge_callee): Delete.
39949         (cgraph_edge::redirect_callee): Move function to header file
39950         for being inlined.
39951         (cgraph_edge::make_direct): Use new function.
39952         (cgraph_edge::dump_edge_flags): New function created from
39953         static dump_edge_flags function.
39954         (cgraph_node::dump): Use new function.
39955         (cgraph_edge::verify_count_and_frequency): New function created
39956         from verify_edge_count_and_frequency.
39957         (cgraph_edge::verify_corresponds_to_fndecl): New function created
39958         from verify_edge_corresponds_to_fndecl.
39959         (verify_edge_corresponds_to_fndecl): Delete.
39960         (cgraph_node::verify_node): Use new function.
39961         * cgraph.h (cgraph_edge::set_callee): New function.
39962         (cgraph_edge::dump_edge_flags): Likewise.
39963         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
39965 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
39967         * ipa-utils.c (estimate_function_body_sizes): Do not
39968         free node params when called late with early=true.
39970 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
39972         * doc/md.texi (Instruction Patterns): Rewrite text for
39973         clarity.
39974         (Example): Likewise.
39976 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
39978         * doc/invoke.texi (Option Summary): Break long lines.
39979         [(-fdiagnostics-color)]: Put long literal in @smallexample
39980         instead of inline.
39981         [(-fsanitize-recover)]: Likewise.
39982         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
39983         [(-ffast-math)]: Likewise.
39984         [(--param max-inline-insns-recursive)]: Likewise.
39985         [(--param max-inline-recursive-depth)]: Likewise.
39986         [(-mno-text-section-literals)]: Likewise.
39988 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
39990         * doc/install.texi: Update for libgomp being renamed from "GNU
39991         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
39992         Runtime Library".
39993         * doc/sourcebuild.texi: Likewise.
39995 2015-01-10  Anthony Green  <green@moxielogic.com>
39997         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
39998         mul.x availability for moxiebox configuration.
40000 2015-01-09  Anthony Green  <green@moxielogic.com>
40002         * config/moxie/moxie.md: Tabify assembly output.
40004 2015-01-09  Anthony Green  <green@moxielogic.com>
40006         * config/moxie/moxie.md (CC_REG): Correct register definition.
40008 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
40010         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
40011         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
40012         of log files.
40014 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40016         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
40018 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
40019             Jakub Jelinek  <jakub@redhat.com>
40021         PR middle-end/64412
40022         * lto-streamer.h (lto_stream_offload_p): New declaration.
40023         * lto-streamer.c (lto_stream_offload_p): New variable.
40024         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
40025         at the same time as section_name_prefix.
40026         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
40027         if lto_stream_offload_p.
40028         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
40029         stream TREE_TARGET_OPTION if lto_stream_offload_p.
40030         (write_ts_function_decl_tree_pointers): Don't
40031         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
40032         * tree-streamer-in.c (unpack_value_fields): Don't stream
40033         TREE_TARGET_OPTION in if ACCEL_COMPILER.
40034         (lto_input_ts_function_decl_tree_pointers): Don't stream
40035         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
40036         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
40037         instead of section_name_prefix string comparisons.
40039 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
40041         PR rtl-optimization/64536
40042         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
40043         tablejumps.
40045 2015-01-09  Michael Collison  <michael.collison@linaro.org>
40047         PR tree-optimization/64322
40048         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
40049         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
40051 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40053         PR rtl-optimization/64539
40054         * regcprop.c (kill_clobbered_values): Factor out of ...
40055         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
40056         instead of note_stores with kill_clobbered_value.
40058 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40060          * ginclude/unwind-arm-common.h: Revert previous commit.
40062 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
40064         * config.gcc (arm*-*-freebsd*): New configuration.
40065         * config/arm/freebsd.h: New file.
40066         * config.host: Add extra components for arm*-*-freebsd*.
40067         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
40068         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
40070 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40072         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
40073         for -mcpu=e6500.
40074         * config/rs6000/t-rtems: Add e6500 multilibs.
40076 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40078         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
40079         MPC8540.
40081 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40083         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
40084         MULTILIB_EXCEPTIONS.
40086 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40088         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
40089         MULTILIB_EXCEPTIONS.
40091 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
40093         * config/arm/t-rtems-eabi: Rename to...
40094         * config/arm/t-rtems: ...this.
40095         * config/arm/rtems-eabi.h: Rename to...
40096         * config/arm/rtems.h: ...this.
40097         * config.gcc (arm*-*-rtems*): Reflect changes above.
40099 2015-01-09  Richard Biener  <rguenther@suse.de>
40101         PR tree-optimization/64410
40102         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
40103         on the LHS.
40104         (execute_update_addresses_taken): Deal with that.
40105         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
40106         loads/stores for complex variables.
40108 2015-01-09  Martin Liska  <mliska@suse.cz>
40110         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
40111         name comparison.
40112         (func_checker::compare_memory_operand): New function.
40113         (func_checker::compare_operand): Split case to newly
40114         added functions.
40115         (func_checker::compare_cst_or_decl): New function.
40116         (func_checker::compare_gimple_call): Identify
40117         memory operands.
40118         (func_checker::compare_gimple_assign): Likewise.
40119         * ipa-icf-gimple.h: New function.
40121 2015-01-09  Martin Liska  <mliska@suse.cz>
40123         PR ipa/64503
40124         * sreal.c (sreal::dump): Change unsigned format to signed for
40125         m_exp value.
40126         (sreal::to_double): Replace exp2 with scalbln.
40128 2015-01-09  Martin Liska  <mliska@suse.cz>
40130         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
40131         * ipa-icf.c (sem_function::equals_private): Add support for target and
40132         (sem_item_optimizer::merge_classes): Remove redundant function
40133         optimization flags comparison.
40134         * tree.h (target_opts_for_fn): New function.
40136 2015-01-09  Tom de Vries  <tom@codesourcery.com>
40138         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
40140 2015-01-09  Kito Cheng  <kito@0xlab.org>
40142         PR rtl-optimization/64348
40143         * lra-constraints.c (split_reg): Fix caller-save store/restore
40144         instruction generation.
40146 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
40148         PR gcov-profile/61790
40149         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
40150         long long.  Fallback to int64_t if host doesn't have long long and
40151         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
40153 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40155         PR tree-optimization/63989
40156         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
40157         from 1000 to 10000.
40158         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
40159         (get_stridx): If we don't have a record for certain SSA_NAME,
40160         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
40161         constant offset, call get_stridx_plus_constant.
40162         (get_stridx_plus_constant): New function.
40163         (zero_length_string): Don't use get_stridx here.
40165         PR target/55023
40166         PR middle-end/64388
40167         * dse.c (struct insn_info): Mention frame_read set also
40168         before reload for tail calls on some targets.
40169         (scan_insn): Revert 2014-12-22 change.  Set frame_read
40170         also before reload for tail calls if
40171         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
40172         instead of add_non_frame_wild_read for non-const/memset
40173         tail calls after reload.
40175 2015-01-08  Jason Merrill  <jason@redhat.com>
40177         * ubsan.c (do_ubsan_in_current_function): New.
40178         (pass_ubsan::gate): Use it.
40179         * ubsan.h: Declare it.
40180         * convert.c (convert_to_integer): Use it.
40182 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40184         PR target/64338
40185         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
40186         compare_code when it is unconditionally overwritten afterwards.
40187         Use ix86_reverse_condition instead of reverse_condition.  Don't
40188         change code if *reverse_condition* returned UNKNOWN and don't
40189         swap ct/cf and negate diff in that case.
40191 2015-01-08  Mike Stump  <mikestump@comcast.net>
40193         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
40194         (pass_tsan_O0::gate): Likewise.
40195         * extend.texi (Function Attributes): Add no_sanitize_thread
40196         documentation.
40198 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
40200         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
40201         for registering builtins.
40202         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
40203         add -fopenmp to the argv_obstack used when invoking
40204         compile_for_target.
40206         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
40207         add "-m32" or "-m64" to argv_obstack.
40208         (generate_host_descr_file): Likewise, when invoking host_compiler.
40209         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
40210         ld.
40212 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40214         * config/sh/sh-mem.cc: Use constant as second operand when emitting
40215         tstsi_t insns.
40217 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
40219         PR target/55212
40220         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
40221         constant load if constant operand fits into I08.
40223 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
40225         PR sanitizer/64336
40226         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
40227         and TREE_THIS_VOLATILE for MEM_REFs.
40228         (build5_stat): Fix up initialization of TREE_READONLY and
40229         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
40231 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
40233         PR target/64533
40234         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
40235         of r for the second alternative of the destination operand.
40237 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
40239         PR target/36557
40240         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
40242 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40244         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
40245         keywords.
40246         ([-fivar-visibility], [-fvisibility]): Likewise.
40248 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
40250         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
40251         the file where @code, @command, etc is more appropriate.
40253 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
40255         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
40256         of -mrecip= documentation.
40258 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
40260         PR target/64505
40261         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40262         correct reload handler if -m32 -mpowerpc64 is used.
40264 2015-01-06  Tom de Vries  <tom@codesourcery.com>
40266         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
40268 2015-01-08  Christian Bruel  <christian.bruel@st.com>
40270         PR target/64507
40271         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
40273 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40275         PR tree-optimization/63259
40276         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
40277         if optab exists for 16bit byteswap.
40279 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
40281         * opts.c (common_handle_option): Add support for
40282         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
40283         * doc/invoke.texi: Document -fno-sanitize=all,
40284         -f{,no-}sanitize-recover=all.  Document that
40285         -fsanitize=float-cast-overflow is not enabled
40286         by -fsanitize=undefined.  Fix up documentation
40287         of -f{,no-}sanitize-recover.
40289 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
40291         * config.gcc: Add Visium support.
40292         * configure.ac: Likewise.
40293         * configure: Regenerate.
40294         * doc/extend.texi (interrupt attribute): Add Visium.
40295         * doc/invoke.texi: Document Visium options.
40296         * doc/install.texi: Document Visium target.
40297         * doc/md.texi: Document Visium constraints.
40298         * common/config/visium: New directory.
40299         * config/visium: Likewise.
40301 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40303         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
40304         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
40306 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
40308         * combine.c (combine_validate_cost): Do not count the cost of a
40309         split I2 twice.  Do not display it twice in the dump, either.
40311 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40313         Revert parts of r219199.
40314         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
40315         <inttypes.h>.
40316         ([-Wtraditional]): Restore markup on <limits.h>.
40318 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
40320         PR c++/31397
40321         * doc/invoke.texi: Document -Wsuggest-override.
40323 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
40325         PR rtl-optimization/64287
40326         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
40327         (process_options): Disable flag_ipa_ra if profiling.
40329 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
40331         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
40333 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
40335         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
40336         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
40337         put under #if TARGET_LOOPS guard.
40339 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
40341         * config/i386/i386.c (output_387_binary_op): Use std::swap.
40343 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
40345         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
40346         * rtl.h (refers_to_regno_p): Add overload.
40347         * cse.c: Use it.
40348         * bt-load.c: Likewise.
40349         * combine.c: Likewise.
40350         * df-scan.c: Likewise.
40351         * sched-deps.c: Likewise.
40352         * config/s390/s390.c: Likewise.
40353         * config/m32r/m32r.c: Likewise.
40354         * config/rs6000/spe.md: Likewise.
40355         * config/rs6000/rs6000.c: Likewise.
40356         * config/pa/pa.c: Likewise.
40357         * config/stormy16/stormy16.c: Likewise.
40358         * config/cris/cris.c: Likewise.
40359         * config/arc/arc.md: Likewise.
40360         * config/arc/arc.c: Likewise.
40361         * config/sh/sh.md: Likewise.
40362         * config/sh/sh.c: Likewise.
40363         * config/frv/frv.c: Likewise.
40365 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40367         PR sanitizer/64265
40368         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
40369         call as cleanup of the whole body.
40370         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
40371         * tsan.c (replace_func_exit): New function.
40372         (instrument_func_exit): Moved earlier.
40373         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
40374         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
40375         been found.
40376         (tsan_pass): Don't call instrument_func_exit.
40377         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
40378         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
40379         inlining.
40381         PR sanitizer/64344
40382         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
40383         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
40384         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
40385         if the result is integer_zerop, return NULL_TREE.
40386         * convert.c (convert_to_integer): Pass expr as ARG.
40388         PR tree-optimization/64465
40389         * tree-inline.c (redirect_all_calls): During inlining
40390         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
40391         changed the stmt to a non-throwing call.
40393 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
40395         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
40396         etc markup throughout the file.
40398 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40400         Enable experimental TSAN support for Ada.
40401         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
40403 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40405         PR tree-optimization/64494
40406         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
40407         clear SSA_NAME_ANTI_RANGE_P flag.
40409 2015-01-05  Marek Polacek  <polacek@redhat.com>
40411         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
40413 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
40415         Update copyright years.
40417         * gcc.c (process_command): Update copyright notice dates.
40418         * gcov-dump.c: Ditto.
40419         * gcov.c: Ditto.
40420         * doc/cpp.texi: Bump @copying's copyright year.
40421         * doc/cppinternals.texi: Ditto.
40422         * doc/gcc.texi: Ditto.
40423         * doc/gccint.texi: Ditto.
40424         * doc/gcov.texi: Ditto.
40425         * doc/install.texi: Ditto.
40426         * doc/invoke.texi: Ditto.
40428         * auto-profile.c, auto-profile.h: Fix up Copyright line.
40430 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
40432         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
40433         verb tense, etc.
40434         ([-fvtable-verify], [-fvtv-debug]): Likewise.
40435         ([-Wabi]): Likewise.
40436         ([-fmessage-length]): Likewise.
40437         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
40438         ([-Wno-discarded-qualifiers]): Likewise.
40439         ([-Wnodiscarded-array-qualifiers]): Likewise.
40440         ([-Wno-virtual-move-assign]): Likewise.
40441         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
40442         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
40443         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
40444         ([-fsanitize-undefined-trap-on-error]): Likewise.
40445         ([-floop-interchange]): Likewise.
40446         ([-ftree-coalesce-inlined-vars]): Likewise.
40447         ([-fvect-cost-model]): Likewise.
40448         ([-flto]): Likewise.
40449         ([--param]): Likewise.
40450         (Spec Files): Likewise.
40451         ([-mstrict-align]): Likewise.
40452         ([-mfix-cortex-a53-835769]): Likewise.
40453         ([-march], [-mtune]): Likewise.
40454         ([-mpic-register]): Likewise.
40455         ([-munaligned-access]): Likewise.
40456         ([-msp8]): Likewise.
40457         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
40458         (AVR Built-in Macros): Likewise.
40459         ([-mpreferred-stack-boundary]): Likewise.
40460         ([-mtune-crtl]): Likewise.
40461         ([-mashf]): Likewise.
40462         ([-mmcu=]): Likewise.
40463         ([-minrt]): Likewise.
40464         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
40465         ([-mupper-regs]): Likewise.
40466         ([-matomic-model]): Likewise.
40467         ([-mdiv]): Likewise.
40468         ([-mzdcbranch]): Likewise.
40469         ([-mdisable-callt]): Likewise.
40470         ([-msoft-float]): Likewise.
40471         ([-m8byte-align]): Likewise.
40472         ([-fstack-reuse]): Likewise.
40474 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40476         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
40477         Fix markup, light copy-editing.
40478         ([-fauto-profile]): Rewrite to fix formatting and content
40479         problems.
40481 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40483         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
40484         Copy-edit description.
40485         ([-fisolate-erroneous-paths-attribute]): Likewise.
40486         * common.opt (fisolate-erroneous-paths-dereference):
40487         Copy-edit description.
40488         (fisolate-erroneous-paths-attribute): Likewise.
40490 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40492         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
40493         tidy grammar.
40495 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
40497         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
40498         ([-fvtv-debug]): Likewise.
40499         ([-Wc++-compat]): Likewise.
40500         ([-Wc++11-compat]): Likewise.
40501         ([-Wc++14-compat]): Likewise.
40502         ([-Wno-sized-deallocation]): Likewise.
40503         ([-femit-class-debug-always]): Likewise.
40504         ([-femit-struct-debug-detailed]): Likewise.
40505         ([-fno-keep-inline-dllexport]): Likewise.
40506         ([-fira-algorithm]): Likewise.
40507         ([-fira-region]): Likewise.
40508         ([-flra-remat]): Likewise.
40509         ([-fipa-ra]): Likewise.
40510         ([-fhoist-adjacent-loads]): Likewise.
40511         ([-fisolate-erroneous-paths-dereference]): Likewise.
40512         ([-fisolate-erroneous-paths-attribute]): Likewise.
40513         ([-ftree-switch-conversion]): Likewise.
40514         ([-ftree-tail-merge]): Likewise.
40515         ([-ftree-loop-if-convert]): Likewise.
40516         ([-ftree-loop-if-convert-stores]): Likewise.
40517         ([-ftree-loop-distribution]): Likewise.
40518         ([-ftree-loop-distribute-patterns]): Likewise.
40519         ([-flto-compression-level]): Likewise.
40520         ([-flto-report]): Likewise.
40521         ([-flto-report-wpa]): Likewise.
40522         ([-fuse-linker-plugin]): Likewise.
40523         ([-mfix-cortex-a53-835769]): Likewise.
40524         ([-mno-fix-cortex-a53-835769]): Likewise.
40525         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
40526         explicit listing; add a note to the discussion indicating they
40527         exist.  Reorder table to group similar options.  Add missing
40528         @opindex entries.  Add @need commands throughout the table to
40529         allow it to be split across multiple pages.
40530         ([-m8bit-idiv]): Fix @opindex.
40531         ([-mavx256-split-unaligned-load]): Likewise.
40532         ([-mavx256-split-unaligned-store]): Likewise.
40533         ([-mstack-protector-guard]): Likewise.
40534         ([-mcpu=]): Likewise.
40535         ([-mcpu]): Likewise.
40536         ([-mpointer-size=]): Likewise.
40538 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
40540         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
40541         instead of `m' constraint.  Likewise for unnamed movb comparison
40542         patterns using reg_before_reload_operand predicate.
40543         * config/pa/predicates.md (reg_before_reload_operand): Tighten
40544         predicate to reject register index and LO_SUM DLT memory forms
40545         after reload.
40547 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40549         * doc/invoke.texi (Option Summary): Fix spelling of
40550         -fdevirtualize-at-ltrans.
40551         ([-fdevirtualize]): Fix markup.
40552         ([-fdevirtualize-speculatively]): Fix typo.
40553         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
40554         implementor-speaky.
40555         * common.opt (fdevirtualize-at-ltrans): Likewise.
40556         * ipa-devirt.c: Fix typos in comments throughout the file.
40557         (ipa_devirt): Fix typos in format strings for dump output.
40559 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
40561         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
40562         discussion of defaults, light copy-editing.
40564 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40566         * tsan.c (instrument_expr): corrected previous checkin.
40568 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40570         Instrument bit field and unaligned accesses for TSAN.
40571         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
40572         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
40573         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
40574         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
40575         unaligned memory regions.
40577 2015-01-01  Anthony Green  <green@moxielogic.com>
40579         * config/moxie/predicates.md (moxie_general_movsrc_operand):
40580         Restrict move source register offsets to 16 bits.
40582 Copyright (C) 2015 Free Software Foundation, Inc.
40584 Copying and distribution of this file, with or without modification,
40585 are permitted in any medium without royalty provided the copyright
40586 notice and this notice are preserved.