[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / ChangeLog
blob91c9972987962e570cc32fcebedf17c63c724ac7
1 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         PR rtl-optimization/67786
4         PR rtl-optimization/67787
5         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
6         it modifies a reg used in the condition calculation.
8 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
10         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11         alternatives for reads from memory and moves from general-purpose
12         registers.
13         (*aarch64_combinez_be<mode>): Likewise.
15 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
17         PR target/51726
18         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
19         selectany within this function without need to keep attribute.
20         (i386_pe_encode_section_info): Remove selectany-code.
22 2015-10-02  Richard Biener  <rguenther@suse.de>
24         * tree-ssa-sccvn.c (has_VN_INFO): New function.
25         (free_scc_vn): Use it.
26         (visit_use): Remove dead code and refactor to use gassign
27         and use less indentation.
29 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
31         PR target/67788
32         PR target/67789
33         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
34         (rs6000_cannot_copy_insn_p): New function.
35         * config/rs6000/rs6000.md (cannot_copy): New attribute.
36         (load_toc_v4_PIC_1_normal): Set cannot_copy.
37         (load_toc_v4_PIC_1_476): Ditto.
39 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
41         * graphite-scop-detection.c (struct sese_l): New conversion constructor
42         so that this type can be pushed into a vec.
43         (class scop_builder): use sese_l to collect scops.
44         (get_scops): New getter function.
45         (remove_intersecting_scops): Use sese_l instead of scops_p.
46         (intersects): Same.
47         (add_scop): Same.
48         (subsumes): Same.
49         (remove_subscops): Same.
50         (build_scops): Add scops to vec<scops_p> once all the scops have been
51         detected.
53 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
55         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
56         Renamed type from gimple_bb_p to gimple_poly_bb_p.
57         (translate_isl_ast_node_user): Same.
58         * graphite-poly.c (new_poly_bb): Same.
59         * graphite-poly.h (gbb_from_bb): Same.
60         * sese.h: Same.
61         * graphite-sese-to-poly.c (new_gimple_bb): gimple_bb_p -> gimple_poly_bb_p
62         (build_scop_scattering): Same.
63         (find_params_in_bb): Same.
64         (add_conditions_to_domain): Same.
65         (sese_dom_walker::before_dom_children): Same.
66         (analyze_drs_in_stmts): Same.
67         (new_pbb_from_pbb): Same.
68         (free_data_refs_aux): New pointer to type base_alias_pair.
69         * graphite-sese-to-poly.h: Same.
70         * sese.c (if_region_set_false_region): Fixed Indentation.
71         (move_sese_in_condition): Same.
73 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
74             Aditya Kumar  <aditya.k7@samsung.com>
76         PR tree-optimization/66980
77         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
78         when data reference analysis has failed.
80 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
81             Aditya Kumar  <aditya.k7@samsung.com>
83         PR tree-optimization/67754
84         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
85         scev analysis on the same loop nest as analyze_drs_in_stmts.
86         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and renamed...
87         (try_generate_gimple_bb): Call outermost_loop_in_sese.
88         (analyze_drs_in_stmts): Same.
89         * sese.c (outermost_loop_in_sese): ...here.
91 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
92             Aditya Kumar  <aditya.k7@samsung.com>
94         PR tree-optimization/67754
95         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
96         recursion on the inner loops.
98 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
100         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
101         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
102         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
103         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
104         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
106 2015-10-01  Marek Polacek  <polacek@redhat.com>
108         PR c/65345
109         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
110         create_tmp_var_raw rather than create_tmp_var.
112 2015-10-01  Marek Polacek  <polacek@redhat.com>
114         PR tree-optimization/67769
115         * tree-ssa-phiopt.c (conditional_replacement): Call
116         reset_flow_sensitive_info_in_bb.
117         (minmax_replacement): Likewise.
118         (abs_replacement): Likewise.
120 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
122         * builtins.c: Don't include gomp-constants.h.
123         (fold_builtin_1): Don't fold acc_on_device here.
124         * gimple-fold.c: Include gomp-constants.h.
125         (gimple_fold_builtin_acc_on_device): New.
126         (gimple_fold_builtin): Call it.
128 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
130         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for
131         Lakemont.
132         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
134 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
136         * config/arm/aarch-common-protos.h
137         (aarch_accumulator_forwarding): New.
138         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
139         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
140         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
141         * config/arm/cortex-a53.md: Rewrite.
143 2015-10-01  Richard Biener  <rguenther@suse.de>
145         * gimple-match.h (mprts_hook): Declare.
146         * gimple-match.head.c (mprts_hook): Define.
147         (maybe_push_res_to_seq): Use new hook.
148         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
149         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
150         (vn_ssa_aux::has_constants): Remove.
151         * tree-ssa-sccvn.c: Include gimple-match.h.
152         (VN_INFO_GET): Assert we don't re-use SSA names.
153         (vn_get_expr_for): Remove.
154         (expr_has_constants): Likewise.
155         (stmt_has_constants): Likewise.
156         (simplify_binary_expression): Likewise.
157         (simplify_unary_expression): Likewise.
158         (vn_lookup_simplify_result): New hook.
159         (visit_copy): Adjust.
160         (visit_reference_op_call): Likewise.
161         (visit_phi): Likewise.
162         (visit_use): Likewise.
163         (process_scc): Likewise.
164         (init_scc_vn): Likewise.
165         (visit_reference_op_load): Likewise.  Use match-and-simplify and
166         a gimple seq for inserted expressions.
167         (try_to_simplify): Remove GENERIC stmt combining code.
168         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
169         * tree-ssa-pre.c (eliminate_insert): Adjust.
170         (eliminate_dom_walker::before_dom_children): Likewise.
172 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
174         * doc/invoke.texi (Optimization Options): Add
175         -freorder-blocks-algorithm=.
176         (Optimize Options) <-O>: Add -freorder-blocks.
177         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
178         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
179         <-freorder-blocks>: Also enabled at levels -O and -Os.
180         <-freorder-blocks-algorithm=>: Document new option.
182 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
184         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
185         with flag_reorder_blocks_algorithm.
186         * common.opt (freorder-blocks-algorithm=): New flag.
187         (reorder_blocks_algorithm): New enum.
188         * flag-types.h (reorder_blocks_algorithm): New enum.
189         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
190         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
192 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
194         * bb-reorder.c: Add intro comment.
195         (reorder_basic_blocks_software_trace_cache): Print a header to
196         the dump file.
197         (edge_order): New function.
198         (reorder_basic_blocks_simple): New function.
199         (reorder_basic_blocks): Choose between the STC and the simple
200         algorithms (always choose the former).
202 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
204         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
205         function, factored out from ...
206         (reorder_basic_blocks): ... here.
208 2015-10-01  Tom de Vries  <tom@codesourcery.com>
210         * tree-cfg.c (dump_function_to_file): Dump function attributes using
211         __attribute__(()) string.  Move dumping of function attributes to before
212         function name.
214 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
216         PR target/66870
217         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
218         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
219         based on gold linker version.
220         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
221         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
222         * configure, config.in: Regenerate.
224 2015-10-01  Alan Modra  <amodra@gmail.com>
226         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
227         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
228         (rs6000_output_mi_thunk): Likewise.
230 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
232         * config/nvptx/mkoffload.c (process): Change offload data format.
234 2015-09-30  Jeff Law  <law@redhat.com>
236         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
237         with constant conditions.
238         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
239         (remove_ctrl_stmt_and_useless_edges): No longer static.
240         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
241         (remove_ctrl_stmt_and_useless_edges): Likewise.
243 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
244             Cesar Philippidis  <cesar@codesourcery.com>
246         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
247         (TARGET_GOACC_VALIDATE_DIMS): Override.
248         * target.def (TARGET_GOACC): New target hook prefix.
249         (validate_dims): New hook.
250         * targhooks.h (default_goacc_validate_dims): New.
251         * omp-low.c (oacc_validate_dims): New.
252         (execute_oacc_device_lower): New.
253         (default_goacc_validate_dims): New.
254         (pass_data_oacc_device_lower): New.
255         (pass_oacc_device_lower): New pass.
256         (make_pass_oacc_device_lower): New.
257         * tree-pass.h (make_pass_oacc_device_lower): Declare.
258         * passes.def (pass_oacc_device_lower): Add it.
259         * doc/tm.texi: Rebuilt.
260         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
261         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
263 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
265         PR rtl-optimization/67037
266         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
268 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
270         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
271         * passes.c: Include tree-ssanames.h.
272         (execute_function_todo): Flush the pending free SSA_NAMEs after
273         eliminating unreachable basic blocks.
274         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
275         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
276         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
277         (flush_ssanames_freelist): New function.
278         (release_ssaname_fn): Put released names on the queue.
279         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
280         * tree-ssanames.h (flush_ssanames_freelist): Declare.
282 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
284         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
285         (generate_target_descr_file, generate_target_offloadend_file)
286         (generate_host_descr_file, prepare_target_image, main): Pass it
287         on.
288         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
289         (compile_native, main): Pass it on.
290         * lto-wrapper.c (compile_offload_image): Likewise.
292 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
293             Ilya Verbin  <ilya.verbin@intel.com>
294             Andrey Turetskiy  <andrey.turetskiy@intel.com>
296         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
297         (prepare_target_image, main): Refactor argv building to use
298         obstacks.
300 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
302         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
303         * config/spu/spu.c (spu_expand_atomic_op): New function.
304         * config/spu/spu.md (AINT): New mode iterator.
305         (ATOMIC): New code iterator.
306         (atomic_name, atomic_pred): New code predicates.
307         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
308         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
309         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
310         "atomic_<atomic_name>_fetch<mode>"): Likewise.
312 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
314         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
315         debug insns.
316         (scalar_chain::convert_reg): Likewise.
318 2015-09-30  Richard Biener  <rguenther@suse.de>
320         * builtins.c: Add comment that no new simplifications shouldd
321         be added here.
323 2015-09-30  Marek Polacek  <polacek@redhat.com>
325         PR tree-optimization/67690
326         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
327         reset_flow_sensitive_info_in_bb.
328         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
329         * tree-ssanames.c: Include "gimple-iterator.h".
330         (reset_flow_sensitive_info_in_bb): New function.
331         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
333 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
335         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
336         variable, replacing it with...
337         (offload_abi): ... this new variable.  Adjust all users.
338         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
340 2015-09-30  Matthias Klose  <doko@ubuntu.com>
342         * configure.ac: Remove extraneous ;;.
343         * configure: Regenerate.
345 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
347         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
348         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
349         predicate, disallow register for operand 2.
351 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
353         * graphite-dependences.c (scop_get_dependences): Moved in down
354         in order to be visible to its caller.
355         * graphite-poly.h: Removed compute_deps, and extend_schedule.
357 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
358             Aditya Kumar  <aditya.k7@samsung.com>
360         PR tree-optimization/67754
361         * graphite-optimize-isl.c (optimize_isl): Call
362         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
364 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
366         * builtins.c (expand_builtin_acc_on_device): Delete.
367         (expand_builtin): Don't call it.
368         (fold_builtin_1): Fold acc_on_device.
370 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
372         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
373         (ix86_nsaved_sseregs): Likewise.
375 2015-09-29  Jeff Law  <law@redhat.com>
377         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
378         computation of unused value.
380         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
381         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
382         inline macro expansion.
384         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
386         * config/sh/sh.c (gen_shl_and): Fix undefined left shift
387         behaviour.
388         (gen_shl_sext): Likewise.
389         * config/sh/sh.md (divsi3): Likewise.
390         (imm->ext_dest_operand splitter): Likewise.
392 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
393             Aditya Kumar  <aditya.k7@samsung.com>
395         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
396         (nb_data_writes_in_bb): Remove.
397         (split_pbb): Remove.
398         (split_reduction_stmt): Remove.
399         (is_reduction_operation_p): Remove.
400         (phi_contains_arg): Remove.
401         (follow_ssa_with_commutative_ops): Remove.
402         (detect_commutative_reduction_arg): Remove.
403         (detect_commutative_reduction_assign): Remove.
404         (follow_inital_value_to_phi): Remove.
405         (edge_initial_value_for_loop_phi): Remove.
406         (initial_value_for_loop_phi): Remove.
407         (used_outside_reduction): Remove.
408         (detect_commutative_reduction): Remove.
409         (translate_scalar_reduction_to_array_for_stmt): Remove.
410         (remove_phi): Remove.
411         (dr_indices_valid_in_loop): Remove.
412         (close_phi_written_to_memory): Remove.
413         (translate_scalar_reduction_to_array): Remove.
414         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
415         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
416         (rewrite_commutative_reductions_out_of_ssa): Remove.
417         (build_poly_scop): Remove call to
418         rewrite_commutative_reductions_out_of_ssa.
420 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
422         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
423         Add new insn types for vector load and store pairs.
424         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
425         types "neon_ldp{,_q}".
426         * config/arm/cortex-a57.md (neon_load_c): Add insn types
427         "neon_ldp{,_q}".
428         (neon_store_complex): Add insn types "neon_stp{,_q}".
429         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
430         "neon_{ldp,stp}_q".
432 2015-09-29  Jeff Law  <law@redhat.com>
434         * config/rx/constraints.md (Int08): Fix undefined left shift
435         behaviour.
436         (Sint08, Sint16, Sint24): Likewise.
437         * config/rx/rx.c (rx_get_stack_layout): Likewise.
439         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
440         behaviour.
442         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
443         left shift behaviour.
444         * config/msp430/constraints.md ('L' constraint): Similarly.
445         ('Ys' constraint): Similarly.
447 2015-09-29  Richard Biener  <rguenther@suse.de>
449         PR tree-optimization/67170
450         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
451         the translate function pointer parameter to get the
452         bool whether to disambiguate only by reference.
453         (walk_non_aliased_vuses): Likewise.
454         * tree-ssa-alias.c (maybe_skip_until): Adjust.
455         (get_continuation_for_phi_1): Likewise.
456         (get_continuation_for_phi): Likewise.
457         (walk_non_aliased_vuses): Likewise.
458         * tree-ssa-sccvn.c (const_parms): New bitmap.
459         (vn_reference_lookup_3): Adjust for interface change.
460         Disambiguate parameters pointing to readonly memory.
461         (free_scc_vn): Free const_parms.
462         (run_scc_vn): Initialize const_parms from a fn spec attribute.
464 2015-09-29  Richard Biener  <rguenther@suse.de>
466         PR tree-optimization/67741
467         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
468         builtin calls with correct signature.
470 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
472         PR target/65105
473         * config/i386/i386.c: Include dbgcnt.h.
474         (has_non_address_hard_reg): New.
475         (convertible_comparison_p): New.
476         (scalar_to_vector_candidate_p): New.
477         (remove_non_convertible_regs): New.
478         (scalar_chain): New.
479         (scalar_chain::scalar_chain): New.
480         (scalar_chain::~scalar_chain): New.
481         (scalar_chain::add_to_queue): New.
482         (scalar_chain::mark_dual_mode_def): New.
483         (scalar_chain::analyze_register_chain): New.
484         (scalar_chain::add_insn): New.
485         (scalar_chain::build): New.
486         (scalar_chain::compute_convert_gain): New.
487         (scalar_chain::replace_with_subreg): New.
488         (scalar_chain::replace_with_subreg_in_insn): New.
489         (scalar_chain::emit_conversion_insns): New.
490         (scalar_chain::make_vector_copies): New.
491         (scalar_chain::convert_reg): New.
492         (scalar_chain::convert_op): New.
493         (scalar_chain::convert_insn): New.
494         (scalar_chain::convert): New.
495         (convert_scalars_to_vector): New.
496         (pass_data_stv): New.
497         (pass_stv): New.
498         (make_pass_stv): New.
499         (ix86_option_override): Created and register stv pass.
500         (flag_opts): Add -mstv.
501         (ix86_option_override_internal): Likewise.
502         * config/i386/i386.md (SWIM1248x): New.
503         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
504         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
505         (*anddi3_doubleword): New.
506         (*zext<mode>_doubleword): New.
507         (*zextsi_doubleword): New.
508         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
509         (*<code>di3_doubleword): New.
510         * config/i386/i386.opt (mstv): New.
511         * dbgcnt.def (stv_conversion): New.
513 2015-09-29  Tom de Vries  <tom@codesourcery.com>
515         * tree-cfg.c (dump_function_to_file): Dump function attributes.
517 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
519         PR target/67716
520         * config/sh/sh.c (sh_override_options_after_change): New.
521         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
522         (sh_option_override): Move align_loops, align_jumps and
523         align_functions handling into sh_override_options_after_change.
525 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
527         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
528         (nvptx_record_offload_symbol): Record function execution geometry.
529         * config/nvptx/mkoffload.c (process): Include launch geometry in
530         function data.
531         * omp-low.c (oacc_launch_pack): New.
532         (replace_oacc_fn_attrib): New.
533         (set_oacc_fn_attrib): New.
534         (get_oacc_fn_attrib): New.
535         (expand_omp_target): Create keyed varargs for GOACC_parallel call
536         generation.
537         * omp-low.h (get_oacc_fn_attrib): Declare.
538         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
539         (DEF_FUNCTION_TYPE_VAR_11): Delete.
540         * tree.h (OMP_CLAUSE_EXPR): New.
541         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
543 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
544             Sebastian Pop  <s.pop@samsung.com>
546         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
548 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
549             Sebastian Pop  <s.pop@samsung.com>
551         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
552         * graphite-scop-detection.c (struct sese_l): New type.
553         (get_entry_bb): API for getting entry bb of SESE.
554         (get_exit_bb): API for getting exit bb of SESE.
555         (class debug_printer): New type.  Simple printer in debug mode.
556         (trivially_empty_bb_p): New.  Return true when BB is empty or
557         contains only debug instructions.
558         (graphite_can_represent_expr): Call scalar_evoution_in_region
559         instead of analyze_scalar_evolution.  Pass in scop instead of only
560         the scop entry.
561         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
562         scop entry.
563         (stmt_simple_for_scop_p): Same.
564         (harmful_stmt_in_bb): Same.
565         (graphite_can_represent_loop): Deleted.
566         (struct scopdet_info): Deleted.
567         (scopdet_basic_block_info): Deleted.
568         (build_scops_1): Deleted.
569         (bb_in_sd_region): Deleted.
570         (find_single_entry_edge): Deleted.
571         (find_single_exit_edge): Deleted.
572         (create_single_entry_edge): Deleted.
573         (sd_region_without_exit): Deleted.
574         (create_single_exit_edge): Deleted.
575         (unmark_exit_edges): Deleted.
576         (mark_exit_edges): Deleted.
577         (create_sese_edges): Deleted.
578         (build_graphite_scops): Deleted.
579         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
580         (build_scops): Use the new scop_builder to build scops.
581         (dot_all_scops_1): Use the new pretty printer.  Print loop father
582         as well.
583         (loop_body_is_valid_scop): New.  Return true if loop body is a
584         valid scop.
585         (class scop_builder): New.  Builds SCoPs for polyhedral
586         optimizations.
587         (scop_builder): New constructor.
588         (static sese_l invalid_sese): sese_l with invalid edges.
589         (get_sese): Get an sese (from a loop) if possible, invalid_sese
590         otherwise.
591         (get_nearest_dom_with_single_entry): Get nearest dominator of a
592         basic_block with single entry.  Return NULL if we get to the
593         beginning of a function.
594         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
595         a basic_block with single exit.  Return NULL if we get to the
596         beginning of a function.
597         (print_sese): Pretty-print SESE.
598         (merge_sese): Merge two SESEs if possible and return the new SESE.
599         (build_scop_depth): Start building the SCoP within a loop nest.
600         (build_scop_breadth): Start building the SCoP at a single loop
601         depth.  Merge adjacent SESEs if valid.
602         (can_represent_loop_1): Returns true if Graphite can represent
603         loop inside SCoP.  Helper for can_represent_loop.
604         (can_represent_loop): Returns true if Graphite can represent LOOP
605         and all its nested loops in SCoP.
606         (loop_is_valid_scop): Returns true if LOOP and all its nests
607         constitute a valid SCoP.
608         (region_has_one_loop): Returns true of a region has only one loop.
609         (add_scop): Add SCoP to the list of valid scops.  Removes an
610         already existing scop if it intersects with or subsumed by this one.
611         (harmful_stmt_in_region): Returns true if SCoP has any statment
612         which cannot be represented by Graphite.
613         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
614         (remove_subscops): Remove any SCoP from the list of already found
615         SCoPs, if subsumed by S1.
616         (intersects): Return true if region bounded by SCoPs S1 and S2
617         intersect.
618         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
619         * graphite.c (print_graphite_scop_statistics):
620         (print_graphite_statistics): Print SCoP info while debugging.
621         (graphite_initialize): Early exit in case number of loops in a
622         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
623         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
624         (graphite_finalize):
625         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
626         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
627         (recompute_all_dominators): Recalculate POST_DOMINATORS.
628         * tree-cfg.c (print_loops): Print the function name while printing
629         loops.
631 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
632             Sebastian Pop  <s.pop@samsung.com>
634         PR tree-optimization/67700
635         * graphite-sese-to-poly.c (parameter_index_in_region): Call
636         invariant_in_sese_p_rec.
637         (extract_affine): Same.
638         (rewrite_cross_bb_scalar_deps): Call update_ssa.
639         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
640         * sese.h (invariant_in_sese_p_rec): Declare.
642 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
644         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
646 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
648         Revert:
649         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
650                     Jiong Wang  <jiong.wang@arm.com>
652         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
653         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
654         (REG_CLASS_NAMES): Likewise.
655         (REG_CLASS_CONTENTS): Likewise.
656         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
657         (aarch64_register_move_cost): Likewise.
658         (aarch64_load_symref_appropriately): Invoke the new added pattern if
659         possible.
660         * config/aarch64/constraints.md (Uc0): New constraint.
662 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
664         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
666 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
668         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
669         SECTION_EXCLUDE in XO mapping class.
671 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
673         PR target/54236
674         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
675         and handle ne and eq codes.
676         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
677         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
678         CONST_INT_P.  Use reverse_condition.
679         (sh_split_treg_set_expr): Likewise.
681 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
683         * config/arm/types.md (type): Add rotate_imm.
684         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
685         ROR immediate case.
686         (*rorsi3_insn_uxtw): Likewise.
687         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
688         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
689         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
691 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
693         PR rtl-optimization/67481
694         * ifcvt.c (contains_ccmode_rtx_p): New function.
695         (insn_valid_noce_process_p): Use it.
697 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
699         PR rtl-optimization/67456
700         PR rtl-optimization/67464
701         PR rtl-optimization/67465
702         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
703         move in the mode of x.  Handle combination of complex and simple
704         block pairs as well as the case when one is empty.
706 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
708         * doc/gimple.texi: Update references to gimple_statement_base.
709         * gdbhooks.py: Likewise.
710         * gimple.h: Likewise.
712 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
714         * config/sparc/driver-sparc.c: map LEON to leon3
716 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
718         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
719           and make it inverse to change default
720         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
721           supervisor mode
722         * doc/invoke.texi: Document change of default
724 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
726         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
727         true on %f0 for a target without FPU.
728         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
729         without FPU.
730         (untyped_return): Do not load %f0 for a target without FPU.
732 2015-09-28  Andrew Pinski  <apinski@cavium.com>
734         * config/aarch64/aarch64.md (prefetch):
735         Change the predicate of operand 0 to register_operand.
737 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
739         * config/i386/predicates.md (register_sse4nonimm_operand): New
740         predicate.
741         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
742         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
743         Use register_sse4nonimm_operand as operand 0 predicate.
744         (*vec_extractv8hi_sse2): Remove insn pattern.
745         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
746         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
748 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
749             Kaz Kojima  <kkojima@gcc.gnu.org>
751         PR target/67391
752         * config/sh/sh-protos.h (sh_lra_p): Declare.
753         * config/sh/sh.c (sh_lra_p): Make non-static.
754         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
755         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
756         Expand into addsi3_scr if operands[2] if needed.
757         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
758         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
759         (addsi3_scr, *addsi3): New insn_and_split patterns.
761 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
763         PR rtl-optimization/64164
764         PR tree-optimization/67312
765         PR middle-end/67340
766         PR middle-end/67490
767         PR bootstrap/67597
768         * cfgexpand.c (parm_in_stack_slot_p): Remove.
769         (ssa_default_def_partition): Remove.
770         (get_rtl_for_parm_ssa_default_def): Remove.
771         (set_rtl): Check that RTL assignments match expectations.
772         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
773         default def location for params and results.  Record SSA names
774         or types in REG and MEM attrs, respectively.
775         (set_parm_rtl): New.
776         (expand_one_ssa_partition): Drop logic that assigned MEMs with
777         unassigned addresses.
778         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
779         deferred stack alloc vars.
780         (expand_used_vars): Skip partitions holding parm default defs.
781         Move adjust_one_expanded_partition_var loop...
782         (pass_expand::execute): ... here.  Drop redundant assert.
783         Adjust comments before the final loop over all ssa names.
784         Require assigned rtl of parms and results to match exactly.
785         Reset its attributes to match them, not any other variables in
786         the same partition.
787         (expand_debug_expr): Use entry value for PARM's default defs
788         only iff they have zero nondebug uses.
789         * cfgexpand.h (parm_in_stack_slot_p): Remove.
790         (get_rtl_for_parm_ssa_default_def): Remove.
791         (set_parm_rtl): Declare.
792         * doc/invoke.texi: Improve wording.
793         * explow.c (promote_decl_mode): Fix promote_function_mode for
794         result decls not by reference.
795         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
796         bypass TYPE_MODE to get the actual vector mode.
797         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
798         2015-08-19's changes as follows.  Drop include of
799         basic-block.h and df.h.
800         (rtl_for_parm): Remove.
801         (maybe_reset_rtl_for_parm): Remove.
802         (parm_in_unassigned_mem_p): Remove.
803         (use_register_for_decl): Add logic for RESULT_DECLs matching
804         assign_parms' behavior.
805         (split_complex_args): Revert.
806         (assign_parms_augmented_arg_list): Revert.  Add comment
807         referencing the logic above.
808         (assign_parm_adjust_stack_rtl): Revert.
809         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
810         of SET_DECL_RTL.  Set up a REG if the parm demands so.
811         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
812         calls into a single set_parm_rtl.  Set up a temporary RTL
813         temporarily for expand_assignment.
814         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
815         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
816         (assign_bounds): Revert.
817         (assign_parms): Revert.  Use set_parm_rtl.
818         (allocate_struct_function): Relayout result and parms of
819         non-abstruct functions.
820         (expand_function_start): Revert.  Use set_parm_rtl.  If the
821         result is not a hard reg, create a pseudo from the promoted
822         mode of the default def.  Promote static chain mode.
823         * tree-outof-ssa.c (remove_ssa_form): Drop unused
824         partition_has_default_def.  Set up
825         partitions_for_parm_default_defs.
826         (finish_out_of_ssa): Remove partition_has_default_def.
827         Release partitions_for_parm_default_defs.
828         * tree-outof-ssa.h (struct ssaexpand): Remove
829         partition_has_default_def.  Add
830         partitions_for_parm_default_defs.
831         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
832         stor-layout.h.
833         (build_ssa_conflict_graph): Fix conflict-detection of default
834         defs of even unused default defs of params and results.
835         (for_all_parms): New.
836         (create_default_def): New.
837         (register_default_def): New.
838         (coalesce_with_default): New.
839         (create_outofssa_var_map): Create default defs for all parms
840         and results, and register their partitions.  Add GIMPLE_RETURN
841         operands as coalesce candidates with results.  Add default
842         defs of each parm or result as coalesce candidates with its
843         other defs.  Mark each result def, and each default def of
844         parms, as used_in_copy.
845         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
846         with the ssa names, even anonymous ones.  Drop
847         parm_in_stack_slot_p calls.  Require same signedness and
848         alignment.
849         (coalesce_ssa_name): Add coalesce candidates for all defs of
850         each parm and result, even unused ones.
851         (parm_default_def_partition_arg): New type.
852         (set_parm_default_def_partition): New.
853         (get_parm_default_def_partitions): New.
854         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
855         * tree-ssa-live.c (partition_view_init): Regard unused defs of
856         parms and results as used.
857         (verify_live_on_entry): Don't error out just because they're
858         not live.
860 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
862         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
863         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
864         (output_fde): Don't output length for debug_frame on AIX.
865         (output_call_frame_info): Don't output length for debug_frame on AIX.
866         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
867         HAVE_XCOFF_DWARF_EXTRAS.
868         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
869         HAVE_XCOFF_DWARF_EXTRAS.
870         (output_compilation_unit_header): Don't output length on AIX.
871         (output_pubnames): Don't output length on AIX.
872         (output_aranges): Delete argument. Compute length locally. Don't
873         output length on AIX.
874         (output_line_info): Don't output length on AIX.
875         (dwarf2out_finish): Don't compute aranges_length.
876         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
877         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
878         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
879         symbol decoration for AIX.
880         (rs6000_xcoff_debug_unwind_info): New.
881         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
882         for SECTION_DEBUG.
883         (rs6000_xcoff_declare_function_name): Emit different
884         .function pseudo-op when DWARF2_DEBUG. Don't call
885         xcoffout_declare_function for DWARF2_DEBUG.
886         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
887         Redefine.
888         * config/rs6000/aix71.h: New.
889         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
890         locations support.
891         * configure: Regenerate.
892         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
893         DWARF support.
895 2015-09-26  Jeff Law  <law@redhat.com>
897         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
898         behaviour.
899         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
900         behaviour.
902         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
903         behaviour
905         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
906         undefined behaviour.
908         * config/cris/cris.md (asrandb): Fix left shift undefined
909         behaviour.
910         (asrandw): Likewise.
912 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
914         PR target/61578
915         * lra-constarints.c (match_reload): Check presence of the input pseudo
916         in the output operand.
918 2015-09-25  Tobias Burnus  <burnus@net-b.de>
920         * doc/invoke.texi (-fsanitize): Minor wording tweak.
922 2015-09-25  Tobias Burnus  <burnus@net-b.de>
924         * doc/invoke.texi (-fsanitize): Update URLs.
926 2015-09-25  Teresa Johnson  <tejohnson@google.com>
928         * opts.c (finish_options): Unset -freorder-blocks-and-partition
929         if not using profile.
931 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
933         PR pretty-print/67567
934         * pretty-print.c (pp_string): Add gcc_checking_assert.
935         * pretty-print.h (output_buffer_append_r): Likewise.
937 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
939         PR target/67675
940         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
941         addr2 individually.  Don't emit logical or insn if one is known to
942         be aligned approriately.
943         (sh_expand_cmpnstr): Likewise.
945 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
947         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
948         __builtin_aarch64_fp[sc]r arguments into a register.
950 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
952         * config.gcc (x86_archs): Replace lakemount with lakemont.
953         (with_cpu): Likewise.
954         (with_arch): Likewise.
955         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
956         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
957         __tune_lakemount__ with __tune_lakemont__.
958         * config/i386/i386.c (lakemount_cost): Renamed to ...
959         (lakemont_cost): This.
960         (m_LAKEMOUNT): Renamed to ...
961         (m_LAKEMONT): This.
962         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
963         (processor_target_table): Replace "lakemount" with "lakemont".
964         (processor_alias_table): Likewise.
965         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
966         PROCESSOR_LAKEMONT.
967         (ix86_adjust_cost): Likewise.
968         (ia32_multipass_dfa_lookahead): Likewise.
969         * config/i386/i386.h (processor_type): Likewise.
970         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
971         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
972         Lakemount with Lakemont.
974 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
976         * config.gcc (x86_archs): Replace iamcu with lakemount.
977         (with_cpu): Likewise.
978         (with_arch): Likewise.
979         * doc/invoke.texi: Likewise.
980         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
981         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
982         __tune_iamcu__ with __tune_lakemount__.
983         * config/i386/i386.c (iamcu_cost): Renamed to ...
984         (lakemount_cost): This.
985         (m_IAMCU): Renamed to ...
986         (m_LAKEMOUNT): This.
987         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
988         (processor_target_table): Replace "iamcu" with "lakemount".
989         (processor_alias_table): Likewise.
990         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
991         PROCESSOR_LAKEMOUNT.
992         (ix86_adjust_cost): Likewise.
993         (ia32_multipass_dfa_lookahead): Likewise.
994         * config/i386/i386.h (processor_type): Likewise.
995         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
997 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
999         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
1000         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
1001         Declare.
1002         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
1003         (pa_expand_compare_and_swap_loop): New.
1004         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
1005         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
1006         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
1007         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
1008         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
1009         Revise.
1011 2015-09-24  Michael Collison  <michael.collison@linaro.org>
1013         PR other/57195
1014         * read-md.c (read_name): Allow mode iterators inside angle
1015         brackets in rtl expressions.
1017 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
1019         PR target/61578
1020         * ira-color.c (update_allocno_cost): Add parameter.
1021         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
1022         parameter.
1024 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1026         PR driver/67640
1027         * opts-common.c (prune_options): Discard all -fdiagnostics-color
1028         but the last one, which is moved to the front to be processed
1029         first.
1030         * opts.c (enable_warning_as_error): Reject options that do not
1031         control warnings.
1033 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
1035         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
1037 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
1039         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
1040         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
1041         (aarch64_cannot_force_const_mem): Likewise.
1042         (aarch64_classify_address): Likewise.
1043         (aarch64_classify_symbolic_expression): Likewise.
1044         (aarch64_print_operand): Likewise.
1045         (aarch64_classify_symbol): Likewise.
1046         (aarch64_mov_operand_p): Likewise.
1047         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
1048         (aarch64_mov_operand): Likewise.
1050 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
1052         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
1053         for info->spe_gp_size.
1055 2015-09-24  Richard Biener  <rguenther@suse.de>
1057         PR lto/67699
1058         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
1059         abstract origins.
1061 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
1063         * tree-object-size.c (plus_stmt_object_size)
1064         (cond_expr_object_size): Change the formal parameters from gimple
1065         to gimple *.
1066         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
1067         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
1068         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
1070 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1072         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
1073         Check for ld -type pie on Solaris 11.x and 12.
1074         * configure: Regenerate.
1075         * config.in: Regenerate.
1077         * gcc.c (LD_PIE_SPEC): Allow redefinition.
1079         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
1080         (STARTFILE_SPEC): Use it.
1081         (ENDFILE_CRTEND_SPEC): Define.
1082         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
1083         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
1084         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
1085         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
1086         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
1087         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
1088         (ENDFILE_ARCH_SPEC): Define.
1089         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
1091 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1093         * configure.ac (gcc_cv_solaris_crts): New test.
1094         * configure. Regenerate.
1095         * config.in: Regenerate.
1096         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
1097         HAVE_SOLARIS_CRTS variant.
1099 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1101         * tree-inline.h (count_insns_seq): Delete prototype.
1102         (estimate_num_insns_seq): Define prototype.
1103         * tree-inline.c (count_insns_seq): Delete.
1104         (estimate_num_insns_seq): Remove static qualifier.
1105         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
1106         with estimate_num_insns_seq.
1108 2015-09-24  Richard Biener  <rguenther@suse.de>
1110         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
1111         members.
1112         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
1113         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
1114         offset.
1115         (ao_ref_init_from_vn_reference): Record clique and base in the
1116         built base.
1117         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
1119 2015-09-24  Richard Biener  <rguenther@suse.de>
1121         PR tree-optimization/48885
1122         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
1123         as not including any restrict tags from other pointers.
1125 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
1127         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
1128         character when appending to offload_targets.
1130         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
1131         offload targets by commas, not colons.
1132         * config.in: Regenerate.
1133         * configure: Likewise.
1134         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
1135         instead of setting up the default offload targets here...
1136         (process_command): ..., do it here.
1137         libgomp/
1138         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
1139         targets are separated by commas.
1140         * config.h.in: Regenerate.
1142 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
1143             Nathan Sidwell  <nathan@codesourcery.com>
1145         * omp-low.h (omp_reduction_init_op): Declare.
1146         * omp-low.c (omp_reduction_init_op): New, broken out of ...
1147         (omp_reduction_init): ... here.  Call it.
1148         * tree-parloops.c (initialize_reductions): Use
1149         omp_reduction_init_op.
1151 2015-09-23   Richard Biener  <rguenther@suse.de>
1153         PR middle-end/67662
1154         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
1155         undefined overflow unless they will cancel out.
1157 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1159         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
1160         insn emit.
1162 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1164         PR c/49655
1165         * opts.h (write_langs): Declare.
1166         * opts-global.c (write_langs): Make it extern.
1168 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
1170         PR target/67391
1171         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
1172         overlapping regs when matching the pattern.
1174 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
1176         * config/aarch64/aarch64-simd.md
1177         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
1178         (aarch64_float_truncate_hi_v4sf_le): New.
1179         (aarch64_float_truncate_hi_v4sf_be): Likewise.
1181 2015-09-23  Richard Biener  <rguenther@suse.de>
1183         * tree-ssa-structalias.c (intra_create_variable_infos): Build
1184         representatives for all restrict qualified pointer destinations.
1186 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1188         * config/i386/i386.md (define_code_attr mshift): New.
1189         (define_mode_iterator SWI1248_AVX512BW): Rename ...
1190         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
1191         only.
1192         (define_insn "*k<logic><mode>"): Use new iterator name.
1193         (define_insn "*<mshift><mode>3"): New.
1195 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
1197         PR middle-end/67649
1198         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
1199         mark the block as accessible.
1201 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
1203         * function.c (thread_prologue_and_epilogue_insns): Delete
1204         orig_entry_edge argument to try_shrink_wrapping.
1205         * shrink-wrap.c (can_get_prologue): New function.
1206         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
1207         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
1208         can_get_prologue where needed.  Remove code that finds a single
1209         edge for the prologue.  Remove code that tests if any reg clobbered
1210         by the prologue is live on the prologue edge.  Remove code that finds
1211         the new prologue edge after duplicating blocks.  Make a new prologue
1212         block and edge.
1213         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
1215 2015-09-22  Jeff Law  <law@redhat.com>
1217         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
1218         behavior.
1220 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
1222         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
1223         -Wtemplates, -Wnamespaces): Document.
1225 2015-09-22  Tom de Vries  <tom@codesourcery.com>
1227         PR tree-optimization/67671
1228         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
1229         pointer references as restrict.
1231 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
1233         * config/nios2/nios2.c (nios2_legitimize_address): When handling
1234         'reg + reloc' cases, allow first operand to be non-REG, and use
1235         force_reg() to enforce address pattern.
1237 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
1239         PR target/67480
1240         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
1241         (define_mode_iterator VI12_AVX_AVX512F): New.
1242         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
1243         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
1244         (define_insn "*<code><mode>3"): ... Into new pattern using
1245         VI12_AVX_AVX512F iterators without masking.
1247 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
1249         * config.gcc: Support "skylake-avx512".
1250         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1251         PROCESSOR_SKYLAKE_AVX512.
1252         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
1253         (processor_target_table): Add "skylake-avx512".
1254         (PTA_SKYLAKE_AVX512): Define.
1255         (ix86_option_override_internal): Add "skylake_avx512".
1256         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
1257         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
1258         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
1259         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
1260         * doc/invoke.texi (skylake-avx512): New.
1262 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
1264         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1265         operand in pattern.
1266         (define_insn "kunpcksi"): Ditto.
1267         (define_insn "kunpckdi"): Ditto.
1269 2015-09-22  Kirill Yukhin <kirill.yukhin@intel.com>
1271         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1272         iterator instead of fixed modes.
1274 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
1276         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1277         Adjust declaration.
1278         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
1279         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
1280         out_result.  Update to support update-fetch operations.
1281         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
1282         Adjust for change to aarch64_gen_atomic_ldop.
1283         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
1284         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
1285         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
1286         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
1287         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
1289 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
1291         * config/aarch64/aarch64-protos.h
1292         (aarch64_atomic_ldop_supported_p): Declare.
1293         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
1294         (enum aarch64_atomic_load_op_code): New.
1295         (aarch64_emit_atomic_load_op): New.
1296         (aarch64_gen_atomic_ldop): Update to support load-operate
1297         patterns.
1298         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
1299         to an expander.
1300         (aarch64_atomic_<atomic_optab><mode>): New.
1301         (aarch64_atomic_<atomic_optab><mode>_lse): New.
1302         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
1303         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
1304         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
1306 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
1308         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
1309         (UNSPECV_ATOMIC_LDOP_OR): New.
1310         (UNSPECV_ATOMIC_LDOP_BIC): New.
1311         (UNSPECV_ATOMIC_LDOP_XOR): New.
1312         (UNSPECV_ATOMIC_LDOP_PLUS): New.
1313         (ATOMIC_LDOP): New.
1314         (atomic_ldop): New.
1315         (aarch64_atomic_load<atomic_ldop><mode>): New.
1317 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
1319         * config/aarch64/aarch64.md
1320         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
1321         pattern.
1323 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
1325         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
1326         Declare.
1327         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
1328         (aarch64_gen_atomic_ldop): New.
1329         (aarch64_split_atomic_op): Fix whitespace and add a comment.
1330         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
1331         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
1332         (atomic_exchange<mode>): Replace with an expander.
1333         (aarch64_atomic_exchange<mode>): New.
1334         (aarch64_atomic_exchange<mode>_lse): New.
1335         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
1336         (aarch64_atomic_swp<mode>): New.
1338 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1340         * tree-inline.c (expand_call_inline): Use inform for extra note.
1341         Do not give a note with UNKNOWN_LOCATION.
1342         Replace input_location with gimple_location (stmt).
1343         Use true/false instead of TRUE/FALSE.
1345 2015-09-22  Tom de Vries  <tom@codesourcery.com>
1347         PR tree-optimization/67666
1348         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
1349         with single field non-conservative.
1351 2015-09-21  David S. Miller  <davem@davemloft.net>
1353         PR/67622
1354         Revert:
1355         2015-09-11  David S. Miller  <davem@davemloft.net>
1357         * config/sparc/constraints.md: Make "U" constraint a real register
1358         constraint.
1359         * config/sparc/sparc.c (TARGET_LRA_P): Define.
1360         (D_MODES, DF_MODES): Add missing cast.
1361         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1362         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1363         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1364         cost to 8.
1365         * config/sparc/sparc.h (PROMOTE_MODE): Define.
1366         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1367         provide these insn when flag_pic.
1369         2015-09-17  David S. Miller  <davem@davemloft.net>
1371         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
1372         Declare.
1373         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
1374         function.
1375         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1376         (HARD_REGNO_CALLER_SAVE_MODE): Define.
1377         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1378         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1379         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1380         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1381         provide when flag_pic.
1383 2015-09-21  Jeff Law  <law@redhat.com>
1385         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
1386         behavior.
1388 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1390         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
1392 2015-09-21  Richard Biener  <rguenther@suse.de>
1394         * passes.c (rest_of_decl_compilation): Do not call
1395         dwarf2out_early_global_decl for aliases.
1397 2015-09-21  Richard Biener  <rguenther@suse.de>
1399         PR debug/67664
1400         * dwarf2out.c (add_location_or_const_value_attribute): Remove
1401         attribute parameter.  Early exit if either DW_AT_const_value
1402         or DW_AT_location are present already.
1403         (gen_variable_die): Adjust caller.
1404         (dwarf2out_late_global_decl): Likewise.
1406 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
1408         PR target/67657
1409         * config/sh/sh.c (sh_remove_overlapping_post_inc,
1410         sh_peephole_emit_move_insn): Add new functions.
1411         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1412         sh_peephole_emit_move_insn): Declere them.
1413         * config/sh/sh.md: Use them in various peephole2 patterns.
1415 2015-09-21  Richard Biener  <rguenther@suse.de>
1417         PR middle-end/67651
1418         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
1419         address with -fno-delete-null-pointer-checks.
1421 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
1423         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
1424         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
1425         (reduc_uplus_v16qi): Remove.
1427         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
1428         (reduc_<VEC_reduc_name>_v2df): Remove.
1429         (reduc_<VEC_reduc_name>_v4sf): Remove.
1430         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
1432         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
1433         gen_ function by removing * prefix.
1434         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
1436 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1438         PR middle-end/60832
1439         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1440         Print i_bound without converting it to a tree.
1442 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
1444         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
1445         operands[4] operands[5] swap with std::swap, removed tmp variable.
1446         (arm_evpc_neon_vzip): Replaced in0/in1 and
1447         out0/out1 swaps with std::swap, removed x variable.
1448         (arm_evpc_neon_vtrn): Replaced in0/int1 and
1449         out0/out1 swaos with std::swap, removed x variable.
1450         (arm_expand_vec_perm_const_1): Replaced
1451         d->op0/d->op1 swap with std::swap, removed x variable.
1452         (arm_evpc_neon_vuzp): Replaced in0/in1 and
1453         out0/out1 swaps with std::swap, removed x variable.
1455 2015-09-21  Jonathan Yong  <10walls@gmail.com>
1457         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1458         sysroot/usr/lib/32api for additional win32 libraries,
1459         fixes failing Cygwin bootstrapping.
1461 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
1463         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
1465 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
1467         PR target/67126
1468         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
1469         (*mov_t_msb_neg): Rewrite negc pattern.
1471 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
1473         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
1474         immediate generation code.
1476 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
1478         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
1479         redundant immediate generation code.
1481 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
1483         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
1484         (AARCH64_NUM_BITMASKS): Remove.
1485         (aarch64_bitmasks_cmp): Remove.
1486         (aarch64_build_bitmask_table): Remove.
1488 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
1490         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
1491         slow immediate matching loops with a faster algorithm.
1493 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
1495         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
1496         faster algorithm.
1498 2015-09-20  Jeff Law  <law@redhat.com>
1500         PR tree-optimization/47679
1501         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
1502         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
1503         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
1504         (thread_through_normal_block): Use record_temporary_equivalences.
1506 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
1508         * coretypes.h (gimple): Change typedef to be a forward declaration.
1509         * gimple.h (gimple_statement_base): rename to gimple.
1510         * (all functions and types using gimple): Adjust.
1511         * *.[ch]: Likewise.
1513 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
1514             David Edelsohn  <dje.gcc@gmail.com>
1516         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
1517         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1518         (EH_FRAME_THROUGH_COLLECT2): Define.
1519         (EH_TABLES_CAN_BE_READ_ONLY): Define.
1520         (ASM_OUTPUT_DWARF_PCREL): Define.
1521         (ASM_OUTPUT_DWARF_DATAREL): Define.
1523 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
1525         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1526         of TARGET_ELF32.
1528 2015-09-18  Jeff Law  <law@redhat.com>
1530         PR tree-optimization/47679
1531         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
1532         it here ...
1533         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
1534         object.  Update constructor.
1535         (pass_dominator::execute):  Corresponding chagnes to declaration
1536         and initialization of avail_exprs_stack.  Update constructor call
1537         for dom_opt_dom_walker object.
1538         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
1539         it down to children as needed.
1540         (record_equivalences_from_incoming_edge): Likewise.
1541         (eliminate_redundant_computations): Likewise.
1542         (record_equivalences_from_stmt): Likewise.
1543         (simplify_stmt_for_jump_threading): Likewise.
1544         (record_temporary_equivalences): Likewise.
1545         (optimize_stmt): Likewise.
1546         (dom_opt_dom_walker::thread_across_edge): Update access to
1547         avail_exprs_stack object and pass it to children as needed.
1548         (dom_opt_dom_walker::before_dom_children): Similarly.
1549         (dom_opt_dom_walker::after_dom_children): Similarly.
1550         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
1551         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
1552         Add avail_expr_stack argument.  Pass it to children as needed.
1553         (dummy_simplify): Likewise.
1554         (simplify_control_stmt_condition): Likewise.
1555         (thread_around_empty_blocks): Likewise.
1556         (thread_through_normal_block): Likewise.
1557         (thread_across_edge): Likewise.
1558         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1559         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
1561         PR tree-optimization/47679
1562         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
1563         it here ...
1564         (dom_opt_dom_walker): New private member holding the const_and_copies
1565         object.  Update constructor.
1566         (pass_dominator::execute): Corresponding changes to declaration
1567         and initialization of const_and_copies.  Update constructor call
1568         for the dom_opt_dom_walker object.
1569         (record_temporary_equivalences): Accept const_and_copies argument
1570         pass it down to children as needed.
1571         (record_equality): Likewise.
1572         (record_equivalences_from_incoming_edge): Likewise.
1573         (cprop_into_successor_phis, optimize_stmt): Likewise.
1574         (eliminate_redundant_computations): Likewise.
1575         (dom_opt_dom_walker::thread_across_edge): Update access to
1576         const_and_copies object and pass it to children as needed.
1577         (dom_opt_dom_walker::before_dom_children): Similarly.
1578         (dom_opt_dom_walker::after_dom_children): Similarly.
1580         PR tree-optimization/47679
1581         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
1582         it into the avail_exprs_stack class.
1583         (pass_dominator::execute): Corresponding changes to declaration
1584         and initialization of avail_exprs.  Pass avail_exprs to
1585         dump_dominator_optimization_stats.
1586         (record_cond): Extract avail_exprs from avail_exprs_stack.
1587         (lookup_avail_expr): Similarly.
1588         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
1589         position in file.
1590         (dump_dominator_optimization_stats): Make static and prototype.
1591         Add argument for the hash table to dump.
1592         (debug_dominator_optimization_stats): Remove.
1593         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
1594         prototype.
1595         (debug_dominator_optimization_stats): Similarly.
1596         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
1597         "void" in prototype for pop_to_marker method.  Add accessor method
1598         for the underlying avail_exprs table.
1600         * tree-ssa-threadedge.c: Remove trailing whitespace.
1602 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
1604         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
1605         unsigned.
1606         (pa_ldil_cint_p): Likewise.
1607         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
1608         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
1609         Update callers.
1610         * config/pa/pa.md: Likewise.
1612 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
1614         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
1615         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
1616         (diagnostic_show_locus): Likewise.
1617         (diagnostic_print_caret_line): Likewise.
1618         * diagnostic-show-locus.c: New file.
1620 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
1622         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
1623         "back" parameter. Declare label in #if block.
1625 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
1627         PR middle-end/67619
1628         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1629         the address to a register.
1631 2015-09-18  Jeff Law  <law@redhat.com>
1633         PR tree-optimization/47679
1634         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
1635         * tree-ssa-dom.c: Remove unnecessary header includes.
1636         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
1637         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
1638         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
1639         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
1640         (pass_phi_only_cprop::execute): Likewise.
1641         (make_pass_phi_only_cprop): Likewise.
1642         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
1643         uses of file scoped statics by passing the required objects
1644         as parameters wherever needed.
1646 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
1647             David Edelsohn  <dje.gcc@gmail.com>
1649         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
1650         EH_FRAME_THROUGH_COLLECT2.
1651         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
1652         DW_EH_PE_datarel.
1653         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
1654         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
1655         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
1656         * except.c (switch_to_exception_section): Use a read-only section
1657         even if EH_FRAME_SECTION_NAME is undefined.
1658         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
1659         * collect2.c (write_c_file_stat): Provide dbase on AIX.
1660         (scan_prog_file): Don't export __dso_handle nor
1661         __gcc_unwind_dbase.
1662         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1663         (EH_TABLES_CAN_BE_READ_ONLY): Define.
1664         (ASM_OUTPUT_DWARF_PCREL): Define.
1665         (ASM_OUTPUT_DWARF_DATAREL): Define.
1666         (EH_FRAME_THROUGH_COLLECT2): Define.
1667         (EH_FRAME_IN_DATA_SECTION): Delete.
1668         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
1669         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
1670         Declare.
1671         (rs6000_asm_output_dwarf_datarel): Declare.
1672         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
1673         (rs6000_aix_asm_output_dwarf_datarel): New.
1674         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
1675         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
1676         (EH_FRAME_THROUGH_COLLECT2): Define.
1677         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
1678         (EH_FRAME_THROUGH_COLLECT2): Define.
1679         (EH_TABLES_CAN_BE_READ_ONLY): Define.
1680         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
1681         (EH_FRAME_THROUGH_COLLECT2): New.
1682         (ASM_OUTPUT_DWARF_DATAREL): New.
1683         * doc/tm.texi: Regenerate.
1685 2015-09-18  Richard Biener  <rguenther@suse.de>
1687         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
1688         we're in early phase.
1689         (schedule_generic_params_dies_gen): Likewise.
1690         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
1691         work as possible, retaining unhandled cases.
1692         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
1693         clear out generic_type_instances at the end.
1694         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
1695         (dwarf2out_early_finish): ... here.  Do most of
1696         gen_remaining_tmpl_value_param_die_attribute here.
1698 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
1700         PR tree-optimization/67283
1701         * tree-sra.c (type_consists_of_records_p): Rename to...
1702         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1703         (completely_scalarize_record): Rename to...
1704         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1705         (scalarize_elem): New.
1706         (analyze_all_variable_accesses): Follow renamings.
1708 2015-09-18  Richard Biener  <rguenther@suse.de>
1710         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
1711         in early-dwarf.
1713 2015-09-18  Richard Biener  <rguenther@suse.de>
1715         PR tree-optimization/66142
1716         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
1717         treat MEM[&x] and x the same.
1718         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
1719         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
1720         when we simplified sth.
1721         (vn_reference_maybe_forwprop_address): Likewise.
1722         (valueize_refs_1): When we simplified through
1723         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
1724         set valueized_anything to true.
1725         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
1726         one ref kills the other instead of just a offset-based test.
1727         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
1728         for the operand_equal_p test to compare bases and also compare
1729         sizes.
1731 2015-09-17  Christian Bruel  <christian.bruel@st.com>
1733         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
1735 2015-09-17  Richard Henderson  <rth@redhat.com>
1737         PR libstdc++/65913
1738         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
1739         pointers that encode the alignment of the object.
1741 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1743         PR rtl-optimization/66790
1744         * df-problems.c (LIVE): Amend documentation.
1746 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
1748         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
1749         and optabs-tree.o.
1750         (GTFILES): Replace optabs.c with optabs-libfunc.c.
1751         * genopinit.c (main): Add an include guard to insn-opinit.h.
1752         Protect the rtx_code parts with NUM_RTX_CODE.
1753         * optabs.h: Split parts out to...
1754         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
1755         * optabs.c: Split parts out to...
1756         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
1757         * cilk-common.c: Include optabs-query.h rather than optabs.h.
1758         * fold-const.c: Likewise.
1759         * target-globals.c: Likewise.
1760         * tree-if-conv.c: Likewise.
1761         * tree-ssa-forwprop.c: Likewise.
1762         * tree-ssa-loop-prefetch.c: Likewise.
1763         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
1764         Remove unncessary include files.
1765         * tree-ssa-phiopt.c: Likewise.
1766         * tree-ssa-reassoc.c: Likewise.
1767         * tree-switch-conversion.c: Likewise.
1768         * tree-vect-data-refs.c: Likewise.
1769         * tree-vect-generic.c: Likewise.
1770         * tree-vect-loop.c: Likewise.
1771         * tree-vect-patterns.c: Likewise.
1772         * tree-vect-slp.c: Likewise.
1773         * tree-vect-stmts.c: Likewise.
1774         * tree-vrp.c: Likewise.
1775         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
1776         rather than optabs.h.
1777         * expr.c: Include optabs-tree.h.
1778         * function.c: Likewise.
1780 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1782         PR middle-end/65958
1783         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
1784         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
1785         * config/arm/arm.c: Include common/common-target.h.
1786         (use_return_insn): Return 0 if the static chain register was saved
1787         above a non-APCS frame.
1788         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
1789         (struct scratch_reg): New.
1790         (get_scratch_register_on_entry): New function.
1791         (release_scratch_register_on_entry): Likewise.
1792         (arm_emit_probe_stack_range): Likewise.
1793         (output_probe_stack_range): Likewise.
1794         (arm_expand_prologue): Factor out code dealing with the IP register
1795         for nested function and adjust it for stack checking.
1796         Invoke arm_emit_probe_stack_range if static builtin stack checking
1797         is enabled.
1798         (thumb1_expand_prologue): Sorry out if static builtin stack checking
1799         is enabled.
1800         (arm_expand_epilogue): Add the saved static chain register, if any, to
1801         the amount of pre-pushed registers to pop.
1802         (arm_frame_pointer_required): Return true if static stack checking is
1803         enabled and we want to catch the exception with the EABI unwinder.
1804         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
1805         (UNSPEC_PROBE_STACK_RANGE): Likewise.
1806         * config/arm/arm.md (probe_stack): New insn.
1807         (probe_stack_range): Likewise.
1809 2015-09-17  Richard Biener  <rguenther@suse.de>
1811         * genmatch.c (parser::parse_expr): Improve error message
1812         for mis-placed flags.
1814 2015-09-17  Richard Biener  <rguenther@suse.de>
1816         * passes.c (rest_of_decl_compilation): Always call early_global_decl
1817         debug hook when we created a varpool node.
1818         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
1819         dwarf2out_early_global_decl, when not just add location or
1820         value attributes to existing DIEs.
1822 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
1824         * config/aarch64/aarch64.md (copysigndf3): New.
1825         (copysignsf3): Likewise.
1827 2015-09-17  David S. Miller  <davem@davemloft.net>
1829         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
1830         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
1831         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
1832         (HARD_REGNO_CALLER_SAVE_MODE): Define.
1833         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
1834         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
1835         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
1836         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
1837         provide when flag_pic.
1839 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1841         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
1842         object_allocator change.
1844 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
1846         PR tree-optimization/66388
1847         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
1848         (dump_iv): Dump no_overflow information.
1849         (alloc_iv): Initialize new field for struct iv.
1850         (mark_bivs): Count number of no_overflow bivs.
1851         (find_deriving_biv_for_expr, record_biv_for_address_use): New
1852         functions.
1853         (idx_find_step): Call new functions above.
1854         (add_candidate_1, add_candidate): New paramter.
1855         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
1856         (get_computation_aff): Simplify convertion of cand for BIV.
1857         (get_computation_cost_at): Step cand's base if necessary.
1859 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
1861         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
1862         parameter.
1863         (tree_simplify_using_condition): Ditto.
1864         (simplify_using_initial_conditions): Ditto.
1865         (loop_exits_before_overflow): Pass new argument to function
1866         simplify_using_initial_conditions.  Remove case for type conversions
1867         simplification.
1868         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
1869         parameter.
1870         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
1871         in iv base using loop initial conditions.
1873 2015-09-16  Jeff Law  <law@redhat.com>
1875         PR tree-optimization/47679
1876         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
1877         (free_all_edge_infos): Use it.
1878         (allocate_edge_info): Free preexisting edge info data.
1879         (pass_dominator::execute): Set up initial edge info structures.
1880         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
1881         thread_across_edge.
1882         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
1883         If non-null, then push/pop markers appropriately.
1884         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
1885         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
1886         thread-across_edge.
1888 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
1890         * config/ft32/ft32.c: Fix the memory address space predicate.
1892 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1894         PR target/67573
1895         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
1896         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1898 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1900         * toplev.h (check_global_declaration): Remove declaration.
1901         * toplev.c (check_global_declaration): Move to ...
1902         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
1903         (analyze_functions): Update call.
1905 2015-09-16  David S. Miller  <davem@davemloft.net>
1907         * lra-constraints.c (simplify_operand_subreg): Do not assume that
1908         lowpart of a SUBREG has offset zero.
1910 2015-09-16  Jeff Law  <law@redhat.com>
1912         PR tree-optimization/47679
1913         * tree-ssa-dom.c (enum expr_kind): Moved from here to
1914         tree-ssa-scopedtables.h.
1915         (struct hashable_expr, class expr_hash_elt): Likewise.
1916         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
1917         Move associated methods into tree-ssa-scopedtables.c.
1918         (avail_expr_hash, initialize_expr_from_cond): Similarly.
1919         (hashable_expr_equal_p, add_expr_commutative): Likewise.
1920         (add_hashable_expr): Likewise.
1921         (record_cond): Delete element directly.
1922         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
1923         private copy ctor and assignment operator methods.
1924         (expr_elt_hasher): Inline trivial methods.
1925         (initialize_expr_from_cond): Prototype.
1926         * tree-ssa-scopedtables.c: Add necessary includes, functions and
1927         methods that were previously in tree-ssa-dom.c.  Improve various
1928         comments.
1930 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
1932         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
1934 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
1936         PR bootstrap/67587
1937         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1938         fixup_partitions.
1940 2015-09-16  Richard Biener  <rguenther@suse.de>
1942         PR middle-end/67253
1943         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
1944         location of possibly shared trees.
1946 2015-09-16  Richard Biener  <rguenther@suse.de>
1948         PR middle-end/67271
1949         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1951 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1953         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
1954         offset and size computations instead of HOST_WIDE_INT.
1956 2015-09-16  Richard Biener  <rguenther@suse.de>
1958         PR middle-end/67442
1959         * fold-const.c (extract_muldiv_1): Properly extend multiplication
1960         result before builting a tree via wide_int_to_tree.
1962 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
1964         * Makefile.in: Add memory-block.cc
1965         (pool_allocator::initialize): Use fixed block size.
1966         (pool_allocator::release): Use memory_block_pool.
1967         (pool_allocator::allocate): Likewise.
1968         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
1969         object pools.
1970         * cfg.c (initialize_original_copy_tables): Likewise.
1971         * cselib.c (elt_list_pool, elt_loc_list_pool,
1972         cselib_val_pool): Likewise.
1973         * df-problems.c (df_chain_alloc): Likewise.
1974         * df-scan.c (df_scan_alloc): Likewise.
1975         * dse.c (cse_store_info_pool, rtx_store_info_pool,
1976         read_info_type_pool, insn_info_type_pool, bb_info_pool,
1977         group_info_pool, deferred_change_pool): Likewise.
1978         * et-forest.c (et_nodes, et_occurrences): Likewise.
1979         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
1980         ipcp_agg_lattice_pool): Likewise.
1981         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
1982         * ipa-profile.c (histogram_pool): Likewise.
1983         * ipa-prop.c (ipa_refdesc_pool): Likewise.
1984         * ira-build.c (live_range_pool, allocno_pool, object_pool,
1985         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
1986         * ira-color.c (update_cost_record_pool): Likewise.
1987         * lra-lives.c (lra_live_range_pool): Likewise.
1988         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
1989         * memory-block.cc: New file.
1990         * memory-block.h: New file.
1991         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
1992         * sched-deps.c (sched_deps_init): Likewise.
1993         * sel-sched-ir.c (sched_lists_pool): Likewise.
1994         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
1995         * tree-sra.c (access_pool): Likewise.
1996         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1997         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
1998         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
1999         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
2000         * tree-ssa-strlen.c (strinfo_pool): Likewise.
2001         * tree-ssa-structalias.c (variable_info_pool): Likewise.
2002         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
2003         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
2005 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
2007         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
2008         definition.
2009         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
2010         call0 ABI.
2012 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
2014         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
2015         to pass TLS call argument, according to current ABI.
2016         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
2017         callx0 for TLS call, according to current ABI.
2019 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2021         * tree-eh.c (lower_try_finally_dup_block): Clear location information
2022         on stack restore statements.
2023         (decide_copy_try_finally): Do not consider a stack restore statement as
2024         coming from sources.
2026 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
2028         * config/alpha/alpha.c (alpha_expand_block_clear): Use
2029         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
2031 2015-09-15  Jeff Law  <law@redhat.com>
2033         PR tree-optimization/47679
2034         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
2035         methods and private members.
2036         (avail_exprs_stack): Similarly.  Change type of global
2037         from a pair of expr_hash_elt_t to the new class.
2038         (expr_elt_hasher::hash): Corresponding changes.
2039         (expr_elt_hasher::equal): Similarly.
2040         (avail_expr_hash): Similarly.
2041         (pass_dominator::execute): Similarly.
2042         (dom_opt_dom_walker::thread_across_edge): Similarly.
2043         (record_cond): Similarly.
2044         (dom_opt_dom_walker::before_dom_children): Similarly.
2045         (dom_opt_dom_walker::after_dom_children): Similarly.
2046         (lookup_avail_expr): Likewise.
2047         (initialize_hash_element): Now a expr_hash_elt constructor.
2048         (initialize_hash_element_from_expr): Similarly.
2049         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
2050         (free_expr_hash_elt): Call dtor for the element.
2051         (remove_local_expressions_from_table): Now the "pop_to_marker"
2052         method in the available_exprs_stack class.
2053         (avail_expr_stack::record_expr): Method factored out.
2054         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
2055         Fix formatting.
2056         (hashable_expr_equal_p): Fix formatting.
2058 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
2060         * input.h (location_get_source_line): Drop "expanded_location"
2061         param in favor of a file and line number.
2062         * input.c (location_get_source_line): Likewise.
2063         (dump_location_info): Update for change in signature of
2064         location_get_source_line.
2065         * diagnostic.c (diagnostic_print_caret_line): Likewise.
2067 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2069         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
2070         Bump to 4KB for SJLJ exceptions.
2071         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
2072         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
2073         * doc/tm.texi: Regenerate.
2075 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2077         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
2078         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
2079         Update prototype.
2081 2015-09-15  Richard Biener  <rguenther@suse.de>
2083         PR tree-optimization/67470
2084         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
2085         structure for PHI hoisting by inserting a forwarder block
2086         if appropriate.
2088 2015-09-15  Christian Bruel  <christian.bruel@st.com>
2090         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
2091         (arm_option_print): New function.
2093 2015-09-15  Christian Bruel  <christian.bruel@st.com>
2095         PR target/52144
2096         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
2097         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
2098         Remove flags parameter.
2099         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
2100         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
2101         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
2102         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
2103         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
2104         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
2105         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
2106         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
2108 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2110         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
2112         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
2113         AARCH64_VALID_SIMD_DREG_MODE.
2115 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2117         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
2118         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
2119         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
2120         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
2121         aarch64_ld4_lane<mode>): Combine together, making...
2122         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2123         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2124         aarch64_st4_lane<mode>): Combine together, making...
2125         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
2126         * config/aarch64/iterators.md (nregs): Add comment.
2128 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2130         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
2131         Change operand mode from <V_TWO_ELEM> to BLK.
2132         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
2133         (aarch64_vec_store_lanesoi_lane<mode): Likewise
2134         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2135         (aarch64_ld2_lane<mode>): Likewise.
2136         (aarch64_st2_lane<VQ:mode>): Likewise.
2137         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
2139 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2141         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
2142         Change operand mode from <V_FOUR_ELEM> to BLK.
2143         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
2144         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
2145         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2146         (aarch64_ld4_lane<mode>): Likewise.
2147         (aarch64_st4_lane<mode>): Likewise.
2148         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
2150 2015-09-15  Richard Biener  <rguenther@suse.de>
2152         PR middle-end/67563
2153         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2154         transfer EH info from old to new stmt.
2155         (replace_call_with_value): Likewise.
2156         (replace_call_with_call_and_fold): Likewise.
2157         (gimple_fold_builtin_memory_op): Likewise.
2158         (gimple_fold_builtin_memset): Likewise.
2159         (gimple_fold_builtin_stpcpy): Likewise.
2160         (gimple_fold_call): Likewise.
2162 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2164         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
2165         comment.
2166         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
2167         (aarch64_simd_intEI_type_node): Likewise.
2168         (aarch64_simd_builtin_std_type): Remove EImode case.
2169         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
2170         * config/aarch64/aarch64-modes.def: Remove EImode.
2172 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2174         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
2175         Change operand mode from <V_THREE_ELEM> to BLK.
2176         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
2177         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
2178         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
2179         (aarch64_ld3_lane<mode>): Likewise.
2180         (aarch64_st3_lane<mode>): Likewise.
2181         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
2183 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2185         * config/aarch64/aarch64-simd.md
2186         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
2187         Change all TImode operands to BLKmode.
2188         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
2189         Change all EImode operands to BLKmode.
2190         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
2191         Change all OImode operands to BLKmode.
2193         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
2194         and call set_mem_size.
2195         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
2197         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
2199 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
2201         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
2202         to...
2203         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
2205         (vec_store_lanesci_lane<mode>): Rename to...
2206         (aarch64_vec_store_lanesci_lane<mode>): ...this.
2208         (vec_store_lanesxi_lane<mode>): Rename to...
2209         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
2211         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
2212         aarch64_st4_lane<mode>): Follow renaming.
2214 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2216         * config/s390/s390.c (s390_const_operand_ok): Add missing
2217         brackets.
2219 2015-09-15  Richard Biener  <rguenther@suse.de>
2221         PR lto/67568
2222         * lto-streamer.h (lto_location_cache::current_sysp): Properly
2223         initialize.
2224         * lto-streamer-out.c (clear_line_info): Likewise.
2226 2015-09-15  Richard Biener  <rguenther@suse.de>
2228         * doc/match-and-simplify.texi: Fix wording.
2230 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
2232         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
2233         unnecessary type conversion in op1.
2235 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2237         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
2238         (dup_block_and_redirect): Delete function.
2239         (can_dup_for_shrink_wrapping): New function.
2240         (fix_fake_fallthrough_edge): New function.
2241         (try_shrink_wrapping): Rewrite function.
2242         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
2244 2015-09-14  Rich Felker  <dalias@libc.org>
2246         * configure.ac: Change target pattern for sh TLS support
2247         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
2248         * configure: Regenerate.
2250 2015-09-14  Jeff Law  <law@redhat.com>
2252         PR tree-optimization/47679
2253         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
2254         type rather than void *.
2256 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2258         PR fortran/67460
2259         * diagnostic.c (diagnostic_initialize): Do not set
2260         some_warnings_are_errors.
2261         (diagnostic_finish): Use DK_WERROR count instead.
2262         (diagnostic_report_diagnostic): Do not set
2263         some_warnings_are_errors.
2264         * diagnostic.h (struct diagnostic_context): Remove
2265         some_warnings_are_errors.
2267 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
2269         * config/sparc/predicates.md (const_all_ones_operand): Use
2270         CONSTM1_RTX to simplify definition.
2272 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
2274         PR target/67061
2275         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
2276         Handle call insns.
2278 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
2280         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
2281         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
2282         OPT_fshow_column to handled saved option cases.
2283         (append_compiler_options): Do not skip the above added options.
2285 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2287         PR target/63304
2288         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
2289         nopcrelative_literal_loads.
2290         (aarch64_classify_address): Likewise.
2291         (aarch64_constant_pool_reload_icode): Define.
2292         (aarch64_secondary_reload): Handle secondary reloads for
2293         literal pools.
2294         (aarch64_override_options): Handle nopcrelative_literal_loads.
2295         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
2296         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2297         Define.
2298         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2299         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
2300         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
2301         predicate.
2302         * doc/invoke.texi (mpc-relative-literal-loads): Document.
2304 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
2306         PR middle-end/67401
2307         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
2308         sync_compare_and_swap_optab libcall to target_oval.
2310 2015-09-14  Marek Polacek  <polacek@redhat.com>
2312         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
2313         value.
2314         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
2316 2015-09-11  Mark Wielaard  <mjw@redhat.com>
2318         PR c/28901
2319         * toplev.c (check_global_declaration): Check and use
2320         warn_unused_const_variable.
2321         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
2322         (-Wunused-variable): Remove non-constant. For C implies
2323         -Wunused-const-variable.
2324         (-Wunused-const-variable): New.
2326 2015-09-14  Richard Biener  <rguenther@suse.de>
2328         * doc/match-and-simplify.texi: Update for changed syntax
2329         of inner ifs and the new switch expression.
2331 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
2333         * config/i386/haswell.md: New file describing Haswell pipeline.
2334         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
2335         haswell-like processors.
2336         (ix86_reassociation_width): Increase reassociation width for 64-bit
2337         Haswell processor family.
2338         * config/i386/i386.md: Introduce haswell cpu and include new md file.
2340 2015-09-14  Richard Biener  <rguenther@suse.de>
2342         * doc/match-and-simplify.texi: Fixup some formatting issues
2343         and document the 's' flag.
2345 2015-09-13  Olivier Hainque  <hainque@adacore.com>
2346             Eric Botcazou  <ebotcazou@adacore.com>
2348         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
2349         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
2350         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
2351         (TARGET_CPU_gr5): Likewise.
2352         (TARGET_CPU_gr6): Likewise.
2353         (MULTILIB_DEFAULTS): Likewise.
2354         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
2355         for mcpu=gr5 and mcpu=gr6.
2356         (MULTILIB_DIRNAMES): Adjust accordingly.
2358 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2360         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
2361         (mem_ref_p): Likewise.
2362         (outermost_indep_loop): Adjust.
2363         (mem_ref_in_stmt): Likewise.
2364         (determine_max_movement): Likewise.
2365         (mem_ref_alloc): Likewise.
2366         (record_mem_ref_loc): Likewise.
2367         (set_ref_stored_in_loop): Likewise.
2368         (mark_ref_stored): Likewise.
2369         (gather_mem_refs_stmt): Likewise.
2370         (mem_refs_may_alias_p): Likewise.
2371         (for_all_locs_in_loop): Likewise.
2372         (struct rewrite_mem_ref_loc): Likewise.
2373         (rewrite_mem_refs): Likewise.
2374         (struct first_mem_ref_loc_1): Likewise.
2375         (first_mem_ref_loc): Likewise.
2376         (struct sm_set_flag_if_changed): Likewise.
2377         (execute_sm_if_changed_flag_set): Likewise.
2378         (execute_sm): Likewise.
2379         (hoist_memory_references):
2380         (struct ref_always_accessed): Likewise.
2381         (ref_always_accessed_p): Likewise.
2382         (refs_independent_p): Likewise.
2383         (record_dep_loop): Likewise.
2384         (ref_indep_loop_p_1): Likewise.
2385         (ref_indep_loop_p_2): Likewise.
2386         (ref_indep_loop_p): Likewise.
2387         (can_sm_ref_p): Likewise.
2388         (find_refs_for_sm): Likewise.
2389         (tree_ssa_lim_finalize): Likewise.
2391 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2393         * dwarf2out.c (dw_attr_ref): Remove typedef.
2394         (dw_line_info_ref): Likewise.
2395         (pubname_ref): Likewise.
2396         (dw_ranges_ref): Likewise.
2397         (dw_ranges_by_label_ref): Likewise.
2398         (comdat_type_node_ref): Likewise.
2399         (get_AT): Adjust.
2400         (get_AT_low_pc): Likewise.
2401         (get_AT_hi_pc): Likewise.
2402         (get_AT_string): Likewise.
2403         (get_AT_flag): Likewise.
2404         (get_AT_unsigned): Likewise.
2405         (get_AT_ref): Likewise.
2406         (get_AT_file): Likewise.
2407         (remove_AT): Likewise.
2408         (print_die): Likewise.
2409         (check_die): Likewise.
2410         (die_checksum): Likewise.
2411         (attr_checksum_ordered): Likewise.
2412         (struct checksum_attributes): Likewise.
2413         (collect_checksum_attributes): Likewise.
2414         (die_checksum_ordered): Likewise.
2415         (same_die_p): Likewise.
2416         (is_declaration_die): Likewise.
2417         (clone_die): Likewise.
2418         (clone_as_declaration): Likewise.
2419         (copy_declaration_context): Likewise.
2420         (break_out_comdat_types): Likewise.
2421         (copy_decls_walk): Likewise.
2422         (output_location_lists): Likewise.
2423         (external_ref_hasher::hash): Likewise.
2424         (optimize_external_refs_1): Likewise.
2425         (build_abbrev_table): Likewise.
2426         (size_of_die): Likewise.
2427         (unmark_all_dies): Likewise.
2428         (size_of_pubnames): Likewise.
2429         (output_die_abbrevs): Likewise.
2430         (output_die): Likewise.
2431         (output_pubnames): Likewise.
2432         (add_ranges_num): Likewise.
2433         (add_ranges_by_labels): Likewise.
2434         (add_high_low_attributes): Likewise.
2435         (gen_producer_string): Likewise.
2436         (dwarf2out_set_name): Likewise.
2437         (new_line_info_table): Likewise.
2438         (prune_unused_types_walk_attribs): Likewise.
2439         (prune_unused_types_update_strings): Likewise.
2440         (prune_unused_types): Likewise.
2441         (resolve_addr): Likewise.
2442         (optimize_location_lists_1): Likewise.
2443         (index_location_lists): Likewise.
2444         (dwarf2out_finish): Likewise.
2446 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2448         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
2450 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2452         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
2453         (dump_asserts_for): Adjust.
2454         (register_new_assert_for): Likewise.
2455         (process_assert_insertions): Likewise.
2456         (insert_range_assertions): Likewise.
2458 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2460         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
2461         and remove typedef.
2462         (new_temp_expr_table): Adjust.
2463         (free_temp_expr_table): Likewise.
2464         (version_to_be_replaced_p): Likewise.
2465         (make_dependent_on_partition): Likewise.
2466         (add_to_partition_kill_list): Likewise.
2467         (remove_from_partition_kill_list): Likewise.
2468         (add_dependence): Likewise.
2469         (finished_with_expr): Likewise.
2470         (process_replaceable): Likewise.
2471         (kill_expr): Likewise.
2472         (kill_virtual_exprs): Likewise.
2473         (mark_replaceable): Likewise.
2474         (find_replaceable_in_bb): Likewise.
2475         (find_replaceable_exprs): Likewise.
2476         (debug_ter): Likewise.
2478 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2480         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
2481         (struct btr_user): Rename from btr_user_s.
2482         (struct btr_def): Rename from btr_def_s.
2483         (find_btr_def_group): Adjust.
2484         (add_btr_def): Likewise.
2485         (new_btr_user): Likewise.
2486         (note_other_use_this_block): Likewise.
2487         (compute_defs_uses_and_gen): Likewise.
2488         (link_btr_uses): Likewise.
2489         (build_btr_def_use_webs): Likewise.
2490         (block_at_edge_of_live_range_p): Likewise.
2491         (btr_def_live_range): Likewise.
2492         (combine_btr_defs): Likewise.
2493         (move_btr_def): Likewise.
2494         (migrate_btr_def): Likewise.
2495         (migrate_btr_defs): Likewise.
2497 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2499         * var-tracking.c (shared_hash_def): Rename to shared_hash.
2500         (shared_hash): Remove typedef.
2501         (struct dataflow_set): Adjust.
2502         (shared_hash_unshare): Likewise.
2503         (dataflow_set_merge): Likewise.
2504         (vt_initialize): Likewise.
2505         (vt_finalize): Likewise.
2507 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2509         * var-tracking.c (struct location_chain): Rename from
2510         location_chain_def.
2511         (struct variable_part): Adjust.
2512         (variable_htab_free): Likewise.
2513         (unshare_variable): Likewise.
2514         (get_init_value): Likewise.
2515         (get_addr_from_local_cache): Likewise.
2516         (drop_overlapping_mem_locs): Likewise.
2517         (val_reset): Likewise.
2518         (struct variable_union_info): Likewise.
2519         (variable_union): Likewise.
2520         (find_loc_in_1pdv): Likewise.
2521         (insert_into_intersection): Likewise.
2522         (intersect_loc_chains): Likewise.
2523         (canonicalize_loc_order_check): Likewise.
2524         (canonicalize_values_mark): Likewise.
2525         (canonicalize_values_star): Likewise.
2526         (canonicalize_vars_star): Likewise.
2527         (variable_merge_over_cur): Likewise.
2528         (remove_duplicate_values): Likewise.
2529         (variable_post_merge_new_vals): Likewise.
2530         (variable_post_merge_perm_vals): Likewise.
2531         (find_mem_expr_in_1pdv): Likewise.
2532         (dataflow_set_preserve_mem_locs): Likewise.
2533         (dataflow_set_remove_mem_locs): Likewise.
2534         (variable_part_different_p): Likewise.
2535         (onepart_variable_different_p): Likewise.
2536         (find_src_set_src): Likewise.
2537         (dump_var): Likewise.
2538         (set_slot_part): Likewise.
2539         (clobber_slot_part): Likewise.
2540         (delete_slot_part): Likewise.
2541         (vt_expand_var_loc_chain): Likewise.
2542         (emit_note_insn_var_location): Likewise.
2543         (vt_finalize): Likewise.
2545 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2547         * dse.c (store_info_t): Remove typedef.
2548         (group_info_t): Likewise.
2549         (const_group_info_t): Likewise.
2550         (deferred_change_t): Likewise.
2551         (get_group_info): Adjust.
2552         (free_store_info): Likewise.
2553         (canon_address): Likewise.
2554         (clear_rhs_from_active_local_stores): Likewise.
2555         (record_store): Likewise.
2556         (replace_read): Likewise.
2557         (check_mem_read_rtx): Likewise.
2558         (scan_insn): Likewise.
2559         (remove_useless_values): Likewise.
2560         (dse_step1): Likewise.
2561         (dse_step2_init): Likewise.
2562         (dse_step2_nospill): Likewise.
2563         (scan_stores_nospill): Likewise.
2564         (scan_reads_nospill): Likewise.
2565         (dse_step3_exit_block_scan): Likewise.
2566         (dse_step3): Likewise.
2567         (dse_step5_nospill): Likewise.
2568         (dse_step6): Likewise.
2570 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2572         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
2573         (alias_set_entry): Remove typedef.
2574         (alias_set_subset_of): Adjust.
2575         (alias_sets_conflict_p): Likewise.
2576         (init_alias_set_entry): Likewise.
2577         (get_alias_set): Likewise.
2578         (new_alias_set): Likewise.
2579         (record_alias_subset): Likewise.
2581 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
2583         * doc/install.texi (Downloading the source): Mark up
2584         contrib/download_prerequisites properly and drop leading "./".
2586 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2588         * config/arc/arc.h: Remove define of STRUCT_VALUE.
2589         * config/lm32/lm32.h: Likewise.
2590         * config/mep/mep.h: Likewise.
2591         * config/visium/visium.h: Likewise.
2592         * system.h: Poison STRUCT_VALUE macro.
2594 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
2596         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
2597         CONSTANT_P operands.
2599 2015-09-11  David S. Miller  <davem@davemloft.net>
2601         * config/sparc/constraints.md: Make "U" constraint a real register
2602         constraint.
2603         * config/sparc/sparc.c (TARGET_LRA_P): Define.
2604         (D_MODES, DF_MODES): Add missing cast.
2605         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2606         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2607         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2608         cost to 8.
2609         * config/sparc/sparc.h (PROMOTE_MODE): Define.
2610         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2611         provide these insn when flag_pic.
2613 2015-09-11  Jeff Law  <law@redhat.com>
2615         PR tree-optimization/47679
2616         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
2617         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
2618         member with m_.  Update inline member functions as necessary.  Add
2619         toplevel comment.
2620         * tree-ssa-scopedtables.c: Update const_and_copies's member
2621         functions to use m_ prefix to access the stack.
2623 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
2625         * graphite-optimize-isl.c (disable_tiling): Remove.
2626         (get_schedule_for_band): Do not use disable_tiling.
2627         (get_prevector_map): Delete function.
2628         (enable_polly_vector): Remove.
2629         (get_schedule_for_band_list): Remove dead code.
2631 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
2633         * graphite-optimize-isl.c (get_tile_map): Refactor.
2634         (get_schedule_for_band): Same.
2635         (getScheduleForBand): Same.
2636         (get_prevector_map): Same.
2637         (get_schedule_for_band_list): Same.
2638         (get_schedule_map): Same.
2639         (get_single_map): Same.
2640         (apply_schedule_map_to_scop): Same.
2641         (optimize_isl): Same.
2643 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2645         PR target/63304
2646         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
2647         (movtf): Delete.
2648         * config/aarch64/iterators.md (GPF_TF_F16): New.
2649         (GPF_F16): Delete.
2651 2015-09-10  Nathan Sidwell  <nathan@acm.org>
2653         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
2654         (nvptx_reorg): Adjust comments.
2656 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
2658         PR bootstrap/67363
2659         * configure.ac: Check if setenv and unsetenv are declared.
2660         * configure: Rebuild.
2661         * config.in: Rebuild.
2662         * system.h: Declare setenv and unsetenv if not declared.
2664 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2666         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
2667         commentary to simplify permute mask adjustment equation.
2668         (special_handling_values): Add SH_VPERM.
2669         (const_load_sequence_p): New function.
2670         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
2671         the mask loaded from the constant pool.
2672         (adjust_vperm): New function.
2673         (handle_special_swappables): Call adjust_vperm.
2674         (dump_swap_insn_table): Handle SH_VPERM.
2676 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2678         * shrink-wrap.c (requires_stack_frame_p): Remove static.
2679         * shrink-wrap.h (requires_stack_frame_p): Put back.
2681 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2683         * reload1.c (elimination_costs_in_insn): Locally turn
2684         -Wmaybe-uninitialized into a warning.
2686 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
2688         * shrink-wrap.c (requires_stack_frame_p): Make static.
2689         (prepare_shrink_wrap): Likewise.
2690         (dup_block_and_redirect): Likewise.
2691         * shrink-wrap.h: Remove declarations of those functions.
2693 2015-09-10  Mark Wielaard  <mjw@redhat.com>
2695         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
2697 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
2699         PR target/67506
2700         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
2701         missing simplify_gen_subreg.
2703 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2705         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
2706         the vector element is bigger than 64 bit.
2708 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2710         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
2711         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
2713 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2715         * config/s390/s390.c: Add V1TImode to constant pool modes.
2717 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2719         PR target/67439
2720         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
2721         predicate.  Set predicable_short_it attr to "no".
2723 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
2725         PR rtl-optimization/67421
2726         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
2727         left wide shift tranformation.
2729 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
2731         * common/config/arc/arc-common.c: Remove references to A5.
2732         * config/arc/arc-opts.h: Likewise.
2733         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
2734         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
2735         * config/arc/t-arc-newlib: Likewise.
2737 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
2739         * config/arc/arc.md (length): Fix attribute length for conditional
2740         executed instructions with long immediate.
2742 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2744         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
2745         type for second alternative.
2747 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
2749         * doc/invoke.texi (Downloading GCC): Mention
2750         contrib/download_prerequisites script.
2752 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
2754         PR c++/67523
2755         * gimplify.c (gimplify_omp_for): If inner stmt is not found
2756         for combined loop, assert seen_error () and return GS_ERROR.
2758         PR middle-end/67521
2759         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
2760         if decl is already in outer->variables.
2762         PR middle-end/67517
2763         * gimplify.c (gimplify_scan_omp_clauses): Instead of
2764         asserting that decl is not specified in octx->variables,
2765         break out of the loop if it is.
2767         PR c++/67514
2768         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
2769         iterator is not explicitly determined, but is defined inside
2770         of the combined workshare region, handle it like if it has
2771         DECL_EXPR in OMP_FOR_PRE_BODY.
2773 2015-09-09  Nathan Sidwell  <nathan@acm.org>
2775         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
2776         (*cmp<mode>): Add assembler spacing.
2777         (setcc_int<mode>, set_cc_float<mode>): Likewise.
2778         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
2779         level.
2780         (write_func_decl_from_insn): Refactor argument loops & comma emission.
2781         (nvptx_expand_call): Likewise.
2782         (nvptx_output_call_insn): Likewise.
2783         (nvptx_reorg_subreg): Add spacing.
2785 2015-09-09  Marek Polacek  <polacek@redhat.com>
2787         PR middle-end/67512
2788         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
2789         for comparisons.
2791 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2793         PR c++/53184
2794         * doc/invoke.texi ([Wsubobject-linkage]): Document.
2796 2015-09-09  Tom de Vries  <tom@codesourcery.com>
2798         * params-list.h: Add missing copyright notice.
2800 2015-09-09  Nathan Sidwell  <nathan@acm.org>
2802         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
2803         sel_truesi, not andsi.
2805 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2807         * config/arm/arm.md (*subsi3_compare0): Rename to...
2808         (subsi3_compare0): ... This.
2809         (modsi3): New define_expand.
2810         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
2811         when operand is power of 2.
2813 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2815         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
2816         (*neg<mode>2_compare0): Rename to...
2817         (neg<mode>2_compare0): ... This.
2818         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
2819         Move check for speed inside the if-then-elses.  Reflect
2820         CSNEG sequence in MOD by power of 2 case.
2822 2015-09-09  Alan Modra  <amodra@gmail.com>
2824         PR target/67378
2825         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
2826         reload replacement for PRE_MODIFY address reg.
2828 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
2830         PR tree-optimization/53852
2831         * config.in: Regenerate.
2832         * configure: Regenerate.
2833         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
2834         * graphite-optimize-isl.c (optimize_isl): Stop computation when
2835         PARAM_MAX_ISL_OPERATIONS is reached.
2836         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
2837         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
2838         result equal to isl_stat_ok as the status now can be isl_error_quota.
2839         (subtract_commutative_associative_deps): Same.
2840         (compute_deps): Same.
2842 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
2843             Sebastian Pop  <s.pop@samsung.com>
2845         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2846         Return the parameter if it was saved in corresponding
2847         parameter_rename_map of the region.
2848         (copy_def): Copy def from sese region to the newly created region.
2849         (copy_internal_parameters): Copy all the internal parameters defined
2850         within a region to the newly created region.
2851         (graphite_regenerate_ast_isl): Copy parameters to the new region before
2852         translating isl to gimple.
2853         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
2854         the loop-nest does not have any data-references.
2855         (build_graphite_scops): Create a scop only when there is at least one
2856         loop inside it.
2857         (contains_only_close_phi_nodes): Deleted.
2858         (print_graphite_scop_statistics): Deleted
2859         (print_graphite_statistics): Deleted
2860         (limit_scops): Deleted.
2861         (build_scops): Removed call to limit_scops.
2862         * sese.c (new_sese): Construct.
2863         (free_sese): Destruct.
2864         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
2865         added.
2866         (set_rename): Pass sese region so that parameters inside the region can
2867         be added to its parameter_rename_map.
2868         (rename_uses): Pass sese region.
2869         (graphite_copy_stmts_from_block): Do not copy parameters that have been
2870         generated in the header of the scop. For each SSA_NAME in the
2871         parameter_rename_map rename its usage.
2872         (invariant_in_sese_p_rec): Return false if tree t is defined outside
2873         sese region.
2874         (scalar_evolution_in_region): If the tree t is invariant just return t.
2875         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
2876         struct sese to keep track of all the parameters which need renaming.
2877         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
2878         any data-refs.
2879         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
2881 2015-09-08  Tom de Vries  <tom@codesourcery.com>
2883         * Makefile.in (generated_files): Add params.list.
2884         (params.list, s-params.list): Add rule.
2885         * params.h (enum compiler_param): Include params-list.h.  Move define
2886         DEFPARAM, include params.def and undef DEFPARAM ...
2887         * params-list.h: ... here.  New file.
2889 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
2891         * pretty-print.h (printer_fn): Fix typo in comment.
2893 2015-09-07  Jeff Law  <law@redhat.com>
2895         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
2897 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2899         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
2900         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
2901         (arm_neon_fp16_hw): New.
2903 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2905         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
2906         UNITS_PER_WORD >= 4.
2908 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2910         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
2911         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
2912         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
2913         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
2914         (aarch64_float_extend_lo_v2df): Rename to...
2915         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
2917         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
2918         (float_extend_lo): Add v4sf.
2920         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
2921         * config/aarch64/iterators.md (VQ_HSF): New iterator.
2922         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
2923         (Vwide): New mode_attr.
2925 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2927         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
2928         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
2929         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
2930         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
2931         V4HF and V8HF variants to iterator.
2933         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
2935         * config/aarch64/iterators.md (VDQF_F16): New.
2936         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
2938 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2940         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
2941         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
2942         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
2943         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
2944         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
2945         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
2946         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
2947         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
2948         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
2949         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
2950         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
2951         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
2952         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
2953         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
2954         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
2955         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
2956         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
2957         vld1q_dup_f16): New.
2959 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2961         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
2962         Reparameterize to...
2963         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
2964         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
2965         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
2967         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
2968         v8hf variant.
2969         (float_truncate_lo_): Use BUILTIN_VDF iterator.
2971         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
2973         * config/aarch64/iterators.md (VDF, Vdtype): New.
2974         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
2976 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2978         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
2979         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
2980         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
2981         Add __builtin_aarch64_simd_hf.
2982         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
2983         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
2984         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
2985         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
2986         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
2987         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
2988         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
2989         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
2990         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
2992         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
2993         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
2994         (VDC, Vdbl): Add V4HF.
2996 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2998         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
2999         V4HFmode and V8HFmode.
3000         (aarch64_split_simd_move): Add case for V8HFmode.
3001         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
3002         (aarch64_simd_builtin_std_type): Handle HFmode.
3003         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
3005         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
3006         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
3007         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
3009         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
3010         Float16x8_t.
3012         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
3013         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
3014         New typedefs.
3015         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
3016         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
3017         vst1q_lane_f16): New.
3018         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
3019         (VALLDI_F16, VALL_F16): New.
3020         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
3021         Add cases for V4HF and V8HF.
3022         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
3024 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3026         * config/arm/arm-builtins.c (VAR11, VAR12): New.
3027         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
3028         vld4_dup): Add v4hf variant.
3029         (vget_high, vget_low): Add v8hf variant.
3030         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
3031         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
3032         v4hf and v8hf variants.
3034         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
3035         (VDX): Add V4HF.
3036         (V_DOUBLE): Add case for V4HF.
3037         (VQX): Add V8HF.
3038         (V_HALF): Add case for V8HF.
3039         (VDQX): Add V4HF, V8HF.
3040         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
3041         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
3043         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
3044         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
3045         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
3046         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
3047         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
3048         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
3049         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
3050         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
3051         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
3053         (neon_vcreate, neon_vreinterpretv8qi<mode>,
3054         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
3055         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
3056         Change VDX to VD_RE.
3058         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
3059         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
3060         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
3062         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
3063         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
3064         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
3065         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
3066         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
3067         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
3068         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
3069         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
3070         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
3072 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3074         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
3075         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
3076         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
3077         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
3078         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
3079         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
3080         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
3081         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
3082         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
3083         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
3084         New.
3086 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3088         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
3090         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
3092         * config/arm/arm-builtins.c (v8hf_UP): New.
3093         (arm_init_simd_builtin_types): Initialise Float16x8_t.
3095         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
3097         * config/arm/arm_neon.h (float16x8_t): New typedef.
3099 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3101         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
3102         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
3103         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
3104         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
3105         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
3106         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
3107         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
3108         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
3109         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
3110         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
3112 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
3114         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
3115         non-alphanumeric characters in the symbol name.
3117 2015-09-07  Marek Polacek  <polacek@redhat.com>
3119         PR inline-asm/67448
3120         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
3121         a memory input.
3123 2015-09-07  Marek Polacek  <polacek@redhat.com>
3125         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
3127 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
3129         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
3130         not warn.
3132 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
3134         PR middle-end/67452
3135         * tree-ssa-live.c: Include cfgloop.h.
3136         (remove_unused_locals): Clear loop->simduid if simduid is about
3137         to be removed from cfun->local_decls.
3139 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3141         PR target/65210
3142         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
3143         attribute as well.
3145 2015-09-04  Tom de Vries  <tom@codesourcery.com>
3147         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
3149 2015-09-04  Jeff Law  <law@redhat.com>
3151         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
3152         unnecessary constructor.  It's now trivial and implemented inside...
3153         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
3154         constructor.  Add comments to various methods.  Remove unused
3155         private fields.
3156         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
3157         * tree-vrp.c (identify_jump_threads): Likewise.
3158         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
3159         indentation issues.
3160         (thread_across_edge): Similarly.
3161         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
3162         arguments in constructor call.
3164 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
3166         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
3167         temp path contains a '-'.
3169 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
3170             Petr Murzin  <petr.murzin@intel.com>
3171             Kirill Yukhin <kirill.yukhin@intel.com>
3173         * config/i386/i386-builtin-types.def
3174         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
3175         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
3176         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
3177         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
3178         * config/i386/i386.c
3179         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
3180         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3181         IX86_BUILTIN_SCATTERALTDIV16SI.
3182         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
3183         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
3184         __builtin_ia32_scatteraltdiv8si.
3185         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
3186         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
3187         IX86_BUILTIN_SCATTERALTDIV16SI.
3188         (ix86_vectorize_builtin_scatter): New.
3189         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
3190         ix86_vectorize_builtin_scatter.
3192 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
3193             Petr Murzin  <petr.murzin@intel.com>
3194             Kirill Yukhin <kirill.yukhin@intel.com>
3196         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
3197         * doc/tm.texi: Regenerate.
3198         * target.def: Add scatter builtin.
3199         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
3200         for loads/stores in case of gather/scatter accordingly.
3201         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3202         STMT_VINFO_GATHER_P(S).
3203         (vect_check_gather): Rename to ...
3204         (vect_check_gather_scatter): this.
3205         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
3206         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
3207         (vect_check_gather_scatter): Use it instead of vect_check_gather.
3208         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
3209         variable and new checkings for it accordingly.
3210         * tree-vect-stmts.c
3211         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
3212         STMT_VINFO_GATHER_P(S).
3213         (vect_check_gather_scatter): Use it instead of vect_check_gather.
3214         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
3216 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
3218         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
3219         define_insn.
3220         (mulv16qi3): New define_expand.
3222 2015-09-03  Martin Sebor  <msebor@redhat.com>
3224         PR c/66516
3225         * doc/extend.texi (Other Builtins): Document when the address
3226         of a built-in function can be taken.
3228 2015-09-03  Richard Biener  <rguenther@suse.de>
3230         * dwarf2out.c (flush_limbo_die_list): Split out from ...
3231         (dwarf2out_early_finish): ... here.
3232         (dwarf2out_finish): Do not call dwarf2out_early_finish but
3233         flush_limbo_die_list.  Assert we have no deferred asm names.
3235 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3237         * optabs.c (expand_binop): Don't create a broadcast vector with a
3238         source element wider than the inner mode.
3240 2015-09-03  Richard Biener  <rguenther@suse.de>
3242         * varasm.c (output_constant): Use fold_convert instead of
3243         wide_int_to_tree.
3245 2015-09-03  Tom de Vries  <tom@codesourcery.com>
3247         PR tree-optimization/65637
3248         * omp-low.c (expand_omp_for_static_chunk): Handle case that
3249         fin_bb has 2 predecessors.
3251 2015-09-03  Tom de Vries  <tom@codesourcery.com>
3253         PR tree-optimization/65637
3254         * omp-low.c (find_phi_with_arg_on_edge): New function.
3255         (expand_omp_for_static_chunk): Fix inner loop phi.
3257 2015-09-03  Tom de Vries  <tom@codesourcery.com>
3259         PR tree-optimization/65637
3260         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
3261         that head is NULL.
3263 2015-09-03  Tom de Vries  <tom@codesourcery.com>
3265         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
3267 2015-09-03  Tom de Vries  <tom@codesourcery.com>
3269         * doc/invoke.texi (parloops-chunk-size): Add item.
3270         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
3271         * tree-parloops.c: Include params.h.
3272         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
3273         param parloops-chunk-size is used.
3275 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3277         PR middle-end/67351
3278         * fold-const.c (fold_binary_loc) : Move
3279         Transform (x >> c) << c into x & (-1<<c) or
3280         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
3281         types using simplify and match.
3282         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
3283         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
3285 2015-09-03  Richard Biener  <rguenther@suse.de>
3287         PR ipa/66705
3288         * tree-ssa-structalias.c (ctor_for_analysis): New function.
3289         (create_variable_info_for_1): Use ctor_for_analysis instead
3290         of get_constructor.
3291         (create_variable_info_for): Likewise.
3293 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
3295         PR ipa/67280
3296         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
3297         in new callgraph edge.
3299 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
3301         PR target/59810
3302         PR target/63652
3303         PR target/63653
3304         * config/aarch64/aarch64-simd.md
3305         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
3306         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
3307         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
3308         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
3310 2015-09-02  Alan Modra  <amodra@gmail.com>
3312         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
3313         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
3314         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
3316 2015-09-02  Alan Modra  <amodra@gmail.com>
3318         PR target/67417
3319         * config/rs6000/predicates.md (current_file_function_operand): Don't
3320         return true for weak symbols.
3321         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
3323 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
3324             Andrew Bennett  <andrew.bennett@imgtec.com>
3326         * config/mips/mips-opts.h (mips_cb_setting): New enum.
3327         * config/mips/mips-protos.h: Add definitions for
3328         mips_output_jump and mips_output_equal_conditional_branch
3329         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
3330         JIC instruction.
3331         (mips_emit_compare): Add support for the MIPS R6 conditional
3332         compact branches.
3333         (mips_process_sync_loop): Likewise.
3334         (mips_output_order_conditional_branch): Likewise.
3335         (mips16_build_call_stub): Change MIPS_CALL to
3336         mips_output_jump.
3337         (mips_print_operand_punctuation): Update 's' case to only
3338         apply to micromips r2.
3339         (mips_adjust_insn_length): Add support for forbidden slot
3340         hazards.
3341         (mips_avoid_hazard): Likewise.
3342         (mips_reorg_process_insns): Likewise.
3343         (mips_output_jump): New function.
3344         (mips_output_equal_conditional_branch): Likewise.
3345         (mips_output_conditional_branch): Use jrc/bc if compact
3346         branch support is enabled.  Ensure the forbidden slots
3347         between the two branch instructions is filled with a nop.
3348         (mips_option_override): Add support to process the compact
3349         branch option and set the correct defaults.  Prevent
3350         non-explict relocs being using for MIPS R6.
3351         (mips_trampoline_init): Add compact branch support.
3352         (mips_mult_zero_zero_cost): Allow zero initialisation of
3353         accumulators with TARGET_DSP.
3354         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
3355         (TARGET_CB_MAYBE): New define.
3356         (TARGET_CB_ALWAYS): New define.
3357         (ISA_HAS_DELAY_SLOTS): New define.
3358         (ISA_HAS_COMPACT_BRANCHES): New define.
3359         (ISA_HAS_JRC): New define.
3360         (MIPS_BRANCH_C): New define.
3361         (MIPS_CALL): Removed.
3362         (MICROMIPS_J): Removed.
3363         * config/mips/mips.md (compact_form): New attr.
3364         (hazard): Add support for forbidden slots.
3365         (define_delay): Add support for compact branches.
3366         (*branch_order<mode>): Likewise.
3367         (*branch_order<mode>_inverted): Likewise.
3368         (*branch_equality<mode>): Likewise.
3369         (*branch_equality<mode>_inverted): Likewise.
3370         (*jump_absolute): Likewise.
3371         (*jump_pic): Likewise.
3372         (indirect_jump): Use mips_output_jump to produce assembly output.
3373         (tablejump_<mode>"): Likewise.
3374         (*<optab>"): Likewise.
3375         (<optab>_internal): Likewise.
3376         (sibcall_internal): Likewise.
3377         (sibcall_value_internal): Likewise.
3378         (sibcall_value_multiple_internal): Likewise.
3379         (call_internal): Likewise.
3380         (call_split): Likewise.
3381         (call_internal_direct): Likewise.
3382         (call_direct_split): Likewise.
3383         (call_value_internal): Likewise.
3384         (call_value_split): Likewise.
3385         (call_value_internal_direct): Likewise.
3386         (call_value_direct_split): Likewise.
3387         (call_value_multiple_internal): Likewise.
3388         (call_value_multiple_split): Likewise.
3389         (mips_get_fcsr_mips16_<mode>): Likewise.
3390         (mips_set_fcsr_mips16_<mode>): Likewise.
3391         (tls_get_tp_mips16_<mode>): Likewise.
3392         * config/mips/mips.opt: Add -mcompact-branches option.
3393         * config/mips/predicates.md (order_operator): Ensure the
3394         conditional compact branches are only used if the ISA them.
3395         * doc/invoke.texi: Document -mcompact-branches option.
3397 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
3399         PR target/61578
3400         * lra-lives.c (process_bb_lives): Process move pseudos with the
3401         same value for copies and preferences
3402         * lra-constraints.c (match_reload): Create match reload pseudo
3403         with the same value from single dying input pseudo.
3405 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
3407         PR target/67405
3408         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
3410 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
3412         * trans-mem.c: Add contributed-by.
3413         * trans-mem.h: Same.
3415 2015-09-01  Richard Biener  <rguenther@suse.de>
3417         * expr.c (expand_expr_real_1): For expanding TERed defs
3418         set the current location to that of the def if not UNKNOWN.
3420 2015-09-01  David Sherwood  <david.sherwood@arm.com>
3422         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
3424 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3426         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
3427         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
3428         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
3429         Include rtl-iter.h.
3430         (noce_simple_bbs): New function.
3431         (noce_try_move): Bail if basic blocks are not simple.
3432         (noce_try_store_flag): Likewise.
3433         (noce_try_store_flag_constants): Likewise.
3434         (noce_try_addcc): Likewise.
3435         (noce_try_store_flag_mask): Likewise.
3436         (noce_try_cmove): Likewise.
3437         (noce_try_minmax): Likewise.
3438         (noce_try_abs): Likewise.
3439         (noce_try_sign_mask): Likewise.
3440         (noce_try_bitop): Likewise.
3441         (bbs_ok_for_cmove_arith): New function.
3442         (noce_emit_all_but_last): Likewise.
3443         (noce_emit_insn): Likewise.
3444         (noce_emit_bb): Likewise.
3445         (noce_try_cmove_arith): Handle non-simple basic blocks.
3446         (insn_valid_noce_process_p): New function.
3447         (contains_mem_rtx_p): Likewise.
3448         (bb_valid_for_noce_process_p): Likewise.
3449         (noce_process_if_block): Allow non-simple basic blocks
3450         where appropriate.
3452 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
3454         * tree-ssa-dom.c (record_equivalences_from_phis,
3455         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
3456         (lookup_avail_expr): Likewise, and remove comment and unused temp.
3458 2015-09-01  Nick Clifton  <nickc@redhat.com>
3460         * config/msp430/msp430.opt (mcpu): Fix typo.
3462 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3464         * config/aarch64/aarch64.c (aarch64_set_current_function):
3465         Re-layout any vector parameters have non-simd layout.
3466         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
3467         Delete.
3468         (aarch64_simd_expand_args): Delete call to the above.
3470 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
3472         * doc/invoke.texi (asan-stack): Add space before option.
3474 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
3476         * tree.h (zerop): New function.
3477         * tree.c (zerop): Likewise.
3478         (element_precision): Handle expressions.
3479         * match.pd (define_predicates): Add zerop.
3480         (x <= +Inf): Fix comment.
3481         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
3482         * fold-const.c (fold_binary_loc): ... here. Remove.
3484 2015-08-31  Richard Biener  <rguenther@suse.de>
3486         PR middle-end/67381
3487         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
3489 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
3491         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
3492         (CEXPI): New operator list.
3493         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
3494         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
3495         Converted from ...
3496         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
3498 2015-08-31  Tom de Vries  <tom@codesourcery.com>
3500         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
3501         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
3502         parameter.
3503         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
3504         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
3505         (rewrite_into_loop_closed_ssa): ... here.
3506         (replace_uses_in_dominated_bbs): Remove function.
3507         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
3508         rewrite_into_loop_closed_ssa_1.
3510 2015-08-31  Michael Matz  <matz@suse.de>
3512         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
3513         enter entry and exit blocks for reverse post order.
3515 2015-08-31  Richard Biener  <rguenther@suse.de>
3517         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
3518         (lto_location_cache::current_sysp): Likewise.
3519         (output_block::current_sysp): Likewise.
3520         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
3521         (lto_location_cache::apply_location_cache): Properly record
3522         system header locations.
3523         (lto_location_cache::input_location): Input whether a file
3524         is a system header.
3525         * lto-streamer-out.c (lto_output_location): Stream whether a file
3526         is a system header.
3528 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3530         PR bootstrap/67363
3531         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
3533 2015-08-31  Tom de Vries  <tom@codesourcery.com>
3535         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
3536         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
3537         Improve function header comments.
3539 2015-08-30  Michael Collison  <michael.collison@linaro.org>
3541         PR other/67320
3542         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
3543         standard names
3545 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3547         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
3548         special_handling bitfield.
3549         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
3550         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
3551         that represents a general xxpermdi.
3552         (insn_is_swappable_p): Add handling for vec_concat of two
3553         doublewords, which maps to a specific xxpermdi.
3554         (adjust_xxpermdi): New function.
3555         (adjust_concat): Likewise.
3556         (handle_special_swappables): Call adjust_xxpermdi and
3557         adjust_concat.
3558         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
3560 2015-08-30  Rich Felker <dalias@libc.org>
3562         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
3563         case instead of sh[123456ble]-*-*.
3565 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
3567         * ira.c (print_unform_and_important_classes,
3568         print_translated_classes): Remove reg_class_names static array.
3569         (print_unform_and_important_classes): Rename to ...
3570         (print_uniform_and_important_classes): ... this.
3571         (ira_debug_allocno_classes): Update accordingly.
3573 2015-08-29  Tom de Vries  <tom@codesourcery.com>
3575         PR tree-optimization/46193
3576         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
3577         clause.
3579 2015-08-28  Jeff Law  <law@redhat.com>
3581         PR lto/66752
3582         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3583         unable to find X NE 0 in the tables, return X as the simplified
3584         condition.
3585         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
3586         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
3587         to VISISTED_BBS.
3588         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
3589         after removing the control flow statement and unnecessary edges.
3591 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
3593         Revert:
3594         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
3596         PR tree-optimization/67283
3597         * tree-sra.c (type_consists_of_records_p): Rename to...
3598         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3600         (completely_scalarize_record): Rename to...
3601         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
3602         code to:
3603         (scalarize_elem): New.
3605 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
3607         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
3608         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
3609         (aarch64_symbol_type): Likewise.
3610         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3611         Likewise.
3612         (aarch64_expand_mov_immediate): Likewise.
3613         (aarch64_print_operand): Likewise.
3614         (aarch64_classify_tls_symbol): Likewise.
3616 2015-08-28  Richard Biener  <rguenther@suse.de>
3618         * cgraphunit.c (symbol_table::compile): Move early debug generation
3619         and finish...
3620         (symbol_table::finalize_compilation_unit): ... back here and
3621         add a !seen_error () guard.
3623 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
3625         * toplev.c (process_options): Do not use flag_loop_block,
3626         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
3627         flag_loop_optimize_isl.
3629 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
3631         * Makefile.in (OBJS): Remove graphite-blocking.o and
3632         graphite-interchange.o.
3633         * common.opt (floop-strip-mine, floop-interchange, floop-block):
3634         Alias of floop-nest-optimize.
3635         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
3636         Document as alias of -floop-nest-optimize.
3637         * graphite-blocking.c: Remove.
3638         * graphite-interchange.c: Remove.
3639         * graphite-optimize-isl.c: Include dumpfile.h.
3640         (getScheduleForBand): Add dump for tiled loops.  Use
3641         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
3642         * graphite-poly.c (scop_max_loop_depth): Remove.
3643         (print_scattering_function_1): Remove.
3644         (print_scattering_function): Remove.
3645         (print_scattering_functions): Remove.
3646         (debug_scattering_function): Remove.
3647         (debug_scattering_functions): Remove.
3648         (apply_poly_transforms): Remove use of flag_loop_block,
3649         flag_loop_strip_mine, and flag_loop_interchange.
3650         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
3651         PBB_ORIGINAL.
3652         (print_pdr_access_layout): Remove.
3653         (print_pdr): Print ISL representation.
3654         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
3655         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
3656         (free_scop): Same.
3657         (openscop_print_pbb_domain): Remove.
3658         (print_pbb): Remove call to print_scattering_function.
3659         (openscop_print_scop_context): Remove.
3660         (print_scop_context): Do not print matrices anymore.
3661         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
3662         SCOP_TRANSFORMED_SCHEDULE.
3663         (print_isl_set): Add printing of a new line.
3664         (print_isl_map): Same.
3665         (print_isl_aff): Same.
3666         (print_isl_constraint): Same.
3667         (loop_to_lst): Remove.
3668         (scop_to_lst): Remove.
3669         (lst_indent_to): Remove.
3670         (print_lst): Remove.
3671         (debug_lst): Remove.
3672         (dot_lst_1): Remove.
3673         (dot_lst): Remove.
3674         (reverse_loop_at_level): Remove.
3675         (reverse_loop_for_pbbs): Remove.
3676         * graphite-poly.h (pdr_dim_iter_domain): Remove.
3677         (pdr_nb_params): Remove.
3678         (pdr_alias_set_dim): Remove.
3679         (pdr_subscript_dim): Remove.
3680         (pdr_iterator_dim): Remove.
3681         (pdr_parameter_dim): Remove.
3682         (same_pdr_p): Remove.
3683         (struct poly_scattering): Remove.
3684         (struct poly_bb): Remove _original, _transformed, _saved.
3685         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
3686         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
3687         (PBB_NB_LOCAL_VARIABLES): Remove.
3688         (PBB_NB_SCATTERING_TRANSFORM): Remove.
3689         (schedule_to_scattering): Remove.
3690         (number_of_write_pdrs): Remove.
3691         (pbb_dim_iter_domain): Remove.
3692         (pbb_nb_params): Remove.
3693         (pbb_nb_scattering_orig): Remove.
3694         (pbb_nb_scattering_transform): Remove.
3695         (pbb_nb_dynamic_scattering_transform): Remove.
3696         (pbb_nb_local_vars): Remove.
3697         (pbb_iterator_dim): Remove.
3698         (pbb_parameter_dim): Remove.
3699         (psco_scattering_dim): Remove.
3700         (psct_scattering_dim): Remove.
3701         (psct_local_var_dim): Remove.
3702         (psco_iterator_dim): Remove.
3703         (psct_iterator_dim): Remove.
3704         (psco_parameter_dim): Remove.
3705         (psct_parameter_dim): Remove.
3706         (psct_dynamic_dim): Remove.
3707         (psct_static_dim): Remove.
3708         (psct_add_local_variable): Remove.
3709         (new_lst_loop): Remove.
3710         (new_lst_stmt): Remove.
3711         (free_lst): Remove.
3712         (copy_lst): Remove.
3713         (lst_add_loop_under_loop): Remove.
3714         (lst_depth): Remove.
3715         (lst_dewey_number): Remove.
3716         (lst_dewey_number_at_depth): Remove.
3717         (lst_pred): Remove.
3718         (lst_succ): Remove.
3719         (lst_find_pbb): Remove.
3720         (find_lst_loop): Remove.
3721         (lst_find_first_pbb): Remove.
3722         (lst_empty_p): Remove.
3723         (lst_find_last_pbb): Remove.
3724         (lst_contains_p): Remove.
3725         (lst_contains_pbb): Remove.
3726         (lst_create_nest): Remove.
3727         (lst_remove_from_sequence): Remove.
3728         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
3729         (lst_niter_for_loop): Remove.
3730         (pbb_update_scattering): Remove.
3731         (lst_update_scattering_under): Remove.
3732         (lst_update_scattering): Remove.
3733         (lst_insert_in_sequence): Remove.
3734         (lst_replace): Remove.
3735         (lst_substitute_3): Remove.
3736         (lst_distribute_lst): Remove.
3737         (lst_remove_all_before_including_pbb): Remove.
3738         (lst_remove_all_before_excluding_pbb): Remove.
3739         (struct scop): Remove original_schedule, transformed_schedule, and
3740         saved_schedule.
3741         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
3742         (SCOP_SAVED_SCHEDULE): Remove.
3743         (poly_scattering_new): Remove.
3744         (poly_scattering_free): Remove.
3745         (poly_scattering_copy): Remove.
3746         (store_scattering_pbb): Remove.
3747         (store_lst_schedule): Remove.
3748         (restore_lst_schedule): Remove.
3749         (store_scattering): Remove.
3750         (restore_scattering_pbb): Remove.
3751         (restore_scattering): Remove.
3752         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3753         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
3754         compute the scattering polyhedron dimension from the dimension of
3755         pbb->domain.
3756         (build_scop_scattering): Update call to
3757         build_pbb_scattering_polyhedrons.
3758         (build_poly_scop): Remove call to scop_to_lst.
3759         * graphite.c (graphite_transform_loops): Add call to print_scop.
3760         (gate_graphite_transforms): Remove use of flag_loop_block,
3761         flag_loop_interchange, and flag_loop_strip_mine.
3763 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
3765         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
3766         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
3767         -floop-nest-optimize.
3768         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
3769         (generate_luj_sepclass): Remove.
3770         (generate_luj_options): Remove.
3771         (set_options): Remove opt_luj.
3772         (scop_to_isl_ast): Remove opt_luj.
3773         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
3774         flag_loop_unroll_jam.
3775         (getPrevectorMap_full): Remove.
3776         (getScheduleForBandList): Remove map_sepcl.
3777         (getScheduleMap): Same.
3778         (apply_schedule_map_to_scop): Remove sepcl.
3779         (optimize_isl): Same.
3780         * graphite-poly.c (apply_poly_transforms): Remove check for
3781         flag_loop_unroll_jam.
3782         (new_poly_bb): Remove map_sepclass.
3783         * graphite-poly.h (struct poly_bb): Same.
3784         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
3785         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
3786         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
3787         * toplev.c (process_options): Remove flag_loop_unroll_jam.
3789 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
3791         PR target/67317
3792         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
3793         (addqi3_cc): Ditto.
3794         (UNSPEC_ADD_CARRY): Remove.
3795         (addqi3_cconly_overflow): New expander.
3796         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
3797         Adjust for changed add<mode>3_carry.
3798         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
3799         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
3800         (<plusminus_insn><mode>3_carry): Remove expander.
3801         (*<plusminus_insn><mode>3_carry): Split insn pattern to
3802         add<mode>3_carry and sub<mode>3_carry.
3803         (plusminus_carry_mnemonic): Remove code attribute.
3804         (add<mode>3_carry): Canonicalize insn pattern.
3805         (*addsi3_carry_zext): Ditto.
3806         (sub<mode>3_carry): Ditto.
3807         (*subsi3_carry_zext): Ditto.
3808         (adcx<mode>3): Remove insn pattern.
3809         (addcarry<mode>): New insn pattern.
3810         (subborrow<mode>): Ditto.
3811         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
3812         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
3813         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
3814         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
3815         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
3816         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
3817         Rewrite expander to not clobber carry flag chains.
3819 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
3821         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
3822         instead of a rotate.
3824 2015-08-27  Marek Polacek  <polacek@redhat.com>
3826         PR middle-end/67005
3827         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
3828         an entry into an irreducible region.
3830 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3832         * configure: Regenerate.
3834 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
3836         PR tree-optimization/67283
3837         * tree-sra.c (type_consists_of_records_p): Rename to...
3838         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3840         (completely_scalarize_record): Rename to...
3841         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3842         (scalarize_elem): New.
3844 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
3846         * tree-sra.c (completely_scalarize_var): Rename to...
3847         (create_total_scalarization_access): ... Here. Drop call to
3848         completely_scalarize_record.
3850         (analyze_all_variable_accesses): Replace completely_scalarize_var
3851         with create_total_scalarization_access and completely_scalarize_record.
3853 2015-08-27  Alan Modra  <amodra@gmail.com>
3855         PR target/67356
3856         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
3857         for operand 1.
3859 2015-08-27  Richard Biener  <rguenther@suse.de>
3861         * passes.c (rest_of_decl_compilation): Guard early_global_decl
3862         call with !seen_error ().
3863         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
3864         early debug generation and finish...
3865         (symbol_table::compile): ... here to put it after a !seen_error ()
3866         guard.
3868 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3870         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
3871         Solaris 12+.
3873 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3874             Andre Vieira  <andre.simoesdiasvieira@arm.com>
3876         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
3877         (*cb<optab><mode>1): Likewise.
3878         (*tb<optab><mode>1): Likewise.
3879         (*cb<optab><mode>1): Likewise.
3880         * config/aarch64/iterators.md (inv_cb): New code attribute.
3881         (inv_tb): Likewise.
3882         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
3883         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
3885 2015-08-27  Richard Biener  <rguenther@suse.de>
3887         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
3889 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3891         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
3892         trap to fix ICE.
3894 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3896         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
3897         Add declaration.
3899         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
3900         comment.
3901         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
3902         floating point in VSX registers.
3903         (rs6000_output_move_128bit): Always print out the set insn if we
3904         can't generate an appropriate 128-bit move.
3905         (rs6000_generate_compare): Add support for IEEE 128-bit floating
3906         point in VSX registers comparisons.
3907         (rs6000_expand_float128_convert): Likewise.
3909         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
3910         predicate for only GPR hard registers.
3912         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
3913         modes to iterators. Add new iterators for moving 128-bit values in
3914         scalar FPR registers and VSX registers.
3915         (FMOVE128): Likewise.
3916         (FMOVE128_FPR): Likewise.
3917         (FMOVE128_GPR): Likewise.
3918         (FMOVE128_VSX): Likewise.
3919         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
3920         in VSX registers.
3921         (IFKF): Likewise.
3922         (IBM128): Likewise.
3923         (TFIFKF): Likewise.
3924         (RELOAD): Add IEEE 128-bit floating point modes.
3925         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
3926         floating point in VSX registers modes.
3927         (signbit<mode>2, IBM128 iterator): Likewise.
3928         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
3929         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3930         (negtf2): Likewise.
3931         (neg<mode>2, TFIFKF iterator): Likewise.
3932         (negtf2_internal): Likewise.
3933         (abstf2): Likewise.
3934         (abs<mode>2, TFIFKF iterator): Likewise.
3935         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
3936         VSX insn support for negate, absolute value, and negative absolute
3937         value.
3938         (ieee_128bit_vsx_neg<mode>2): Likewise.
3939         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3940         (ieee_128bit_vsx_abs<mode>2): Likewise.
3941         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3942         (ieee_128bit_vsx_nabs<mode>2): Likewise.
3943         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3944         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
3945         floating point in VSX registers.
3946         (unpack<mode>_dm): Likewise.
3947         (unpack<mode>_nodm): Likewise.
3948         (pack<mode>): Likewise.
3949         (unpackv1ti): Likewise.
3950         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
3951         (packv1ti): Likewise.
3952         (pack<mode>, FMOVE128_VSX iterator): Likewise.
3953         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
3954         registers.
3955         (extenddftf2_internal): Likewise.
3956         (trunctfdf2): Likewise.
3957         (trunctfdf2_internal2): Likewise.
3958         (fix_trunc_helper): Likewise.
3959         (fix_trunctfdi2"): Likewise.
3960         (floatditf2): Likewise.
3961         (floatuns<mode>tf2): Likewise.
3962         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3963         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3964         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3965         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3966         (float<SDI:mode><IFKF:mode>2): Likewise.
3967         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3969 2015-08-26  Renlin Li  <renlin.li@arm.com>
3971         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
3973 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3974             Jiong Wang  <jiong.wang@arm.com>
3976         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
3977         (tlsie_tiny_<mode>): New define_insn.
3978         (tlsie_tiny_sidi): Likewise.
3979         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3980         SYMBOL_TINY_TLSIE.
3981         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
3982         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3983         SYMBOL_TINY_TLSIE.
3984         (aarch64_expand_mov_immediate): Likewise.
3985         (aarch64_print_operand): Likewise.
3986         (arch64_classify_tls_symbol): Likewise.
3988 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
3990         * config/arm/arm-arches.def: Replace single value flags with
3991         an initializer built from ARM_FSET_MAKE_CPU1.
3992         * config/arm/arm-cores.def: Likewise.
3993         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
3994         derivation from the ARM_CORE macro definition, use the given value
3995         instead.
3996         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
3997         ARM_ARCH macro definition, use the given value instead.
3999 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
4001         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
4002         feature set.
4003         (struct builtin_description): Replace field mask with field
4004         features.
4005         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
4006         (IWMMXT2_BUILTIN): Likewise.
4007         (IWMMXT2_BUILTIN2): Likewise.
4008         (FP_BUILTIN): Likewise.
4009         (CRC32_BUILTIN): Likewise.
4010         (CRYPTO_BUILTIN): Likewise.
4011         (iwmmx_mbuiltin): Likewise.
4012         (iwmmx2_mbuiltin): Likewise.
4013         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
4014         struct builtin_description.
4016 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
4018         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
4019         (struct builtin_description): Change type of mask to unsigned
4020         long.
4021         * config/arm/arm-protos.h (insn_flags): Declare as type
4022         arm_feature_set.
4023         (tune_flags): Likewise.
4024         * config/arm/arm.c (feature_count): New.
4025         (insn_flags): Define as type arm_feature_set.
4026         (tune_flags): Likewise.
4027         (struct processors): Define field flags as type arm_feature_set.
4028         (all_cores): Update for change to struct processors.
4029         (all_architectures): Likewise.
4030         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
4031         macros.
4032         (arm_option_override_internal): Likewise.
4033         (arm_option_override): Likewise.
4035 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4036             Jiong Wang  <jiong.wang@arm.com>
4038         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
4039         tls size for tiny, small, large memory model.
4040         (aarch64_load_symref_appropriately): Support new symbol types.
4041         (aarch64_expand_mov_immediate): Likewise.
4042         (aarch64_print_operand): Likewise.
4043         (aarch64_classify_tls_symbol): Likewise.
4044         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
4045         (aarch64_symbol_type): Likewise.
4046         * config/aarch64/aarch64.md (tlsle): Deleted.
4047         (tlsle12_<mode>): New define_insn.
4048         (tlsle24_<mode>): Likewise.
4049         (tlsle32_<mode>): Likewise.
4050         (tlsle48_<mode>): Likewise.
4051         * doc/sourcebuild.texi (AArch64-specific attributes): Document
4052         "aarch64_tlsle32".
4054 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
4056         * config/arm/arm-protos.h (FL_NONE): New.
4057         (FL_ANY): New.
4058         (arm_feature_set): New.
4059         (ARM_FSET_MAKE): New.
4060         (ARM_FSET_MAKE_CPU1): New.
4061         (ARM_FSET_MAKE_CPU2): New.
4062         (ARM_FSET_CPU1): New.
4063         (ARM_FSET_CPU2): New.
4064         (ARM_FSET_EMPTY): New.
4065         (ARM_FSET_ANY): New.
4066         (ARM_FSET_HAS_CPU1): New.
4067         (ARM_FSET_HAS_CPU2): New.
4068         (ARM_FSET_HAS_CPU): New.
4069         (ARM_FSET_ADD_CPU1): New.
4070         (ARM_FSET_ADD_CPU2): New.
4071         (ARM_FSET_DEL_CPU1): New.
4072         (ARM_FSET_DEL_CPU2): New.
4073         (ARM_FSET_UNION): New.
4074         (ARM_FSET_INTER): New.
4075         (ARM_FSET_XOR): New.
4076         (ARM_FSET_EXCLUDE): New.
4077         (AFM_FSET_IS_EMPTY): New.
4078         (ARM_FSET_CPU_SUBSET): New.
4080 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
4082         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4083         SYMBOL_TLSLE to SYMBOL_TLSLE24.
4084         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4085         Likewise.
4086         (aarch64_expand_mov_immediate): Likewise.
4087         (aarch64_print_operand): Likewise.
4088         (aarch64_classify_symbol): Likewise.
4090 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
4092         * config/aarch64/aarch64.opt (mtls-size): New entry.
4093         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
4094         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
4095         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
4097 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
4099         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
4100         ARM_CORE entry.  Fix some white-space.
4101         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
4102         ARM_CORE definition.
4104 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4106         * fold-const.c (fold_binary_loc) : Move Optimize
4107         root(x)*root(y) as root(x*y) to match.pd.
4108         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
4109         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
4110         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
4111         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
4112         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
4113         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
4114         (mult (exps:s @0) (exps:s @1)) : New simplifier.
4115         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
4116         (rdiv @0 (exps:s @1)) : New simplifier.
4118 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
4120         * gcc.c (driver::finalize): Only assign to extra_specs if
4121         [EXTRA_SPECS].
4123 2015-08-25  Marek Polacek  <polacek@redhat.com>
4125         PR middle-end/67330
4126         * varasm.c (declare_weak): Return after giving an error.
4128 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
4130         * gcc-main.c (main): Add params to driver ctor.
4131         * gcc.c (class env_manager): New.
4132         (env): New global.
4133         (env_manager::init): New.
4134         (env_manager::get): New.
4135         (env_manager::xput): New.
4136         (env_manager::restore): New.
4137         Poison getenv and putenv.
4138         (DEFAULT_TARGET_SYSTEM_ROOT): New.
4139         (target_system_root): Update initialization to use
4140         DEFAULT_TARGET_SYSTEM_ROOT.
4141         (struct spec_list): Add field "default_ptr".
4142         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
4143         (init_spec): Likewise.
4144         (set_spec): Clear field "default_ptr".
4145         (read_specs): Free "spec" and "buffer".
4146         (xputenv): Reimplement in terms of env_manager.
4147         (process_command): Replace ::getenv calls with calls to the
4148         env_manager singleton.
4149         (process_brace_body): Free string in three places.
4150         (driver::driver): New.
4151         (driver::~driver): New.
4152         (used_arg): Convert from a function to...
4153         (class used_arg_t): ...this class, and...
4154         (used_arg): ...this new global instance.
4155         (used_arg_t::finalize): New function.
4156         (getenv_spec_function): Add "const" to local "value".  Replace
4157         ::getenv call with call to the env_manager singleton.
4158         (path_prefix_reset): New function.
4159         (driver::finalize): New function.
4160         * gcc.h (driver::driver): New.
4161         (driver::~driver): New.
4162         (driver::finalize): New.
4164 2015-08-25  Nathan Sidwell  <nathan@acm.org>
4166         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
4167         target doesn't have one.
4169 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
4171         PR target/67346
4172         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
4174 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
4176         PR target/67344
4177         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
4178         a define_insn, remove second alternative.
4180 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
4181             Joseph Myers  <joseph@codesourcery.com>
4183         * gcc.c (struct switchstr): Expand comment.
4185 2015-08-25  Nathan Sidwell  <nathan@acm.org>
4187         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
4188         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
4190 2015-08-25  Richard Biener  <rguenther@suse.de>
4192         PR middle-end/67306
4193         * genmatch.c (expr::gen_transform): Verify the result of
4194         builtin_decl_implicit.
4195         (dt_simplify::gen_1): Likewise.
4197 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4199         * config/arm/constraints.md: Also list Cs and US ARM-specific
4200         constraints as used.
4202 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
4204         PR target/66609
4205         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
4206         UNSPEC_PCREL.
4207         (nonpic_symbol_mentioned_p): Likewise.
4208         (sh_delegitimize_address): Likewise.
4209         (sh_function_ok_for_sibcall): Take into account weak symbols.
4210         (sh_expand_sym_label2reg): New.
4211         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
4212         * config/sh/sh.md (UNSPEC_PCREL): New enum.
4213         (call_pcrel): Use sh_expand_sym_label2reg.
4214         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4215         (symPCREL_label2reg) New expand.
4217 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
4219         * graphite-poly.c: Change type of region from void* to sese.
4220         * graphite-poly.h (struct scop): Changing the type of scop::region
4221         from void* to sese. Change accessor macro accordingly.
4222         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
4224 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
4226         * graphite-scop-detection.c (stmt_simple_for_scop_p):
4227         Constrain only on INTEGER_TYPE.
4229 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4231         PR target/67211
4232         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
4233         -mefficient-unaligned-vsx on ISA 2.7.
4235         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
4236         option to a masked option.
4238         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
4239         logic for -mefficient-unaligned-vsx so that it is set via an arch
4240         ISA option, instead of being set if -mtune=power8 is set. Move
4241         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
4242         near other default option handling.
4244 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4246         * genflags.c (gen_macro): Delete.
4247         (gen_proto): Don't create GEN.*CALL.* macros.
4248         * gensupport.h (get_file_location): Declare.
4249         * gensupport.c (rtx_locs): New variable.
4250         (read_md_rtx): Record rtx locations.
4251         (get_file_location): New function.
4252         * target-insns.def (call, call_pop, call_value, call_value_pop)
4253         (sibcall, sibcall_value): New patterns.
4254         * gentarget-def.c (parse_argument): New function.
4255         (def_target_insn): Use it.  Handle optional operands.  Raise an
4256         error if an .md pattern has the wrong number of operands for the
4257         pattern name.  Remove the names of unused operands from the prototype.
4258         * builtins.c (expand_builtin_apply): Use targetm functions
4259         instead of HAVE_call_value and GEN_CALL_VALUE.
4260         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
4261         and sibcall_value_pop.
4262         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
4263         of GEN_CALL.
4264         * config/alpha/alpha.md (untyped_call): Likewise.
4265         * config/iq2000/iq2000.md (untyped_call): Likewise.
4266         * config/m68k/m68k.md (untyped_call): Likewise.
4267         * config/mips/mips.md (untyped_call): Likewise.
4268         * config/pa/pa.md (untyped_call): Likewise.
4269         * config/rs6000/rs6000.md (untyped_call): Likewise.
4270         * config/sparc/sparc.md (untyped_call): Likewise.
4271         * config/tilegx/tilegx.md (untyped_call): Likewise.
4272         * config/tilepro/tilepro.md (untyped_call): Likewise.
4273         * config/visium/visium.md (untyped_call): Likewise.
4274         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
4275         gen_call_value instead of GEN_CALL_VALUE.
4276         * config/arm/arm.md (untyped_call): Likewise.
4277         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
4278         GEN_CALL.
4280 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4282         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
4283         (have_cbranchcc4): New variable.
4284         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
4285         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
4286         (if_convert): Initialize have_cbranchcc4.
4288 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4290         * builtins.c (expand_cmpstrn): Rename to...
4291         (expand_cmpstrn_or_cmpmem): ...this.
4292         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
4293         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
4294         Remove mode argument.
4295         (expand_builtin): Update accordingly.
4297 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4299         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
4300         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
4301         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
4302         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
4303         Add predicates for operands 0 and 3.
4304         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
4305         operand.
4306         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
4307         immediate_operand to nonmemory_operand.
4309 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4311         * df-scan.c (df_insn_info_init_fields): New function, split out
4312         from...
4313         (df_insn_create_insn_record): ...here.
4314         (df_insn_info_free_fields): New function, split out from...
4315         (df_insn_info_delete): ...here.
4316         (df_insn_rescan): Use the new functions instead of freeing and
4317         reallocating the df_insn_info.
4319 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4321         * doc/install.texi (Binaries): Remove links no longer valid.
4323 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
4325         * config/nvptx/mkoffload.c (process): Replace
4326         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
4328 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
4330         PR target/67329
4331         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
4333 2015-08-24  Renlin Li  <renlin.li@arm.com>
4335         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
4336         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
4337         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
4338         * config/arm/constraints.md ("j"): Add check for high code.
4340 2015-08-24  Tom de Vries  <tom@codesourcery.com>
4342         PR tree-optimization/65468
4343         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
4344         chunk_size is one.
4346 2015-08-24  Nathan Sidwell  <nathan@acm.org>
4348         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
4349         change to nvptx_type_from_mode call. Use arg_promotion for both
4350         split and non-split args.
4352 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4354         * target-insns.def (movstr): New pattern.
4355         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
4356         (expand_movstr): Use targetm rather than HAVE_movstr/
4357         CODE_FOR_movstr.
4359 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
4361         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
4362         cast syntax.
4364 2015-08-24  Andrew Pinski  <apinski@cavium.com>
4366         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
4367         AARCH64_EXTRA_TUNING_OPTION.
4368         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
4369         New enum.
4370         (aarch64_extra_tuning_flags): Base the shifted value on the index
4371         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
4372         * config/aarch64/aarch64.c: Remove the last argument to
4373         AARCH64_EXTRA_TUNING_OPTION.
4375 2015-08-23  Nathan Sidwell  <nathan@acm.org>
4377         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
4378         decls.
4379         (nvptx_declare_function_name): Insert formatting tabs for
4380         consistency.
4382 2015-08-23  Tom de Vries  <tom@codesourcery.com>
4384         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
4385         parm_decl, rather than generating a dummy default def in cfun.
4386         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
4387         ssa_name from cfun and child_fn do not share a stmt as def stmt.
4388         (move_stmt_op): Handle PARM_DECl.
4389         (gather_ssa_name_hash_map_from): New function.
4390         (move_sese_region_to_fn): Add default defs for function params, and add
4391         them to vars_map.  Release copied ssa names.
4392         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
4394 2015-08-23  Tom de Vries  <tom@codesourcery.com>
4396         * doc/sourcebuild.texi: Rename vect_no_int_max with
4397         vect_no_int_min_max.  Update description.
4399 2015-08-22  Andrew Pinski  <apinski@cavium.com>
4401          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
4402         * config/aarch64/aarch64-protos.h
4403         (aarch64_fusion_pairs_index): New enum.
4404         (aarch64_fusion_pairs): Base the shifted value on the index instead
4405         Rewrite AARCH64_FUSE_ALL to be based on the end index.
4406         of the argument to AARCH64_FUSION_PAIR.
4407         * config/aarch64/aarch64.c: Remove the last argument to
4408         AARCH64_FUSION_PAIR.
4410 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
4412         * dominance.c (new_zero_array): Define.
4413         (dom_info): Redefine as class with proper encapsulation.
4414         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
4415         Add new members.
4416         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
4417         allocations/deallocations.  Pass function as parameter (instead of
4418         using cfun).
4419         (dom_info::get_idom): Define accessor method.
4420         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
4421         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
4422         (calculate_dominance_info): Adjust to use dom_info class.
4423         (verify_dominators): Likewise.
4425 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
4427         * print-rtl.c (print_rtx): Check the correct range for
4428         flag_dump_unnumbered_links to behave as documented.
4430         PR rtl-optimization/67227
4431         PR rtl-optimization/64164
4432         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
4433         (nonoverlapping_memrefs_p): Test offsets and sizes when given
4434         identical gimple_reg exprs.
4436 2015-08-21  Nathan Sidwell  <nathan@acm.org>
4438         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
4439         expansion.
4440         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
4441         crtl->stack_alignment_needed to determine alignment.
4442         (nvptx_get_drap_rtx): New.
4443         (TARGET_GET_DRAP_RTX): Override.
4444         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
4446 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4448         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
4450 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4452         * configure.ac: Remove uwin* cases.
4453         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
4454         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
4455         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
4456         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
4457         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
4458         i[34567]86-*-uwin*, powerpc-*-beos*.
4460 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
4462         * gencodes.c (gencodes): Print the comma for the preceding
4463         enum value rather than the current one.  Use aliased enum values
4464         rather than #defines for compiled-out patterns.
4465         (main): Update accordingly.  Replace LAST_INSN_CODE with
4466         NUM_INSN_CODES.
4467         * lra.c (insn_code_data): Update accordingly.
4468         (finish_insn_code_data_once, get_static_insn_data): Likewise.
4469         * recog.h (target_recog): Likewise.
4470         (preprocess_insn_constraints): Change parameter to unsigned int.
4471         * recog.c (preprocess_insn_constraints): Likewise.
4472         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
4473         * tree-vect-stmts.c (vectorizable_operation): Simplify.
4475 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4477         PR rtl-optimization/61657
4478         * loop-iv.c (iv_number_of_iterations): Declare up and down as
4479         unsigned.  Remove superflous uint64_t cast.
4481 2014-08-21  Felix Yang  <felix.yang@huawei.com>
4482             Jiji Jiang  <jiangjiji@huawei.com>
4484         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
4485         argument and get builtin function code directly from CALL.
4486         (gimple_stringop_fixed_value): Modified accordingly.
4487         (gimple_stringops_transform, gimple_stringops_values_to_profile):
4488         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
4490 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4492         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
4494 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4496         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
4497         to match.pd.
4498         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
4499         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
4500         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
4501         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
4502         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
4503         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
4504         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
4505         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
4506         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
4507         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
4509         * match.pd (SIN ) : New Operator.
4510         (TAN) : New Operator.
4511         (mult (SQRT@1 @0) @1) : New simplifier.
4512         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
4513         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4514         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
4515         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
4516         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
4517         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
4518         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
4519         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
4520         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
4521         (rdiv @0 (POW:s @1 @2)) : New simplifier.
4523 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
4525         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
4526         loop if EXPR is simplified to const value.
4528 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
4530         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4531         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
4533 2015-08-21  Richard Biener  <rguenther@suse.de>
4535         PR middle-end/67285
4536         * gimple-fold.c (replace_stmt_with_simplification): Assert
4537         seq is empty when replacing a call with itself but different
4538         arguments.
4539         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
4540         a call require that it is const.
4542 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4544         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
4545         * builtins.c (get_object_alignment_2): Adjust.
4546         * varasm.c (align_variable): Likewise.
4547         (get_variable_align): Likewise.
4548         (build_constant_desc): Likewise.
4549         (force_const_mem): Likewise.
4550         * doc/tm.texi.in: Likewise.
4551         * doc/tm.texi: Regenerate.
4553 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4555         * genconfig.c (main): Always define HAVE_cc0.
4556         * recog.c (rest_of_handle_peephole2): Adjust.
4558 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4560         * reorg.c (relax_delay_slots): Don't use #if to check value of
4561         HAVE_cc0.
4563 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4565         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
4566         * targhooks.c (default_have_conditional_execution): Adjust.
4568 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4570         * rtl.h (rtvec_all_equal_p): Declare.
4571         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
4572         * rtl.c (rtvec_all_equal_p): New function.
4573         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
4574         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
4575         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
4576         * config/arm/arm.c (neon_vdup_constant): Likewise.
4577         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
4578         * config/tilegx/constraints.md (W, Y): Likewise.
4579         * config/tilepro/constraints.md (W, Y): Likewise.
4580         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
4581         (classify_immediate): Use unwrap_const_vec_duplicate.
4582         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
4583         (reg_or_v2s8bit_operand): Likewise.
4584         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
4585         (reg_or_v4s8bit_operand): Likewise.
4587 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4589         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
4590         (vec_shasigma_be): New #define.
4591         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
4592         (VPMSUMH): Likewise.
4593         (VPMSUMW): Likewise.
4594         (VPMSUMD): Likewise.
4595         (VPMSUM): New BU_P8V_OVERLOAD_2.
4596         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
4597         entries for VEC_MADD and VEC_VPMSUM.
4599 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
4601         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
4602         Multiply argument avr_n_flash by 64 to match unit of "KiB".
4603         (avr_pgm_check_var_decl): Same.
4605 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
4607         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
4608         initialization of HFmode scalar type (float16_t) to...
4609         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
4610         code.
4612         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
4614         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
4615         having an -mfp16-format.
4617 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4619         * config/i386/predicates.md (vector_all_ones_operand): Use
4620         CONSTM1_RTX to simplify definition.
4622 2015-08-20  Richard Biener  <rguenther@suse.de>
4624         * toplev.c (compile_file): Remove loop calling late_global_decl
4625         on all symbols.
4626         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
4627         on decls we assembled.
4629 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
4631         * common/config/aarch64/aarch64-common.c
4632         (AARCH64_CPU_NAME_LENGTH): Delete.
4633         (aarch64_option_extension): New.
4634         (all_extensions): Likewise.
4635         (processor_name_to_arch): Likewise.
4636         (arch_to_arch_name): Likewise.
4637         (all_cores): New.
4638         (all_architectures): Likewise.
4639         (aarch64_get_extension_string_for_isa_flags): Likewise.
4640         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
4641         architecture names.
4642         * config/aarch64/aarch64-protos.h
4643         (aarch64_get_extension_string_for_isa_flags): New.
4644         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
4645         (aarch64_option_print): Get the string to print from
4646         aarch64_get_extension_string_for_isa_flags.
4647         (aarch64_declare_function_name): Likewise.
4648         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
4649         (MCPU_TO_MARCH_SPEC): This.
4650         (ASM_CPU_SPEC): Use it.
4651         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
4652         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
4653         (EXTRA_SPEC_FUNCTIONS): Use it.
4655 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
4657         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
4658         expansion when !ISA_HAS_LWL_LWR.
4659         (mips_block_move_straight): Update the size of elements copied to
4660         account for alignment when !ISA_HAS_LWL_LWR.
4661         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
4663 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
4665         * expr.c (expand_expr_real_2): Check gimple statement during
4666         LSHIFT_EXPR expand.
4668 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
4670         * common.opt (fstack-protector): Initialize to -1.
4671         (fstack-protector-all): Likewise.
4672         (fstack-protector-strong): Likewise.
4673         (fstack-protector-explicit): Likewise.
4674         * configure.ac: Add --enable-default-ssp.
4675         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
4676         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
4677         -1.
4678         * doc/install.texi: Document --enable-default-ssp.
4679         * config.in: Regenerated.
4680         * configure: Likewise.
4682 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
4684         PR rtl-optimization/64164
4685         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
4686         (parm_in_stack_slot_p): ... this.  Disregard mode, what
4687         matters is whether the parm will live in a pseudo or a stack
4688         slot.
4689         (expand_one_ssa_partition): Deal with params without a default
4690         def.  Disregard mode.
4691         * cfgexpand.h: Renamed function declaration.
4692         * tree-ssa-coalesce.c: Adjust.
4693         * function.c (split_complex_args): Allocate stack slot for
4694         unassigned parms before splitting.
4695         (parm_in_unassigned_mem_p): New.  Use it instead of
4696         parm_maybe_byref_p throughout this file.
4697         (assign_parm_setup_block): Use it.  Accept pseudos in the
4698         expand-assigned rtl.
4699         (assign_parm_setup_reg): Drop BLKmode requirement.
4700         (assign_parm_setup_stack): Allocate and fill in the address of
4701         unassigned MEM parms.
4703 2015-08-19  David Sherwood  <david.sherwood@arm.com>
4705         * genmodes.c (emit_mode_unit_size_inline): New function.
4706         (emit_mode_unit_precision_inline): New function.
4707         (emit_insn_modes_h): Emit new #define.  Emit new functions.
4708         (emit_mode_unit_size): New function.
4709         (emit_mode_unit_precision): New function.
4710         (emit_mode_adjustments): Add mode_unit_size adjustments.
4711         (emit_insn_modes_c): Emit new arrays.
4712         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
4713         use new inline methods.
4715 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4717         * config/aarch64/aarch64.c (bit_count): Delete prototype
4718         and definition.
4719         (aarch64_print_operand): Use popcount_hwi instead of the above.
4721 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4723         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
4724         comment.
4726 2015-08-19  Marek Polacek  <polacek@redhat.com>
4728         PR middle-end/67133
4729         * gimple-ssa-isolate-paths.c
4730         (insert_trap_and_remove_trailing_statements): Rename to ...
4731         (insert_trap): ... this.  Don't remove trailing statements; split
4732         block instead.
4733         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
4735 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
4737         PR other/67042
4738         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
4739         conditionalize the whole on __GNUC__.  Add fallback code
4740         depending neither on undefined nor implementation-defined behaviour.
4742 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
4744         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
4745         whitespaces with tab.
4747 2015-08-19  Florian Weimer  <fweimer@redhat.com>
4749         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
4750         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
4751         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
4752         Move Name_Ids instantiation to the Prj.Proc package, to avoid
4753         trampolines.
4755 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4757         * config/arm/arm.c (bounds_check): Use %wd print format
4758         for HOST_WIDE_INT arguments.
4760 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
4762         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
4763         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
4764         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
4765         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
4766         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
4767         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
4768         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
4769         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
4770         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
4771         typedefs.
4773 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
4775         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
4776         function.c, graphite-scop-detection.c, haifa-sched.c,
4777         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
4778         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
4779         varasm.c: Remove typedefs of structs.
4781 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
4783         * config/rs6000/altivec.h (vec_adde): New define.
4784         (vec_addec): Likewise.
4785         (vec_double): Likewise.
4786         (vec_bperm): Likewise.
4787         (vec_gb): Likewise.
4788         * config/rs6000/rs6000-builtin.def (ADDE): New
4789         BU_ALTIVEC_OVERLOAD_3.
4790         (ADDEC): Likewise.
4791         (DOUBLE): New BU_VSX_OVERLOAD_1.
4792         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
4793         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
4794         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
4795         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
4796         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
4797         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
4798         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
4799         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
4800         and P8V_BUILTIN_VEC_VBPERMQ.
4802 2015-08-18  Jason Merrill  <jason@redhat.com>
4804         * print-tree.c (print_node): Handle TREE_BINFO.
4806 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4808         PR middle-end/36757
4809         * builtins.c (expand_builtin_signbit): Add asserts to make sure
4810         we can expand BUILT_IN_SIGNBIT inline.
4811         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
4812         * doc/extend.texi: Document the type-generic __builtin_signbit.
4814 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
4816         PR rtl-optimization/67218
4817         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
4818         (simplify_unary_operation_1): Use it.
4820 2015-08-18  Marek Polacek  <polacek@redhat.com>
4822         PR middle-end/67222
4823         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
4824         if the call isn't valid.
4825         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
4826         gimple_call_builtin_p.
4827         (call_may_clobber_ref_p_1): Likewise.
4828         (stmt_kills_ref_p): Likewise.
4830 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4832         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4833         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
4834         (mips_hard_regno_scratch_ok): Likewise.
4835         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
4836         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
4838 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
4840         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
4841         (determine_value_range): Call refine_value_range_using_guard for
4842         each loop initial condition to improve value range.
4844 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
4846         * config/i386/i386.c: Remove include of fibheap.h.
4848 2015-08-17  Richard Biener  <rguenther@suse.de>
4850         PR tree-optimization/67221
4851         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
4852         (sccvn_dom_walker::before_dom_children): Mark backedges of
4853         non-executable blocks as not executable.
4855 2015-08-17  David Sherwood  <david.sherwood@arm.com>
4857         * config/arm/arm.c (neon_element_bits): Replace call to
4858         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
4859         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
4860         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
4861         (neon_vdup_lane<mode>): Likewise.
4862         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
4863         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
4864         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
4865         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
4866         * config/spu/spu.c (arith_immediate_p): Likewise.
4867         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4868         * expr.c (expand_expr_real_2): Likewise.
4869         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
4870         * simplify-rtx.c (simplify_immed_subreg): Likewise.
4871         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4872         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
4873         New variable.
4874         * fold-const.c (fold_binary_loc): Replace call to
4875         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
4876         GET_MODE_UNIT_PRECISION (m).
4878 2015-08-17  Mike Stump  <mikestump@comcast.net>
4880         * config/arm/arm.c (arm_block_move_unaligned_straight):
4881         Emit normal move instead of unaligned load when source or destination
4882         are appropriately aligned.
4884 2015-08-17  Richard Biener  <rguenther@suse.de>
4885             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4887         PR middle-end/16107
4888         * match.pd (div (coss (op @0) : New simplifier.
4890 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
4892         PR rtl-optimization/64164
4893         PR bootstrap/66978
4894         PR middle-end/66983
4895         PR rtl-optimization/67000
4896         PR middle-end/67034
4897         PR middle-end/67035
4898         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4899         * tree-ssa-copyrename.c: Removed.
4900         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4901         -ftree-coalesce-vars.
4902         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4903         * common.opt (ftree-copyrename): Ignore.
4904         (ftree-coalesce-inlined-vars): Likewise.
4905         * doc/invoke.texi: Remove the ignored options above.
4906         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4907         * tree-ssa-coalesce.h: ... here.
4908         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4909         headers required by it.
4910         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4911         across variables when flag_tree_coalesce_vars.  Check register
4912         use and promoted modes to allow coalescing.  Do not coalesce
4913         maybe-byref parms with SSA_NAMEs of other variables, or
4914         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
4915         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4916         with its member functions to tree-ssa-coalesce.c.
4917         (var_map_base_init): Likewise.  Renamed to
4918         compute_samebase_partition_bases.
4919         (partition_view_normal): Drop want_bases parameter.
4920         (partition_view_bitmap): Likewise.
4921         * tree-ssa-live.h: Adjust declarations.
4922         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
4923         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4924         default defs at the entry point.
4925         (dump_part_var_map): New.
4926         (compute_optimized_partition_bases): New, called by...
4927         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4928         of compute_samebase_partition_bases.  Adjust.
4929         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4930         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
4931         (ssa_default_def_partition): New.
4932         (get_rtl_for_parm_ssa_default_def): New.
4933         (align_local_variable, add_stack_var): Support anonymous SSA
4934         names.
4935         (defer_stack_allocation): Likewise.  Declare earlier.
4936         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4937         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4938         Do no record deferred-allocation marker in
4939         SA.partition_to_pseudo.
4940         (expand_stack_vars): Adjust check for the marker in it.
4941         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4942         redundant MEM attr setting.
4943         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4944         from...
4945         (expand_one_stack_var): ... this.  New wrapper to check and
4946         skip already expanded SSA partitions.
4947         (record_alignment_for_reg_var): New, factored out of...
4948         (expand_one_var): ... this.
4949         (expand_one_ssa_partition): New.
4950         (adjust_one_expanded_partition_var): New.
4951         (expand_one_register_var): Check and skip already expanded SSA
4952         partitions.
4953         (expand_used_vars): Don't create DECLs for anonymous SSA
4954         names.  Expand all SSA partitions, then adjust all SSA names.
4955         (pass::execute): Replace the loops that set
4956         SA.partition_to_pseudo from partition leaders and cleared
4957         DECL_RTL for multi-location variables, and that which used to
4958         rename vars and set attrs, with one that clears DECL_RTL and
4959         checks that PARMs and RESULTs default_defs match DECL_RTL.
4960         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4961         * emit-rtl.c: Include stor-layout.h.
4962         (set_reg_attrs_for_parm): Handle NULL decl.
4963         (set_reg_attrs_for_decl_rtl): Take mode from expression if
4964         it's not a DECL.
4965         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
4966         rather than its possibly-NULL DECL.
4967         * explow.c (promote_ssa_mode): New.
4968         * explow.h (promote_ssa_mode): Declare.
4969         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4970         (read_complex_part): Export.
4971         * expr.h (read_complex_part): Declare.
4972         * cfgexpand.h (parm_maybe_byref_p): Declare.
4973         * function.c: Include cfgexpand.h.
4974         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4975         (use_register_for_parm_decl): Wrapper for the above to
4976         special-case the result_ptr.
4977         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4978         (split_complex_args): Take assign_parm_data_all argument.
4979         Pass it to rtl_for_parm.  Set up rtl and context for split
4980         args.  Reset complex parm before fetching its default decl
4981         rtl.
4982         (assign_parms_unsplit_complex): Use the default-def complex
4983         parm rtl if it matches the components.
4984         (assign_parms_augmented_arg_list): Adjust.
4985         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4986         multiple locations.  Recognize split complex args.
4987         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4988         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4989         (assign_parm_setup_block): Prefer SSA-assigned location, and
4990         fill in its address if the memory location of a maybe-byref
4991         parm was not assigned by cfgexpand.
4992         (assign_parm_setup_reg): Likewise.  Adjust its mode as
4993         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
4994         sure passed_pointer parms don't need conversion.  Copy address
4995         or value as needed.
4996         (assign_parm_setup_stack): Prefer SSA-assigned location.
4997         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4998         rtl before testing for pointer bounds.  Special-case result_ptr.
4999         (expand_function_start): Maybe reset DECL_RTL of result.
5000         Prefer SSA-assigned location for result and static chain.
5001         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
5002         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
5003         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5004         anonymous SSA names.  Use promote_ssa_mode.
5005         (get_temp_reg): Likewise.
5006         (remove_ssa_form): Adjust.
5007         * stor-layout.c (layout_decl): Don't set mem attributes of
5008         non-MEMs.
5009         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5010         and get its reg_usage for reg invalidation.
5011         (compute_bb_dataflow): Pass it insn.
5012         (emit_notes_in_bb): Likewise.
5014 2015-08-14  Marek Polacek  <polacek@redhat.com>
5016         * tree-core.h (tree_base): Fix typo.
5018 2015-08-14  Marek Polacek  <polacek@redhat.com>
5020         PR middle-end/67133
5021         * gimple.c (infer_nonnull_range_by_attribute): Check that the
5022         nonnull argument position is not outside function arguments.
5024 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
5026         PR target/67143
5027         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
5028         'lconst_atomic' with 'const_atomic'.
5029         (atomic_fetch_<optab><mode>): Likewise.
5030         (atomic_<optab>_fetch<mode>): Likewise.
5031         * config/aarch64/iterators.md (lconst-atomic): Move below
5032         'const_atomic'.
5033         (const_atomic): New.
5035 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
5036             Bernd Schmidt  <bernds@codesourcery.com>
5038         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
5039         debug options.
5040         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
5041         (DWARF2_DEBUGGING_INFO): Don't define.
5042         * debug.h (dwarf2_lineno_debug_hooks): Declare.
5043         * toplev.c (process_options): Add a case for it.
5044         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
5045         (dwarf2out_init): Skip most initializations if
5046         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
5047         case.
5048         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
5049         DWARF2_LINENO_DEBUGGING_INFO.
5050         * opts.c (set_debug_level): Likewise.
5052 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
5054         * config/arm/types.md (is_neon_type): Add missing types.
5056 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5058         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
5059         for skylake.
5060         * config/i386/i386.c (PTA_SKYLAKE): New macros.
5061         (processor_alias_table): Add skylake description.
5062         (enum processor_model): Add skylake processor.
5063         (arch_names_table): Add skylake record.
5064         * doc/invoke.texi: Add skylake item.
5066 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
5068         * ira-int.h: Include recog.h.
5069         * ira-build.c: Don't include recog.h.
5070         * ira-color.c: Likewise.
5071         * ira-conflicts.c: Likewise.
5072         * ira-costs.c: Likewise.
5073         * ira-emit.c: Likewise.
5074         * ira-lives.c: Likewise.
5075         * ira.c: Likewise.
5076         * sched-deps.c: Likewise.
5077         * sel-sched.c: Likewise.
5078         * target-globals.c: Likewise.
5080 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
5082         PR bootstrap/55035
5083         * reload1.c (elimination_costs_in_insn): Make it obvious to the
5084         compiler that the n_dups and n_operands loop bounds are invariant.
5086 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5088         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
5089         expressions in A and B.
5091 2015-08-13  Richard Biener  <rguenther@suse.de>
5093         * tree.c (nonnull_arg_p): Move from ...
5094         * tree-vrp.c (nonnull_arg_p): ... here.
5095         * tree.h (nonnull_arg_p): Declare.
5096         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
5097         here, register ptr != 0 for nonnull_arg_p pointer arguments.
5098         Properly initialize static chain and by-reference result pointer.
5099         (run_scc_vn): Adjust.
5101 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
5103         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
5104         TUNE_I6400.
5106 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
5108         * config/aarch64/aarch64-protos.h
5109         (aarch64_gen_atomic_cas): Declare.
5110         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
5111         Choose appropriate instruction pattern for the target.
5112         (aarch64_gen_atomic_cas): New.
5113         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
5114         (atomic_compare_and_swap<mode>_1): Rename to
5115         aarch64_compare_and_swap<mode>.  Fix some indentation.
5116         (aarch64_compare_and_swap<mode>_lse): New.
5117         (aarch64_atomic_cas<mode>): New.
5119 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
5121         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
5122         (TARGET_LSE): New.
5124 2015-08-13  Richard Biener  <rguenther@suse.de>
5126         PR tree-optimization/67191
5127         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
5128         assert we value-numbered last stmts operand because it can validly
5129         trigger for unreachable code.
5131 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5133         PR rtl-optimization/67103
5134         * ifcvt.c (noce_try_store_flag_constants): Move
5135         x = (-(test != 0) & (b - a)) + a transformation to...
5136         (noce_try_cmove): ... Here.  Try it if normal conditional
5137         move fails.
5139 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
5141         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
5142         pseudo-processors.
5143         * config/mips/mips.md (processor): Remove w32 and w64.
5145 2015-08-13  Richard Biener  <rguenther@suse.de>
5147         PR tree-optimization/66502
5148         PR tree-optimization/67167
5149         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
5150         backedge arguments.
5151         (vn_phi_lookup): Adjust.
5152         (vn_phi_insert): Likewise.
5153         (visit_phi): Prefer to value-number to another PHI node
5154         over value-numbering to a PHI argument.
5155         (init_scc_vn): Mark DFS back edges.
5157 2015-08-13  Richard Biener  <rguenther@suse.de>
5159         * gimple.h (gcall::code_): New constant static member.
5160         (gcond::code_): Likewise.
5161         * gimple.c (gcall::code_): Define.
5162         (gcond::code_): Likewise.
5163         (is_a_helper <const gcond *>): Add.
5164         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
5165         and forward to a new gcall overload with less checking and a
5166         cheaper way to access the operand.
5167         (gimple_call_lhs_ptr): Likewise.
5168         (gimple_call_set_lhs): Likewise.
5169         (gimple_call_internal_p): Likewise.
5170         (gimple_call_with_bounds_p): Likewise.
5171         (gimple_call_set_with_bounds): Likewise.
5172         (gimple_call_internal_fn): Likewise.
5173         (gimple_call_set_ctrl_altering): Likewise.
5174         (gimple_call_ctrl_altering_p): Likewise.
5175         (gimple_call_fntype): Likewise.
5176         (gimple_call_fn): Likewise.
5177         (gimple_call_fn_ptr): Likewise.
5178         (gimple_call_set_fndecl): Likewise.
5179         (gimple_call_fndecl): Likewise.
5180         (gimple_call_chain): Likewise.
5181         (gimple_call_num_args): Likewise.
5182         (gimple_call_arg): Likewise.
5183         (gimple_call_arg_ptr): Likewise.
5184         (gimple_call_set_arg): Likewise.
5185         (gimple_call_noreturn_p): Likewise.
5186         (gimple_cond_code): Likewise.
5187         (gimple_cond_lhs): Likewise.
5188         (gimple_cond_rhs): Likewise.
5189         (gimple_has_lhs): Reduce checking.
5191 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5193         PR middle-end/25529
5194         * match.pd (div (mult @0 @1) @1) : New simplifier.
5196 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5198         PR target/67071
5199         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5200         predicate to allow construction of vector constants using the
5201         VSLDOI vector shift instruction.
5203         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
5204         declaration.
5206         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
5207         the number of bytes to be shifted left and filled in with either
5208         all zero or all one bits.
5209         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
5210         methods exist.
5211         (output_vec_const_move): On power8, generate XXLORC to generate
5212         a vector constant with all 1's. Do a split if we need to use a
5213         VSLDOI instruction.
5215         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
5216         properly test for the MSB.
5218         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
5219         vector constants that can be created with VSLDOI.
5221 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
5223         revert:
5224         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5225         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5226         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5227         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5228         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5229         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5230         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5231         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5232         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5234 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
5236         * config/xtensa/constraints.md (define_constraint "Y"): New
5237         constraint.
5238         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
5239         * config/xtensa/linux.h (ASM_SPEC): Likewise.
5240         * config/xtensa/predicates.md (move_operand): Match constants
5241         and symbols in the presence of TARGET_AUTO_LITPOOLS.
5242         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
5243         immediate references to TLS data.
5244         (xtensa_emit_move_sequence): Don't force constants to memory in
5245         the presence of TARGET_AUTO_LITPOOLS.
5246         (print_operand): Add 'y' format, same as default, but capable of
5247         printing SF mode constants as well.
5248         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
5249         (movsf_internal): Add movi pattern that loads literal.
5250         (movsf, movdf): Don't force constants to memory in the presence
5251         of TARGET_AUTO_LITPOOLS.
5252         (movdf_internal): Add 'Y' constraint.
5253         * config/xtensa/xtensa.opt (mauto-litpools): New option.
5254         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
5256 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
5258         * config/arm/arm-fpus.def: Replace booleans with feature flags.
5259         Update comment.
5260         * config/arm/arm.c (ARM_FPU): Update macro.
5261         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
5262         (TARGET_FP16): Likewise.
5263         (TARGET_CRYPTO): Likewise.
5264         (TARGET_NEON): Likewise.
5265         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
5266         field features.
5268 2015-08-12  Tom de Vries  <tom@codesourcery.com>
5270         PR other/67092
5271         PR other/67098
5272         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
5273         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
5274         accordingly.  Mention default for --with-stage1-ldflags.
5276 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
5278         * config/arm/arm.h (arm_fpu_feature_set): New.
5279         (ARM_FPU_FSET_HAS): New.
5280         (FPU_FL_NONE): New.
5281         (FPU_FL_NEON): New.
5282         (FPU_FL_FP16): New.
5283         (FPU_FL_CRYPTO): New.
5285 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5287         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
5288         after -mcmodel=large -fPIC sorry.
5290 2015-08-12  Richard Biener  <rguenther@suse.de>
5292         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
5293         comparison operand order and commutative ternary op operand order.
5294         (sccvn_dom_walker::cond_stack): New state to track temporary
5295         expressions.
5296         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
5297         no longer valid.
5298         (sccvn_dom_walker::record_cond): Add a single temporary conditional
5299         expression.
5300         (sccvn_dom_walker::record_conds): Add a temporary conditional
5301         expressions and all related expressions also true/false.
5302         (sccvn_dom_walker::before_dom_children): Record temporary
5303         expressions based on the controlling condition of a single
5304         predecessor.  When trying to simplify a conditional statement
5305         lookup expressions we might have inserted earlier.
5307 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
5309         PR target/67127
5310         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
5311         to ARM core registers.
5313 2015-08-12  Nathan Sidwell  <nathan@acm.org>
5315         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
5316         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
5318 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
5320         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
5321         line with comments.
5322         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
5324 2015-08-12  Richard Biener  <rguenther@suse.de>
5326         * gimple.h (remove_pointer): New trait.
5327         (GIMPLE_CHECK2): New inline template function.
5328         (gassign::code_): New constant static member.
5329         (is_a_helper<const gassign *>): Add.
5330         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
5331         and forward to a new gassign overload with less checking and a
5332         cheaper way to access the operand.
5333         (gimple_assign_lhs_ptr): Likewise.
5334         (gimple_assign_set_lhs): Likewise.
5335         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
5336         Likewise.
5337         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
5338         Likewise.
5339         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
5340         Likewise.
5341         (gimple_assign_rhs_code): Likewise.
5342         * gimple.c (gassign::code_): Define.
5344 2015-08-12  Richard Biener  <rguenther@suse.de>
5346         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5347         Eliminate edges marked as not executable by SCCVN.
5348         * tree-ssa-sccvn.c: Include gimple-iterator.h.
5349         (cond_dom_walker): Rename to sccvn_dom_walker.
5350         (sccvn_dom_walker::before_dom_children): Value-number defs
5351         of all stmts.
5352         (run_scc_vn): Remove loop value-numbering all SSA names.
5353         Drop not visited SSA names to varying.
5355 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
5357         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5358         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
5359         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
5360         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
5361         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
5362         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5363         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
5364         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
5365         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
5367 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
5369         PR target/66954
5370         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
5371         to enum feature_priority and feature_list.
5372         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
5373         and isa_names_table.
5375 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
5377         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
5378         vect_induction_def.
5380 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5382         PR c/66098
5383         PR c/66711
5384         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
5385         account when deciding what was the command-line status.
5387 2015-08-11  Nathan Sidwell  <nathan@acm.org>
5389         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
5391         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
5392         we're not the only contributor to target phi.
5394 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
5396         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
5397         FIXED_REG0.
5399 2015-08-11  Tom de Vries  <tom@codesourcery.com>
5401         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
5403 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
5405         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
5406         with CPU_SLM.
5407         * config/i386/i386.md (cpu): Remove knl.
5409 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5411         PR libgomp/65742
5412         PR middle-end/66332
5413         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
5414         open-coded sequence.
5415         * omp-low.c (oacc_process_reduction_data): Remove handline of
5416         GOMP_DEVICE_HOST_NONSHM.
5418         * lto-streamer-in.c (lto_input_mode_table): Adjust to
5419         GET_MODE_INNER changes.
5421 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5422             Ilya Verbin  <ilya.verbin@intel.com>
5424         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
5426 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5428         * doc/options.texi (EnabledBy): Document that the argument must be
5429         a Common option.
5430         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
5431         Not enabled by -Wall.
5432         * optc-gen.awk: Give nicer error messages. Detect if the argument
5433         of EnabledBy is not a Common option.
5434         * common.opt (Wnull-dereference): Not enabled by -Wall.
5435         * opt-functions.awk (lang_enabled_by): Nicer error messages.
5437 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
5439         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
5440         model == 0x4f as Broadwell.
5442 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
5444         PR rtl-optimization/67028
5445         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
5446         Add test to see if a const_int fits in the new mode.
5448 2015-08-07  DJ Delorie  <dj@redhat.com>
5450         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
5452 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5454         PR rtl-optimization/67029
5455         * ira-color.c: Include "recog.h" before including "ira-int.h".
5456         * target-globals.c: Likewise.
5457         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
5458         adds an alternative_mask argument and use it instead of
5459         preferred_alternatives.
5460         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
5461         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
5462         * sched-deps.c: Include "ira-int.h" after including "ira.h".
5463         (sched_analyze_insn): Update call to
5464         ira_implicitly_set_insn_hard_regs.
5465         * sel-sched.c: Include "ira-int.h" after including "ira.h".
5466         (implicit_clobber_conflict_p): Update call to
5467         ira_implicitly_set_insn_hard_regs.
5469 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
5471         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
5473 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5475         PR target/67002
5476         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
5477         currently_expanding_to_rtl is set.
5479 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5481         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
5482         * configure: Regenerate.
5484 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5485             Jiong Wang  <jiong.wang@arm.com>
5487         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
5488         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
5489         (REG_CLASS_NAMES): Likewise.
5490         (REG_CLASS_CONTENTS): Likewise.
5491         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
5492         (aarch64_register_move_cost): Likewise.
5493         (aarch64_load_symref_appropriately): Invoke the new added pattern if
5494         possible.
5495         * config/aarch64/constraints.md (Uc0): New constraint.
5497 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
5499         * config/aarch64/constraints.md (Usf): Add the test of
5500         aarch64_is_noplt_call_p.
5502 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
5504         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
5505         declaration.
5506         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
5507         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
5508         (call_symbol): Likewise.
5510 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
5512         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
5513         for vectorizing multiplication patterns.
5514         * tree-vectorizer.h: Adjust the number of patterns.
5516 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
5518         * config/i386/sse.md (*vec_concatv2df): Declare added
5519         alternatives as sselog type.
5521 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5523         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
5524         all GPRs.
5526 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5528         * config/s390/s390.c (s390_expand_tbegin): Expand either
5529         tbegin_1_z13 or tbegin_1 depending on VX flag.
5530         * config/s390/s390.md ("tbegin_1_z13"): New expander.
5532 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5534         * config/s390/s390.opt: Clarify description for -mzvector
5535         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
5536         -mzvector.
5538 2015-08-06  Richard Biener  <rguenther@suse.de>
5540         * gimple.h (gimple_call_set_fn): Access op member directly.
5541         (gimple_call_chain_ptr): Likewise.
5542         (gimple_call_set_chain): Likewise.
5543         (gimple_cond_lhs_ptr): Likewise.
5544         (gimple_cond_set_lhs): Likewise.
5545         (gimple_cond_rhs_ptr): Likewise.
5546         (gimple_cond_set_rhs): Likewise.
5547         (gimple_cond_true_label): Likewise.
5548         (gimple_cond_set_true_label): Likewise.
5549         (gimple_cond_set_false_label): Likewise.
5550         (gimple_cond_false_label): Likewise.
5551         (gimple_label_label): Likewise.
5552         (gimple_label_set_label): Likewise.
5553         (gimple_goto_set_dest): Likewise.
5554         (gimple_asm_input_op): Likewise.
5555         (gimple_asm_input_op_ptr): Likewise.
5556         (gimple_asm_set_input_op): Likewise.
5557         (gimple_asm_output_op): Likewise.
5558         (gimple_asm_output_op_ptr): Likewise.
5559         (gimple_asm_set_output_op): Likewise.
5560         (gimple_asm_clobber_op): Likewise.
5561         (gimple_asm_set_clobber_op): Likewise.
5562         (gimple_asm_label_op): Likewise.
5563         (gimple_asm_set_label_op): Likewise.
5564         (gimple_switch_index): Likewise.
5565         (gimple_switch_index_ptr): Likewise.
5566         (gimple_return_retval_ptr): Likewise.
5567         (gimple_return_retval): Likewise.
5568         (gimple_return_set_retval): Likewise.
5569         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
5570         (gimple_switch_label): Likewise.
5571         (gimple_switch_set_label): Likewise.
5573 2015-08-06  Richard Biener  <rguenther@suse.de>
5575         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
5576         bool comparison canonicalization and restrict to integers.
5578 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
5580         * coretypes.h (enum symbol_visibility): Relocate here.
5581         * flag-types.h (enum symbol_visibility): Remove.
5582         * tree-core.h (enum symbol_visibility): Remove.
5584 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
5586         PR target/66870
5587         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
5588         for no_split_stack function attribute along with
5589         flag_split_stack.
5590         (rs6000_expand_split_stack_prologue): Likewise.
5592 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5593             Jeff Law  <law@redhat.com>
5595         PR c/16351
5596         * doc/invoke.texi (Wnull-dereference): New.
5597         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
5598         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
5599         Warn for potential NULL dereferences.
5600         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
5601         * ubsan.c (instrument_nonnull_arg): Call
5602         infer_nonnull_range_by_attribute.
5603         (instrument_nonnull_return): Likewise.
5604         * common.opt (Wnull-dereference); New.
5605         * gimple.c (infer_nonnull_range): Remove bool arguments.
5606         (infer_nonnull_range_by_dereference): New.
5607         (infer_nonnull_range_by_attribute): New.
5608         * gimple.h: Update declarations.
5610 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
5612         * gensupport.c (sequence_num): Replace with...
5613         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
5614         ...these new variables.
5615         (init_rtx_reader_args_cb): Update accordingly.
5616         (get_num_code_insns): Likewise.
5617         (read_md_rtx): Rework to use a while loop and get_c_test.
5618         Use the new counters.  Remove redundant DEFINE_SUBST case.
5619         * genoutput.c (gen_split): Delete.
5620         (main): Don't call it.
5622 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
5624         * gensupport.h (get_c_test): Declare.
5625         * gensupport.c (get_c_test): New function.
5626         * genconditions.c (main): Use it.
5627         * genrecog.c (validate_pattern): Likewise.
5628         (match_pattern_1): Likewise.  Remove c_test argument.
5629         (match_pattern): Update accordingly and remove c_test argument.
5630         (main): Update accordingly.
5632 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
5634         * gensupport.h (get_num_insn_codes): Declare.
5635         * gensupport.c (get_num_insn_codes): New function.
5636         * genattrtab.c (optimize_attrs): Rename max_insn_code to
5637         num_insn_codes.
5638         (main): Likewise.  Use get_num_insn_codes.
5639         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
5641 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
5643         PR middle-end/66311
5644         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
5645         is zero- rather than sign-extended.
5647 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
5649         * target-insns.def (can_extend): Delete.
5651 2015-08-05  Richard Biener  <rguenther@suse.de>
5653         PR tree-optimization/67121
5654         * tree-if-conv.c (combine_blocks): Clear range-info produced
5655         by stmts no longer executed conditionally.
5657 2015-08-05  Nick Clifton  <nickc@redhat.com>
5659         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
5660         to allow identical far pointers to remain.
5662 2015-08-05  Richard Biener  <rguenther@suse.de>
5664         PR middle-end/67120
5665         * match.pd: Compare address bases with == if they are decls
5666         or SSA names, not operand_equal_p.  Otherwise fail.
5668 2015-08-05  Richard Biener  <rguenther@suse.de>
5670         PR tree-optimization/67055
5671         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
5672         NULL gimple_block.
5674         * g++.dg/torture/pr67055.C: New testcase.
5676 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
5678         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
5679         noavx512vl.
5680         (define_attr "enabled"): Handle avx521vl and noavx512vl.
5681         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
5682         AVX-512 alternative out of SSE.
5683         (define_insn "*vec_concatv2df"): Ditto.
5685 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
5687         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
5688         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
5689         CODE_FOR_avx_ptestv4di.
5690         * config/i386/sse.md (define_mode_iterator V_AVX): New.
5691         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
5692         (define_insn "avx_ptest256"): Merge this ...
5693         (define_insn "sse4_1_ptest"): And this ...
5694         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
5696 2015-08-05  Richard Biener  <rguenther@suse.de>
5698         PR tree-optimization/67109
5699         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
5700         against too big groups.  Print whether this is a load or store
5701         group.  Rename from ...
5702         (vect_analyze_group_access): ... this which is now a wrapper
5703         dissolving an invalid group.
5704         (vect_analyze_data_ref_accesses): Print whether this is a load
5705         or store group.
5707 2015-08-05  Richard Biener  <rguenther@suse.de>
5709         PR middle-end/67107
5710         * match.pd: Guard const_binop result checking against NULL_TREE
5711         result.
5713 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
5715         * cse.c (cse_insn): Restoring old behaviour for src_eqv
5716          when dest and value in the REG_EQUAL are same and dest
5717          is STRICT_LOW_PART.
5719 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
5721         * config/moxie/moxie.h (PRINT_OPERAND,
5722           PRINT_OPERAND_ADDRESS): Remove macros.
5723         * config/moxie/moxie-protos.h (moxie_print_operand,
5724           moxie_print_operand_address): Remove declaration.
5725         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
5726           TARGET_PRINT_OPERAND_ADDRESS): Define.
5727           (moxie_print_operand, moxie_print_operand_address): Make static.
5729 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5731         PR target/66731
5732         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
5733         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
5735 2015-08-04  Richard Biener  <rguenther@suse.de>
5737         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
5738         generated code.
5739         (dt_operand::gen_gimple_expr): Adjust.
5741 2015-08-04  Richard Biener  <rguenther@suse.de>
5743         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
5744         bool compares on RHS.
5745         * match.pd: Add X ==/!= !X is false/true pattern.
5747 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
5749         * config/aarch64/aarch64.c: Change inner loop statement cost
5750         to be consistent with other targets.
5752 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
5754         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
5755         targets.
5757 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
5759         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
5760         (machine_function): Remove pseudos field.
5762 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5764         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5765         Exit early and use target_option_current_node if processing current
5766         pragma.
5768 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5770         * doc/extend.texi (AArch64 Function Attributes): New node.
5771         (AArch64 Pragmas): Likewise.
5773 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5775         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
5776         Initialize simd builtins if TARGET_SIMD.
5777         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5778         Make sure that the builtins are initialized only once no matter how
5779         many times the function is called.
5780         (aarch64_init_builtins): Unconditionally initialize crc builtins.
5781         (aarch64_relayout_simd_param): New function.
5782         (aarch64_simd_expand_args): Use above during argument expansion.
5783         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
5784         simd builtins if TARGET_SIMD.
5785         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
5786         prototype.
5787         (aarch64_relayout_simd_types): Likewise.
5789 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5791         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
5792         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
5793         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
5794         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5795         static keyword.
5796         (aarch64_reset_previous_fndecl): New function.
5797         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
5798         the string.
5799         * config/aarch64/aarch64-c.c: New file.
5800         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
5801         Push and pop options at beginning and end.  Remove ifdef
5802         __ARM_FEATURE_CRC32.
5803         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
5804         Add pragma +nothing+simd and +nothing+crypto where appropriate.
5805         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
5806         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
5807         Define prototype.
5808         (aarch64_register_pragmas): Likewise.
5809         (aarch64_reset_previous_fndecl): Likewise.
5810         (aarch64_process_target_attr): Likewise.
5811         (aarch64_override_options_internal): Likewise.
5813 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5815         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
5816         New function.
5817         (aarch64_can_inline_p): Likewise.
5818         (TARGET_CAN_INLINE_P): Define.
5820 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5822         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5823         Remove static.  Handle OPT_mgeneral_regs_only,
5824         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
5825         OPT_momit_leaf_frame_pointer.
5826         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
5827         (aarch64_attr_opt_type): New enum.
5828         (aarch64_attribute_info): New struct.
5829         (aarch64_handle_attr_arch): New function.
5830         (aarch64_handle_attr_cpu): Likewise.
5831         (aarch64_handle_attr_tune): Likewise.
5832         (aarch64_handle_attr_isa_flags): Likewise.
5833         (aarch64_attributes): New table.
5834         (aarch64_process_one_target_attr): New function.
5835         (num_occurences_in_str): Likewise.
5836         (aarch64_process_target_attr): Likewise.
5837         (aarch64_option_valid_attribute_p): Likewise.
5838         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5839         * config/aarch64/aarch64-protos.h: Include input.h
5840         (aarch64_handle_option): Declare prototype.
5842 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5844         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
5845         * config/aarch64/aarch64.c: Include target-globals.h
5846         (aarch64_previous_fndecl): New variable.
5847         (aarch64_set_current_function): New function.
5848         (TARGET_SET_CURRENT_FUNCTION): Define.
5850 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5852         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
5853         (explicit_arch): Likewise.
5854         (x_aarch64_isa_flags): Likewise.
5855         (mgeneral-regs-only): Mark as Save.
5856         (mfix-cortex-a53-835769): Likewise.
5857         (mcmodel=): Likewise.
5858         (mstrict-align): Likewise.
5859         (momit-leaf-frame-pointer): Likewise.
5860         (mtls-dialect): Likewise.
5861         (master=): Likewise.
5862         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
5863         (aarch64_isa_flags): Remove extern declaration.
5864         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
5865         to indicate success or failure.
5866         (aarch64_validate_march): Likewise.
5867         (aarch64_validate_mtune): Likewise.
5868         (aarch64_isa_flags): Delete.
5869         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
5870         instead of aarch64_isa_flags.
5871         (aarch64_get_tune_cpu): New function.
5872         (aarch64_get_arch): Likewise.
5873         (aarch64_override_options): Use above and set up explicit_tune_core
5874         and explicit_arch.
5875         (aarch64_print_extension): Move earlier in file.  Add isa_flags
5876         argument and use that instead of the global aarch64_isa_flags.
5877         (aarch64_option_save): New function.
5878         (aarch64_option_restore): Likewise.
5879         (aarch64_option_print): Likewise.
5880         (aarch64_declare_function_name): Likewise.
5881         (aarch64_start_file): Delete.
5882         (TARGET_ASM_FILE_START): Do not define.
5883         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
5884         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
5885         Declare prototype.
5887 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5889         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
5890         flag_omit_leaf_frame_pointer to 2.
5892 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5894         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
5895         define to 0 or 1.
5896         (TARGET_FIX_ERR_A53_835769): New macro.
5897         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
5898         handling of opts->x_aarch64_fix_a53_err835769.
5899         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
5900         than aarch64_fix_a53_err835769.
5901         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
5902         * config/aarch64/aarch64-linux.h: Likewise.
5904 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
5906         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
5907         ix86_expand_int_movcc as boolean.
5909 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5911         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
5912         (aarch64_cpu_string): Likewise.
5913         (aarch64_tune_string): Likewise.
5914         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
5915         (aarch64_parse_extension): Return aarch64_parse_opt_result.
5916         Add extra argument to put result into.
5917         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
5918         (aarch64_parse_cpu): Add arguments to put results into. Return
5919         aarch64_parse_opt_result.
5920         (aarch64_parse_tune): Likewise.
5921         (aarch64_override_options_after_change_1): New function.
5922         (aarch64_override_options_internal): New function.
5923         (aarch64_validate_mcpu): Likewise.
5924         (aarch64_validate_march): Likewise.
5925         (aarch64_validate_mtune): Likewise.
5926         (aarch64_override_options): Update to reflect above changes.
5927         Move some logic into aarch64_override_options_internal.
5928         Initialize target_option_default_node and target_option_current_node.
5929         (aarch64_override_options_after_change): Move logic into
5930         aarch64_override_options_after_change_1 and call it with global_options.
5931         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
5932         flag values from that.
5934 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5936         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5937         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
5938         * config/aarch64/aarch64.c (struct processor): Add arch field.
5939         (all_architectures): Handle above, move above all_cores.
5940         (all_cores): Handle above.
5941         (aarch64_parse_arch): Handle above changes.
5942         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
5943         above.  Update comments.
5944         (armv8.1-a): Likewise.
5945         * config/aarch64/aarch64-cores.def: Update according to above.
5946         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
5947         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
5948         aarch64_arch_driver_info.
5950 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5952         * config/aarch64/aarch64.c (struct processor): Add ident field.
5953         Rename core sched_core.
5954         (all_cores): Handle above changes.
5955         (all_architectures): Likewise.
5956         (aarch64_parse_arch): Likewise.
5957         (aarch64_override_options): Likewise.
5959 2015-08-04  Richard Biener  <rguenther@suse.de>
5961         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5962         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
5963         comparisons embedded in [VEC_]COND_EXPRs.
5965 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
5967         * tree-if-conv.c: Fix various typos in comments.
5968         * tree-vect-stmts.c: Likewise.
5970 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5972         PR tree-optimization/67043
5973         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5974         preheader after hoisting invariant in it.
5975         (find_defs): Force recomputation of all luids.
5977 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5979         * config/rs6000/htm.md (tabort.): Restrict the source operand to
5980         using a base register.
5982 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
5984         * main.c (main): Pass in NULL for toplev's external_timer.
5985         * timevar.c: Include coretypes.h.
5986         (class timer::named_items): New.
5987         (timer::named_items::named_items): New.
5988         (timer::named_items::~named_items): New.
5989         (timer::named_items::push): New.
5990         (timer::named_items::pop): New.
5991         (timer::named_items::print): New.
5992         (timer::timer): Initialize field "m_jit_client_items".
5993         (timer::~timer): New.
5994         (timer::push): Move bulk of implementation to...
5995         (timer::push_internal): ...here.  New function.
5996         (timer::pop): Move bulk of implementation to...
5997         (timer::pop_internal): ...here.  New function.
5998         (timer::push_client_item): New.
5999         (timer::pop_client_item): New.
6000         (timer::print_row): New function, taken from timer::print.
6001         (timer::print): Print "GCC items" header if we also have client
6002         items.  Move row-printing to timer::print_row.  Print any client
6003         items.
6004         (timer::get_topmost_item_name): New method.
6005         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
6006         (TV_JIT_CLIENT_CODE): New.
6007         * timevar.h (timer::push_client_item): New declaration.
6008         (timer::pop_client_item): New declaration.
6009         (timer::get_topmost_item_name): New method.
6010         (timer::push_internal): New declaration.
6011         (timer::pop_internal): New declaration.
6012         (timer::print_row): New declaration.
6013         (timer::named_items): New declaration.
6014         (timer::m_jit_client_items): New field.
6015         (timer): Add friend class named_items.
6016         (auto_timevar::auto_timevar): Add timer param.
6017         (auto_timevar::~auto_timevar): Use field "m_timer".
6018         (auto_timevar::m_timer): New field.
6019         * toplev.c (initialize_rtl): Add g_timer as param when
6020         constructing auto_timevar instance.
6021         (toplev::toplev): Add "external_timer" param, and use it to
6022         initialize the "g_timer" global if non-NULL.
6023         (toplev::~toplev): If this created "g_timer", delete it.
6024         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
6025         with "external_timer" timer *.
6027 2015-08-03  Alexander Basov <coohpt@gmail.com>
6029         PR middle-end/64744
6030         PR middle-end/48470
6031         PR middle-end/43404
6032         * cfgexpand.c (expand_one_var): Add check if stack is going to
6033         be used in naked function.
6034         * expr.c (expand_expr_addr_expr_1): Remove excess checking
6035         whether expression should not reside in MEM.
6036         * function.c (use_register_for_decl): Do not use registers for
6037         non-register things (volatile, float, BLKMode) in naked functions.
6039 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
6041         PR target/67060
6042         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
6043         Adjust splits to match new pattern.
6045 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6047         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
6048         (VEC_M): Likewise.
6049         (VEC_N): Likewise.
6050         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
6051         point in VSX registers.
6053         * config/rs6000/constraints.md (wb constraint): Document unused
6054         w<x> constraint.
6055         (we constraint): Likewise.
6056         (wo constraint): Likewise.
6057         (wp constraint): New constraint for IEEE 128-bit floating point in
6058         VSX registers.
6059         (wq constraint): Likewise.
6061         * config/rs6000/predicates.md (easy_fp_constant): Add support for
6062         IEEE 128-bit floating point in VSX registers.
6063         (easy_scalar_constant): Likewise.
6065         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
6066         constraints (wp, wq) for IEEE 128-bit floating point in VSX
6067         registers.
6068         (rs6000_init_hard_regno_mode_ok): Likewise.
6070         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
6071         floating point in VSX registers.
6072         (VSX_L): Likewise.
6073         (VSX_M): Likewise.
6074         (VSX_M2): Likewise.
6075         (VSm): Likewise.
6076         (VSs): Likewise.
6077         (VSr): Likewise.
6078         (VSa): Likewise.
6079         (VSv): Likewise.
6080         (vsx_le_permute_<mode>): Add support to properly swap bytes for
6081         IEEE 128-bit floating point in VSX registers on little endian.
6082         (vsx_le_undo_permute_<mode>): Likewise.
6083         (vsx_le_perm_load_<mode>): Likewise.
6084         (vsx_le_perm_store_<mode>): Likewise.
6085         (splitters for IEEE 128-bit fp moves): Likewise.
6087         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
6088         wq constraints.
6090         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
6091         floating point in VSX registers.
6092         (VM2): Likewise.
6094         * doc/md.text (Machine Constraints): Document wp and wq
6095         constraints on PowerPC.
6097 2015-08-03  Jeff Law  <law@redhat.com>
6099         PR middle-end/66314
6100         PR gcov-profile/66899
6101         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
6102         iterate over the jump threading paths when an element in the
6103         jump threading paths array is eliminated.
6105 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
6107         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
6109 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
6111         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
6112         is_use_properly_guarded the variable def_preds.  Free its
6113         contents before returning.
6114         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
6115         (is_use_properly_guarded): Replace local variable def_preds with
6116         a parameter.  Adjust accordingly.  Only update *def_preds if it's
6117         the empty vector.
6119 2015-08-03  Richard Biener  <rguenther@suse.de>
6121         * genmatch.c (simplify::for_subst_vec): New member.
6122         (binary_ok): New helper for for lowering.
6123         (lower_for): Delay substituting operators into result expressions
6124         if we can merge the results eventually again.
6125         (capture_info::walk_result): Adjust for user_id appearing as
6126         result expression operator.
6127         (expr::gen_transform): Likewise.
6128         (dt_simplify::gen_1): Likewise.
6129         (dt_simplify::gen): Pass not substituted operators to tail
6130         functions or initialize local variable with it.
6131         (decision_tree::gen): Adjust function signature.
6132         * match.pd: Fix tests against global code and add default
6133         cases to switch stmts.
6135 2015-08-03  Richard Biener  <rguenther@suse.de>
6137         * genmatch.c (dt_simplify::gen): Create captures array
6138         with an initializer.
6140 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6142         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
6143         the host compiler is affected by placement new aliasing bug.
6144         * configure: Regenerate.
6145         * Makefile.in (ALIASING_FLAGS): New variable.
6146         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
6148 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6150         PR target/66731
6151         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
6152         (negmulsf3_vfp): Likewise.
6153         (muldf3negdf_vfp): Disable for -frounding-math.
6154         (mulsf3negsf_vfp): Likewise.
6155         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
6156         fix MULT cost with -frounding-math.
6158 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6160         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
6161         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
6162         explicit.  Prefer to add the flag whenever possible.
6163         (noce_process_if_block): Try noce_try_store_flag_constants before
6164         noce_try_cmove.
6166 2015-08-03  Richard Biener  <rguenther@suse.de>
6168         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
6169         New hash-map to record equivalent transforms.
6170         (dt_node::analyze): Populate the equivalent transforms hash-map.
6171         (dt_simplify::info): Add reference to hash-map entry.
6172         (dt_simplify::gen): If we have split out a function for the
6173         transform, generate a call to it.
6174         (sinfo_hashmap_traits::hash): New function.
6175         (compare_op): New helper function for ...
6176         (sinfo_hashmap_traits::equal_keys): ... this new function.
6177         (decision_tree::gen): Split out common equivalent transforms
6178         into functions.
6180 2015-08-03  Richard Biener  <rguenther@suse.de>
6182         * gimple-fold.c (fold_gimple_assign): Remove folding of
6183         the comparison in COND_EXPRs.
6185 2015-08-03  Richard Biener  <rguenther@suse.de>
6187         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
6188         on the rhs of assignments first simplify the embedded
6189         GENERIC condition.
6191 2015-08-03  Richard Biener  <rguenther@suse.de>
6193         PR tree-optimization/66917
6194         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
6195         field.
6196         (DR_VECT_AUX): New macro.
6197         (set_dr_misalignment): Adjust.
6198         (dr_misalignment): Likewise.
6199         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6200         Compute whether the base is at least element aligned.
6201         * tree-vect-stmts.c (ensure_base_align): Adjust.
6202         (vectorizable_store): If the base is not element aligned
6203         preserve alignment of the original access if misalignment is unknown.
6204         (vectorizable_load): Likewise.
6206 2015-08-02  Martin Sebor  <msebor@redhat.com>
6208         * c-family/c.opt (-Wframe-address): New warning option.
6209         * doc/invoke.texi (Wframe-address): Document it.
6210         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
6211         Clarify possible effects of calling the functions with non-zero
6212         arguments and mention -Wframe-address.
6213         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
6215 2015-08-01  Michael Collison  <michael.collison@linaro.org
6216             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6218         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
6219         (*arm_umin_cmp): Likewise.
6221 2015-08-01  Caroline Tice  <cmtice@google.com>
6223         PR 66521
6224         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
6225         global variables.
6226         (vtbl_find_mangled_name):  New function.
6227         (vtbl_register_mangled_name):  New function.
6228         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
6229         mangled name in mangled name vectors.
6230         (find_or_create_vtbl_map_node):  Ditto.
6231         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
6232         update recursion_depth on function entry; pass it to every recursive
6233         call; automatically exit if depth > 25 (give up looking at that point).
6234         (verify_bb_vtables):  Initialize recursion_depth and pass it to
6235         var_is_used_for_virtual_call_p.
6236         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
6237         global variable decls.
6238         (vtbl_register_mangled_name): New extern function decl.
6240 2015-08-01  Tom de Vries  <tom@codesourcery.com>
6242         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
6243         function.
6244         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
6245         Declare.
6246         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
6247         operation_no_trapping_overflow.  Allow non-overflow operations.
6248         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
6249         operations.
6251 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6253         PR target/67049
6254         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
6256 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6258         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
6259         Enable for TARGET_32BIT.
6260         (*if_move_neg): Likewise.
6262 2015-07-31  Nick Clifton  <nickc@redhat.com>
6264         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
6265         Returns true for __model__.
6266         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
6268 2015-07-31  Alan Modra  <amodra@gmail.com>
6270         PR target/66870
6271         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
6272         (rs6000_emit_prologue): Set it.
6273         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
6275 2015-07-31  Richard Biener  <rguenther@suse.de>
6277         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
6278         -> X == (C1 ^ C2) which is already implemented in match.pd.
6279         Remove redundant dispatching to fold_relational_const.
6280         Move unordered self and NaN compares ...
6281         * match.pd: ... as patterns here.  Remove some stray captures
6282         and add a comment.
6284 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
6286         * config/i386/i386.c
6287         (bdesc_special_args): Convert mask type from signed to unsigned for
6288         masked builtins.
6289         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
6290         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
6291         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
6292         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
6293         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
6294         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
6295         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
6296         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
6297         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
6298         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
6299         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
6300         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
6301         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
6302         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
6303         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
6304         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
6305         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
6306         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
6307         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
6308         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
6309         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
6310         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
6311         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
6312         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
6313         * config/i386/i386-builtin-types.def
6314         (V16QI_FTYPE_V16SI): Remove.
6315         (V8DF_FTYPE_V8SI): Ditto.
6316         (V8HI_FTYPE_V8DI): Ditto.
6317         (V8SI_FTYPE_V8DI): Ditto.
6318         (V8SF_FTYPE_V8DF): Ditto.
6319         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
6320         (V16HI_FTYPE_V16SI): Ditto.
6321         (V16SF_FTYPE_V16HI): Ditto.
6322         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
6323         (V16SF_FTYPE_V16SI): Ditto.
6324         (V4DI_FTYPE_V4DI): Ditto.
6325         (V16SI_FTYPE_V16SF): Ditto.
6326         (V16SF_FTYPE_FLOAT): Ditto.
6327         (V8DF_FTYPE_DOUBLE): Ditto.
6328         (V8DI_FTYPE_INT64): Ditto.
6329         (V8DI_FTYPE_V4DI): Ditto.
6330         (V16QI_FTYPE_V8DI): Ditto.
6331         (UINT_FTYPE_V4SF): Ditto.
6332         (UINT64_FTYPE_V4SF): Ditto.
6333         (UINT_FTYPE_V2DF): Ditto.
6334         (UINT64_FTYPE_V2DF): Ditto.
6335         (V16SI_FTYPE_V16SI): Ditto.
6336         (V8DI_FTYPE_V8DI): Ditto.
6337         (V16SI_FTYPE_PV4SI): Ditto.
6338         (V16SF_FTYPE_PV4SF): Ditto.
6339         (V8DI_FTYPE_PV2DI): Ditto.
6340         (V8DF_FTYPE_PV2DF): Ditto.
6341         (V4DI_FTYPE_PV2DI): Ditto.
6342         (V4DF_FTYPE_PV2DF): Ditto.
6343         (V16SI_FTYPE_PV2SI): Ditto.
6344         (V16SF_FTYPE_PV2SF): Ditto.
6345         (V8DI_FTYPE_PV4DI): Ditto.
6346         (V8DF_FTYPE_PV4DF): Ditto.
6347         (V8SF_FTYPE_FLOAT): Ditto.
6348         (V4SF_FTYPE_FLOAT): Ditto.
6349         (V4DF_FTYPE_DOUBLE): Ditto.
6350         (V8SF_FTYPE_PV4SF): Ditto.
6351         (V8SI_FTYPE_PV4SI): Ditto.
6352         (V4SI_FTYPE_PV2SI): Ditto.
6353         (V8SF_FTYPE_PV2SF): Ditto.
6354         (V8SI_FTYPE_PV2SI): Ditto.
6355         (V16SF_FTYPE_PV8SF): Ditto.
6356         (V16SI_FTYPE_PV8SI): Ditto.
6357         (V8DI_FTYPE_V8SF): Ditto.
6358         (V4DI_FTYPE_V4SF): Ditto.
6359         (V2DI_FTYPE_V4SF): Ditto.
6360         (V64QI_FTYPE_QI): Ditto.
6361         (V32HI_FTYPE_HI): Ditto.
6362         (V8UHI_FTYPE_V8UHI): Ditto.
6363         (V16UHI_FTYPE_V16UHI): Ditto.
6364         (V32UHI_FTYPE_V32UHI): Ditto.
6365         (V2UDI_FTYPE_V2UDI): Ditto.
6366         (V4UDI_FTYPE_V4UDI): Ditto.
6367         (V8UDI_FTYPE_V8UDI): Ditto.
6368         (V4USI_FTYPE_V4USI): Ditto.
6369         (V8USI_FTYPE_V8USI): Ditto.
6370         (V16USI_FTYPE_V16USI): Ditto.
6371         (V2DF_FTYPE_V2DF_UINT64): Ditto.
6372         (V2DI_FTYPE_V2DF_V2DF): Ditto.
6373         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
6374         (V8DF_FTYPE_V8DF_V8DI): Ditto.
6375         (V4SF_FTYPE_V4SF_UINT64): Ditto.
6376         (V4SI_FTYPE_V4SF_V4SF): Ditto.
6377         (V16SF_FTYPE_V16SF_V16SI): Ditto.
6378         (V64QI_FTYPE_V32HI_V32HI): Ditto.
6379         (V32HI_FTYPE_V16SI_V16SI): Ditto.
6380         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
6381         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
6382         (V32HI_FTYPE_V64QI_V64QI): Ditto.
6383         (V32HI_FTYPE_V32HI_V32HI): Ditto.
6384         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
6385         (V16SI_FTYPE_V16SI_V4SI): Ditto.
6386         (V16SI_FTYPE_V16SI_V16SI): Ditto.
6387         (V16SI_FTYPE_V32HI_V32HI): Ditto.
6388         (V16SI_FTYPE_V16SI_SI): Ditto.
6389         (V8DI_FTYPE_V8DI_V8DI): Ditto.
6390         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
6391         (V8DI_FTYPE_V16SI_V16SI): Ditto.
6392         (V8DI_FTYPE_V8DI_V2DI): Ditto.
6393         (QI_FTYPE_QI): Ditto.
6394         (SI_FTYPE_SI): Ditto.
6395         (DI_FTYPE_DI): Ditto.
6396         (QI_FTYPE_QI_QI): Ditto.
6397         (QI_FTYPE_QI_INT): Ditto.
6398         (HI_FTYPE_HI_INT): Ditto.
6399         (SI_FTYPE_SI_INT): Ditto.
6400         (DI_FTYPE_DI_INT): Ditto.
6401         (HI_FTYPE_V16QI_V16QI): Ditto.
6402         (SI_FTYPE_V32QI_V32QI): Ditto.
6403         (DI_FTYPE_V64QI_V64QI): Ditto.
6404         (QI_FTYPE_V8HI_V8HI): Ditto.
6405         (HI_FTYPE_V16HI_V16HI): Ditto.
6406         (SI_FTYPE_V32HI_V32HI): Ditto.
6407         (QI_FTYPE_V4SI_V4SI): Ditto.
6408         (QI_FTYPE_V8SI_V8SI): Ditto.
6409         (QI_FTYPE_V2DI_V2DI): Ditto.
6410         (QI_FTYPE_V4DI_V4DI): Ditto.
6411         (QI_FTYPE_V8DI_V8DI): Ditto.
6412         (HI_FTYPE_V16SI_V16SI): Ditto.
6413         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
6414         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
6415         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
6416         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
6417         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
6418         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
6419         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
6420         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
6421         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
6422         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
6423         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
6424         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
6425         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
6426         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
6427         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
6428         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
6429         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
6430         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
6431         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
6432         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
6433         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
6434         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
6435         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6436         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6437         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6438         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6439         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6440         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6441         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6442         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6443         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6444         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
6445         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
6446         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
6447         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6448         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6449         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6450         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
6451         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
6452         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
6453         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
6454         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
6455         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
6456         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
6457         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
6458         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
6459         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
6460         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6461         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6462         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
6463         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6464         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6465         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
6466         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
6467         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
6468         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
6469         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
6470         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
6471         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
6472         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
6473         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
6474         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
6475         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
6476         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
6477         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
6478         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
6479         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
6480         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
6481         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
6482         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
6483         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
6484         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
6485         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
6486         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
6487         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
6488         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
6489         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
6490         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
6491         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
6492         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
6493         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
6494         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
6495         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
6496         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
6497         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
6498         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
6499         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
6500         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
6501         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
6502         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
6503         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
6504         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
6505         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
6506         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
6507         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
6508         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
6509         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
6510         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
6511         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
6512         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
6513         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
6514         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6515         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6516         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6517         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
6518         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
6519         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
6520         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
6521         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
6522         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
6523         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
6524         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
6525         (HI_FTYPE_HI): Ditto.
6526         (HI_FTYPE_V16QI): Ditto.
6527         (SI_FTYPE_V32QI): Ditto.
6528         (DI_FTYPE_V64QI): Ditto.
6529         (QI_FTYPE_V8HI): Ditto.
6530         (HI_FTYPE_V16HI): Ditto.
6531         (SI_FTYPE_V32HI): Ditto.
6532         (QI_FTYPE_V4SI): Ditto.
6533         (QI_FTYPE_V8SI): Ditto.
6534         (HI_FTYPE_V16SI): Ditto.
6535         (QI_FTYPE_V2DI): Ditto.
6536         (QI_FTYPE_V4DI): Ditto.
6537         (QI_FTYPE_V8DI): Ditto.
6538         (V16QI_FTYPE_HI): Ditto.
6539         (V32QI_FTYPE_SI): Ditto.
6540         (V64QI_FTYPE_DI): Ditto.
6541         (V8HI_FTYPE_QI): Ditto.
6542         (V16HI_FTYPE_HI): Ditto.
6543         (V32HI_FTYPE_SI): Ditto.
6544         (V4SI_FTYPE_QI): Ditto.
6545         (V4SI_FTYPE_HI): Ditto.
6546         (V8SI_FTYPE_QI): Ditto.
6547         (V8SI_FTYPE_HI): Ditto.
6548         (V2DI_FTYPE_QI): Ditto.
6549         (V4DI_FTYPE_QI): Ditto.
6550         (HI_FTYPE_HI_HI): Ditto.
6551         (SI_FTYPE_SI_SI): Ditto.
6552         (DI_FTYPE_DI_DI): Ditto.
6553         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
6554         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
6555         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
6556         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
6557         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
6558         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
6559         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
6560         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
6561         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
6562         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
6563         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
6564         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
6565         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
6566         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
6567         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
6568         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
6569         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
6570         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
6571         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
6572         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
6573         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
6574         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
6575         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
6576         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
6577         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
6578         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
6579         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
6580         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
6581         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
6582         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
6583         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
6584         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
6585         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
6586         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
6587         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
6588         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
6589         (V16SI_FTYPE_HI): Ditto.
6590         (V8DI_FTYPE_QI): Ditto.
6591         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
6592         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
6593         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
6594         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
6595         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
6596         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
6597         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
6598         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
6599         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
6600         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
6601         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
6602         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
6603         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
6604         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
6605         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
6606         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
6607         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
6608         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
6609         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
6610         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
6611         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
6612         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
6613         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
6614         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
6615         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
6616         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
6617         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
6618         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
6619         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
6620         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
6621         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
6622         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
6623         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
6624         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
6625         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
6626         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
6627         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
6628         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
6629         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
6630         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
6631         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
6632         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
6633         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
6634         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
6635         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
6636         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
6637         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
6638         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
6639         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
6640         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
6641         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
6642         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
6643         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
6644         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
6645         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
6646         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
6647         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
6648         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
6649         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
6650         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
6651         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
6652         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
6653         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
6654         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
6655         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
6656         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
6657         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
6658         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
6659         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
6660         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
6661         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
6662         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
6663         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
6664         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
6665         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
6666         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
6667         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
6668         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
6669         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
6670         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
6671         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
6672         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6673         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6674         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6675         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6676         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6677         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6678         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6679         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6680         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6681         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6682         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6683         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6684         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6685         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6686         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6687         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6688         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6689         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6690         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6691         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6692         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6693         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6694         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6695         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6696         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6697         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6698         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6699         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6700         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6701         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6702         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6703         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6704         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6705         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6706         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
6707         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
6708         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
6709         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6710         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6711         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6712         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
6713         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6714         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6715         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6716         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6717         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6718         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6719         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6720         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6721         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
6722         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
6723         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
6724         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6725         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6726         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6727         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6728         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6729         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6730         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6731         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6732         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6733         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6734         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6735         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6736         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6737         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6738         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6739         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6740         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6741         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6742         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6743         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6744         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6745         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
6746         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
6747         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
6748         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6749         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6750         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6751         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6752         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6753         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6754         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6755         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6756         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
6757         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6758         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6759         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
6760         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6761         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6762         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
6763         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
6764         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
6765         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6766         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6767         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
6768         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6769         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6770         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6771         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6772         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6773         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6774         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6775         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6776         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6777         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6778         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
6779         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6780         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6781         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6782         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6783         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6784         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6785         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6786         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6787         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6788         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6789         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6790         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6791         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6792         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6793         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6794         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6795         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6796         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6797         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6798         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6799         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6800         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6801         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6802         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6803         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6804         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
6805         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6806         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6807         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6808         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6809         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6810         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6811         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6812         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6813         (QI_FTYPE_V8DF_INT_QI): Ditto.
6814         (QI_FTYPE_V4DF_INT_QI): Ditto.
6815         (QI_FTYPE_V2DF_INT_QI): Ditto.
6816         (HI_FTYPE_V16SF_INT_HI): Ditto.
6817         (QI_FTYPE_V8SF_INT_QI): Ditto.
6818         (QI_FTYPE_V4SF_INT_QI): Ditto.
6819         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
6821 2015-07-31  Richard Biener  <rguenther@suse.de>
6823         * gimple-fold.c (fold_gimple_assign): Remove folding of
6824         GIMPLE_BINARY_RHS.
6826 2015-07-31  Tom de Vries  <tom@codesourcery.com>
6828         PR tree-optimization/66846
6829         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
6830         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
6831         (expand_omp_target) [ENABLE_CHECKING]: Same.
6832         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
6833         cfun if !LOOPS_NEED_FIXUP.
6834         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
6835         that omp_for already has its own loop struct.
6836         * tree-parloops.c (create_phi_for_local_result)
6837         (create_call_for_reduction): Handle simple latch bb.
6838         (create_parallel_loop): Add simple latch bb to preserve
6839         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
6840         (gen_parallel_loop): Remove call to cancel_loop_tree.
6841         (parallelize_loops): Skip loops that are inner loops of parallelized
6842         loops.
6843         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
6844         verify_loop_structure.
6846 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
6848         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
6849         * config/v850/v850.md (RV_REGNUM): New constants.
6850         * config/v850/v850.c (v850_libcall_value): New functions.
6851         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
6852         (TARGET_LIBCALL_VALUE): Define.
6854 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
6856         * rtl.h (lowpart_subreg): Move in file.
6857         * loop-iv.c (lowpart_subreg): Move to...
6858         * simplify-rtx.c (lowpart_subreg): ...here.
6859           (simplify_binary_operation_1): Use lowpart_subreg instead of
6860           simplify_gen_subreg.
6861         * expr.c (expand_expr_real_2): Ditto.
6862         * emit-rtl.c (gen_lowpart_common): Ditto.
6863         * combine.c (gen_lowpart_for_combine): Ditto.
6864         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
6865           expand_debug_source_expr): Ditto.
6867 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
6869         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
6870         (expand_builtin_atomic_clear): Remove support for atomic_clear
6871         pattern.
6873 2015-07-30  Richard Biener  <rguenther@suse.de>
6875         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
6876         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
6877         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
6878         redundant operand canonicalization.
6880 2015-07-30  David Sherwood  <david.sherwood@arm.com>
6882         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
6883         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
6884         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
6885         * config/arm/arm.c (neon_valid_immediate): Likewise.
6886         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
6887         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
6888         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
6889         (expand_vec_perm_vpshufb2_vpermq): Likewise.
6890         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
6891         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
6892         * config/i386/sse.md
6893         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
6894         (*ssse3_palignr<mode>_perm): Likewise.
6895         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
6896         * config/spu/spu.c (arith_immediate_p): Likewise.
6897         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6898         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
6900 2015-07-30  Richard Biener  <rguenther@suse.de>
6902         * genmatch.c (decision_tree::gen_gimple): Merge with ...
6903         (decision_tree::gen_generic): ... this into ...
6904         (decision_tree::gen): ... this.
6905         (main): Adjust callers.
6907 2015-07-30  Richard Biener  <rguenther@suse.de>
6909         * genmatch.c (verbose): New global.
6910         (warning_at): Add overload with source_location.
6911         (capture_info::capture_info): Add bool whether generating gimple
6912         or generic.  Add gimple member.
6913         (capture_info::cinfo): Add capture member.
6914         (capture_info::walk_match): Record capture.  Warn on
6915         non-captured leafs.
6916         (capture_info::walk_c_expr): Add more fragments captures cannot
6917         escape through.  Warn on escaped captures.
6918         (dt_simplify::gen_1): Warn on operands we force to have no
6919         side-effects.
6920         (main): Initialize verbose.
6921         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
6923 2015-07-30  Richard Biener  <rguenther@suse.de>
6925         PR middle-end/67053
6926         * match.pd: Allow both operands to independently have conversion
6927         when simplifying compares of addresses.
6929 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
6931         PR target/66217
6932         PR target/67045
6933         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
6934         around those cases that need one.
6936 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
6938         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
6940 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
6942         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
6943         New.  Copied from config/i386/gnu-user.h.
6944         (ASM_COMMENT_START): Likewise.
6945         (DBX_REGISTER_NUMBER): Likewise.
6947 2015-07-29  Richard Biener  <rguenther@suse.de>
6949         * gimple-fold.c (fold_gimple_cond): Remove.
6950         (fold_stmt_1): Do not call it.
6952 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
6954         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
6955         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
6957         * config/aarch64/aarch64-modes.def: Add HFmode.
6959         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6960         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
6962         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
6963         aarch64_promoted_type): New.
6965         (aarch64_float_const_representable_p): Disable HFmode.
6966         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
6967         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
6968         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
6970         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
6971         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
6973         * config/aarch64/iterators.md (GPF_F16): New.
6975 2015-07-29  Richard Biener  <rguenther@suse.de>
6977         * match.pd: Merge address comparison patterns and make them
6978         handle some more cases.
6980 2015-07-29  Richard Biener  <rguenther@suse.de>
6982         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
6983         (parser::parse_capture): Add bool argument on whether to reject
6984         unknown captures.
6985         (parser::parse_expr): Adjust.
6986         (parser::parse_op): Likewise.
6987         (parser::parse_pattern): Likewise.
6989 2015-07-29  Richard Biener  <rguenther@suse.de>
6991         * gimple-fold.c (has_use_on_stmt): New function.
6992         (replace_stmt_with_simplification): Use it to allow
6993         abnormals originally referenced in the stmt.
6994         (fold_stmt_1): Canonicalize operand order.
6996 2015-07-28  David Sherwood  <david.sherwood@arm.com>
6998         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
6999         GET_MODE_INNER unconditionally.
7000         * config/spu/spu.c (arith_immediate_p): Likewise.
7001         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
7002         * expmed.c (synth_mult): Remove check for VOIDmode result from
7003         GET_MODE_INNER.
7004         (expand_mult_const): Likewise.
7005         * fold-const.c (fold_binary_loc): Replace call to element_precision
7006         with call to GET_MODE_PRECISION.
7007         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
7008         m->name.
7009         (emit_mode_inner): Likewise.
7010         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
7011         result check.
7012         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
7013         (GET_MODE_UNIT_PRECISION): Likewise.
7014         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
7015         * simplify-rtx.c (simplify_immed_subreg): Likewise.
7016         * stor-layout.c (bitwise_type_for_mode): Update assert.
7017         (element_precision): Remove.
7019 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7021         * target-insns.def (reload_load_address): New targetm instruction
7022         pattern.
7023         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
7025 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7027         * target-insns.def (atomic_test_and_set): New targetm instruction
7028         pattern.
7029         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
7030         HAVE_*/gen_* interface.
7032 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7034         * target-insns.def (can_extend, ptr_extend): New targetm instruction
7035         patterns.
7036         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
7037         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7038         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7039         * rtlanal.c (nonzero_bits1): Likewise.
7040         (num_sign_bit_copies1): Likewise.
7042 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7044         * target-insns.def (eh_return): New targetm instruction pattern.
7045         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
7046         interface.
7047         * function.c (thread_prologue_and_epilogue_insns): Remove
7048         preprocessor condition.
7050 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7052         * target-insns.def (indirect_jump): New targetm instruction pattern.
7053         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
7054         interface.
7056 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
7058         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
7059         instead of nonimmediate_operand.  Remove C condiition.
7061 2015-07-28  Richard Biener  <rguenther@suse.de>
7063         * match.pd: Add more simplification of address comparisons.
7065 2015-07-28  Richard Biener  <rguenther@suse.de>
7067         * match.pd: Re-order two cases in comparison with max/min
7068         value simplification to make it apply for bools.
7070 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7072         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
7073         Handle simple SIGN_EXTEND or ZERO_EXTEND.
7074         (aarch64_rtx_costs): Properly strip extend or extract before
7075         passing down to rtx costs again.
7077 2015-07-28  Nick Clifton  <nickc@redhat.com>
7079         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
7080         Optimizes the case where -mes0 is active and a constant symbolic
7081         address is used.
7082         * config/rl78/rl78-protos.h: Prototype the new function.
7083         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
7085 2015-07-28  Tom de Vries  <tom@codesourcery.com>
7087         * tree-parloops.c (reduc_stmt_res): New function.
7088         (initialize_reductions, add_field_for_reduction)
7089         (create_phi_for_local_result, create_loads_for_reductions)
7090         (create_stores_for_reduction, build_new_reduction): Handle case that
7091         reduc_stmt is a phi.
7092         (gather_scalar_reductions): Allow double_reduc reductions.
7094 2015-07-28  Richard Biener  <rguenther@suse.de>
7096         * fold-const.c (fold_comparison): Remove equality folding
7097         of decl addresses ...
7098         * match.pd: ... here and merge with existing pattern.
7100 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7102         PR tree-optimization/66828
7103         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
7104         from int64_t to uint64_t.
7106 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7108         * opts-common.c (read_cmdline_option): List DriverOnly enum values
7109         as valid only in the error message of the driver, not in the
7110         messages of the language compilers.
7112 2015-07-27  Tom de Vries  <tom@codesourcery.com>
7114         * tree-parloops.c (gather_scalar_reductions): Simplify function
7115         structure.
7117 2015-07-27  Marek Polacek  <polacek@redhat.com>
7119         * ipa-devirt.c (types_same_for_odr): Fix typo.
7121 2015-07-27  Jason Merrill  <jason@redhat.com>
7123         PR debug/66468
7124         * dwarf2out.c (gen_inlined_subroutine_die): Check
7125         cgraph_function_possibly_inlined_p.
7127 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
7129         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
7130         Place integer variant first.
7131         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7133 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
7135         PR/63870
7136         * config/arm/arm-builtins.c (enum arm_builtins):
7137         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
7138         (ARM_BUILTIN_NEON_BASE): Rename macro to....
7139         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
7140         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
7141         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
7143 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
7145         PR/63870
7146         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
7147         Add qualifier_lane_index.
7148         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
7149         (arm_getlane_qualifiers): Use qualifier_lane_index.
7150         (arm_lanemac_qualifiers): Rename to...
7151         (arm_mac_n_qualifiers): ...this.
7152         (LANEMAC_QUALIFIERS): Rename to...
7153         (MAC_N_QUALIFIERS): ...this.
7154         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
7155         (arm_setlane_qualifiers): Use qualifier_lane_index.
7156         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
7157         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
7158         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
7159         (arm_expand_neon_builtin): Handle qualifier_lane_index.
7161         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
7162         * config/arm/arm.c (bounds_check): Likewise, improve error message.
7163         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
7164         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
7165         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
7166         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
7167         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
7168         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
7169         qualifiers to TERNOP_IMM.
7170         (vdup_lane): Change qualifiers to GETLANE.
7171         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
7172         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
7173         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
7174         vqdmlsl_n): Change qualifiers to MAC_N.
7176         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
7177         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
7178         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
7179         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
7180         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
7181         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
7182         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
7183         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
7184         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
7185         Remove call to neon_lane_bounds.
7187 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
7189         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7190         Place integer variant first.
7192 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
7194         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
7195         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
7196         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
7197         for armv6kz targets.
7198         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
7199         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
7200         (FL_FOR_ARCH6ZK): Remove.
7201         (FL_FOR_ARCH6KZ): New.
7202         (arm_arch6zk): New declaration.
7203         * config/arm/arm-tables.opt: Regenerate.
7204         * config/arm/arm.c (arm_arch6kz): New.
7205         (arm_option_override): Set arm_arch6kz.
7206         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
7207         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
7208         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
7210 2015-07-27  Marek Polacek  <polacek@redhat.com>
7212         PR c++/66555
7213         PR c/54979
7214         * doc/invoke.texi: Document -Wtautological-compare.
7216 2015-07-27  Richard Biener  <rguenther@suse.de>
7218         * genmatch.c (decision_tree::gen_gimple): Split out large
7219         subtrees into separate functions.
7220         (decision_tree::gen_generic): Likewise.
7222 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
7224         * config/alpha/alpha.c: Use SUBREG_P predicate.
7225         * config/alpha/predicates.md: Ditto.
7227 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7229         * config.host (s390*-*-*): Include driver-native.c only when
7230         building with s390* as host *and* target.
7232 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
7234         PR target/66930
7235         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
7236         T bit register modified_between_p check.
7238 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
7240         * config/i386/i386.c: Use SUBREG_P predicate.
7241         * config/i386/i386.md: Ditto.
7242         * config/i386/sse.md: Ditto.
7243         * config/i386/predicates.md: Ditto.
7245 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
7247         PR target/67004
7248         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
7249         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
7251 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
7253         * Makefile.in: Remove use of TREEBROWSER.
7254         * config.in: Regenerated.
7255         * configure: Regenerated.
7256         * configure.ac: Remove definition of TREEBROWSER.
7257         * tree-browser.c: Removed.
7258         * tree-browser.def: Removed.
7260 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
7262         * graphite-scop-detection.c: Include gimple-pretty-print.h.
7263         (stmt_simple_for_scop_p): Print when a stmt is not handled in
7264         Graphite.
7265         (scopdet_basic_block_info): Print when a loop or bb cannot be
7266         represented in Graphite.
7268 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
7270         PR target/66648
7271         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
7272         execution guard when min_size is less than size_needed.
7274 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
7276         * doc/install.texi: Document supported versions of ISL.
7278 2015-07-25  Jeff Law  <law@redhat.com>
7280         Revert:
7281         PR lto/66752
7282         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7283         unable to find X NE 0 in the tables, return X as the simplified
7284         condition.
7285         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7286         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7287         to VISISTED_BBS.  */
7288         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7289         after removing the control flow statement and unnecessary edges.
7291 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
7293         Revert:
7294         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
7296         PR rtl-optimization/64164
7297         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7298         * tree-ssa-copyrename.c: Removed.
7299         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7300         -ftree-coalesce-vars.
7301         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7302         * common.opt (ftree-copyrename): Ignore.
7303         (ftree-coalesce-inlined-vars): Likewise.
7304         * doc/invoke.texi: Remove the ignored options above.
7305         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7306         * tree-ssa-coalesce.h: ... here.
7307         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7308         headers required by it.
7309         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7310         across variables when flag_tree_coalesce_vars.  Check register
7311         use and promoted modes to allow coalescing.  Moved to
7312         tree-ssa-coalesce.c.
7313         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7314         with its member functions to tree-ssa-coalesce.c.
7315         (var_map_base_init): Likewise.  Renamed to
7316         compute_samebase_partition_bases.
7317         (partition_view_normal): Drop want_bases parameter.
7318         (partition_view_bitmap): Likewise.
7319         * tree-ssa-live.h: Adjust declarations.
7320         * tree-ssa-coalesce.c: Include explow.h.
7321         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7322         default defs at the entry point.
7323         (dump_part_var_map): New.
7324         (compute_optimized_partition_bases): New, called by...
7325         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7326         of compute_samebase_partition_bases.  Adjust.
7327         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7328         * cfgexpand.c (leader_merge): New.
7329         (get_rtl_for_parm_ssa_default_def): New.
7330         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7331         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7332         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7333         redundant MEM attr setting.
7334         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7335         from...
7336         (expand_one_stack_var): ... this.  New wrapper to check and
7337         skip already expanded SSA partitions.
7338         (record_alignment_for_reg_var): New, factored out of...
7339         (expand_one_var): ... this.
7340         (expand_one_ssa_partition): New.
7341         (adjust_one_expanded_partition_var): New.
7342         (expand_one_register_var): Check and skip already expanded SSA
7343         partitions.
7344         (expand_used_vars): Don't create DECLs for anonymous SSA
7345         names.  Expand all SSA partitions, then adjust all SSA names.
7346         (pass::execute): Replace the loops that set
7347         SA.partition_to_pseudo from partition leaders and cleared
7348         DECL_RTL for multi-location variables, and that which used to
7349         rename vars and set attrs, with one that clears DECL_RTL and
7350         checks that PARMs and RESULTs default_defs match DECL_RTL.
7351         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7352         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7353         * explow.c (promote_ssa_mode): New.
7354         * explow.h (promote_ssa_mode): Declare.
7355         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7356         * function.c: Include cfgexpand.h.
7357         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7358         (use_register_for_parm_decl): Wrapper for the above to
7359         special-case the result_ptr.
7360         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7361         (split_complex_args): Take assign_parm_data_all argument.
7362         Pass it to rtl_for_parm.  Set up rtl and context for split
7363         args.
7364         (assign_parms_augmented_arg_list): Adjust.
7365         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7366         multiple locations.  Recognize split complex args.
7367         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7368         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7369         (assign_parm_setup_block): Prefer SSA-assigned location.
7370         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
7371         if stack_parm is NULL.
7372         (assign_parm_setup_stack): Prefer SSA-assigned location.
7373         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7374         rtl before testing for pointer bounds.  Special-case result_ptr.
7375         (expand_function_start): Maybe reset DECL_RTL of result.
7376         Prefer SSA-assigned location for result and static chain.
7377         Factor out DECL_RESULT and SET_DECL_RTL.
7378         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7379         anonymous SSA names.  Use promote_ssa_mode.
7380         (get_temp_reg): Likewise.
7381         (remove_ssa_form): Adjust.
7382         * stor-layout.c (layout_decl): Don't set mem attributes of
7383         non-MEMs.
7384         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7385         and get its reg_usage for reg invalidation.
7386         (compute_bb_dataflow): Pass it insn.
7387         (emit_notes_in_bb): Likewise.
7389 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
7391         * config/i386/i386.c (ix86_va_start): Remove
7392         unneeded !TARGET_64BIT check.
7393         (ix86_gimplify_va_arg): Ditto.
7395 2015-07-24  Tom de Vries  <tom@codesourcery.com>
7397         * graphite-sese-to-poly.c (build_poly_scop): Always call
7398         rewrite_commutative_reductions_out_of_ssa.
7400 2015-07-24  Tom de Vries  <tom@codesourcery.com>
7402         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
7403         flag_associative_math to FLOAT_TYPE_P.  Honour
7404         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
7406 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7408         PR c++/64079
7409         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
7410         and "%qD" in warning_at instead of "%q+D" in warning.
7412 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
7414         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
7415         (ix86_function_abi): Cleanup.
7417 2015-07-24  Michael Darling  <darlingm@gmail.com>
7419         PR other/66259
7420         * acinclude.m4: Reflects renaming of configure.in to configure.ac
7421         * configure: Likewise
7422         * configure.ac: Likewise
7423         * doc/install.texi: Likewise
7424         * doc/tm.texi: Likewise
7425         * doc/tm.texi.in: Likewise
7427 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7429         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
7430         manually swapping values.
7431         * cse.c (fold_rtx): Likewise.
7432         * lra-eliminations.c (form_sum): Likewise.
7434 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
7436         PR target/64003
7437         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
7438         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
7439         (*jcc_1, *jcc_2, jump, simple_return_internal)
7440         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
7441         Set length_nobnd attribute instead of length attribute.
7442         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
7443         (length_nobnd): Remove attribute.
7444         (length): Remove length_nobnd processing.
7446 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
7448         * gimplify.c (omp_default_clause): New function.  Reorganize flow
7449         for clarity. Broken out of ...
7450         (omp_notice_variable): ... here.
7452 2015-07-24  Gary Funck  <gary@intrepid.com>
7454         PR middle-end/66984
7455         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
7456         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
7458 2015-07-24  Tom de Vries  <tom@codesourcery.com>
7460         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
7461         exit-first loop transform.
7463 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
7465         PR 66714
7466         * tree-cfg.c (struct replace_decls_d): New struct.
7467         (replace_block_vars_by_duplicates_1): New function.
7468         (replace_block_vars_by_duplicates): Use it to replace the decls
7469         in the value exprs by duplicates.
7471 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7473         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
7474         -shared, -symbolic, -rdynamic.
7476 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7478         PR target/65711
7479         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
7480         -dynamic-linker within %{!static %{!shared, and -rdynamic within
7481         %{!static.
7483 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
7485         PR ipa/66566
7486         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
7487         edge summary is available.
7489 2015-07-24  Richard Biener  <rguenther@suse.de>
7491         * genmatch.c (struct dt_node): Add statistic fields.
7492         (dt_node::analyze): New method.
7493         (decision_tree::gen_gimple): Call analyze on the root node
7494         and print statistics to stderr.
7495         (decision_tree::gen_generic): Likewise.
7497 2015-07-24  Richard Biener  <rguenther@suse.de>
7499         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
7500         against the highest or lowest possible integer ...
7501         * match.pd: ... as patterns here.
7503 2015-07-24  Richard Biener  <rguenther@suse.de>
7505         * genmatch.c (struct capture_info): Add same_as field.
7506         (capture_info::capture_info): Initialize same_as.
7507         (capture_info::walk_match): Compute same_as.
7508         (capture_info::walk_result): Compute stuff for the leader.
7509         (capture_info::walk_c_expr): Likewise.
7510         (dt_simplify::gen_1): Only look at leaders when deciding
7511         to force no side-effects or emit side-effects of omitted operands.
7513 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7515         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
7516         reg note to the GPR -> FPR save instructions.
7518 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7520         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
7521         cheaper.
7522         (s390_expand_insv): Don't generate risbg pattern for constant zero
7523         sources.
7524         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
7525         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
7526         splitters.
7528 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7530         * config/s390/s390.c (s390_reorg): Clean up handling of processors
7531         with
7532         -mtune=
7533         (s390_issue_rate): Likewise.
7534         (s390_sched_reorder): Likewise.
7535         (s390_sched_variable_issue): Likewise.
7536         (s390_loop_unroll_adjust): Likewise.
7537         (s390_option_override):  Likewise.
7539 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7541         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
7542         processor capabilities with -march=native.
7543         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
7544         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
7545         (S390_TARGET_BITS_STRING): Macro to simplify specs.
7547 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7549         * config/s390/s390.c (s390_issue_rate): Handle
7550         PROCESSOR_2094_Z9_EC.
7551         (s390_option_override): Likewise.
7552         (s390_adjust_priority): Likewise.
7554 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7556         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
7557         when cross compiling.
7559 2015-07-24  Richard Biener  <rguenther@suse.de>
7561         * fold-const.c (maybe_canonicalize_comparison_1): Move
7562         A code CST canonicalization ...
7563         * match.pd: ... to a pattern here.
7565 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
7567         Revert:
7568         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
7569         PR target/63521
7570         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7571         (HONOR_REG_ALLOC_ORDER): Define.
7573 2015-07-24  Richard Biener  <rguenther@suse.de>
7575         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
7576         * fold-const.c (fold_comparison): Move parameter does not
7577         alias &local simplification ...
7578         * match.pd: ... as a pattern here.
7580 2015-07-24  Richard Biener  <rguenther@suse.de>
7582         * gimple-fold.c (replace_stmt_with_simplification): Special-case
7583         valueizing call operands.
7584         * gimple-match-head.c (maybe_push_res_to_seq): Take
7585         number of call arguments from ops array.
7586         (do_valueize): New function.
7587         (gimple_simplify): Return true if valueization changed
7588         any operand even if the result didn't simplify further.
7590 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7592         PR middle-end/25530
7593         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
7595 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7597         PR middle-end/25529
7598         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
7600 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7602         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
7603         instruction.
7605 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7607         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
7608         clean up.
7610 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
7612         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
7613         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
7614         targets here.
7615         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
7616         ms_va_list_type_node initialization.
7618 2015-07-23  Jeff Law  <law@redhat.com>
7620         PR lto/66752
7621         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7622         unable to find X NE 0 in the tables, return X as the simplified
7623         condition.
7624         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7625         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
7626         to VISISTED_BBS.  */
7627         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7628         after removing the control flow statement and unnecessary edges.
7630 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7632         * tree-pass.h (get_current_pass_name): Removed.
7634 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
7636         PR rtl-optimization/64164
7637         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7638         * tree-ssa-copyrename.c: Removed.
7639         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7640         -ftree-coalesce-vars.
7641         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7642         * common.opt (ftree-copyrename): Ignore.
7643         (ftree-coalesce-inlined-vars): Likewise.
7644         * doc/invoke.texi: Remove the ignored options above.
7645         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7646         * tree-ssa-coalesce.h: ... here.
7647         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7648         headers required by it.
7649         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7650         across variables when flag_tree_coalesce_vars.  Check register
7651         use and promoted modes to allow coalescing.  Moved to
7652         tree-ssa-coalesce.c.
7653         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7654         with its member functions to tree-ssa-coalesce.c.
7655         (var_map_base_init): Likewise.  Renamed to
7656         compute_samebase_partition_bases.
7657         (partition_view_normal): Drop want_bases parameter.
7658         (partition_view_bitmap): Likewise.
7659         * tree-ssa-live.h: Adjust declarations.
7660         * tree-ssa-coalesce.c: Include explow.h.
7661         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7662         default defs at the entry point.
7663         (dump_part_var_map): New.
7664         (compute_optimized_partition_bases): New, called by...
7665         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7666         of compute_samebase_partition_bases.  Adjust.
7667         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7668         * cfgexpand.c (leader_merge): New.
7669         (get_rtl_for_parm_ssa_default_def): New.
7670         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7671         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7672         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7673         redundant MEM attr setting.
7674         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7675         from...
7676         (expand_one_stack_var): ... this.  New wrapper to check and
7677         skip already expanded SSA partitions.
7678         (record_alignment_for_reg_var): New, factored out of...
7679         (expand_one_var): ... this.
7680         (expand_one_ssa_partition): New.
7681         (adjust_one_expanded_partition_var): New.
7682         (expand_one_register_var): Check and skip already expanded SSA
7683         partitions.
7684         (expand_used_vars): Don't create DECLs for anonymous SSA
7685         names.  Expand all SSA partitions, then adjust all SSA names.
7686         (pass::execute): Replace the loops that set
7687         SA.partition_to_pseudo from partition leaders and cleared
7688         DECL_RTL for multi-location variables, and that which used to
7689         rename vars and set attrs, with one that clears DECL_RTL and
7690         checks that PARMs and RESULTs default_defs match DECL_RTL.
7691         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7692         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7693         * explow.c (promote_ssa_mode): New.
7694         * explow.h (promote_ssa_mode): Declare.
7695         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7696         * function.c: Include cfgexpand.h.
7697         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7698         (use_register_for_parm_decl): Wrapper for the above to
7699         special-case the result_ptr.
7700         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7701         (split_complex_args): Take assign_parm_data_all argument.
7702         Pass it to rtl_for_parm.  Set up rtl and context for split
7703         args.
7704         (assign_parms_augmented_arg_list): Adjust.
7705         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7706         multiple locations.  Recognize split complex args.
7707         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7708         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7709         (assign_parm_setup_block): Prefer SSA-assigned location.
7710         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
7711         if stack_parm is NULL.
7712         (assign_parm_setup_stack): Prefer SSA-assigned location.
7713         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7714         rtl before testing for pointer bounds.  Special-case result_ptr.
7715         (expand_function_start): Maybe reset DECL_RTL of result.
7716         Prefer SSA-assigned location for result and static chain.
7717         Factor out DECL_RESULT and SET_DECL_RTL.
7718         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7719         anonymous SSA names.  Use promote_ssa_mode.
7720         (get_temp_reg): Likewise.
7721         (remove_ssa_form): Adjust.
7722         * stor-layout.c (layout_decl): Don't set mem attributes of
7723         non-MEMs.
7724         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7725         and get its reg_usage for reg invalidation.
7726         (compute_bb_dataflow): Pass it insn.
7727         (emit_notes_in_bb): Likewise.
7729 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
7731         PR target/66217
7732         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
7733         prototype.
7734         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
7735         (rs6000_emit_2insn_and): Handle dot forms.
7736         * config/rs6000/rs6000.md (and<mode>3): Adjust.
7737         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
7738         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
7740 2015-07-23  Richard Biener  <rguenther@suse.de>
7742         * generic-match-head.c: Include cgraph.h.
7743         * gimple-match-head.c: Likewise.
7744         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
7745         SSA names.
7746         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
7747         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
7748         pattern.
7750 2015-07-23  Richard Biener  <rguenther@suse.de>
7752         * gimple-fold.c (fold_gimple_cond): Do not require folding
7753         results to pass valid_gimple_rhs_p.
7754         * tree-cfg.h (fold_cond_expr_cond): Remove.
7755         * tree-cfg.c (fold_cond_expr_cond): Likewise.
7756         (make_edges): Do not call it.
7757         * tree-inline.c (tree_function_versioning): Likewise.
7759 2015-07-23  Tom de Vries  <tom@codesourcery.com>
7761         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
7762         vect_force_simple_reduction.
7763         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
7764         (vect_is_simple_reduction_1): Add and handle
7765         need_wrapping_integral_overflow parameter.
7766         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
7767         need_wrapping_integral_overflow parameter.
7768         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
7769         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
7770         decl.
7772 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
7774         PR tree-optimization/66926,66951
7775         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
7776         INNER_LOOP and fix up condition for renaming virtual operands.
7778 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7780         * combine.c (try_combine): Use std::swap instead of manually
7781         swapping.
7783 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
7785         * config/mips/i6400.md: New file.
7786         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
7787         (mips64r6): Likewise.
7788         (i6400): Define.
7789         * config/mips/mips-tables.opt: Regenerate.
7790         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
7791         (mips_issue_rate): Add support for i6400.
7792         (mips_multipass_dfa_lookahead): Likewise.
7793         * config/mips/mips.h (TUNE_I6400): Define.
7794         * config/mips/mips.md: Include i6400.md.
7795         (processor): Add i6400.
7796         * doc/invoke.texi (-march=@var{arch}): Add i6400.
7798 2015-07-23  Richard Biener  <rguenther@suse.de>
7800         PR middle-end/66916
7801         * match.pd: Guard widen and sign-change comparison simplification
7802         with single_use.
7804 2015-07-23  Richard Biener  <rguenther@suse.de>
7806         PR tree-optimization/66945
7807         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
7808         ::before_dom_children): Force the propagators idea of
7809         non-executable edges to materialize, not what the folder
7810         chooses.
7812 2015-07-23  Richard Biener  <rguenther@suse.de>
7814         * gimple.h (gimple_cond_make_false): Use 0 != 0.
7815         (gimple_cond_make_true): Use 1 != 0.
7817 2015-07-22  DJ Delorie  <dj@redhat.com>
7819         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
7820         slashes.
7822         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
7823         (ashrhi3): Likewise.
7824         (lshrhi3): Likewise.
7825         (movhi): Take advantage of zero-extend to load small constants.
7826         (movpsi): Likewise.
7827         (and<mode>3): Likewise.
7828         (zero_extendqihi2): Likewise.
7829         (zero_extendqisi2): New.
7830         * config/msp430/constraints.md (N,O): New.
7831         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
7833 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
7835         PR target/66954
7836         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
7837         to enum feature_priority and feature_list.
7838         (fold_builtin_cpu): Add F_AES to enum processor_features
7839         and isa_names_table.
7841 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
7843         PR driver/66737
7844         * config/i386/linux-common.h (MPX_SPEC): Use linker option
7845         for 64bit target only.
7847 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
7849         * config/nvptx/nvptx.c: Expand some comments.
7851 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
7853         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
7854         (cortex_a53_advsimd): ...This.
7856 2015-07-22  Richard Biener  <rguenther@suse.de>
7858         * genmatch.c (expr::gen_transform): Clarify error message
7859         and display location.
7861 2015-07-22  Richard Biener  <rguenther@suse.de>
7863         * genmatch.c (struct operand): Add location member.
7864         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
7865         constructors.
7866         (struct simplify): Remove match_location and result_location
7867         members.
7868         (elsehwere): Adjust.
7870 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
7872         * config/mips/m5100.md: New file.
7873         * config/mips/mips-cpus.def (m5100, m5101): Define.
7874         * config/mips/mips-tables.opt: Regenerate.
7875         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
7876         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
7877         -march=m5101 to -mips32r5.
7878         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
7879         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
7880         !-msoft-float.
7881         * config/mips/mips.md: Include m5100.md.
7882         (processor): Add m5100.
7883         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
7885 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
7887         * config/mips/mips-cpus.def (interaptiv): Define.
7888         * config/mips/mips-tables.opt: Regenerate.
7889         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
7890         -mips32r2.
7891         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
7892         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
7894 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
7896         PR target/63521
7897         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
7898         (HONOR_REG_ALLOC_ORDER): Define.
7900 2015-07-22  Richard Biener  <rguenther@suse.de>
7902         PR tree-optimization/66952
7903         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
7904         blocks we end up executing unconditionally reset all SSA
7905         info such as range and alignment.
7906         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
7907         * tree-ssanames.c (reset_flow_sensitive_info): New function.
7909 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
7911         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
7912         typo in attribute.
7914 2015-07-22  Richard Biener  <rguenther@suse.de>
7916         * genmatch.c (parser::parse_result): Properly handle
7917         match with result operands and conditions.
7919 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
7921         PR target/63870
7922         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7923         Add qualifier_struct_load_store_lane_index.
7924         (aarch64_types_loadstruct_lane_qualifiers): Use
7925         qualifier_struct_load_store_lane_index for lane index argument for
7926         last argument.
7927         (aarch64_types_storestruct_lane_qualifiers): Ditto.
7928         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7929         (aarch64_simd_expand_args): Add new argument describing mode of
7930         builtin. Check lane bounds for arguments with
7931         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7932         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
7933         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
7934         (aarch64_simd_expand_builtin): Handle arguments with
7935         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
7936         aarch64_simd_expand_args.
7937         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
7938         vst[234]_lane with BUILTIN_VALLDIF.
7939         * config/aarch64/aarch64-simd.md:
7940         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
7941         endianness reversal on lane index.
7942         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
7943         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
7944         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
7945         (vec_store_lanesci_lane<mode>): Ditto.
7946         (vec_store_lanesxi_lane<mode>): Ditto.
7947         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
7948         reversal of lane index.
7949         (aarch64_ld3_lane<mode>): Ditto.
7950         (aarch64_ld4_lane<mode>): Ditto.
7951         (aarch64_st2_lane<mode>): Ditto.
7952         (aarch64_st3_lane<mode>): Ditto.
7953         (aarch64_st4_lane<mode>): Ditto.
7954         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
7955         to qmode. Add new mode parameter. Update uses.
7956         (__LD3_LANE_FUNC): Ditto.
7957         (__LD4_LANE_FUNC): Ditto.
7958         (__ST2_LANE_FUNC): Ditto.
7959         (__ST3_LANE_FUNC): Ditto.
7960         (__ST4_LANE_FUNC): Ditto.
7962 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
7964         * doc/invoke.texi (Language Independent Options): Rename node to
7965         Diagnostic Message Formatting Options.
7967 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
7969         PR ipa/66424.
7970         * lra-remat.c (operand_to_remat): Prevent using insns with input
7971         subregs processed separately by IRA.
7973 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
7975         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
7976         straight loops.
7977         (single_imm_use): Check for iterator node.
7978         (num_imm_uses): Likewise.
7979         * tree-ssa-operands.c (has_zero_uses_1): Delete.
7980         (single_imm_use_1): Check for iterator node.
7982 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
7983             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7985         * configure.ac: Add check for new options in isl-0.15.
7986         * config.in, configure: Rebuilt.
7987         * graphite-blocking.c: Include <isl/constraint.h>
7988         * graphite-interchange.c,  graphite-poly.c: Likewise.
7989         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
7990         * graphite.c: Likewise.
7991         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
7992         <isl/union_set.h>.
7993         * graphite-dependences.c: Include <isl/constraint.h>.
7994         (max_number_of_out_dimensions): Returns isl_stat.
7995         (extend_schedule_1): Likewise
7996         (extend_schedule): Corresponding changes.
7997         * graphite-optimize-isl.c: Include <isl/constraint.h> and
7998         <isl/union_set.h>.
7999         (getSingleMap): Change return type of isl_stat.
8000         (optimize_isl): Conditionally use
8001         isl_options_set_schedule_serialize_sccs.
8002         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
8003         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
8005 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
8007         PR target/66956
8008         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
8009         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
8011 2015-07-21  Richard Biener  <rguenther@suse.de>
8013         PR tree-optimization/66948
8014         * genmatch.c (capture_info::walk_match): Also recurse to
8015         captures.  Properly compute expr state from captures of
8016         captures.
8017         * match.pd: Add single-use guards to
8018         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
8020 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
8022         * config/nvptx/mkoffload.c (process): Add static destructor call.
8024 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8026         PR middle-end/66915
8027         * match.pd (A - B -> A + (-B)): Don't allow folding
8028         when type if a fixed-point type.
8030 2015-07-20  DJ Delorie  <dj@redhat.com>
8032         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
8033         (iorqi3_real): Likewise for set1.
8035 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
8037         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
8038         for !TARGET_64BIT.
8040 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
8042         * graphite-isl-ast-to-gimple.c:
8043         Refactor so that each function can access 'region'. This will help
8044         maintain a parameter rename_map within a region.
8046 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8048         * config/rs6000/rs6000.md (*lt0_disi): New.
8050 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8052         PR target/66217
8053         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
8054         "available letters" comment.
8055         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
8056         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
8057         and_2rld_operand):  Delete.
8058         (and_operand): Adjust.
8059         (rotate_mask_operator): New.
8060         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
8061         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
8062         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
8063         extract_ME): Delete.
8064         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
8065         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
8066         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
8067         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
8068         rs6000_emit_2insn_and): New.
8069         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
8070         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
8071         includes_rldic_lshift_p, includes_rldicr_lshift_p,
8072         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
8073         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
8074         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
8075         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
8076         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
8077         rs6000_emit_2insn_and): New.
8078         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
8079         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
8080         handling.
8081         <NOT>: Don't fall through to next case.
8082         <AND>: Handle the various rotate-and-mask cases directly.
8083         <IOR>: Always cost as one insn.
8084         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
8085         (and<mode>3): Adjust expander for the new patterns.
8086         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
8087         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
8088         (*and<mode>3_imm_dot_shifted): New.
8089         (*and<mode>3_mask): Delete, rewrite as ...
8090         (and<mode>3_mask): ... New.
8091         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
8092         (andsi3_internal0_nomc): Delete.
8093         (*andsi3_internal6): Delete.
8094         (*and<mode>3_2insn): New.
8095         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
8096         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
8097         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
8098         *insvdi_internal3): Delete.
8099         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
8100         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
8101         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
8102         *ior<mode>_mask): New.
8103         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
8104         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
8105         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
8106         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
8107         Delete.
8108         (ashr<mode>3): Delete expander.
8109         (*ashr<mode>3): Rename to ...
8110         (ashr<mode>3): ... This.
8111         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
8112         (*rotldi3_internal4, *rotldi3_internal5 and split,
8113         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
8114         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
8115         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
8116         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
8117         (splitter for loading a mask): Adjust.
8118         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
8120 2015-07-20  Marek Polacek  <polacek@redhat.com>
8122         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
8123         output_add_clobbers, output_added_clobbers_hard_reg_p,
8124         gen_rtx_scratch): Remove declarations.
8126 2015-07-20  Marek Polacek  <polacek@redhat.com>
8128         PR c++/55095
8129         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
8131 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8133         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
8134         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
8136 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8138         * combine.c (combine_simplify_rtx): Move simplification step
8139         before various transformations/substitutions.
8141 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
8143         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
8144         (struct int_traits): Likewise.
8146 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8148         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
8149         function to vmsdbgout_function_decl.
8151 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
8153         PR target/66922
8154         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
8155         from misaligned positions.
8156         (ix86_expand_pinsr): Reject insertions to misaligned positions.
8158 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
8160         PR middle-end/46851
8161         PR middle-end/60340
8162         * Makefile.in: Removed omega.o.
8163         * common.opt: Document flag fcheck-data-deps as deprecated.
8164         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
8165         its associated params: omega-max-vars, omega-max-geqs,
8166         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
8167         omega-max-keys, omega-eliminate-redundant-constraints.
8168         * doc/loop.texi: Remove all the section on Omega.
8169         * graphite-blocking.c: Include missing params.h: it used to be
8170         included through tree-data-ref.h and omega.h.
8171         * graphite-isl-ast-to-gimple.c: Same.
8172         * graphite-optimize-isl.c: Same.
8173         * graphite-sese-to-poly.c: Same.
8174         * graphite.c: Same.
8175         * omega.c: Remove.
8176         * omega.h: Remove.
8177         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
8178         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
8179         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
8180         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
8181         * passes.def: Remove pass_check_data_deps.
8182         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
8183         (dump_conflict_function): Same.
8184         (dump_subscript): Same.
8185         (print_direction_vector): Same.
8186         (print_dir_vectors): Same.
8187         (print_lambda_vector): Same.
8188         (print_dist_vectors): Same.
8189         (dump_data_dependence_relation): Same.
8190         (dump_data_dependence_relations): Same.
8191         (dump_dist_dir_vectors): Same.
8192         (dump_ddrs): Same.
8193         (init_omega_eq_with_af): Removed.
8194         (omega_extract_distance_vectors): Removed.
8195         (omega_setup_subscript): Removed.
8196         (init_omega_for_ddr_1): Removed.
8197         (init_omega_for_ddr): Removed.
8198         (ddr_consistent_p): Removed.
8199         (compute_affine_dependence): Do not use omega to check data
8200         dependences.
8201         (compute_data_dependences_for_bb): Removed.
8202         (analyze_all_data_dependences): Removed.
8203         (tree_check_data_deps): Removed.
8204         * tree-data-ref.h: Do not include omega.h.
8205         (compute_data_dependences_for_bb): Removed.
8206         (tree_check_data_deps): Removed.
8207         * tree-ssa-loop.c (pass_check_data_deps): Removed.
8208         (make_pass_check_data_deps): Removed.
8209         * tree-ssa-phiopt.c: Include params.h.
8210         * tree-vect-data-refs.c: Same.
8211         * tree-vect-slp.c: Same.
8213 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
8215         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
8216         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
8217         (mem->fpreg splitters): Ditto.
8218         (general_operand->nonimmediate_operand splitter): Use explicit modes.
8219         Disable DFmode for TARGET_64BIT.
8221 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
8223         PR target/66906
8224         * config/i386/i386.c (ix86_expand_prologue): Replicate static
8225         chain on the stack.
8227 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
8229         * config/nvptx/mkoffload.c (process): Constify host data.
8230         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8231         Constify host data.
8232         (generate_host_descr_file): Likewise.
8234 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
8235             Sebastian Pop  <s.pop@samsung.com>
8237         PR middle-end/61929
8238         * graphite-dependences.c (add_pdr_constraints): Renamed
8239         pdr->extent to pdr->subscript_sizes.
8240         * graphite-interchange.c (build_linearized_memory_access): Add
8241         back all gcc_assert's that the "isl_int to isl_val conversion"
8242         patch has removed.  Refactored.
8243         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
8244         * graphite-poly.c (new_poly_dr): Same.
8245         (free_poly_dr): Same.
8246         * graphite-poly.h (struct poly_dr): Same.
8247         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
8248         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
8249         * graphite-scop-detection.h: Fix space.
8250         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
8251         back all gcc_assert's removed by a previous patch.
8252         (wrap): Remove the_isl_ctx global variable that the same patch has
8253         added.
8254         (build_loop_iteration_domains): Same.
8255         (add_param_constraints): Same.
8256         (pdr_add_data_dimensions): Same.  Refactored.
8257         (build_poly_dr): Renamed extent to subscript_sizes.
8259 2015-07-17  Marek Polacek  <polacek@redhat.com>
8261         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
8262         * match.pd: ... here.
8264 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
8266         * config/nvptx/mkoffload.c (process): Constify target data.
8267         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
8268         Constify target data.
8269         (generate_target_offloadend_file): Likewise.
8271 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
8273         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
8274         to allow renaming of PHI arguments on edges incoming from outer
8275         loop header, add corresponding check before start PHI iterator.
8276         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
8277         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
8278         with true force_vectorize.  Set-up dominator for outer loop too.
8279         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
8280         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
8281         was marked with force_vectorize and has restricted cfg.
8282         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
8283         inner loop.
8284         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
8285         do peeling for outer loops.
8287 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
8288             Matthias Klose  <doko@ubuntu.com>
8290         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
8291         build-sysroot, sysroot from the `Miscenalleous configure options' to
8292         the `Directories' section and strip trailing `/' from with_sysroot.
8293         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
8294         * configure: Regenerated.
8296 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
8298         PR target/66824
8299         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
8300         (TARGET_HARD_DF_REGS): Ditto.
8301         (TARGET_HARD_XF_REGS): Ditto.
8302         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
8303         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
8304         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
8305         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
8306         (*movsf_internal): Add alternatives 16 and 17. Enable
8307         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
8309 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
8311         PR rtl-optimization/66891
8312         * calls.c (expand_call): Wrap precompute_register_parameters with
8313         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
8315 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
8317         * config/nvptx/mkoffload.c (process): Constify mapping variables.
8318         Define target data struct and initialize it.
8320 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
8322         PR rtl-optimization/66626
8323         * ira.h (emit-rtl.h): Include.
8324         (non_spilled_static_chain_regno_p): New.
8325         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
8326         unless it is non spilled static chain pseudo.
8327         (assign_hard_rego): Spill memory profitable allocno unless it is
8328         non spilled static chain pseudo.
8329         (allocno_spill_priority_compare): Put non spilled static chain
8330         pseudo at the end of sorted array.
8331         (improve_allocation): Do nothing if we have static chain and
8332         non-local goto.
8333         (allocno__priority_compare_func): Put non spilled static chain
8334         pseudo at the beginning of sorted array.
8335         (move_spill_restore): Ignore non spilled static chain pseudo.
8336         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
8337         to non spilled static chain pseudo.
8338         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
8339         pseudo at the beginning of sorted array.
8340         (spill_for): Spill non spilled static chain pseudo last.
8341         * lra-constraints.c (lra_constraints): Remove static chain pseudo
8342         check for equivalence.
8344 2015-07-16  Martin Liska  <mliska@suse.cz>
8346         PR ipa/66896.
8347         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
8348         dst_ctx if it does not exist.
8350 2015-07-16  Martin Liska  <mliska@suse.cz>
8352         * hash-set.h (remove): New function.
8353         (iterator): New iteration class for hash_set.
8355 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8357         * genattrtab.c (make_canonical): Add a file_location parameter.
8358         Use fatal_at rather than fatal.
8359         (get_attr_value): Likewise.  Update call to make_canonical.
8360         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
8361         (make_internal_attr): Update calls accordingly.
8363 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8365         * read-md.h (message_with_line, error_with_line): Delete.
8366         * read-md.c (message_with_line, error_with_line): Delete.
8367         * gensupport.h: Include read-md.h.
8368         (md_rtx_info): New structure.
8369         (read_md_rtx): Use it.  Return a bool success value.
8370         * gensupport.c (read_md_rtx): Likewise.
8371         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
8372         (main): Update after interface changes.
8373         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
8374         (main): Update after interface changes.
8375         * genattrtab.c (insn_code_number): Delete.
8376         (optimize_attrs): Add a max_insn_code parameter and use it instead
8377         of insn_code_number.
8378         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
8379         Use *_at rather than *_with_line functions.
8380         (gen_insn): Likewise.
8381         (gen_delay): Likewise.
8382         (gen_insn_reserv): Likewise.
8383         (gen_bypass): Take an md_rtx_info rather than an rtx.
8384         (main): Update after interface changes.  Use a local max_insn_code
8385         variable instead of insn_code_number.
8386         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
8387         an rtx.  Use fatal_at rather than fatal.
8388         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
8389         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
8390         (gen_absence_set, gen_final_absence_set, gen_automaton)
8391         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
8392         (main): Update after interface changes.
8393         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
8394         and code number.
8395         (main): Update after interface changes.
8396         * genconditions.c (main): Use new read_md_rtx interface.
8397         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
8398         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
8399         (main): Update after interface changes.
8400         * genemit.c (insn_code_number, insn_index_number): Delete.
8401         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8402         Use fatal_at rather than fatal.
8403         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
8404         rather than fatal.
8405         (gen_split): Likewise.
8406         (main): Update after interface changes.
8407         * genextract.c (line_no): Delete.
8408         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8409         Update call to walk_rtx.
8410         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
8411         rather than message_with_line.
8412         (walk_rtx): Add an md_rtx_info argument.  Update call to
8413         VEC_safe_set_locstr.
8414         (main): Update after interface changes.
8415         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
8416         and lineno.  Use error_at rather than separate message_with_line
8417         calls and have_error assignments.
8418         (main): Update after interface changes.
8419         * genmddump.c (main): Use new read_md_rtx interface.
8420         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
8421         (main): Update after interface changes.
8422         * genoutput.c (next_code_number): Delete.
8423         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
8424         (gen_peephole, gen_expand, gen_split): Likewise.
8425         (note_constraint): Likewise.  Use *_at rather than *_with_line
8426         functions.
8427         (main): Update after interface changes.
8428         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
8429         rtx and lineno.
8430         (main): Update after interface changes.
8431         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
8432         than an rtx and lineno.
8433         (process_define_constraint): Likewise.
8434         (process_define_register_constraint): Likewise.
8435         (main): Update after interface changes.
8436         * genrecog.c (next_insn_code, pattern_lineno): Delete.
8437         (validate_pattern): Replace top-level rtx with an md_rtx_info.
8438         Use *_at rather than *_with_line functions.
8439         (match_pattern_2): Likewise.
8440         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
8441         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
8442         Use *_at rather than *_with_line functions.
8443         * gentarget-def.c (add_insn): New function.
8444         (main): Use it.  Use new read_md_rtx interface.
8446 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8448         * gensupport.h (compute_test_codes): Take a file_location rather
8449         than a line number.
8450         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
8451         rather than *_with_line functions.
8452         (process_define_predicate): Update call to compute_test_codes.
8453         * genpreds.c (validate_exp): Take a file_location rather than a
8454         line number.  Use *_at functions rather than *_with_line functions.
8455         (process_define_predicate): Update call to validate_exp.
8456         (constraint_data): Replace lineno field with a file_location.
8457         (add_constraint): Take a file_location rather than a line number.
8458         Use *_at functions rather than *_with_line functions.  Fix error
8459         message for address constraints.  Update after changes to
8460         validate_exp, constraint_data and compute_test_codes.
8461         (process_define_constraint): Update accordingly.
8462         (process_define_register_constraint): Likewise.
8464 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8466         * genoutput.c (data): Use a file_location to record the source
8467         position.
8468         (nothing): Delete.
8469         (idata, idata_end): Remove initialization.
8470         (constraint_data): Replace lineno with a file_location.
8471         (output_insn_data): Update after changes to data.
8472         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
8473         (scan_operands): Likewise, using *_at rather than *_with_line
8474         functions.
8475         (process_template): Likewise.
8476         (validate_insn_alternatives): Likewise.
8477         (validate_insn_operands): Likewise.
8478         (validate_optab_operands): Likewise.
8479         (init_insn_for_nothing): Initialize idata and idata_end.
8480         (note_constraint): Update after changes to constraint_data,
8481         using at rather than with_line functions.
8482         (mdep_constraint_len): Take a file_location rather than a
8483         line number.  Use at rather than with_line functions.
8485 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8487         * read-md.h (fatal_at): Declare.
8488         * read-md.c (fatal_at): New function.
8489         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
8490         to record the source position.
8491         (check_attr_test): Take a file_location instead of a line number.
8492         Use fatal_at instead of fatal.
8493         (check_attr_value): Update after above changes, using "at"
8494         rather than "with_line" reporting functions.
8495         (convert_set_attr_alternative): Likewise.
8496         (gen_attr): Likewise.
8497         (check_defs): Likewise.  Don't assign to read_md_filename.
8498         (gen_insn): Update initialization after above changes.
8499         (gen_delay): Likewise.
8500         (write_insn_cases): Print the filename for a define_peephole.
8501         (gen_insn_reserv): Take a line number as argument and update
8502         the call to check_attr_test.
8503         (main): Pass a line number to gen_insn_reserv.
8505 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8507         * read-md.h (file_location): New structure.
8508         (directive_handler_t): Take a file_location rather than a line number.
8509         (message_at, error_at): Declare.
8510         (read_skip_construct): Delete.
8511         * read-md.c (message_with_line_1): Replace with...
8512         (message_at_1): ...this new function.
8513         (message_at, error_at): New functions.
8514         (message_with_line, error_with_line): Update to use message_at_1.
8515         (handle_enum): Take a file_location rather than a line number
8516         and use error_at for error reporting.
8517         (handle_include): Likewise.
8518         (read_skip_construct): Likewise.  Make static.
8519         (handle_file): Update after above changes.  Pass a file_location
8520         rather than a line number to handle_directive.
8521         * gensupport.c (queue_elem): Replace separate filename and lineno
8522         with a file_location.
8523         (queue_pattern): Replace filename and lineno arguments with a
8524         file_location.  Update after change to queue_elem.
8525         (process_define_predicate): Replace lineno argument with a
8526         file_location and use error_at for error reporting.  Update
8527         after above changes.
8528         (process_rtx): Likewise.
8529         (subst_pattern_match): Likewise.
8530         (get_alternatives_number): Likewise.
8531         (alter_predicate_for_insn): Likewise.
8532         (rtx_handle_directive): Likewise.
8533         (is_predicable): Update after above changes, using error_at rather
8534         than error_with_line.
8535         (has_subst_attribute): Likewise.
8536         (identify_predicable_attribute): Likewise.
8537         (alter_attrs_for_subst_insn): Likewise.
8538         (process_one_cond_exec): Likewise.
8539         (process_substs_on_one_elem): Likewise.
8540         (process_define_subst): Likewise.
8541         (check_define_attr_duplicates): Likewise.
8542         (read_md_rtx): Update after change to queue_elem.
8544 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8546         * genoutput.c (next_index_number): Delete.
8547         (data): Remove index_number.
8548         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
8549         (main): Remove manipulation of next_index_number.
8551 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8553         * genattrtab.c (check_attr_value): Remove handling of null attrs.
8554         (make_canonical): Likewise.
8556 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
8558         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
8559         instead of adjust_address_nv.
8560         (restore_stack_nonlocal): Likewise.
8561         (nonlocal_goto): Likewise.
8563 2015-07-16  Tom de Vries  <tom@codesourcery.com>
8565         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
8566         not have a corresponding loop header phi.
8568 2015-07-16  Tom de Vries  <tom@codesourcery.com>
8570         * tree-parloops.c (create_loads_for_reductions): Handle case that
8571         reduction is unused.
8573 2015-07-16  Richard Biener  <rguenther@suse.de>
8575         PR tree-optimization/66894
8576         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
8577         about deriving NE_EXPR from truncated values.
8579 2015-07-16  Martin Liska  <mliska@suse.cz>
8581         * alloc-pool.h
8582         (object_allocator): Add new class.
8583         (pool_allocator::initialize): Use the underlying class.
8584         (pool_allocator::allocate): Likewise.
8585         (pool_allocator::remove): Likewise.
8586         (operator new): A new generic allocator.
8587         * asan.c (struct asan_mem_ref): Remove unused members.
8588         (asan_mem_ref_new): Replace new operator with
8589         object_allocator::allocate.
8590         (free_mem_ref_resources): Change deallocation.
8591         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
8592         with object_allocator.
8593         * config/sh/sh.c (add_constant): Replace new operator with
8594         object_allocator::allocate.
8595         (sh_reorg): Change call to a release method.
8596         * cselib.c (struct elt_list): Remove unused members.
8597         (new_elt_list): Replace new operator with
8598         object_allocator::allocate.
8599         (new_elt_loc_list): Likewise.
8600         (new_cselib_val): Likewise.
8601         (unchain_one_elt_list): Change delete operator with remove method.
8602         (unchain_one_elt_loc_list): Likewise.
8603         (unchain_one_value): Likewise.
8604         (cselib_finish): Release newly added static allocators.
8605         * cselib.h (struct cselib_val): Remove unused members.
8606         (struct elt_loc_list): Likewise.
8607         * df-problems.c (df_chain_alloc): Replace pool_allocator with
8608         object_allocator.
8609         * df-scan.c (struct df_scan_problem_data): Likewise.
8610         (df_scan_alloc): Likewise.
8611         * df.h (struct dataflow): Likewise.
8612         * dse.c (struct read_info_type): Likewise.
8613         (struct insn_info_type): Likewise.
8614         (struct dse_bb_info_type): Likewise.
8615         (struct group_info): Likewise.
8616         (struct deferred_change): Likewise.
8617         (get_group_info): Likewise.
8618         (delete_dead_store_insn): Likewise.
8619         (free_read_records): Likewise.
8620         (replace_read): Likewise.
8621         (check_mem_read_rtx): Likewise.
8622         (scan_insn): Likewise.
8623         (dse_step1): Likewise.
8624         (dse_step7): Likewise.
8625         * et-forest.c (struct et_occ): Remove unused members.
8626         (et_new_occ): Use allocate instead of new operator.
8627         (et_new_tree): Likewise.
8628         (et_free_tree): Call release method explicitly.
8629         (et_free_tree_force): Likewise.
8630         (et_free_pools): Likewise.
8631         (et_split): Use remove instead of delete operator.
8632         * et-forest.h (struct et_node): Remove unused members.
8633         * ipa-cp.c: Change pool_allocator to object_allocator.
8634         * ipa-inline-analysis.c: Likewise.
8635         * ipa-profile.c: Likewise.
8636         * ipa-prop.c: Likewise.
8637         * ipa-prop.h: Likewise.
8638         * ira-build.c (initiate_cost_vectors): Cast return value.
8639         (ira_allocate_cost_vector): Likewise.
8640         * ira-color.c (struct update_cost_record): Remove unused members.
8641         * lra-int.h (struct lra_live_range): Likewise.
8642         (struct lra_copy): Likewise.
8643         (struct lra_insn_reg): Likewise.
8644         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
8645         * lra.c (new_insn_reg): Replace new operator with allocate method.
8646         (free_insn_regs): Same for operator delete.
8647         (finish_insn_regs): Release new static allocator.
8648         (finish_insn_recog_data): Likewise.
8649         (lra_free_copies): Replace delete operator with remove method.
8650         (lra_create_copy): Replace operator new with allocate method.
8651         (invalidate_insn_data_regno_info): Same for remove method.
8652         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
8653         (free_debug_insn_changes): Replace delete operator with remove method.
8654         (replace_oldest_value_reg): Replace operator new with allocate method.
8655         (pass_cprop_hardreg::execute): Release new static variable.
8656         * sched-deps.c (sched_deps_init): Change pool_allocator to
8657         object_allocator.
8658         * sel-sched-ir.c: Likewise.
8659         * sel-sched-ir.h: Likewise.
8660         * stmt.c (expand_case): Likewise.
8661         (expand_sjlj_dispatch_table): Likewise.
8662         * tree-sra.c (struct access): Remove unused members.
8663         (struct assign_link): Likewise.
8664         (sra_deinitialize): Release newly added static pools.
8665         (create_access_1):Replace operator new with allocate method.
8666         (build_accesses_from_assign): Likewise.
8667         (create_artificial_child_access): Likewise.
8668         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
8669         pool_allocator to object_allocator.
8670         * tree-ssa-pre.c: Likewise.
8671         * tree-ssa-reassoc.c: Likewise.
8672         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
8673         * tree-ssa-strlen.c: Likewise.
8674         * tree-ssa-structalias.c: Likewise.
8675         * var-tracking.c (onepart_pool_allocate): New function.
8676         (unshare_variable): Use the newly added function.
8677         (variable_merge_over_cur): Likewise.
8678         (variable_from_dropped): Likewise.
8679         (variable_was_changed): Likewise.
8680         (set_slot_part): Likewise.
8681         (emit_notes_for_differences_1): Likewise.
8682         (vt_finalize): Release newly added static pools.
8684 2015-07-16  Martin Jambor  <mjambor@suse.cz>
8686         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
8687         all uses.  Fix two typos in its general comment.
8688         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
8690 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
8692         * config/i386/linux-common.h (LINK_MPX): New.
8693         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
8694         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
8695         indicating '-z bndplt' support by linker.
8696         * configure: Regenerate.
8697         * config.in: Regenerate.
8699 2015-07-16  Richard Biener  <rguenther@suse.de>
8701         * fold-const.c (fold_widened_comparison): Remove.
8702         (fold_sign_changed_comparison): Likewise.
8703         (fold_comparison): Move widened and sign-changed comparison
8704         simplification ...
8705         * match.pd: ... to patterns here.
8706         * generic-match-head.c: Include target.h.
8707         * gimple-match-head.c: Likewise.
8709 2015-07-16  Richard Biener  <rguenther@suse.de>
8711         * tree-ssa-dom.c (dom_valueize): New function.
8712         (record_temporary_equivalences): Also record equivalences
8713         for dominating stmts that have uses of equivalences we are
8714         about to record.
8716 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
8718         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
8719         add_autoinc_candidates.
8720         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
8721         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
8722         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
8723         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
8724         Call new function.
8725         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
8726         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
8727         Remove parameter struct iv*.  Call add_autoinc_candidates here.
8728         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
8729         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
8730         Call new function.
8731         (find_iv_candidates): Call new functions.
8733 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
8735         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
8736         uninitialized-variable warning.
8738 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8740         PR target/65249
8741         * config/sh/sh.md (movdi): Split simple reg move to two movsi
8742         when the destination is R0.
8744 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
8746         PR target/66866
8747         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
8748         * config/i386/i386.c (ix86_expand_pextr): New function.
8749         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
8750         for non-lowpart subregs.
8751         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
8752         (insv<mode>): Use SWI248 mode iterator.
8753         (insv<mode>_1): Ditto.
8755 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
8756             Sebastian Pop  <s.pop@samsung.com>
8758         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
8759         iterator to use_stmt.
8761 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
8762             Sebastian Pop <s.pop@samsung.com>
8764         * graphite-scop-detection.c (build_scops_1): Discard scops for
8765         which entry==exit.
8767 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
8768             Sebastian Pop <s.pop@samsung.com>
8770         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
8771         case of a return statement in scop.
8773 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
8774             Sebastian Pop <s.pop@samsung.com>
8776         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
8777         INTEGER_TYPE parameters.
8778         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
8779         VECTOR_CST in scan_tree_for_params.
8780         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
8782 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
8784         * gimple-pretty-print.h: Don't include pretty-print.h.
8785         * tree-streamer.h: Don't include lto-streamer.h.
8786         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
8787         * gimple-streamer-in.c: Remove redundant includes.
8788         * gimple-streamer-out.c: Likewise.
8789         * ipa-devirt.c: Likewise.
8790         * ipa-icf.c: Likewise.
8791         * ipa-inline-analysis.c: Likewise.
8792         * ipa-polymorphic-call.c: Likewise.
8793         * ipa-profile.c: Likewise.
8794         * ipa-prop.c: Likewise.
8795         * ipa-pure-const.c: Likewise.
8796         * lto-cgraph.c: Likewise.
8797         * lto-streamer-in.c: Likewise.
8798         * lto-streamer-out.c: Likewise.
8799         * lto-streamer.c: Likewise.
8800         * tree-streamer-in.c: Likewise.
8801         * tree-streamer-out.c: Likewise.
8802         * tree-streamer.c: Likewise.
8804 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
8806         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
8807         include input.h.
8808         * opts.c: Remove multiline #include comment.
8810 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
8812         * config/nvptx/mkoffload.c (process): Add C++ protection to
8813         emitted code.
8815 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8817         PR target/66854
8818         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
8819         null before IEEE 128-bit floating point support patch.
8821 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8823         * simplify-rtx.c (simplify_ternary_operation): Add simplification
8824         for (!c) != {0,...,0} ? a : b for vector modes.
8826 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
8827             Martin Jambor  <mjambor@suse.cz>
8829         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
8830         struct func_body_info* instead of struct ipa_node_params*, expecting
8831         fbi->info to be filled in.  Replace throughout.  Adjust call to
8832         ipa_load_from_parm_agg.
8833         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
8834         instead of struct ipa_node_params*.  Adjust calls to other functions
8835         so that they pass either fbi or fbi->info.
8836         (set_switch_stmt_execution_predicate): Likewise.
8837         (will_be_nonconstant_predicate): Likewise.
8838         (compute_bb_predicates): Likewise.
8839         (estimate_function_body_sizes): Move asserts earlier.  Fill in
8840         struct func_body_info, replace parms_info with fbi.info.  Adjust
8841         calls to functions that now accept struct func_body_info.
8842         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
8843         (struct func_body_info): Likewise.
8844         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
8845         remove static.  Adjust callers.
8846         (ipa_load_from_parm_agg): Remove.
8847         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
8848         (func_body_info): Likewise.
8849         (ipa_load_from_parm_agg): Adjust prototype.
8851 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8853         * gensupport.c (rtx_handle_directive): Adjust.
8854         * read-rtl.c (apply_iterators): Take vector to add rtxs to
8855         instead of expr list rtx.
8856         (add_define_attr_for_define_subst): Likewise.
8857         (add_define_subst_attr): Likewise.
8858         (read_subst_mapping): Likewise.
8859         (read_rtx): Likewise.
8860         * rtl.h (read_rtx): Adjust.
8862 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8864         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
8866 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
8868         PR target/58066
8869         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
8870         (*tls_local_dynamic_base_64_<mode>): Ditto.
8871         (*tls_local_dynamic_base_64_largepic): Ditto.
8872         (tls_global_dynamic_64_<mode>): Update expander pattern.
8873         (tls_local_dynamic_base_64_<mode>): Ditto.
8875 2015-07-15  Richard Biener  <rguenther@suse.de>
8877         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
8878         and bool_var == 1 -> bool_var simplifications ...
8879         * match.pd: ... to patterns here.  Factor out negate_expr_p
8880         cases from the A - B -> A + (-B) patterns as negate_expr_p
8881         predicate and add a -(A + B) -> (-B) - A pattern.
8883 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
8885         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
8887 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
8888             Robert Suchanek  <robert.suchanek@imgtec.com>
8890         * config/mips/mips.c (mips_int_mask): New enum.
8891         (mips_shadow_set): Likewise.
8892         (int_mask): New variable.
8893         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
8894         (machine_function): Add int_mask and use_shadow_register_set.
8895         (mips_attribute_table): Add attribute handlers for interrupt and
8896         use_shadow_register_set.
8897         (mips_interrupt_mask): New static function.
8898         (mips_handle_interrupt_attr): Likewise.
8899         (mips_handle_use_shadow_register_set_attr): Likewise.
8900         (mips_use_shadow_register_set): Change return type to enum
8901         mips_shadow_set.  Add argument handling for use_shadow_register_set
8902         attribute.
8903         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
8904         compare with mips_shadow_set enum.
8905         (mips_compute_frame_info): Add interrupt mask and
8906         use_shadow_register_set to per-function information structure.
8907         Add a stack slot for EPC unconditionally.
8908         (mips_expand_prologue): Compare use_shadow_register_set value
8909         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
8910         masked interrupt register but in EIC mode use K0 and save Cause in K0.
8911         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
8912         copying the stack pointer from the shadow register set.
8913         * config/mips/mips.h (SR_IM0): New define.
8914         * config/mips/mips.md (mips_rdpgpr): Rename to...
8915         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
8916         * doc/extend.texi (Declaring Attributes of Functions): Document
8917         optional arguments for interrupt and use_shadow_register_set
8918         attributes.
8920 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
8922         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
8923         interrupt attribute.
8924         (mips_expand_prologue): Disable the floating point unit in an ISR.
8925         * config/mips/mips.h (SR_COP1): New define.
8927 2015-07-15  Richard Biener  <rguenther@suse.de>
8929         * genmatch.c (parser::peek, parser::peek_ident): Add argument
8930         to tell how many tokens to peek ahead (default 1).
8931         (parser::eat_token, parser::eat_ident): Return token consumed.
8932         (parser::parse_result): Parse new switch statement.
8933         * match.pd: Use case statements where appropriate.
8935 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
8937         PR rtl-optimization/58066
8938         * calls.c (expand_call): Precompute register parameters before stack
8939         alignment is performed.
8941 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
8943         PR rtl-optimization/66838
8944         * postreload.c (reload_cse_move2add): Also process
8945         CALL_INSN_FUNCTION_USAGE when resetting information of
8946         call-clobbered registers.
8948 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8949             Cesar Philippidis  <cesar@codesourcery.com>
8950             Chung-Lin Tang  <cltang@codesourcery.com>
8952         * config/nios2/constraints.md (U, v): New constraints.
8953         * config/nios2/predicates.md (rdprs_dcache_operand): New.
8954         (ldstex_memory_operand): New.
8955         * config/nios2/sync.md: New file.
8956         * config/nios2/nios2.md (unspecv): Add new builtin function
8957         UNSPECV codes.
8958         (rdprs, flushd, flushda, wrpie, eni): New patterns.
8959         (top-level): Include sync.md.
8960         * config/nios2/nios2.c (N2_FTYPES): Add function types for
8961         new builtins.
8962         (N2_BUILTINS): Add arch field setting, add new builtins.
8963         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
8964         for arch field.
8965         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
8966         Also handle ldex/stex/ldsex/stsex builtins.
8967         (nios2_expand_rdprs_builtin): New function.
8968         (nios2_expand_cache_builtin): New function.
8969         (nios2_expand_wrpie_builtin): New function.
8970         (nios2_expand_eni_builtin): New function.
8971         (nios2_expand_builtin): Add arch field handling and new builtin
8972         cases.
8973         * doc/extend.texi (Altera Nios II Built-in Functions): Document
8974         new builtins.
8975         * doc/md.texi (Machine Constraints): Document U and v constraints.
8977 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8978             Cesar Philippidis  <cesar@codesourcery.com>
8979             Chung-Lin Tang  <cltang@codesourcery.com>
8981         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
8982         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
8983         callee_save_reg_size and uses_anonymous_args fields.
8984         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
8985         (nios2_create_cfa_notes): New function.
8986         (nios2_adjust_stack): New function for adjusting stack.
8987         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
8988         Use nios2_adjust_stack.
8989         (nios2_expand_epilogue): Likewise.
8990         (nios2_expand_return): New function.
8991         (nios2_can_use_return_insn): Update for CDX pop.n usage.
8992         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
8993         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
8994         * config/nios2/nios2.md (return): Use nios2_expand_return.
8996 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8997             Cesar Philippidis  <cesar@codesourcery.com>
8998             Chung-Lin Tang  <cltang@codesourcery.com>
9000         * config/nios2/predicates.md (pop_operation): New.
9001         (ldwm_operation, stwm_operation): New.
9002         (nios2_hard_register_operand): New.
9003         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
9004         (ldstwm_operation_p): Declare.
9005         (gen_ldstwm_peep): Declare.
9006         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
9007         (base_reg_adjustment_p): New.
9008         (pop_operation_p): New.
9009         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
9010         (nios2_ldstwm_regset_p): New.
9011         (ldstwm_operation_p): New.
9012         (gen_ldst): New.
9013         (nios2_ldst_parallel): New.
9014         (struct ldswm_operand): Declare.
9015         (compare_ldstwm_operands): New.
9016         (can_use_cdx_ldstw): New.
9017         (gen_ldstwm_peep): New.
9018         * config/nios2/nios2-ldstwm.sml: New.
9019         * config/nios2/nios2.md: Include ldstwm.md.
9020         * config/nios2/ldstwm.md: Generated.
9022 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
9023             Cesar Philippidis  <cesar@codesourcery.com>
9024             Chung-Lin Tang  <cltang@codesourcery.com>
9026         * config/nios2/nios2.h (LABEL_ALIGN): Define.
9027         (REG_ALLOC_ORDER): Define.
9028         (ADJUST_REG_ALLOC_ORDER): Define.
9029         (HONOR_REG_ALLOC_ORDER): Define.
9030         (CDX_REG_P): Define.
9031         (ANDCLEAR_INT): Define.
9032         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
9033         (nios2_label_align): Declare.
9034         (nios2_cdx_narrow_form_p): Declare.
9035         (nios2_adjust_reg_alloc_order): Declare.
9036         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
9037         operation.
9038         (nios2_large_unspec_reloc_p): New function, split from...
9039         (nios2_legitimate_pic_operand_p): ...here.
9040         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
9041         (nios2_print_operand_punct_valid_p): New.
9042         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
9043         (split_mem_address): New.
9044         (split_alu_insn): New.
9045         (cdxreg): New.
9046         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
9047         (enum nios2_add_insn_kind): New.
9048         (nios2_add_insn_names, nios2_add_insn_narrow): New.
9049         (nios2_add_insn_classify): New.
9050         (nios2_add_insn_asm): New.
9051         (nios2_cdx_narrow_form_p): New.
9052         (label_align, min_labelno, max_labelno): New.
9053         (nios2_reorg): New.
9054         (nios2_label_align): New.
9055         (nios2_adjust_reg_alloc_order): New.
9056         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9057         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9058         * config/nios2/constraints.md (P): New constraint.
9059         * config/nios2/predicates.md (const_and_operand): New.
9060         (and_operand): New.
9061         (stack_memory_operand): New.
9062         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
9063         (length): Update to use nios2_cdx_narrow_form_p().
9064         (type): Add new insn type values.
9065         (control, alu, st, ld, shift): Update insn reservations with
9066         new insn type values.
9067         (*high, *lo_sum): Define new insn patterns for constant generation.
9068         (movqi_internal, movhi_internal, movsi_internal): Reduce
9069         alternatives, update asm template to handle CDX variants, update
9070         type attributes.
9071         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
9072         template, update type attributes.
9073         (extendhisi2, extendqi<mode>2): Likewise.
9074         (addsi3): Change to use function for asm string.
9075         (subsi3): Add CDX notation to asm template, update type attributes.
9076         (negsi3, one_cmplsi3): Likewise.
9077         (andsi3): New pattern, specialized from logical patterns.
9078         (<code>si3): Remove and case, combine alternatives, update asm
9079         template.
9080         (<shift_op>si3): Add CDX notation, update type attributes.
9081         (rotrsi3): Update type attribute.
9082         (*merge, extzv, insv): New insn patterns.
9083         (return): Change to define_expand.
9084         (simple_return): Add CDX notation, update type attributes.
9085         (indirect_jump): Add CDX notation.
9086         (jump): Update asm cases, update length attribute expression.
9087         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
9088         (nios2_cbranch): Update asm cases and length attribute expression
9089         to handle CDX variants.
9090         (nios2_cmp<code>): Update asm template.
9091         (nop): Add CDX notation, update type attributes.
9092         (trap): Add CDX notation.
9093         (ctrapsi4): Update asm cases and length attribute expression to
9094         handle CDX variant.
9095         * doc/md.texi (Machine Constraints): Document P constraint.
9097 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
9098             Cesar Philippidis  <cesar@codesourcery.com>
9099             Chung-Lin Tang  <cltang@codesourcery.com>
9101         * config/nios2/nios2.h (SMALL_INT12): New macro.
9102         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
9103         (nios2_valid_addr_expr_p): Use it.
9104         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
9105         with implicit "io" instructions on R2.
9106         * config/nios2/constraints.md (w): New constraint.
9107         * config/nios2/predicates.md (ldstio_memory_operand): New.
9108         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
9109         operand predicate and constraint.
9110         (ld<bh>io_signed, st<bhw>io>): Likewise.
9111         * doc/md.texi (Machine Constraints): Document w constraint.
9113 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
9114             Cesar Philippidis  <cesar@codesourcery.com>
9115             Chung-Lin Tang  <cltang@codesourcery.com>
9117         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
9118         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
9119         Nios II architecture level.
9120         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
9121         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
9122         (OPTION_DEFAULT_SPECS): Define.
9123         (ASM_SPEC): Add -march= spec strings.
9124         * config/nios2/nios2.c (nios2_option_override): Check for
9125         conflicts involving new options.
9126         * config.gcc (nios2*-*-*): Support --with-arch=.
9127         * doc/invoke.texi (Option Summary, Nios II Options): Document
9128         -march=, -mbmx, and -mcdx.
9130 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
9132         PR rtl-optimization/66626
9133         * lra-constraints.c (lra_constraints): Prevent equivalence
9134         substitution for static chain pseudo in functions with nonlocal
9135         goto.
9137 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
9139         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
9140         (nios2_emit_stack_limit_check): Add size parameter.  Handle
9141         -fstack-limit-symbol as well as -fstack-limit-register.
9142         (nios2_expand_prologue): Emit only a single stack limit check,
9143         even if multiple stack adjustments are required.
9144         (nios2_option_override): Diagnose unsupported combination of -fpic
9145         and -stack-limit-symbol.
9147 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
9149         * Makefile.in (top_srcdir): New.
9150         * configure.ac: Use AM_ZLIB.
9151         * configure: Regeneated.
9153 2015-07-14  Matthias Klose  <doko@ubuntu.com>
9155         PR target/66840
9156         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
9158 2015-07-14  Richard Biener  <rguenther@suse.de>
9160         PR tree-optimization/66863
9161         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
9162         what we record for conversion use stmt lhs inequalities.
9164 2015-07-14  Richard Biener  <rguenther@suse.de>
9166         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
9167         (decision_tree::gen_gimple): Likewise.
9169 2015-07-14  Tom de Vries  <tom@codesourcery.com>
9171         * gcc.c (greater_than_spec_func): Declare forward.
9172         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
9173         -ftree-parallelize-loops={0,1}.
9174         (static_spec_functions): Add greater_than_spec_func function with name
9175         "gt".
9176         (greater_than_spec_func): New function.
9178 2015-07-14  Richard Biener  <rguenther@suse.de>
9180         * tree-ssa-dom.c (record_temporary_equivalences): Merge
9181         wideing type conversion case from record_equivalences_from_incoming_edge
9182         and use record_equality to record equivalences.
9183         (record_equivalences_from_incoming_edge): Call
9184         record_temporary_equivalences.
9186 2015-07-14  Richard Biener  <rguenther@suse.de>
9188         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
9189         (struct if_expr): New.
9190         (struct with_expr): Likewise.
9191         (is_a_helper): Add helpers for if_expr and with_expr.
9192         (struct simplify): Add simplify_kind enum and member.  Remove
9193         ifexpr_vec member.
9194         (simplify::simplify): Adjust.
9195         (lower_commutative): Adjust.
9196         (lower_opt_convert): Likewise.
9197         (lower_cond): Likewise.
9198         (replace_id): Handle with_expr and if_expr.
9199         (lower_for): Adjust.
9200         (dt_simplify::gen_1): New recursive worker, split out from ...
9201         (dt_simplify::gen): ... here.  Deal with if and with expansion
9202         recursively.
9203         (capture_info::capture_info): Take context argument
9204         (capture_info::walk_result): Only analyze specific result.
9205         (parser::parse_result): New function.
9206         (parser::parse_simplify): Adjust to parse ifs with then end
9207         else case.
9208         (parser::parse_if): Simplify.
9209         (parser::parse_pattern): Pass down simplify kind.
9210         * match.pd: Convert if structure to new syntax.
9212 2015-07-13  Marek Polacek  <polacek@redhat.com>
9214         * rtl.c (rtx_equal_p_cb): Fix typo.
9216 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
9218         * omega.h: Don't include config.h, don't include params.h again if
9219         omega.h has already been included.
9220         * graphite-poly.h: Include sese.h.
9221         * graphite.c: Don't include sese.h, remove needless includes and
9222         minimize includes outside #ifdef HAVE_isl block.
9223         * graphite-blocking.c: Don't include sese.h, remove needless includes,
9224         and wrap entire file in #ifdef HAVE_isl
9225         * graphite-dependences.c: Likewise.
9226         * graphite-interchange.c: Likewise.
9227         * graphite-isl-ast-to-gimple.c: Likewise.
9228         * graphite-optimize-isl.c: Likewise.
9229         * graphite-poly.c: Likewise.
9230         * graphite-scop-detection.c: Likewise.
9231         * graphite-sese-to-poly.c: Likewise.
9233 2015-07-13  Tom de Vries  <tom@codesourcery.com>
9235         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
9237 2015-07-13  Renlin Li  <renlin.li@arm.com>
9239         PR rtl/66556
9240         * simplify-rtx.c (simplify_const_relational_operation): Add
9241         side_effects_p checks.
9243 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
9245         * bitmap.h: Fix double word typos.
9246         * builtins.c: Same.
9247         * calls.c: Same.
9248         * cfgloopmanip.c: Same.
9249         * cgraph.c: Same.
9250         * cgraph.h: Same.
9251         * cgraphclones.c: Same.
9252         * combine.c: Same.
9253         * config/aarch64/aarch64-protos.h: Same.
9254         * config/aarch64/aarch64.c: Same.
9255         * config/aarch64/aarch64.md: Same.
9256         * config/arm/arm.md: Same.
9257         * config/arm/arm1020e.md: Same.
9258         * config/arm/arm1026ejs.md: Same.
9259         * config/arm/arm926ejs.md: Same.
9260         * config/arm/fa526.md: Same.
9261         * config/arm/fa606te.md: Same.
9262         * config/arm/fa626te.md: Same.
9263         * config/arm/fa726te.md: Same.
9264         * config/arm/fmp626.md: Same.
9265         * config/darwin.c: Same.
9266         * config/epiphany/epiphany.c: Same.
9267         * config/frv/frv.c: Same.
9268         * config/ft32/ft32.c: Same.
9269         * config/gnu-user.h: Same.
9270         * config/h8300/constraints.md: Same.
9271         * config/i386/i386.c: Same.
9272         * config/i386/i386.md: Same.
9273         * config/iq2000/iq2000.md: Same.
9274         * config/mips/mips.c: Same.
9275         * config/mmix/mmix.md: Same.
9276         * config/moxie/moxie.c: Same.
9277         * config/nds32/nds32.md: Same.
9278         * config/pa/pa.h: Same.
9279         * config/rs6000/aix.h: Same.
9280         * config/rs6000/rs6000.h: Same.
9281         * config/sh/sh.c: Same.
9282         * config/tilegx/tilegx.md: Same.
9283         * config/tilepro/gen-mul-tables.cc: Same.
9284         * cse.c: Same.
9285         * dbxout.c: Same.
9286         * doc/invoke.texi: Same.
9287         * dse.c: Same.
9288         * dwarf2out.c: Same.
9289         * final.c: Same.
9290         * gcc.c: Same.
9291         * genmatch.c: Same.
9292         * gimplify.c: Same.
9293         * hash-table.h: Same.
9294         * internal-fn.c: Same.
9295         * ipa-cp.c: Same.
9296         * ipa-devirt.c: Same.
9297         * ipa-icf.c: Same.
9298         * ipa-icf.h: Same.
9299         * ipa-profile.c: Same.
9300         * ipa-prop.c: Same.
9301         * ipa-prop.h: Same.
9302         * ira.c: Same.
9303         * omp-low.c: Same.
9304         * reg-stack.c: Same.
9305         * regcprop.c: Same.
9306         * reorg.c: Same.
9307         * rtl.h: Same.
9308         * sbitmap.h: Same.
9309         * tree-eh.c: Same.
9310         * tree-inline.c: Same.
9311         * tree-sra.c: Same.
9312         * tree-ssa-dom.c: Same.
9313         * tree-ssa-loop-ivopts.c: Same.
9314         * tree-ssa-structalias.c: Same.
9315         * tree-ssa-tail-merge.c: Same.
9316         * tree-ssa-ter.c: Same.
9317         * tree-ssa-threadupdate.c: Same.
9318         * tree-ssa-uninit.c: Same.
9319         * tree-ssanames.c: Same.
9320         * tree-vect-loop-manip.c: Same.
9321         * tree-vrp.c: Same.
9322         * tree.c: Same.
9323         * valtrack.c: Same.
9324         * vec.h: Same.
9326 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9328         PR middle-end/66726
9329         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
9330         tree_ssa_phiopt_worker): Call it.
9332 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9334         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
9335         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
9336         REG_EQUAL note.
9338 2015-07-11  Marek Polacek  <polacek@redhat.com>
9340         PR middle-end/66353
9341         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
9342         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
9343         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
9344         rather than bb_has_abnormal_call_pred.
9345         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
9346         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
9347         rather than bb_has_abnormal_call_pred.
9349 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
9351         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9352         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
9353         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9354         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
9355         v850_legitimate_address_p): New functions.
9356         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9358 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9360         PR target/66819
9361         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
9362         indirect sibcall with register arguments if register available
9363         for argument passing.
9364         (init_cumulative_args): Set cfun->machine->arg_reg_available
9365         to (cum->nregs > 0) or to true if function has a variable
9366         argument list.
9367         (function_arg_advance_32): Set cfun->machine->arg_reg_available
9368         to false if cum->nregs <= 0.
9369         * config/i386/i386.h (machine_function): Add arg_reg_available.
9371 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
9373         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
9374         and gen_higpart instead of gen_rtx_SUBREG.
9375         * config/i386/i386.md
9376         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
9377         (read-modify peephole2): Use gen_lowpart instead of
9378         gen_rtx_SUBREG for operand 5.
9380 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
9382         * config/tilepro/gen-mul-tables.cc (main): Change include list for
9383         generated files.
9384         * config/tilepro/mul-tables.c: Regenerate.
9385         * config/tilegx/mul-tables.c: Regenerate.
9387 2015-07-10  Richard Biener  <rguenther@suse.de>
9389         * fold-const.c (distribute_bit_expr): Remove.
9390         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
9391         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
9392         to A & (B | C) and simplifying A << C1 << C2 to ...
9393         * match.pd: ... patterns here.
9395 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
9397         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9398         Mark mem as READONLY and NOTRAP for PIC symbol.
9400 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
9402         * gimple-predict.h: New file.
9403         (gimple_predict_predictor, gimple_predict_set_predictor,
9404         gimple_predict_outcome, gimple_predict_set_outcome,
9405         gimple_build_predict): Relocate here.
9406         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
9407         gimple_predict_outcome, gimple_predict_set_outcome): Move to
9408         gimple-predict.h.
9409         * gimple.c (gimple_build_predict): Move to gimple-predict.h
9410         * basic-block.h: Don't include cfghooks.h.
9411         * backend.h: Don't include predict.h.
9412         * cfghooks.h: Include predict.h.
9413         * gimple-pretty-print.c: Include gimple-predict.h.
9414         * gimplify.c: Likwise.
9415         * predict.c: Adjust includes.
9416         * tree-inline.c: Likewise.
9417         * asan.c: Likewise.
9418         * auto-inc-dec.c: Likewise.
9419         * auto-profile.c: Likewise.
9420         * bb-reorder.c: Likewise.
9421         * builtins.c: Likewise.
9422         * caller-save.c: Likewise.
9423         * calls.c: Likewise.
9424         * cfganal.c: Likewise.
9425         * cfgbuild.c: Likewise.
9426         * cfg.c: Likewise.
9427         * cfgcleanup.c: Likewise.
9428         * cfgexpand.c: Likewise.
9429         * cfghooks.c: Likewise.
9430         * cfgloopanal.c: Likewise.
9431         * cfgloop.c: Likewise.
9432         * cfgloopmanip.c: Likewise.
9433         * cfgrtl.c: Likewise.
9434         * cgraph.c: Likewise.
9435         * cgraphunit.c: Likewise.
9436         * combine.c: Likewise.
9437         * cprop.c: Likewise.
9438         * cse.c: Likewise.
9439         * dce.c: Likewise.
9440         * dojump.c: Likewise.
9441         * dse.c: Likewise.
9442         * except.c: Likewise.
9443         * expmed.c: Likewise.
9444         * expr.c: Likewise.
9445         * final.c: Likewise.
9446         * fold-const.c: Likewise.
9447         * function.c: Likewise.
9448         * fwprop.c: Likewise.
9449         * gcc-plugin.h: Likewise.
9450         * gcse.c: Likewise.
9451         * genattrtab.c: Likewise.
9452         * genemit.c: Likewise.
9453         * gengtype.c: Likewise.
9454         * genopinit.c: Likewise.
9455         * genoutput.c: Likewise.
9456         * genpreds.c: Likewise.
9457         * genrecog.c: Likewise.
9458         * gimple-fold.c: Likewise.
9459         * gimple-iterator.c: Likewise.
9460         * gimple-ssa-isolate-paths.c: Likewise.
9461         * gimple-ssa-strength-reduction.c: Likewise.
9462         * graph.c: Likewise.
9463         * graphite-blocking.c: Likewise.
9464         * graphite.c: Likewise.
9465         * graphite-dependences.c: Likewise.
9466         * graphite-interchange.c: Likewise.
9467         * graphite-isl-ast-to-gimple.c: Likewise.
9468         * graphite-optimize-isl.c: Likewise.
9469         * graphite-poly.c: Likewise.
9470         * graphite-scop-detection.c: Likewise.
9471         * graphite-sese-to-poly.c: Likewise.
9472         * haifa-sched.c: Likewise.
9473         * ifcvt.c: Likewise.
9474         * internal-fn.c: Likewise.
9475         * ipa-cp.c: Likewise.
9476         * ipa-profile.c: Likewise.
9477         * ipa-split.c: Likewise.
9478         * ipa-utils.c: Likewise.
9479         * ira-build.c: Likewise.
9480         * ira-color.c: Likewise.
9481         * ira-conflicts.c: Likewise.
9482         * ira-costs.c: Likewise.
9483         * ira-emit.c: Likewise.
9484         * ira-lives.c: Likewise.
9485         * jump.c: Likewise.
9486         * loop-doloop.c: Likewise.
9487         * loop-init.c: Likewise.
9488         * loop-invariant.c: Likewise.
9489         * loop-unroll.c: Likewise.
9490         * lower-subreg.c: Likewise.
9491         * lra-assigns.c: Likewise.
9492         * lra.c: Likewise.
9493         * lra-coalesce.c: Likewise.
9494         * lra-constraints.c: Likewise.
9495         * lra-lives.c: Likewise.
9496         * lto-cgraph.c: Likewise.
9497         * lto-streamer-in.c: Likewise.
9498         * mode-switching.c: Likewise.
9499         * modulo-sched.c: Likewise.
9500         * omp-low.c: Likewise.
9501         * optabs.c: Likewise.
9502         * passes.c: Likewise.
9503         * postreload.c: Likewise.
9504         * postreload-gcse.c: Likewise.
9505         * profile.c: Likewise.
9506         * recog.c: Likewise.
9507         * regstat.c: Likewise.
9508         * reload1.c: Likewise.
9509         * reorg.c: Likewise.
9510         * rtlanal.c: Likewise.
9511         * sched-ebb.c: Likewise.
9512         * sel-sched-ir.c: Likewise.
9513         * sese.c: Likewise.
9514         * shrink-wrap.c: Likewise.
9515         * simplify-rtx.c: Likewise.
9516         * stmt.c: Likewise.
9517         * store-motion.c: Likewise.
9518         * tracer.c: Likewise.
9519         * trans-mem.c: Likewise.
9520         * tree-call-cdce.c: Likewise.
9521         * tree-cfg.c: Likewise.
9522         * tree-cfgcleanup.c: Likewise.
9523         * tree-chkp.c: Likewise.
9524         * tree-complex.c: Likewise.
9525         * tree-eh.c: Likewise.
9526         * tree-if-conv.c: Likewise.
9527         * tree-loop-distribution.c: Likewise.
9528         * tree-outof-ssa.c: Likewise.
9529         * tree-parloops.c: Likewise.
9530         * tree-predcom.c: Likewise.
9531         * tree-pretty-print.c: Likewise.
9532         * tree-profile.c: Likewise.
9533         * tree-sra.c: Likewise.
9534         * tree-ssa.c: Likewise.
9535         * tree-ssa-coalesce.c: Likewise.
9536         * tree-ssa-dce.c: Likewise.
9537         * tree-ssa-dom.c: Likewise.
9538         * tree-ssa-forwprop.c: Likewise.
9539         * tree-ssa-ifcombine.c: Likewise.
9540         * tree-ssa-loop-ch.c: Likewise.
9541         * tree-ssa-loop-im.c: Likewise.
9542         * tree-ssa-loop-ivcanon.c: Likewise.
9543         * tree-ssa-loop-ivopts.c: Likewise.
9544         * tree-ssa-loop-manip.c: Likewise.
9545         * tree-ssa-loop-prefetch.c: Likewise.
9546         * tree-ssa-loop-unswitch.c: Likewise.
9547         * tree-ssa-math-opts.c: Likewise.
9548         * tree-ssa-phiopt.c: Likewise.
9549         * tree-ssa-pre.c: Likewise.
9550         * tree-ssa-reassoc.c: Likewise.
9551         * tree-ssa-sink.c: Likewise.
9552         * tree-ssa-tail-merge.c: Likewise.
9553         * tree-ssa-threadedge.c: Likewise.
9554         * tree-ssa-threadupdate.c: Likewise.
9555         * tree-switch-conversion.c: Likewise.
9556         * tree-tailcall.c: Likewise.
9557         * tree-vect-data-refs.c: Likewise.
9558         * tree-vect-loop.c: Likewise.
9559         * tree-vect-loop-manip.c: Likewise.
9560         * tree-vectorizer.c: Likewise.
9561         * tree-vrp.c: Likewise.
9562         * ubsan.c: Likewise.
9563         * value-prof.c: Likewise.
9564         * varasm.c: Likewise.
9565         * var-tracking.c: Likewise.
9566         * config/aarch64/aarch64-builtins.c: Likewise.
9567         * config/aarch64/aarch64.c: Likewise.
9568         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9569         * config/alpha/alpha.c: Likewise.
9570         * config/arc/arc.c: Likewise.
9571         * config/arm/arm.c: Likewise.
9572         * config/avr/avr.c: Likewise.
9573         * config/bfin/bfin.c: Likewise.
9574         * config/c6x/c6x.c: Likewise.
9575         * config/cr16/cr16.c: Likewise.
9576         * config/cris/cris.c: Likewise.
9577         * config/darwin.c: Likewise.
9578         * config/darwin-c.c: Likewise.
9579         * config/epiphany/epiphany.c: Likewise.
9580         * config/epiphany/mode-switch-use.c: Likewise.
9581         * config/epiphany/resolve-sw-modes.c: Likewise.
9582         * config/fr30/fr30.c: Likewise.
9583         * config/frv/frv.c: Likewise.
9584         * config/ft32/ft32.c: Likewise.
9585         * config/h8300/h8300.c: Likewise.
9586         * config/i386/i386.c: Likewise.
9587         * config/i386/winnt.c: Likewise.
9588         * config/ia64/ia64.c: Likewise.
9589         * config/iq2000/iq2000.c: Likewise.
9590         * config/lm32/lm32.c: Likewise.
9591         * config/m32c/m32c.c: Likewise.
9592         * config/m32r/m32r.c: Likewise.
9593         * config/m68k/m68k.c: Likewise.
9594         * config/mcore/mcore.c: Likewise.
9595         * config/mep/mep.c: Likewise.
9596         * config/microblaze/microblaze.c: Likewise.
9597         * config/mips/mips.c: Likewise.
9598         * config/mmix/mmix.c: Likewise.
9599         * config/mn10300/mn10300.c: Likewise.
9600         * config/moxie/moxie.c: Likewise.
9601         * config/msp430/msp430.c: Likewise.
9602         * config/nds32/nds32.c: Likewise.
9603         * config/nds32/nds32-cost.c: Likewise.
9604         * config/nds32/nds32-fp-as-gp.c: Likewise.
9605         * config/nds32/nds32-intrinsic.c: Likewise.
9606         * config/nds32/nds32-isr.c: Likewise.
9607         * config/nds32/nds32-md-auxiliary.c: Likewise.
9608         * config/nds32/nds32-memory-manipulation.c: Likewise.
9609         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9610         * config/nds32/nds32-predicates.c: Likewise.
9611         * config/nios2/nios2.c: Likewise.
9612         * config/nvptx/nvptx.c: Likewise.
9613         * config/pa/pa.c: Likewise.
9614         * config/pdp11/pdp11.c: Likewise.
9615         * config/rl78/rl78.c: Likewise.
9616         * config/rs6000/rs6000.c: Likewise.
9617         * config/rx/rx.c: Likewise.
9618         * config/s390/s390.c: Likewise.
9619         * config/sh/sh.c: Likewise.
9620         * config/sh/sh-mem.cc: Likewise.
9621         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9622         * config/sh/sh_treg_combine.cc: Likewise.
9623         * config/sparc/sparc.c: Likewise.
9624         * config/spu/spu.c: Likewise.
9625         * config/stormy16/stormy16.c: Likewise.
9626         * config/tilegx/tilegx.c: Likewise.
9627         * config/tilepro/tilepro.c: Likewise.
9628         * config/v850/v850.c: Likewise.
9629         * config/vax/vax.c: Likewise.
9630         * config/visium/visium.c: Likewise.
9631         * config/xtensa/xtensa.c: Likewise.
9633 2015-07-10  Richard Biener  <rguenther@suse.de>
9635         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
9636         (decision_tree::gen_gimple): Likewise.
9637         (decision_tree::gen_generic): Likewise.
9639 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
9641         PR target/66813
9642         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
9643         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
9645 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
9647         PR middle-end/66820
9648         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
9649         or ORT_TASK contexts.
9650         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
9651         is non-zero.
9653 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9655         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
9656         above function.
9658 2015-07-10  Tom de Vries  <tom@codesourcery.com>
9660         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
9661         insert nit + 1 bound.
9663 2015-07-10  Richard Biener  <rguenther@suse.de>
9665         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
9666         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
9667         (if_convertible_loop_p_1): For this always compute bb predicates.
9668         (if_convertible_loop_p): And free them.
9670 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9672         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
9673         in dump message.
9675 2015-07-10  Richard Biener  <rguenther@suse.de>
9677         PR tree-optimization/66823
9678         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
9679         inverted predicate.
9681 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
9683         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
9684         to handle mips[32|64]r3 and mips[32|64]r5.
9686 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
9688         PR middle-end/66633
9689         * tree-nested.c (get_static_chain): Or in a flag into
9690         info->static_chain_added.
9691         (get_frame_field, get_nonlocal_debug_decl): Likewise.
9692         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
9693         2015-07-01 changes.
9694         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
9695         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
9696         add it to clauses.
9698         PR tree-optimization/66718
9699         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
9700         field.
9701         (vect_simd_lane_linear): New function.
9702         (vectorizable_simd_clone_call): Support using linear arguments for
9703         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
9705 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
9707         PR target/66821
9708         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
9710 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
9712         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
9713         Use machine mode, not enum machine_mode in the prototype.
9715         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
9716         classify 128-bit floating point support.
9717         (FLOAT128_IBM_P): Likewise.
9718         (FLOAT128_VECTOR_P): Likewise.
9719         (FLOAT128_2REG_P): Likewise.
9720         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
9721         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
9722         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9723         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
9725         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
9726         tests against TFmode/TDmode, since those modes do not use VSX
9727         addresses.
9728         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
9729         support.
9730         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
9731         tests against TFmode, etc.
9732         (invalid_e500_subreg): Add tests against IFmode/KFmode.
9733         (reg_offset_addressing_ok_p): Likewise.
9734         (rs6000_legitimate_offset_address_p): Likewise.
9735         (rs6000_legitimize_address): Likewise.
9736         (rs6000_legitimize_reload_address): Likewise.
9737         (rs6000_legitimate_address_p): Clean up tests against TFmode and
9738         TDmode to use the new helper macros, which will include IFmode and
9739         KFmode.
9740         (rs6000_emit_move): Likewise.
9741         (rs6000_darwin64_record_arg_recurse): Likewise.
9742         (print_operand): Likewise.
9743         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
9744         that uses a single vector register as a vector and not as a
9745         floating point register in terms of the calling sequence.
9746         (rs6000_discover_homogeneous_aggregate): Likewise.
9747         (rs6000_return_in_memory): Likewise.
9748         (init_cumulative_args): Likewise.
9749         (rs6000_function_arg_boundary): Likewise.
9750         (rs6000_function_arg_advance_1): Likewise.
9751         (rs6000_function_arg): Likewise.
9752         (rs6000_pass_by_reference): Likewise.
9753         (rs6000_gimplify_va_arg): Likewise.
9754         (rs6000_secondary_reload_memory): Use machine_mode not enum
9755         machine mode.
9756         (rs6000_split_multireg_move): Use new helper macros.
9757         (spe_func_has_64bit_regs_p): Likewise.
9758         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
9759         (output_toc): Use new helper macros.
9760         (rs6000_register_move_cost): Likewise.
9761         (rs6000_function_value): Add IEEE 128-bit floating point calling
9762         sequence support.
9763         (rs6000_libcall_value): Likewise.
9764         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
9765         floating point support.
9766         (rs6000_vector_mode_supported_p): Likewise.
9768 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
9770         PR rtl-optimization/66782
9771         * lra-int.h (struct lra_insn_recog_data): Add comment about
9772         clobbered hard regs for arg_hard_regs.
9773         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
9774         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
9775         Add condition for processing used hard regs.
9776         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
9777         Process clobbered hard regs.
9779 2015-07-09  Michael Matz  <matz@suse.de>
9781         * genmatch.c (fprintf_indent): New function.
9782         (operand::gen_transform): Add indent parameter.
9783         (expr::gen_transform, c_expr::gen_transform,
9784         capture::gen_transform): Ditto and use fprintf_indent.
9785         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
9786         (dt_operand::gen, dt_operand::gen_predicate,
9787         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
9788         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
9789         (decision_tree::gen_gimple): Adjust calls and indent generated
9790         code.
9791         (decision_tree::gen_generic): Ditto.
9792         (write_predicate): Ditto.
9794 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
9796         PR target/66814
9797         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
9798         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
9799         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
9800         {GENERAL,SSE,MMX}_REG_P where appropriate.
9802 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
9804         * lto-streamer.h: Don't include target.h and alloc-pool.h.
9805         * builtins.c: Adjust includes.
9806         * gimple.c: Likewise.
9807         * ipa-icf.c: Likewise.
9808         * lto-opts.c: Likewise.
9809         * ipa-reference.c: Likewise.
9810         * lto-section-out.c: Likewise.
9811         * lto-streamer-in.c: Likewise.
9812         * lto-streamer-out.c: Likewise.
9813         * opts-global.c: Likewise.
9814         * symtab.c: Likewise.
9815         * tree-chkp.c: Likewise.
9816         * tree-ssa-live.c: Likewise.
9817         * tree-streamer-in.c: Likewise.
9818         * tree-streamer-out.c: Likewise.
9819         * config/darwin.c: Likewise.
9820         * config/i386/winnt.c: Likewise.
9822 2015-07-09  Richard Biener  <rguenther@suse.de>
9824         * genmatch.c (struct expr): Add force_single_use flag.
9825         (expr::expr): Add copy constructor.
9826         (capture_info::walk_match): Gather force_single_use captures.
9827         (expr::gen_transform): Use possibly NULLified sequence.
9828         (dt_simplify::gen): Apply single-use restrictions by NULLifying
9829         seq if any constrained expr is not single-use.
9830         (parser::parse_expr): Refactor to allow multiple flags.  Handle
9831         's' flag to force an expression have a single-use if the pattern
9832         simplifies to more than one statement.
9833         * match.pd: Convert most single_use conditionals to :s flags.
9835 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
9837         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
9838         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9839         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9841 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
9843         * flags.h: Don't include flag-types.h or options.h.
9844         * opts-common.c: Adjust includes.
9845         * opts-global.c: Likewise.
9846         * common/config/epiphany/epiphany-common.c: Likewise.
9848 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
9850         PR target/66818
9851         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
9852         for IA MCU.
9854 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
9856         PR target/66817
9857         * config/i386/i386.c (ix86_return_in_memory): Return true
9858         if int_size_in_bytes returns negative for IA MCU.
9860 2015-07-09  Marek Polacek  <polacek@redhat.com>
9862         PR tree-optimization/66718
9863         * Makefile.in (OBJS): Add gimple-laddress.o.
9864         * passes.def: Schedule pass_laddress.
9865         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
9866         * tree-pass.h (make_pass_laddress): Declare.
9867         * gimple-laddress.c: New file.
9869 2015-07-09  Richard Biener  <rguenther@suse.de>
9871         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
9873 2015-07-09  Richard Biener  <rguenther@suse.de>
9875         PR tree-optimization/66807
9876         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
9878 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
9880         * function.c (stack_protect_epilogue): Use if rather than switch for
9881         check targetm.have_stack_protect_test.
9883 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9885         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
9886         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
9887         * config/arc/arc.h: Likewise.
9888         * config/arm/arm.h: Likewise.
9889         * config/bfin/bfin.h: Likewise.
9890         * config/epiphany/epiphany.h: Likewise.
9891         * config/frv/frv.h: Likewise.
9892         * config/ia64/ia64.h: Likewise.
9893         * config/iq2000/iq2000.h: Likewise.
9894         * config/lm32/lm32.h: Likewise.
9895         * config/m32r/m32r.h: Likewise.
9896         * config/mcore/mcore.h: Likewise.
9897         * config/mep/mep.h: Likewise.
9898         * config/microblaze/microblaze.h: Likewise.
9899         * config/mips/mips.h: Likewise.
9900         * config/mmix/mmix.h: Likewise.
9901         * config/mn10300/mn10300.h: Likewise.
9902         * config/nds32/nds32.h: Likewise.
9903         * config/nios2/nios2.h: Likewise.
9904         * config/pa/pa.h: Likewise.
9905         * config/rl78/rl78.h: Likewise.
9906         * config/sh/sh.h: Likewise.
9907         * config/sparc/sparc.h: Likewise.
9908         * config/stormy16/stormy16.h: Likewise.
9909         * config/tilegx/tilegx.h: Likewise.
9910         * config/tilepro/tilepro.h: Likewise.
9911         * config/v850/v850.h: Likewise.
9912         * config/xtensa/xtensa.h: Likewise.
9913         * doc/tm.texi: Regenerate.
9914         * doc/tm.texi.in: Adjust.
9915         * combine.c (simplify_set): Likewise.
9916         (simplify_comparison): Likewise.
9917         * expr.c (store_constructor): Likewise.
9918         * internal-fn.c (expand_arith_overflow): Likewise.
9919         * reload.c (push_reload): Likewise.
9920         (find_reloads): Likewise.
9921         (find_reloads_subreg_address): Likewise.
9922         * reload1.c (eliminate_regs_1): Likewise.
9923         * rtlanal.c (nonzero_bits1): Likewise.
9924         (num_sign_bit_copies1): Likewise.
9925         * simplify-rtx.c (simplify_truncation): Likewise.
9927 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9929         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
9930         of AUTO_INC_DEC with the preprocessor.
9931         * combine.c (combine_instructions): Likewise.
9932         (can_combine_p): Likewise.
9933         (try_combine): Likewise.
9934         * emit-rtl.c (try_split): Likewise.
9935         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9936         * lower-subreg.c (resolve_simple_move): Likewise.
9937         * lra.c (update_inc_notes): Likewise.
9938         * recog.c (asm_operand_ok): Likewise.
9939         (constrain_operands): Likewise.
9940         * regrename.c (scan_rtx_address): Likewise.
9941         * reload.c (update_auto_inc_notes): Likewise.
9942         (reg_inc_found_and_valid_p): Likewise.
9943         * reload1.c (reload): Likewise.
9944         (emit_input_reload_insns): Likewise.
9945         (delete_output_reload): Likewise.
9946         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9947         * valtrack.c (cleanup_auto_inc_dec): Likewise.
9949 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9951         * rtl.h: Always define AUTO_INC_DEC.
9952         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
9953         * combine.c (combine_instructions): Likewise.
9954         (can_combine_p): Likewise.
9955         (try_combine): Likewise.
9956         * emit-rtl.c (try_split): Likewise.
9957         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
9958         * lower-subreg.c (resolve_simple_move): Likewise.
9959         * lra.c (update_inc_notes): Likewise.
9960         * recog.c (asm_operand_ok): Likewise.
9961         (constrain_operands): Likewise.
9962         * regrename.c (scan_rtx_address): Likewise.
9963         * reload.c (update_auto_inc_notes): Likewise.
9964         (find_equiv_reg): Likewise.
9965         * reload1.c (reload): Likewise.
9966         (reload_as_needed): Likewise.
9967         (choose_reload_regs): Likewise.
9968         (emit_input_reload_insns): Likewise.
9969         (delete_output_reload): Likewise.
9970         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9971         * valtrack.c (cleanup_auto_inc_dec): Likewise.
9973 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9975         * combine.c (can_combine_def_p): Don't check the value of
9976         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
9977         (combinable_i3pat): Likewise.
9978         (mark_used_regs_combine): Likewise.
9979         * regrename.c (rename_chains): Likewise.
9980         * reload.c (find_reloads_address): Likewise.
9981         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9983 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9985         * combine.c (update_rsp_from_reg_equal): Don't check if
9986         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
9987         (reg_nonzero_bits_for_combine): Likewise.
9988         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
9989         1.
9990         * config/frv/frv.h: Likewise.
9991         * config/lm32/lm32.h: Likewise.
9992         * config/mep/mep.h: Likewise.
9993         * config/mips/mips.h: Likewise.
9994         * config/rs6000/rs6000.h: Likewise.
9995         * config/sh/sh.h: Likewise.
9996         * config/tilegx/tilegx.h (enum reg_class): Likewise.
9997         * config/tilepro/tilepro.h: Likewise.
9998         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
9999         * doc/tm.texi: Regenerate.
10000         * doc/tm.texi.in: Adjust.
10001         * rtlanal.c (nonzero_bits1): Likewise.
10003 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10005         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
10006         with the preprocessor.
10007         (combine_instructions): Likewise.
10008         (try_combine): Likewise.
10009         (subst): Likewise.
10010         (distribute_notes): Likewise.
10012 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10014         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
10015         defined.
10016         (simplify_set): Likewise.
10017         * cse.c (cse_insn): Likewise.
10018         * fold-const.c (fold_single_bit_test): Likewise.
10019         (fold_unary_loc): Likewise.
10020         * postreload.c (reload_cse_simplify_set): Likewise.
10021         (reload_cse_simplify_operands): Likewise.
10023 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
10025         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
10026         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
10028 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
10030         PR target/66746
10031         * config/i386/x86intrin.h: Include <adxintrin.h> even if
10032         __iamcu__ is defined.
10034 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
10036         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
10038 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
10040         PR target/66523
10041         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
10042         names from preservation.
10044 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
10046         PR target/66806
10047         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
10048         change for IAMCU.
10049         (function_arg_advance_32): Don't pass vectors in registers for
10050         IAMCU.
10051         (function_arg_32): Likewise.
10052         (ix86_return_in_memory): Don't return vectors in registers for
10053         IAMCU.
10055 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
10057         PR middle-end/66334
10058         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
10059         hard regno live at the start of BB with incoming abnormal edges.
10060         * lra-lives.c (process_bb_lives): Ditto.
10062 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10064         PR libgomp/65099
10065         * config/nvptx/mkoffload.c (main): Create an offload image only in
10066         64-bit configurations.
10068 2015-07-08  Martin Liska  <mliska@suse.cz>
10070         PR bootstrap/66744
10071         * tree-sra.c (create_access_1): Call ctor without brackets.
10072         (create_artificial_child_access): Likewise.
10074 2015-07-08  Richard Biener  <rguenther@suse.de>
10076         PR tree-optimization/66793
10077         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
10078         Properly split the block after stmts ending it.
10080 2015-07-08  Richard Biener  <rguenther@suse.de>
10082         PR tree-optimization/66794
10083         * passes.c (execute_function_todo): Assert that post-dominators
10084         are not computed.
10085         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
10086         Free post-dominators.
10088 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10090         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
10091         with early exit.
10093 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
10095         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
10096         more than or equal 8 and less than 32 when optimizing for size.
10098 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10100         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
10101         COSTS_N_INSNS (1) and increment it appropriately throughout the
10102         function.
10104 2015-07-08  Richard Biener  <rguenther@suse.de>
10106         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
10108 2015-07-08  Alan Modra  <amodra@gmail.com>
10110         * target.def (rtx_costs): Remove "code" param, add "mode".
10111         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
10112         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
10113         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
10114         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
10115         call.  Track mode when given in rtx.
10116         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
10117         (default_address_cost): Pass Pmode to rtx_cost.
10118         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
10119         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
10120         with NULL set.
10121         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
10122         (notreg_cost): Add mode param.  Use it.
10123         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
10124         mode param and pass to set_src_cost.  Update all calls.
10125         (hash_scan_set): Formatting.
10126         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
10127         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
10128         * hooks.h: Ditto.
10129         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
10130         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
10131         emit_store_flag): Update set_src_cost and rtx_cost calls.
10132         * auto-inc-dec.c (attempt_change): Likewise.
10133         * calls.c (precompute_register_parameters): Likewise.
10134         * combine.c (expand_compound_operation, make_extraction,
10135         force_to_mode, distribute_and_simplify_rtx): Likewise.
10136         * dojump.c (prefer_and_bit_test): Likewise.
10137         * dse.c (find_shift_sequence): Likewise.
10138         * expr.c (compress_float_constant): Likewise.
10139         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10140         * ifcvt.c (noce_try_sign_mask): Likewise.
10141         * loop-doloop.c (doloop_optimize): Likewise.
10142         * loop-invariant.c (create_new_invariant): Likewise.
10143         * lower-subreg.c (shift_cost, compute_costs): Likewise.
10144         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
10145         lshift_cheap_p): Likewise.
10146         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
10147         try_replace_in_use, reload_cse_move2add): Likewise.
10148         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
10149         Likewise.
10150         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10151         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10152         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
10153         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10154         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
10155         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
10156         to rtx_cost calls.
10157         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
10158         * config/arc/arc.c (arc_rtx_costs): Likewise.
10159         * config/arm/arm.c (arm_rtx_costs): Likewise.
10160         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
10161         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10162         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10163         * config/cris/cris.c (cris_rtx_costs): Likewise.
10164         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
10165         * config/frv/frv.c (frv_rtx_costs): Likewise.
10166         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10167         * config/i386/i386.c (ix86_rtx_costs): Likewise.
10168         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10169         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10170         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10171         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10172         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10173         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10174         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10175         * config/mep/mep.c (mep_rtx_cost): Likewise.
10176         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10177         * config/mips/mips.c (mips_rtx_costs): Likewise.
10178         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10179         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
10180         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
10181         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
10182         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
10183         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
10184         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
10185         * config/pa/pa.c (hppa_rtx_costs): Likewise.
10186         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10187         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
10188         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10189         * config/s390/s390.c (s390_rtx_costs): Likewise.
10190         * config/sh/sh.c (sh_rtx_costs): Likewise.
10191         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10192         * config/spu/spu.c (spu_rtx_costs): Likewise.
10193         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10194         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
10195         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
10196         * config/v850/v850.c (v850_rtx_costs): Likewise.
10197         * config/vax/vax.c (vax_rtx_costs): Likewise.
10198         * config/visium/visium.c (visium_rtx_costs): Likewise.
10199         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10200         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
10201         "code" param, and pass as outer_code to first rtx_cost call.  Pass
10202         mode to rtx_cost calls.
10203         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
10204         calls.
10205         (aarch64_rtx_costs_wrapper): Update.
10206         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
10207         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
10208         rtx_cost calls.
10209         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
10210         and rtx_cost calls.
10211         (avr_operand_rtx_cost): Similarly.
10212         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
10213         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
10214         * config/mips/mips.c (mips_stack_address_p): Comment typo.
10215         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
10216         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
10217         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
10218         rtx_cost.
10219         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
10220         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
10221         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
10222         * doc/tm.texi: Regenerate.
10224 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
10226         * tree-core.h: Include symtab.h.
10227         * rtl.h: Include hard-reg-set.h but not flags.h.
10228         (HARD_CONST): Remove condition compilation involving HARD_CONST since
10229         hard-reg-set.h is always included.
10230         * regs.h: Don't include hard-reg-set.h or rtl.h.
10231         * cfg.h: Include dominance.h.
10232         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
10233         * backend.h: New.  Aggregate commonly used backend header files.
10234         * gimple-ssa.h: Don't include tree-hasher.h.
10235         * ssa.h: New.  Aggregate commonly used SSA header files.
10236         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
10237         * sel-sched-ir.h: Flatten includes.
10238         * lra-int.h: Flatten completely.
10239         * sel-sched-dump.h: Flatten includes.
10240         * ira-int.h: Flatten includes.
10241         * gimple-streamer.h: Remove all includes.
10242         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
10243         * resource.h: Flatten hard-reg-set.h and df.h.
10244         * sched-int.h: Flatten insn-arrt.h and df.h.
10245         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
10246         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
10247         * genattrtab.c (write_header): Adjust generated includes.
10248         * genautomata.c (main): Likewise.
10249         * genconditions.c (write-header): Likewise.
10250         * genemit.c (main): Likewise.
10251         * gengtype.c (open_base_files): Likewise.
10252         * genopinit.c (main): Likewise.
10253         * genoutput.c (output_prologue): Likewise.
10254         * genpeep.c (main): Likewise.
10255         * genpreds.c (write_insn_preds_c): Likewise.
10256         * genrecog.c (write_header): Likewise.
10257         * alias.c: Adjust includes.
10258         * asan.c: Likewise.
10259         * attribs.c: Likewise.
10260         * auto-inc-dec.c: Likewise.
10261         * auto-profile.c: Likewise.
10262         * bb-reorder.c: Likewise.
10263         * bt-load.c: Likewise.
10264         * builtins.c: Likewise.
10265         * caller-save.c: Likewise.
10266         * calls.c: Likewise.
10267         * ccmp.c: Likewise.
10268         * cfg.c: Likewise.
10269         * cfganal.c: Likewise.
10270         * cfgbuild.c: Likewise.
10271         * cfgcleanup.c: Likewise.
10272         * cfgexpand.c: Likewise.
10273         * cfghooks.c: Likewise.
10274         * cfgloop.c: Likewise.
10275         * cfgloopanal.c: Likewise.
10276         * cfgloopmanip.c: Likewise.
10277         * cfgrtl.c: Likewise.
10278         * cgraph.c: Likewise.
10279         * cgraphbuild.c: Likewise.
10280         * cgraphclones.c: Likewise.
10281         * cgraphunit.c: Likewise.
10282         * cilk-common.c: Likewise.
10283         * combine-stack-adj.c: Likewise.
10284         * combine.c: Likewise.
10285         * compare-elim.c: Likewise.
10286         * convert.c: Likewise.
10287         * coverage.c: Likewise.
10288         * cppbuiltin.c: Likewise.
10289         * cprop.c: Likewise.
10290         * cse.c: Likewise.
10291         * cselib.c: Likewise.
10292         * data-streamer-in.c: Likewise.
10293         * data-streamer-out.c: Likewise.
10294         * data-streamer.c: Likewise.
10295         * dbxout.c: Likewise.
10296         * dce.c: Likewise.
10297         * ddg.c: Likewise.
10298         * debug.c: Likewise.
10299         * df-core.c: Likewise.
10300         * df-problems.c: Likewise.
10301         * df-scan.c: Likewise.
10302         * dfp.c: Likewise.
10303         * dojump.c: Likewise.
10304         * dominance.c: Likewise.
10305         * domwalk.c: Likewise.
10306         * double-int.c: Likewise.
10307         * dse.c: Likewise.
10308         * dumpfile.c: Likewise.
10309         * dwarf2asm.c: Likewise.
10310         * dwarf2cfi.c: Likewise.
10311         * dwarf2out.c: Likewise.
10312         * emit-rtl.c: Likewise.
10313         * et-forest.c: Likewise.
10314         * except.c: Likewise.
10315         * explow.c: Likewise.
10316         * expmed.c: Likewise.
10317         * expr.c: Likewise.
10318         * final.c: Likewise.
10319         * fixed-value.c: Likewise.
10320         * fold-const.c: Likewise.
10321         * function.c: Likewise.
10322         * fwprop.c: Likewise.
10323         * gcc-plugin.h: Likewise.
10324         * gcse-common.c: Likewise.
10325         * gcse.c: Likewise.
10326         * generic-match-head.c: Likewise.
10327         * ggc-page.c: Likewise.
10328         * gimple-builder.c: Likewise.
10329         * gimple-expr.c: Likewise.
10330         * gimple-fold.c: Likewise.
10331         * gimple-iterator.c: Likewise.
10332         * gimple-low.c: Likewise.
10333         * gimple-match-head.c: Likewise.
10334         * gimple-pretty-print.c: Likewise.
10335         * gimple-ssa-isolate-paths.c: Likewise.
10336         * gimple-ssa-strength-reduction.c: Likewise.
10337         * gimple-streamer-in.c: Likewise.
10338         * gimple-streamer-out.c: Likewise.
10339         * gimple-walk.c: Likewise.
10340         * gimple.c: Likewise.
10341         * gimplify-me.c: Likewise.
10342         * gimplify.c: Likewise.
10343         * godump.c: Likewise.
10344         * graph.c: Likewise.
10345         * graphite-blocking.c: Likewise.
10346         * graphite-dependences.c: Likewise.
10347         * graphite-interchange.c: Likewise.
10348         * graphite-isl-ast-to-gimple.c: Likewise.
10349         * graphite-optimize-isl.c: Likewise.
10350         * graphite-poly.c: Likewise.
10351         * graphite-scop-detection.c: Likewise.
10352         * graphite-sese-to-poly.c: Likewise.
10353         * graphite.c: Likewise.
10354         * haifa-sched.c: Likewise.
10355         * hw-doloop.c: Likewise.
10356         * ifcvt.c: Likewise.
10357         * init-regs.c: Likewise.
10358         * internal-fn.c: Likewise.
10359         * ipa-chkp.c: Likewise.
10360         * ipa-comdats.c: Likewise.
10361         * ipa-cp.c: Likewise.
10362         * ipa-devirt.c: Likewise.
10363         * ipa-icf-gimple.c: Likewise.
10364         * ipa-icf.c: Likewise.
10365         * ipa-inline-analysis.c: Likewise.
10366         * ipa-inline-transform.c: Likewise.
10367         * ipa-inline.c: Likewise.
10368         * ipa-polymorphic-call.c: Likewise.
10369         * ipa-profile.c: Likewise.
10370         * ipa-prop.c: Likewise.
10371         * ipa-pure-const.c: Likewise.
10372         * ipa-ref.c: Likewise.
10373         * ipa-reference.c: Likewise.
10374         * ipa-split.c: Likewise.
10375         * ipa-utils.c: Likewise.
10376         * ipa-visibility.c: Likewise.
10377         * ipa.c: Likewise.
10378         * ira-build.c: Likewise.
10379         * ira-color.c: Likewise.
10380         * ira-conflicts.c: Likewise.
10381         * ira-costs.c: Likewise.
10382         * ira-emit.c: Likewise.
10383         * ira-lives.c: Likewise.
10384         * ira.c: Likewise.
10385         * jump.c: Likewise.
10386         * langhooks.c: Likewise.
10387         * lcm.c: Likewise.
10388         * loop-doloop.c: Likewise.
10389         * loop-init.c: Likewise.
10390         * loop-invariant.c: Likewise.
10391         * loop-iv.c: Likewise.
10392         * loop-unroll.c: Likewise.
10393         * lower-subreg.c: Likewise.
10394         * lra-assigns.c: Likewise.
10395         * lra-coalesce.c: Likewise.
10396         * lra-constraints.c: Likewise.
10397         * lra-eliminations.c: Likewise.
10398         * lra-lives.c: Likewise.
10399         * lra-remat.c: Likewise.
10400         * lra-spills.c: Likewise.
10401         * lra.c: Likewise.
10402         * lto-cgraph.c: Likewise.
10403         * lto-compress.c: Likewise.
10404         * lto-opts.c: Likewise.
10405         * lto-section-in.c: Likewise.
10406         * lto-section-out.c: Likewise.
10407         * lto-streamer-in.c: Likewise.
10408         * lto-streamer-out.c: Likewise.
10409         * lto-streamer.c: Likewise.
10410         * mcf.c: Likewise.
10411         * mode-switching.c: Likewise.
10412         * modulo-sched.c: Likewise.
10413         * omega.c: Likewise.
10414         * omp-low.c: Likewise.
10415         * optabs.c: Likewise.
10416         * opts-global.c: Likewise.
10417         * passes.c: Likewise.
10418         * plugin.c: Likewise.
10419         * postreload-gcse.c: Likewise.
10420         * postreload.c: Likewise.
10421         * predict.c: Likewise.
10422         * print-rtl.c: Likewise.
10423         * print-tree.c: Likewise.
10424         * profile.c: Likewise.
10425         * real.c: Likewise.
10426         * realmpfr.c: Likewise.
10427         * recog.c: Likewise.
10428         * ree.c: Likewise.
10429         * reg-stack.c: Likewise.
10430         * regcprop.c: Likewise.
10431         * reginfo.c: Likewise.
10432         * regrename.c: Likewise.
10433         * regstat.c: Likewise.
10434         * reload.c: Likewise.
10435         * reload1.c: Likewise.
10436         * reorg.c: Likewise.
10437         * resource.c: Likewise.
10438         * rtl-chkp.c: Likewise.
10439         * rtlanal.c: Likewise.
10440         * rtlhooks.c: Likewise.
10441         * sanopt.c: Likewise.
10442         * sched-deps.c: Likewise.
10443         * sched-ebb.c: Likewise.
10444         * sched-rgn.c: Likewise.
10445         * sched-vis.c: Likewise.
10446         * sdbout.c: Likewise.
10447         * sel-sched-dump.c: Likewise.
10448         * sel-sched-ir.c: Likewise.
10449         * sel-sched.c: Likewise.
10450         * sese.c: Likewise.
10451         * shrink-wrap.c: Likewise.
10452         * simplify-rtx.c: Likewise.
10453         * stack-ptr-mod.c: Likewise.
10454         * stmt.c: Likewise.
10455         * stor-layout.c: Likewise.
10456         * store-motion.c: Likewise.
10457         * stringpool.c: Likewise.
10458         * symtab.c: Likewise.
10459         * target-globals.c: Likewise.
10460         * targhooks.c: Likewise.
10461         * toplev.c: Likewise.
10462         * tracer.c: Likewise.
10463         * trans-mem.c: Likewise.
10464         * tree-affine.c: Likewise.
10465         * tree-browser.c: Likewise.
10466         * tree-call-cdce.c: Likewise.
10467         * tree-cfg.c: Likewise.
10468         * tree-cfgcleanup.c: Likewise.
10469         * tree-chkp-opt.c: Likewise.
10470         * tree-chkp.c: Likewise.
10471         * tree-chrec.c: Likewise.
10472         * tree-complex.c: Likewise.
10473         * tree-data-ref.c: Likewise.
10474         * tree-dfa.c: Likewise.
10475         * tree-diagnostic.c: Likewise.
10476         * tree-dump.c: Likewise.
10477         * tree-eh.c: Likewise.
10478         * tree-emutls.c: Likewise.
10479         * tree-if-conv.c: Likewise.
10480         * tree-inline.c: Likewise.
10481         * tree-into-ssa.c: Likewise.
10482         * tree-iterator.c: Likewise.
10483         * tree-loop-distribution.c: Likewise.
10484         * tree-nested.c: Likewise.
10485         * tree-nrv.c: Likewise.
10486         * tree-object-size.c: Likewise.
10487         * tree-outof-ssa.c: Likewise.
10488         * tree-parloops.c: Likewise.
10489         * tree-phinodes.c: Likewise.
10490         * tree-predcom.c: Likewise.
10491         * tree-pretty-print.c: Likewise.
10492         * tree-profile.c: Likewise.
10493         * tree-scalar-evolution.c: Likewise.
10494         * tree-sra.c: Likewise.
10495         * tree-ssa-address.c: Likewise.
10496         * tree-ssa-alias.c: Likewise.
10497         * tree-ssa-ccp.c: Likewise.
10498         * tree-ssa-coalesce.c: Likewise.
10499         * tree-ssa-copy.c: Likewise.
10500         * tree-ssa-copyrename.c: Likewise.
10501         * tree-ssa-dce.c: Likewise.
10502         * tree-ssa-dom.c: Likewise.
10503         * tree-ssa-dse.c: Likewise.
10504         * tree-ssa-forwprop.c: Likewise.
10505         * tree-ssa-ifcombine.c: Likewise.
10506         * tree-ssa-live.c: Likewise.
10507         * tree-ssa-loop-ch.c: Likewise.
10508         * tree-ssa-loop-im.c: Likewise.
10509         * tree-ssa-loop-ivcanon.c: Likewise.
10510         * tree-ssa-loop-ivopts.c: Likewise.
10511         * tree-ssa-loop-manip.c: Likewise.
10512         * tree-ssa-loop-niter.c: Likewise.
10513         * tree-ssa-loop-prefetch.c: Likewise.
10514         * tree-ssa-loop-unswitch.c: Likewise.
10515         * tree-ssa-loop.c: Likewise.
10516         * tree-ssa-math-opts.c: Likewise.
10517         * tree-ssa-operands.c: Likewise.
10518         * tree-ssa-phiopt.c: Likewise.
10519         * tree-ssa-phiprop.c: Likewise.
10520         * tree-ssa-pre.c: Likewise.
10521         * tree-ssa-propagate.c: Likewise.
10522         * tree-ssa-reassoc.c: Likewise.
10523         * tree-ssa-sccvn.c: Likewise.
10524         * tree-ssa-scopedtables.c: Likewise.
10525         * tree-ssa-sink.c: Likewise.
10526         * tree-ssa-strlen.c: Likewise.
10527         * tree-ssa-structalias.c: Likewise.
10528         * tree-ssa-tail-merge.c: Likewise.
10529         * tree-ssa-ter.c: Likewise.
10530         * tree-ssa-threadedge.c: Likewise.
10531         * tree-ssa-threadupdate.c: Likewise.
10532         * tree-ssa-uncprop.c: Likewise.
10533         * tree-ssa-uninit.c: Likewise.
10534         * tree-ssa.c: Likewise.
10535         * tree-ssanames.c: Likewise.
10536         * tree-stdarg.c: Likewise.
10537         * tree-streamer-in.c: Likewise.
10538         * tree-streamer-out.c: Likewise.
10539         * tree-streamer.c: Likewise.
10540         * tree-switch-conversion.c: Likewise.
10541         * tree-tailcall.c: Likewise.
10542         * tree-vect-data-refs.c: Likewise.
10543         * tree-vect-generic.c: Likewise.
10544         * tree-vect-loop-manip.c: Likewise.
10545         * tree-vect-loop.c: Likewise.
10546         * tree-vect-patterns.c: Likewise.
10547         * tree-vect-slp.c: Likewise.
10548         * tree-vect-stmts.c: Likewise.
10549         * tree-vectorizer.c: Likewise.
10550         * tree-vrp.c: Likewise.
10551         * tree.c: Likewise.
10552         * tsan.c: Likewise.
10553         * ubsan.c: Likewise.
10554         * valtrack.c: Likewise.
10555         * value-prof.c: Likewise.
10556         * var-tracking.c: Likewise.
10557         * varasm.c: Likewise.
10558         * varpool.c: Likewise.
10559         * vmsdbgout.c: Likewise.
10560         * vtable-verify.c: Likewise.
10561         * web.c: Likewise.
10562         * wide-int.cc: Likewise.
10563         * xcoffout.c: Likewise.
10564         * config/aarch64/aarch64-builtins.c: Likewise.
10565         * config/aarch64/aarch64.c: Likewise.
10566         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10567         * config/alpha/alpha.c: Likewise.
10568         * config/arc/arc.c: Likewise.
10569         * config/arm/aarch-common.c: Likewise.
10570         * config/arm/arm-builtins.c: Likewise.
10571         * config/arm/arm-c.c: Likewise.
10572         * config/arm/arm.c: Likewise.
10573         * config/avr/avr-c.c: Likewise.
10574         * config/avr/avr-log.c: Likewise.
10575         * config/avr/avr.c: Likewise.
10576         * config/bfin/bfin.c: Likewise.
10577         * config/c6x/c6x.c: Likewise.
10578         * config/cr16/cr16.c: Likewise.
10579         * config/cris/cris.c: Likewise.
10580         * config/darwin-c.c: Likewise.
10581         * config/darwin.c: Likewise.
10582         * config/epiphany/epiphany.c: Likewise.
10583         * config/epiphany/mode-switch-use.c: Likewise.
10584         * config/epiphany/resolve-sw-modes.c: Likewise.
10585         * config/fr30/fr30.c: Likewise.
10586         * config/frv/frv.c: Likewise.
10587         * config/ft32/ft32.c: Likewise.
10588         * config/h8300/h8300.c: Likewise.
10589         * config/i386/i386-c.c: Likewise.
10590         * config/i386/i386.c: Likewise.
10591         * config/i386/msformat-c.c: Likewise.
10592         * config/i386/winnt-cxx.c: Likewise.
10593         * config/i386/winnt-stubs.c: Likewise.
10594         * config/i386/winnt.c: Likewise.
10595         * config/ia64/ia64-c.c: Likewise.
10596         * config/ia64/ia64.c: Likewise.
10597         * config/iq2000/iq2000.c: Likewise.
10598         * config/lm32/lm32.c: Likewise.
10599         * config/m32c/m32c-pragma.c: Likewise.
10600         * config/m32c/m32c.c: Likewise.
10601         * config/m32r/m32r.c: Likewise.
10602         * config/m68k/m68k.c: Likewise.
10603         * config/mcore/mcore.c: Likewise.
10604         * config/mep/mep-pragma.c: Likewise.
10605         * config/mep/mep.c: Likewise.
10606         * config/microblaze/microblaze-c.c: Likewise.
10607         * config/microblaze/microblaze.c: Likewise.
10608         * config/mips/mips.c: Likewise.
10609         * config/mmix/mmix.c: Likewise.
10610         * config/mn10300/mn10300.c: Likewise.
10611         * config/moxie/moxie.c: Likewise.
10612         * config/msp430/msp430-c.c: Likewise.
10613         * config/msp430/msp430.c: Likewise.
10614         * config/nds32/nds32-cost.c: Likewise.
10615         * config/nds32/nds32-fp-as-gp.c: Likewise.
10616         * config/nds32/nds32-intrinsic.c: Likewise.
10617         * config/nds32/nds32-isr.c: Likewise.
10618         * config/nds32/nds32-md-auxiliary.c: Likewise.
10619         * config/nds32/nds32-memory-manipulation.c: Likewise.
10620         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10621         * config/nds32/nds32-predicates.c: Likewise.
10622         * config/nds32/nds32.c: Likewise.
10623         * config/nios2/nios2.c: Likewise.
10624         * config/nvptx/nvptx.c: Likewise.
10625         * config/pa/pa.c: Likewise.
10626         * config/pdp11/pdp11.c: Likewise.
10627         * config/rl78/rl78-c.c: Likewise.
10628         * config/rl78/rl78.c: Likewise.
10629         * config/rs6000/rs6000-c.c: Likewise.
10630         * config/rs6000/rs6000.c: Likewise.
10631         * config/rx/rx.c: Likewise.
10632         * config/s390/s390-c.c: Likewise.
10633         * config/s390/s390.c: Likewise.
10634         * config/sh/sh-c.c: Likewise.
10635         * config/sh/sh-mem.cc: Likewise.
10636         * config/sh/sh.c: Likewise.
10637         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10638         * config/sh/sh_treg_combine.cc: Likewise.
10639         * config/sol2-c.c: Likewise.
10640         * config/sol2-cxx.c: Likewise.
10641         * config/sol2-stubs.c: Likewise.
10642         * config/sol2.c: Likewise.
10643         * config/sparc/sparc-c.c: Likewise.
10644         * config/sparc/sparc.c: Likewise.
10645         * config/spu/spu-c.c: Likewise.
10646         * config/spu/spu.c: Likewise.
10647         * config/stormy16/stormy16.c: Likewise.
10648         * config/tilegx/mul-tables.c: Likewise.
10649         * config/tilegx/tilegx-c.c: Likewise.
10650         * config/tilegx/tilegx.c: Likewise.
10651         * config/tilepro/mul-tables.c: Likewise.
10652         * config/tilepro/tilepro-c.c: Likewise.
10653         * config/tilepro/tilepro.c: Likewise.
10654         * config/v850/v850-c.c: Likewise.
10655         * config/v850/v850.c: Likewise.
10656         * config/vax/vax.c: Likewise.
10657         * config/visium/visium.c: Likewise.
10658         * config/vms/vms-c.c: Likewise.
10659         * config/vms/vms.c: Likewise.
10660         * config/vxworks.c: Likewise.
10661         * config/xtensa/xtensa.c: Likewise.
10663 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
10665         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
10666         Remove operand constraints.  Change operand 2 predicate to
10667         nonmemory operand.  Limit const_int values to mode bitsize.  Only
10668         allow const_int values less than 32 when optimizing for size.
10669         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
10670         Remove operand constraints.
10671         (*bt<mode>): Use SImode for const_int values less than 32.
10672         (regmode): Remove mode attribute.
10674 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
10676         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10677         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
10678           moxie_legitimate_address_p): New functions.
10679           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10681 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10683         PR tree-optimization/66642
10684         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
10685         header comment.  Rename split_edge variable to edge_at_split.  Split
10686         exit edge to create new loop exit bb.  Insert loop exit phis in new
10687         loop exit bb.
10689 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10691         * tree-cfg.c (get_virtual_phi): New function.
10692         * tree-cfg.h (get_virtual_phi): Declare.
10693         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
10694         (rewrite_virtuals_into_loop_closed_ssa): New function.
10695         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
10696         Declare.
10697         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
10698         (transform_to_exit_first_loop_alt): Use
10699         rewrite_virtuals_into_loop_closed_ssa.
10701 2015-07-07  Richard Biener  <rguenther@suse.de>
10703         * fold-const.c (fold_binary_loc): Move
10704         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
10705         * match.pd: ... here.
10706         Add (X * C1) % C2 -> 0 simplification pattern derived from
10707         extract_muldiv_1.
10709 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10711         PR target/66780
10712         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
10713         change for target/65249.
10715 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
10717         * symtab.c (address_matters_1): Fix typo in comment above.
10718         (can_increase_alignment_p): Likewise.
10720 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10722         * function.c (free_after_compilation): Clear PROP_cfg in
10723         f->curr_properties.
10725 2015-07-07  Richard Biener  <rguenther@suse.de>
10727         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
10728         add which use to.
10729         (add_control_edge): Remove excessive vertical space in dumping.
10730         (process_ssa_edge_worklist): Simulate at most one statement and
10731         return whether we did.  Do not simulate PHIs if they are in a
10732         BB not yet simulated.
10733         (ssa_propagate): Adjust to always drain the BB worklist whenever
10734         a BB is available there, likewise the VARYING edges list before
10735         the interesting edge list.
10737 2015-07-07  Christian Bruel  <christian.bruel@st.com>
10739         PR target/52144
10740         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
10742 2015-07-07  Richard Biener  <rguenther@suse.de>
10744         PR middle-end/66739
10745         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
10746         A - B.
10748 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
10750         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
10751         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
10752         Copy operand 0 to a temporary if !ext_register_operand.  Remove
10753         ancient extract_bit_field workaround.
10754         (insv<mode>_1): Rename from mov<mode>_insv_1.
10755         (*insvqi): Rename from *movqi_insv_2.
10756         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
10757         for renamed insvsi_1.
10758         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
10760 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
10762         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
10763         call to nvptx_reorg_subreg.
10765 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
10767         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
10768         * graphite-dependencies.c, graphite-interchange.c,
10769         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
10770         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
10771         Likewise.
10773 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
10775         * match.pd: Remove element_mode inside HONOR_*.
10776         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
10777         (~X | X -> -1, ~X ^ X -> -1): Merge.
10778         * tree.c (build_each_one_cst): New function.
10779         * tree.h (build_each_one_cst): Likewise.
10781 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10783         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10784         PROCESSOR_IAMCU.
10786 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
10788         * config.gcc <mips*-*-*>: Add fused-madd.opt.
10789         * config/mips/mips.opt (mfused-madd): Remove.
10790         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
10791         * config/mips/mips.h (TARGET_MIPS8000): New.
10792         (ISA_HAS_FP_MADD4_MSUB4): Remove.
10793         (ISA_HAS_FP_MADDF_MSUBF): Remove.
10794         (ISA_HAS_FP_MADD3_MSUB3): Remove.
10795         (ISA_HAS_NMADD4_NMSUB4): Remove.
10796         (ISA_HAS_NMADD3_NMSUB3): Remove.
10797         (ISA_HAS_FUSED_MADD4): New.
10798         (ISA_HAS_UNFUSED_MADD4): New.
10799         (ISA_HAS_FUSED_MADDF): New.
10800         (ISA_HAS_FUSED_MADD3): New.
10801         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
10802         (*fma<mode>4_madd3) New.
10803         (*fma<mode>4_madd4) New.
10804         (*fma<mode>4_maddf) New.
10805         (fms<mode>4) New.
10806         (*fms<mode>4_msub3) New.
10807         (*fms<mode>4_msub4) New.
10808         (fnma<mode>4) New.
10809         (*fnma<mode>4_nmadd3) New.
10810         (*fnma<mode>4_nmadd4) New.
10811         (fnms<mode>4) New.
10812         (*fnms<mode>4_nmsub3) New.
10813         (*fnms<mode>4_nmsub4) New.
10814         (*madd4<mode>) Modify to be unfused only.
10815         (*msub4<mode>) Modify to be unfused only.
10816         (*nmadd4<mode>) Modify to be unfused only.
10817         (*nmsub4<mode>) Modify to be unfused only.
10818         (*madd3<mode>) Remove.
10819         (*msub3<mode>) Remove.
10820         (*nmadd3<mode>) Remove.
10821         (*nmsub3<mode>) Remove.
10822         (*nmadd3<mode>_fastmath) Remove.
10823         (*nmsub3<mode>_fastmath) Remove.
10824         (*nmadd4<mode>_fastmath) Update condition.
10825         (*nmsub4<mode>_fastmath) Update condition.
10827 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
10829         PR target/65956
10830         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
10831         alignment attribute, exploring one level down for records and arrays.
10833 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
10835         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
10836         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
10837         Copy operand 1 to a temporary if !ext_register_operand.  Remove
10838         ancient extract_bit_field workaround.
10839         (*extv<mode>): Rename from *mov<mode>_extv_1.
10840         (*extvqi): Rename from *movqi_extv_1.
10841         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
10842         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
10843         to a temporary if !ext_register_operand.  Remove ancient
10844         extract_bit_field workaround.
10845         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
10846         (*extzvqi): Rename from *movqi_extzv_2.
10847         (*testqi_ext_3): Remove modes from const_int_operand predicated
10848         operands.  Add "n" constraint.
10849         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
10850         operand.  Add "J" constraint.
10851         (*btsq, *btrq, *btcq peephole2s): Remove mode from
10852         const_0_to_63 predicated operand.
10853         (regmode): New insn attribute.
10854         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
10855         to nonmemory_operand.  Use regmode insn attribute.
10856         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
10857         (*jcc_bt<mode>_mask): Remove mode from operand 3.
10858         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
10859         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
10860         operands.  Use "N" constraint instead of "n".
10862 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
10864         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
10866 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10868         PR target/66749
10869         * config/i386/i386.c (iamcu_cost): New.
10870         (m_IAMCU): Likewise.
10871         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
10872         (processor_target_table): Add an entry for "iamcu".
10873         (processor_alias_table): Likewise.
10874         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
10875         (ix86_adjust_cost): Likewise.
10876         (ia32_multipass_dfa_lookahead): Likewise.
10877         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
10878         * config/i386/x86-tune.def: Updated for m_IAMCU.
10880 2015-07-06  Richard Biener  <rguenther@suse.de>
10882         PR tree-optimization/66772
10883         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
10884         values are available in the PHI node BB when there are
10885         still unexecutable edges.
10887 2015-07-06  Richard Biener  <rguenther@suse.de>
10889         PR tree-optimization/66767
10890         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
10891         Make sure to build the alignment test on a SSA name without
10892         final alignment info valid only if the alignment test
10893         evaluates to true.
10895 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10897         PR target/66620
10898         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
10899         loop start when inserting LSETUP.
10901 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10903         PR target/53383
10904         * config/i386/i386.c (ix86_option_override_internal): Allow
10905         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
10907 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10909         * read-md.c (decimal_string): Rename to ...
10910         (md_decimal_string): ... this.
10911         (handle_enum): Reflect this.
10913 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10915         PR target/66731
10916         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
10918 2015-07-06  Richard Biener  <rguenther@suse.de>
10920         PR middle-end/66759
10921         * match.pd: Add missing constraint of y to REAL_CST in
10922         REAL_CST - x CMP y to y - CST CMP x simplification.
10924 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
10926         PR tree-optimization/66757
10927         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
10929 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
10930             Sandra Loosemore <sandra@codesourcery.com>
10932         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
10933         Delete extern declaration.
10934         (gprel_constant_p): Add extern declaration.
10935         * config/nios2/constraints.md ("S"): Use gprel_constant_p
10936         instead of nios2_symbol_ref_in_small_data_p.
10937         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
10938         (nios2_symbol_ref_in_small_data_p): Make static.
10939         (gprel_constant_p): Make non-static.
10941 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
10943         * doc/fragments.texi (Target Fragment): Convert debian.org
10944         link to use https.
10945         * doc/install.texi (Configuration): Ditto.
10947 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
10949         PR tree-optimization/66718
10950         * tree-vect-stmts.c (vectorizable_call): Replace uses of
10951         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
10953         PR tree-optimization/66718
10954         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
10955         vectorizable_load, vectorizable_condition): Move vectype,
10956         nunits, ncopies computation after checking what kind of statement
10957         stmt is.
10959 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10961         * target-insns.def (extv, extzv, insv): New targetm instruction
10962         patterns.
10963         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
10964         interface.
10965         * recog.c (simplify_while_replacing): Likewise.
10967 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10969         * target-insns.def (doloop_begin, doloop_end): New targetm
10970         instruction patterns.
10971         * loop-init.c: Include target.h.
10972         (pass_loop2::gate): Use the new targetm patterns instead of
10973         HAVE_*/gen_* interface.
10974         (pass_rtl_doloop::gate): Likewise.
10975         (pass_rtl_doloop::execute): Remove preprocessor condition.
10976         * hw-doloop.c: Build unconditionally.
10977         * loop-doloop.c: Likewise.
10978         (doloop_optimize): Use the new targetm patterns instead of
10979         HAVE_*/gen_* interface.
10980         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
10981         * modulo-sched.c (doloop_register_get): Likewise.
10983 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10985         * target-insns.def (clear_cache): New targetm instruction pattern.
10986         * builtins.c (expand_builtin___clear_cache): Use it instead of
10987         HAVE_*/gen_* interface.
10989 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
10991         * target-insns.def (allocate_stack, check_stack, probe_stack)
10992         (probe_stack_address, split_stack_prologue, split_stack_space_check):
10993         New targetm instruction patterns.
10994         * explow.c (allocate_dynamic_stack_space): Use them instead of
10995         HAVE_*/gen_* interface.
10996         (emit_stack_probe): Likewise.
10997         (probe_stack_range): Likewise.
10998         * function.c (thread_prologue_and_epilogue_insns): Likewise.
11000 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11002         * target-insns.def (stack_protect_set, stack_protect_test): New
11003         targetm instruction patterns.
11004         * cfgexpand.c (stack_protect_prologue): Use them instead of
11005         HAVE_*/gen_* interface.
11006         * function.c (stack_protect_epilogue): Likewise.
11008 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11010         * expr.h (gen_move_insn_uncast): Delete.
11011         * expr.c (gen_move_insn_uncast): Delete.
11013 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11015         * target-insns.def (restore_stack_block, restore_stack_function)
11016         (restore_stack_nonlocal, save_stack_block, save_stack_function)
11017         (save_stack_nonlocal): New targetm instruction patterns.
11018         * builtins.c (expand_builtin_apply): Use them instead of
11019         HAVE_*/gen_* interface.
11020         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
11022 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11024         * target-insns.def (trap): New targetm instruction pattern.
11025         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
11026         interface.
11027         * explow.c (allocate_dynamic_stack_space): Likewise.
11028         * ifcvt.c (find_if_header): Likewise.
11030 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11032         * target-insns.def (prefetch): New targetm instruction pattern.
11033         * tree-ssa-loop-prefetch.c: Include targeth.
11034         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
11035         of HAVE_*/gen_* interface.
11036         * builtins.c (expand_builtin_prefetch): Likewise.
11037         * toplev.c (process_options): Likewise.
11039 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11041         * target-insns.def (untyped_call, untyped_return): New targetm
11042         instruction patterns.
11043         * builtins.c (expand_builtin_apply): Use them instead of
11044         HAVE_*/gen_* interface.
11045         (result_vector): Define unconditionally.
11047 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11049         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
11050         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
11051         (nonlocal_goto_receiver): New targetm instruction patterns.
11052         * builtins.c (expand_builtin_setjmp_setup): Use them instead
11053         of HAVE_*/gen_* interface.
11054         (expand_builtin_setjmp_receiver): Likewise.
11055         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11056         * except.c (expand_dw2_landing_pad_for_region): Likewise.
11058 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
11060         * target.def: Add code_for_* hooks.
11061         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
11062         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
11063         * target-insns.def (casesi, tablejump): New targetm instruction
11064         patterns.
11065         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
11066         (do_tablejump): Likewise.
11067         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
11068         (expand_sjlj_dispatch_table): Likewise.
11069         * targhooks.c (default_case_values_threshold): Likewise.
11071 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
11073         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
11074         Use rtx_insn * instead of rtx.
11075         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
11076         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
11077         (nios2_call_tls_get_addr): Likewise.
11078         (nios2_emit_expensive_div): Likewise.
11079         (nios2_emit_move_sequence): Change return type to bool.
11080         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
11081         Change return type to bool.
11083 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11085         PR target/66747
11086         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
11088 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
11090         PR target/66114
11091         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
11092         of register_operand.  Remove constraint.
11094 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
11096         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
11097         the first argument.
11099 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
11101         * attribs.c (decl_attributes): Guard inform with the return value
11102         of the preceding warning.
11104 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
11106         * doc/invoke.texi (moverride): Move to correct section.
11108 2015-07-03  Richard Biener  <rguenther@suse.de>
11110         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
11111         Copy from tree.c
11112         (dt_operand::gen_gimple_expr): After valueizing operands
11113         re-canonicalize operand order for commutative tree codes.
11115 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
11117         PR target/66746.
11118         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
11119         is defined.
11120         (__crc32w): Likewise.
11121         (__crc32d): Likewise.
11122         (__rdpmc): Likewise.
11123         (__rdtscp): Likewise.
11124         (_rdpmc): Likewise.
11125         (_rdtscp): Likewise.
11126         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
11127         is defined.
11129 2015-07-03  Richard Biener  <rguenther@suse.de>
11131         * fold-const.c (fold_mathfn_compare): Remove.
11132         (fold_inf_compare): Likewise.
11133         (fold_comparison): Move floating point comparison simplifications...
11134         * match.pd: ... to patterns here.  Introduce simple_comparisons
11135         operator list and use it for patterns formerly in fold_comparison.
11137 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
11139         PR tree-optimization/66119
11140         * toplev.c (process_options): Don't set up default values for
11141         the sra_max_scalarization_size_{speed,size} parameters.
11142         * tree-sra (analyze_all_variable_accesses): If no values
11143         have been set for the sra_max_scalarization_size_{speed,size}
11144         parameters, call get_move_ratio to get target defaults.
11146 2015-07-03  Richard Biener  <rguenther@suse.de>
11148         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
11149         * match.pd: ... here.
11151 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
11153         PR target/37072
11154         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
11155         is not actually the default on FreeBSD.
11157 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11159         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
11160         definition.
11161         (CMPGE_8HI): Likewise.
11162         (CMPGE_4SI): Likewise.
11163         (CMPGE_2DI): Likewise.
11164         (CMPGE_U16QI): Likewise.
11165         (CMPGE_U8HI): Likewise.
11166         (CMPGE_U4SI): Likewise.
11167         (CMPGE_U2DI): Likewise.
11168         (CMPLE_16QI): Likewise.
11169         (CMPLE_8HI): Likewise.
11170         (CMPLE_4SI): Likewise.
11171         (CMPLE_2DI): Likewise.
11172         (CMPLE_U16QI): Likewise.
11173         (CMPLE_U8HI): Likewise.
11174         (CMPLE_U4SI): Likewise.
11175         (CMPLE_U2DI): Likewise.
11176         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11177         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
11178         ALTIVEC_BUILTIN_VEC_CMPLE.
11179         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
11180         floating-point vector modes.
11181         (vector_nlt<mode>): New define_expand.
11182         (vector_nltu<mode>): Likewise.
11183         (vector_ngt<mode>): Likewise.
11184         (vector_ngtu<mode>): Likewise.
11186 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
11188         PR rtl-optimization/66706
11189         * combine.c (make_compound_operation): If an AND of SUBREG of
11190         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
11192 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
11194         * tree-pass.h (make_pass_ch_vect): New.
11195         * passes.def: Add pass_ch_vect just before pass_if_conversion.
11197         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
11198         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
11199         make_pass_ch_vect): New.
11200         (pass_ch): Extend ch_base.
11202         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
11203         (ch_base::copy_headers): ...here.
11205 2015-07-02  Richard Biener  <rguenther@suse.de>
11207         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
11208         * fold-const.c (get_pointer_modulus_and_residue): Remove.
11209         (fold_binary_loc): Implement (T)ptr & CST in terms of
11210         get_pointer_alignment_1.
11211         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
11212         Make sure to build the alignment test on a SSA name without
11213         final alignment info valid only after the prologue.
11215 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
11217         * config/cris/cris.md ("epilogue"): Remove condition.
11218         ("prologue"): Ditto.
11220 2015-07-02  Richard Biener  <rguenther@suse.de>
11222         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
11223         parameter to record a condition that is false.
11224         (record_conditions): When recording an extra NE_EXPR that is
11225         true also record a EQ_EXPR that is false.
11227 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
11229         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
11230         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
11231         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
11232         (set_iv, find_interesting_uses_address, add_candidate_1): New
11233         argument to alloc_iv.
11234         (find_interesting_uses_op, find_interesting_uses_cond): Don't
11235         duplicate struct iv.
11236         (free_loop_data): Don't free struct iv explicitly.
11237         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
11239 2015-07-01  DJ Delorie  <dj@redhat.com>
11241         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
11242         (LIB_SPEC): Add.
11243         (SUPPORTS_DISCRIMINATOR): Define.
11245 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
11247         PR bootstrap/66685
11248         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
11249         there are no CALLs in the same pattern.
11251 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11253         PR rtl-optimization/61047
11254         * rtlanal.c (get_initial_register_offset): New function.
11255         (rtx_addr_can_trap_p_1): Check offsets of stack references.
11257 2015-07-01  Richard Biener  <rguenther@suse.de>
11259         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
11260         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11261         ~X CMP C -> X CMP' ~C to ...
11262         * match.pd: ... patterns here.
11264 2015-07-01  Nick Clifton  <nickc@redhat.com>
11266         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
11267         a 16-bit value into a 20-bit memory slot.
11269 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
11271         * doc/sourcebuild.texi (AArch64-specific attributes): Document
11272         "aarch64_tiny", "aarch64_small", "aarch64_large",
11273         "aarch64_little_endian", "aarch64_big_endian".
11275 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
11277         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
11278         Document "aarch64_small_fpic".
11280 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
11282         * configure.ac: Add check for aarch64 assembler -fpic relocation
11283         modifier support.
11284         * configure: Regenerate.
11285         * config.in: Regenerate.
11286         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
11287         to -fPIC if not support of -fpic relocation modifier in assembler.
11289 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
11291         PR bootstrap/66685
11292         * rtl.c (classify_insn): Handle returns in PARALLELs.
11294 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
11296         PR middle-end/66633
11297         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
11298         to true if the function is nested and if not optimizing.
11299         (convert_local_omp_clauses): Initialize need_frame to true if the
11300         function contains nested functions and if not optimizing.
11302 2015-07-01  Richard Biener  <rguenther@suse.de>
11304         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
11305         (X & Y) ^ Y -> ~X & Y transforms to ...
11306         * match.pd: ... here.
11308 2015-07-01  Richard Biener <rguenther@suse.de>
11310         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
11311         of converts to avoid uninteresting noise from the conversion
11312         simplifying patterns.
11314 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
11316         * config/c6x/c6x.c (try_rename_operands): Do not depend on
11317         gcc_assert evaluating its argument for side-effect.
11319 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11321         PR target/64833
11322         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
11323         flag_pic is set.
11325 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11327         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
11328         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11329         (hash_scc): Add this_ref_p and ref_p parameters and pass them
11330         to the inner DFS walk.
11332 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
11334         * target-insns.def (jump): New targetm instruction pattern.
11335         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
11336         instead of gen_jump.
11337         (fix_up_crossing_landing_pad): Likewise.
11338         (add_labels_and_missing_jumps): Likewise.
11339         (fix_crossing_conditional_branches): Likewise.
11340         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11341         (force_nonfallthru_and_redirect): Likewise.
11342         * cse.c (cse_insn): Likewise.
11343         * expmed.c (expand_divmod): Likewise.
11344         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
11345         * haifa-sched.c (init_before_recovery): Likewise.
11346         (sched_create_recovery_edges): Likewise.
11347         * ifcvt.c (find_cond_trap): Likewise.
11348         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
11349         (expand_float, expand_fix): Likewise.
11350         * stmt.c (emit_jump): Likewise.
11352 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
11354         * defaults.h (HAVE_load_multiple, gen_load_multiple)
11355         (HAVE_store_multiple, gen_store_multiple): Delete.
11356         * target-insns.def (load_multiple, store_multiple): New targetm
11357         instruction patterns.
11358         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
11359         of HAVE_*/gen_* interface.
11361 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
11363         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
11364         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
11365         (gen_mem_signal_fence): Delete.
11366         * target-insns.def (mem_signal_fence, mem_thread_fence)
11367         (memory_barrier): New targetm instruction patterns.
11368         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
11369         interface.
11370         (expand_mem_signal_fence): Likewise.
11372 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
11374         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
11375         * target-insns.def (epilogue, prologue, sibcall_prologue): New
11376         targetm instruction patterns.
11377         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
11378         interface.
11379         * calls.c (expand_call): Likewise.
11380         * cfgrtl.c (cfg_layout_finalize): Likewise.
11381         * df-scan.c (df_get_entry_block_def_set): Likewise.
11382         (df_get_exit_block_use_set): Likewise.
11383         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
11384         * final.c (final_start_function): Likewise.
11385         * function.c (thread_prologue_and_epilogue_insns): Likewise.
11386         (reposition_prologue_and_epilogue_notes): Likewise.
11387         * reorg.c (find_end_label): Likewise.
11388         * toplev.c (process_options): Likewise.
11390 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
11392         * typed-splay-tree.h: New file.
11394 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
11396         PR debug/66691
11397         * lra-int.h (lra_substitute_pseudo): Add a parameter.
11398         (lra_substitute_pseudo_within_insn): Ditto.
11399         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
11400         of constant.
11401         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
11402         to lra_substitute_pseudo.
11403         * lra-lives.c (process_bb_lives): Add an argument to
11404         lra_substitute_pseudo_within_insn call.
11405         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
11406         argument to lra_substitute_pseudo and
11407         lra_substitute_pseudo_within_insn calls.
11408         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
11410 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
11412         * configure: Regenerated.
11414 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
11416         * config.gcc: Support i[34567]86-*-elfiamcu target.
11417         * config/i386/iamcu.h: New.
11418         * config/i386/i386.opt: Add -miamcu.
11419         * doc/invoke.texi: Document -miamcu.
11420         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
11421         off x87/MMX/SSE/AVX codegen for -miamcu.
11422         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11423         __iamcu/__iamcu__ for -miamcu.
11424         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
11425         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
11426         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
11427         * config/i386/i386.c (ix86_option_override_internal): Ignore and
11428         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
11429         MCU by default.  Default long double to 64-bit for Intel MCU.
11430         Turn on -freg-struct-return for Intel MCU.  Issue an error when
11431         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
11432         AVX is turned on.
11433         (function_arg_advance_32): Pass value whose size is no larger
11434         than 8 bytes in registers for Intel MCU.
11435         (function_arg_32): Likewise.
11436         (ix86_return_in_memory): Return value whose size is no larger
11437         than 8 bytes in registers for Intel MCU.
11438         (iamcu_alignment): New function.
11439         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
11440         true.
11441         (ix86_local_alignment): Don't increase alignment for Intel MCU.
11442         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
11443         true.
11445 2015-06-30  Marek Polacek  <polacek@redhat.com>
11447         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
11448         both operands of the resulting expression.
11450         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
11451         the final expression with the operand's type and then convert
11452         it to the type of the expression.
11454 2015-06-30  Richard Biener  <rguenther@suse.de>
11456         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
11457         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
11458         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
11459         * match.pd: ... to patterns here.
11461 2015-06-30  Richard Biener  <rguenther@suse.de>
11463         PR tree-optimization/66704
11464         * tree-vect-data-refs.c (vect_setup_realignment): Use
11465         make_ssa_name for non-SSA name source.
11467 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
11469         PR middle-end/66702
11470         * omp-low.c (simd_clone_adjust): Handle addressable linear
11471         or uniform parameters or non-gimple type uniform parameters.
11473 2015-06-30  Richard Biener  <rguenther@suse.de>
11475         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
11476         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
11477         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
11478         * match.pd: ... here.
11479         Add a few cases of A - B -> A + (-B) when B "easily" negates.
11480         Move (x & y) | x -> x and friends before
11481         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
11483 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11485         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
11486         -mfix-ut699 is not specified.
11487         (leon3_load): Rename into...
11488         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
11489         is specified.
11491 2015-06-30  Marek Polacek  <polacek@redhat.com>
11493         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
11494         * match.pd: ... here.
11496 2015-06-30  Richard Biener  <rguenther@suse.de>
11498         * target-insns.def (canonicalize_funcptr_for_compare): Add.
11499         * fold-const.c (build_range_check): Replace uses of
11500         HAVE_canonicalize_funcptr_for_compare.
11501         (fold_widened_comparison): Likewise.
11502         (fold_sign_changed_comparison): Likewise.
11503         * dojump.c: Include "target.h".
11504         (do_compare_and_jump): Replace uses of
11505         HAVE_canonicalize_funcptr_for_compare and
11506         gen_canonicalize_funcptr_for_compare.
11507         * expr.c (do_store_flag): Likewise.
11509 2015-06-30  Tom de Vries  <tom@codesourcery.com>
11511         PR tree-optimization/66652
11512         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
11513         max_loop_iterations to determine if nit + 1 overflows.
11515 2015-06-30  Richard Biener  <rguenther@suse.de>
11517         * tree-vrp.c (register_edge_assert_for_2): Also register
11518         asserts for dominating conversion results.
11520 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
11522         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
11523         field in struct iv.
11525 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
11527         PR target/66509
11528         * configure.ac: Fix filds and fildq test for 64-bit.
11529         * configure: Regenerated.
11531 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
11533         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
11534         (nvptx_reorg): Here.  Keep the non-subreg pieces.
11536 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
11538         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
11539         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11541 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
11543         * config/i386/i386.md (*jcc_1): Use %! in asm template.
11544         Set attribute "length_nobnd" instead of "length".
11545         (*jcc_2): Ditto.
11546         (jump): Ditto.
11547         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
11549 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
11551         * config/nios2/nios2.c (nios2_delegitimize_address): Make
11552         assert less restrictive.
11554 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11556         PR fortran/66605
11557         * cgraphunit.c (cgraph_node::finalize_function): Do not call
11558         do_warn_unused_parameter.
11559         * function.c (do_warn_unused_parameter): Move from here.
11560         * function.h (do_warn_unused_parameter): Do not declare.
11562 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
11564         PR target/65697
11565         * gcc.target/arm/armv-sync-comp-swap.c: New.
11566         * gcc.target/arm/armv-sync-op-acquire.c: New.
11567         * gcc.target/arm/armv-sync-op-full.c: New.
11568         * gcc.target/arm/armv-sync-op-release.c: New.
11570 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
11572         PR target/65697
11573         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
11574         initial acquire barrier with final barrier.
11576 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
11578         PR target/65697
11579         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
11580         initial acquire barrier with final barrier.
11582 2015-06-29  Richard Henderson  <rth@redhat.com>
11584         * config/i386/constraints.md (Bf): New constraint.
11585         * config/i386/i386-c.c (ix86_target_macros): Define
11586         __GCC_ASM_FLAG_OUTPUTS__.
11587         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
11588         as flags outputs.
11589         * doc/extend.texi (FlagOutputOperands): Document them.
11591 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
11593         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
11594         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
11595         unspec name.
11596         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
11597         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
11598         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
11599         (aarch64_symbol_context): Ditto.
11600         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
11601         and use new pattern name.
11602         (aarch64_expand_mov_immediate): Ditto.
11603         (aarch64_print_operand): Ditto.
11604         (aarch64_classify_tls_symbol): Ditto.
11606 2015-06-29  Marek Polacek  <polacek@redhat.com>
11607             Marc Glisse  <marc.glisse@inria.fr>
11609         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
11610         * match.pd: ... pattern here.
11612 2015-06-29  Tom de Vries  <tom@codesourcery.com>
11614         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
11615         function structure.
11617 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
11619         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
11620         feature description, split out the native option, add a link to
11621         the feature documentation, rearrange and slightly rewrite text.
11622         (Aarch64 options, -mcpu): Likewise.
11623         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
11624         +rdma implies Adv. SIMD.
11626 2015-06-29  Marek Polacek  <polacek@redhat.com>
11628         PR c/66322
11629         * function.c (stack_protect_epilogue): Remove a cast to int.
11630         * doc/invoke.texi: Update -Wswitch-bool description.
11632 2015-06-29  Richard Biener  <rguenther@suse.de>
11634         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
11635         * fold-const.c (fold_binary_loc): Move &A - &B simplification
11636         via ptr_difference_const ...
11637         * match.pd: ... here.
11638         When matching (X ^ Y) == Y also match with swapped operands.
11640 2015-06-29  Richard Biener  <rguenther@suse.de>
11642         * lto-streamer.h (LTO_major_version): Bump to 5.
11644 2015-06-29  Richard Biener  <rguenther@suse.de>
11646         PR tree-optimization/66677
11647         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
11648         STMT_VINFO_VEC_STMT clobbering less strict.
11650 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
11652         PR middle-end/64130
11653         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
11654         division, compute max and min when value ranges for dividend and
11655         divisor are available.
11657 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
11658             Sandra Loosemore <sandra@codesourcery.com>
11660         * regrename.h (regrename_do_replace): Change to return bool.
11661         * regrename.c (rename_chains): Check return value of
11662         regname_do_replace.
11663         (regrename_do_replace): Re-validate the modified insns and
11664         return bool status.
11665         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11666         Update to match rename_chains changes.
11667         * config/c6x/c6x.c (try_rename_operands): Assert that
11668         regrename_do_replace returns true.
11670 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
11672         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
11673         operand 2 here.  Use copy_addr_to_reg to copy non-index
11674         register operand 2 to a temporary.
11675         (<mode>_stx): Ditto for operand 1.
11676         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
11677         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
11678         (ix86_store_bounds): Ditto.
11680 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
11682         * print-tree.c (print_node) [TREE_VEC]: Print its length.
11684 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
11686         * gimple.c (gimple_call_set_fndecl): Remove.
11687         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
11688         build1_loc directly instead of build_fold_addr_expr_loc.
11690 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
11692         * hash-map.h (hash_map::traverse): Use the definition of the
11693         Key typedef rather than the typedef itself.
11695 2015-06-26  Martin Jambor  <mjambor@suse.cz>
11697         PR debug/66301
11698         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
11699         NULL instead of calling dump_enabled_p.
11701 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
11703         * config/aarch64/aarch64.opt: (override): New.
11704         * doc/invoke.texi (override): Document.
11705         * config/aarch64/aarch64.c (aarch64_flag_desc): New
11706         (aarch64_fusible_pairs): Likewise.
11707         (aarch64_tuning_flags): Likewise.
11708         (aarch64_tuning_override_function): Likewise.
11709         (aarch64_tuning_override_functions): Likewise.
11710         (aarch64_parse_one_option_token): Likewise.
11711         (aarch64_parse_boolean_options): Likewise.
11712         (aarch64_parse_fuse_string): Likewise.
11713         (aarch64_parse_tune_string): Likewise.
11714         (aarch64_parse_one_override_token): Likewise.
11715         (aarch64_parse_override_string): Likewise.
11716         (aarch64_override_options): Parse the -override string if it
11717         is present.
11719 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
11721         * config/aarch64/aarch64-protos.h (tune_params): Remove
11722         const from members.
11723         (aarch64_tune_params): Remove const, change to no longer be
11724         a pointer.
11725         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
11726         change to no longer be a pointer, initialize to generic_tunings.
11727         (aarch64_min_divisions_for_recip_mul): Change dereference of
11728         aarch64_tune_params to member access.
11729         (aarch64_reassociation_width): Likewise.
11730         (aarch64_rtx_mult_cost): Likewise.
11731         (aarch64_address_cost): Likewise.
11732         (aarch64_branch_cost): Likewise.
11733         (aarch64_rtx_costs): Likewise.
11734         (aarch64_register_move_cost): Likewise.
11735         (aarch64_memory_move_cost): Likewise.
11736         (aarch64_sched_issue_rate): Likewise.
11737         (aarch64_builtin_vectorization_cost): Likewise.
11738         (aarch64_override_options): Take a copy of the selected tuning
11739         struct in to aarch64_tune_params, rather than just setting
11740         a pointer, change dereferences of aarch64_tune_params to member
11741         accesses.
11742         (aarch64_override_options_after_change): Change dereferences of
11743         aarch64_tune_params to member access.
11744         (aarch64_macro_fusion_p): Likewise.
11745         (aarch_macro_fusion_pair_p): Likewise.
11746         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
11748 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
11750         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
11751         (aarch64_tune_flags): Likewise.
11752         (AARCH64_TUNE_FMA_STEERING): Likewise.
11753         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
11754         to AARCH64_FL_USE_FMA_STEERING_PASS.
11755         (cortex-a57.cortex-a53): Likewise.
11756         (cortex-a72): Use cortexa72_tunings.
11757         (cortex-a72.cortex-a53): Likewise.
11758         (exynos-m1): Likewise.
11759         * config/aarch64/aarch64-protos.h (tune_params): Add
11760         a field: extra_tuning_flags.
11761         * config/aarch64/aarch64-tuning-flags.def: New.
11762         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
11763         (aarch64_extra_tuning_flags): Likewise.
11764         (aarch64_tune_params): Declare here.
11765         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
11766         (cortexa53_tunings): Likewise.
11767         (cortexa57_tunings): Likewise.
11768         (thunderx_tunings): Likewise.
11769         (xgene1_tunings): Likewise.
11770         (cortexa72_tunings): New.
11771         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
11772          (gate): Check against aarch64_tune_params.
11773         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
11774         aarch64-protos.h.
11776 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
11778         * config/aarch64/aarch64-fusion-pairs.def: New.
11779         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
11780         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
11781         aarch64_fusion_pairs.
11782         (AARCH64_FUSE_MOV_MOVK): Likewise.
11783         (AARCH64_FUSE_ADRP_ADD): Likewise.
11784         (AARCH64_FUSE_MOVK_MOVK): Likewise.
11785         (AARCH64_FUSE_ADRP_LDR): Likewise.
11786         (AARCH64_FUSE_CMP_BRANCH): Likewise.
11788 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
11790         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
11791         SYMBOL_SMALL_GOT_28K.
11792         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
11793         relocation modifiers.
11794         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
11795         (ldr_got_small_28k_<mode>): New.
11796         (ldr_got_small_28k_sidi): New.
11797         * config/aarch64/iterators.md (got_modifier): New mode iterator.
11798         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
11799         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11800         SYMBOL_SMALL_GOT_28K.
11801         (aarch64_rtx_costs): Add costs for new instruction sequences.
11802         (initialize_aarch64_code_model): Initialize new model.
11803         (aarch64_classify_symbol): Recognize new model and new symbol classification.
11804         (aarch64_asm_preferred_eh_data_format): Support new model.
11805         (aarch64_load_symref_appropriately): Generate new instruction
11806         sequences for -fpic.
11807         (TARGET_USE_PSEUDO_PIC_REG): New definition.
11808         (aarch64_use_pseudo_pic_reg): New function.
11810 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
11812         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11813         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
11814         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
11815         (aarch64_expand_mov_immediate): Ditto.
11816         (aarch64_print_operand): Ditto.
11817         (aarch64_classify_symbol): Ditto.
11819 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
11821         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
11823 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
11825         PR bootstrap/66638
11826         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
11827         assertion failed.  Remove assertion itself.
11829 2015-06-26  Richard Biener  <rguenther@suse.de>
11831         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
11832         and -A CMP CST -> A CMP -CST which is redundant with a pattern
11833         in match.pd.
11834         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
11835         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
11836         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
11837         * match.pd: ... patterns here.
11839 2015-06-26  Marek Polacek  <polacek@redhat.com>
11841         * match.pd ((x | y) & ~(x & y) -> x ^ y,
11842         (x | y) & (~x ^ y) -> x & y): New patterns.
11844 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
11846         * rtl.h (emit): Add an optional boolean parameter to control
11847         whether barriers are emitted.
11848         * emit-rtl.c (emit): Likewise.
11849         * gensupport.c (get_emit_function): Return null rather than "emit".
11850         * genemit.c (gen_emit_seq): Handle the null return value.
11851         Don't emit barriers after the final instruction in the sequence.
11852         * gentarget-def.c (main): Don't emit barriers after the instruction.
11854 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11856         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
11857         TARGET_UNIFIED_ASM.
11859 2015-06-26  Richard Biener  <rguenther@suse.de>
11861         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
11863 2015-06-26  Richard Biener  <rguenther@suse.de>
11865         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
11866         irrespective on whether the inner operation has a single use
11867         of both off are constant.
11869 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
11870             Segher Boessenkool  <segher@kernel.crashing.org>
11872         PR target/66412
11873         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
11874         before doing PUT_MODE or PUT_CODE on operands to avoid
11875         in-place RTX modification.
11877 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11879         * gentarget-def.c (def_target_insn): Cast return of strtol to
11880         unsigned int.
11882 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11884         * gimple.h (gimple_call_set_fn): Move inline function.
11885         * gimple.c (gimple_call_set_fn): Relocate here.
11887 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
11889         PR target/65979
11890         PR target/66611
11891         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
11892         the replacement insn will work.
11894 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11896         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
11897         by default.
11899 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11901         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
11902         * cgraph.h: Include ipa-ref.h and plugin-api.h.
11903         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11904         (symtab_node::address_can_be_compared_p): Move function.
11905         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
11906         definition here.
11907         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
11908         * auto-profile.c: Likewise.
11909         * bb-reorder.c: Likewise.
11910         * builtins.c: Likewise.
11911         * calls.c: Likewise.
11912         * cfgexpand.c: Likewise.
11913         * cgraphbuild.c: Likewise.
11914         * cgraphclones.c: Likewise.
11915         * cgraphunit.c: Likewise.
11916         * combine.c: Likewise.
11917         * coverage.c: Likewise.
11918         * data-streamer-in.c: Likewise.
11919         * data-streamer-out.c: Likewise.
11920         * data-streamer.c: Likewise.
11921         * dbxout.c: Likewise.
11922         * dwarf2out.c: Likewise.
11923         * except.c: Likewise.
11924         * expr.c: Likewise.
11925         * final.c: Likewise.
11926         * fold-const.c: Likewise.
11927         * ggc-page.c: Likewise.
11928         * gimple-fold.c: Likewise.
11929         * gimple-iterator.c: Likewise.
11930         * gimple-pretty-print.c: Likewise.
11931         * gimple-streamer-in.c: Likewise.
11932         * gimple-streamer-out.c: Likewise.
11933         * gimple.c: Likewise.
11934         * gimplify.c: Likewise.
11935         * ipa-chkp.c: Likewise.
11936         * ipa-comdats.c: Likewise.
11937         * ipa-cp.c: Likewise.
11938         * ipa-devirt.c: Likewise.
11939         * ipa-icf-gimple.c: Likewise.
11940         * ipa-icf.c: Likewise.
11941         * ipa-inline-analysis.c: Likewise.
11942         * ipa-inline-transform.c: Likewise.
11943         * ipa-inline.c: Likewise.
11944         * ipa-polymorphic-call.c: Likewise.
11945         * ipa-profile.c: Likewise.
11946         * ipa-prop.c: Likewise.
11947         * ipa-pure-const.c: Likewise.
11948         * ipa-ref.c: Likewise.
11949         * ipa-reference.c: Likewise.
11950         * ipa-split.c: Likewise.
11951         * ipa-utils.c: Likewise.
11952         * ipa-visibility.c: Likewise.
11953         * ipa.c: Likewise.
11954         * langhooks.c: Likewise.
11955         * lto-cgraph.c: Likewise.
11956         * lto-compress.c: Likewise.
11957         * lto-opts.c: Likewise.
11958         * lto-section-in.c: Likewise.
11959         * lto-section-out.c: Likewise.
11960         * lto-streamer-in.c: Likewise.
11961         * lto-streamer-out.c: Likewise.
11962         * lto-streamer.c: Likewise.
11963         * omp-low.c: Likewise.
11964         * opts-global.c: Likewise.
11965         * passes.c: Likewise.
11966         * predict.c: Likewise.
11967         * print-tree.c: Likewise.
11968         * profile.c: Likewise.
11969         * ree.c: Likewise.
11970         * sanopt.c: Likewise.
11971         * stor-layout.c: Likewise.
11972         * symtab.c: Likewise.
11973         * toplev.c: Likewise.
11974         * trans-mem.c: Likewise.
11975         * tree-cfg.c: Likewise.
11976         * tree-chkp.c: Likewise.
11977         * tree-eh.c: Likewise.
11978         * tree-emutls.c: Likewise.
11979         * tree-inline.c: Likewise.
11980         * tree-nested.c: Likewise.
11981         * tree-parloops.c: Likewise.
11982         * tree-pretty-print.c: Likewise.
11983         * tree-profile.c: Likewise.
11984         * tree-sra.c: Likewise.
11985         * tree-ssa-alias.c: Likewise.
11986         * tree-ssa-live.c: Likewise.
11987         * tree-ssa-loop-ivcanon.c: Likewise.
11988         * tree-ssa-loop-ivopts.c: Likewise.
11989         * tree-ssa-pre.c: Likewise.
11990         * tree-ssa-sccvn.c: Likewise.
11991         * tree-ssa-strlen.c: Likewise.
11992         * tree-ssa-structalias.c: Likewise.
11993         * tree-streamer-in.c: Likewise.
11994         * tree-streamer-out.c: Likewise.
11995         * tree-streamer.c: Likewise.
11996         * tree-switch-conversion.c: Likewise.
11997         * tree-tailcall.c: Likewise.
11998         * tree-vect-data-refs.c: Likewise.
11999         * tree-vect-stmts.c: Likewise.
12000         * tree-vectorizer.c: Likewise.
12001         * tree.c: Likewise.
12002         * tsan.c: Likewise.
12003         * ubsan.c: Likewise.
12004         * value-prof.c: Likewise.
12005         * varasm.c: Likewise.
12006         * varpool.c: Likewise.
12007         * config/arm/arm.c: Likewise.
12008         * config/bfin/bfin.c: Likewise.
12009         * config/c6x/c6x.c: Likewise.
12010         * config/cris/cris.c: Likewise.
12011         * config/darwin-c.c: Likewise.
12012         * config/darwin.c: Likewise.
12013         * config/i386/i386.c: Likewise.
12014         * config/i386/winnt.c: Likewise.
12015         * config/microblaze/microblaze.c: Likewise.
12016         * config/mips/mips.c: Likewise.
12017         * config/rs6000/rs6000.c: Likewise.
12018         * config/rx/rx.c: Likewise.
12019         * config/s390/s390.c: Likewise.
12020         * config/tilegx/mul-tables.c: Likewise.
12022 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12024         * config/aarch64/aarch64.c, config/alpha/alpha.c,
12025         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
12026         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
12027         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
12028         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
12029         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
12030         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
12031         config/microblaze/microblaze.c, config/mips/mips.c,
12032         config/mmix/mmix.c, config/mn10300/mn10300.c,
12033         config/moxie/moxie.c, config/msp430/msp430.c,
12034         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
12035         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
12036         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
12037         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
12038         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12039         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
12040         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
12041         target-def.h include.
12042         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
12044 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12046         * Makefile.in (TARGET_DEF): Add target-insns.def.
12047         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
12048         (build/gentarget-def.o): New rule.
12049         (genprogrtl): Add target-def.
12050         * target-insns.def, gentarget-def.c: New files.
12051         * target.def: Add targetm.have_* and targetm.gen_* hooks,
12052         based on the contents of target-insns.def.
12053         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
12054         (HAVE_return, gen_return): Delete.
12055         * target-def.h: Include insn-target-def.h.
12056         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
12057         instead of direct calls.  Rely on them to do the appropriate assertions.
12058         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
12059         (convert_jumps_to_returns): Use targetm interface instead of
12060         direct calls.
12061         (thread_prologue_and_epilogue_insns): Likewise.
12062         * reorg.c (find_end_label, dbr_schedule): Likewise.
12063         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
12064         * shrink-wrap.c (convert_to_simple_return): Likewise.
12065         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
12067 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12069         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
12070         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12071         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
12072         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
12073         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
12074         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
12075         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
12076         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
12077         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
12078         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
12079         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
12080         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
12081         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
12082         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12083         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
12084         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
12085         includes to end.
12087 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12089         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
12090         (unbounded_int_hashmap_traits::key_type): Likewise.
12091         * hash-map.h (hash_map): Get the key type from the traits.
12092         * hash-traits.h (default_hash_traits): By default, inherit from the
12093         template parameter.
12094         * alias.c (alias_set_traits): Delete.
12095         (alias_set_entry_d::children): Use alias_set_hash as the first
12096         template parameter.
12097         (record_alias_subset): Update accordingly.
12098         * except.c (tree_hash_traits): Delete.
12099         (type_to_runtime_map): Use tree_hash as the first template parameter.
12100         (init_eh): Update accordingly.
12101         * genmatch.c (capture_id_map_hasher): Delete.
12102         (cid_map_t): Use nofree_string_hash as first template parameter.
12103         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
12104         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
12105         Use symbol_compare_hash as the first template parameter in
12106         subdivide_hash_map.
12107         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
12108         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
12109         template parameter.
12110         * passes.c (pass_registry_hasher): Delete.
12111         (name_to_pass_map): Use nofree_string_hash as the first template
12112         parameter.
12113         (register_pass_name): Update accordingly.
12114         * sanopt.c (sanopt_tree_map_traits): Delete.
12115         (sanopt_tree_triplet_map_traits): Delete.
12116         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
12117         template parameter.
12118         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
12119         the first template parameter.
12120         * sese.c (rename_map_hasher): Delete.
12121         (rename_map_type): Use tree_ssa_name_hash as the first template
12122         parameter.
12123         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
12124         (function_summary::m_map): Use map_hash as the first template
12125         parameter.
12126         (function_summary::release): Update accordingly.
12127         * tree-if-conv.c (phi_args_hash_traits): Delete.
12128         (predicate_scalar_phi): Use tree_operand_hash as the first template
12129         parameter to phi_arg_map.
12130         * tree-inline.h (dependence_hasher): Delete.
12131         (copy_body_data::dependence_map): Use dependence_hash as the first
12132         template parameter.
12133         * tree-inline.c (remap_dependence_clique): Update accordingly.
12134         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
12135         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
12136         parameter.
12137         (addr_stridxptr): Update accordingly.
12138         * value-prof.c (profile_id_traits): Delete.
12139         (cgraph_node_map): Use profile_id_hash as the first template
12140         parameter.
12141         (init_node_map): Update accordingly.
12142         * config/alpha/alpha.c (string_traits): Delete.
12143         (machine_function::links): Use nofree_string_hash as the first
12144         template parameter.
12145         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
12146         * config/m32c/m32c.c (pragma_traits): Delete.
12147         (pragma_htab): Use nofree_string_hash as the first template parameter.
12148         (m32c_note_pragma_address): Update accordingly.
12149         * config/mep/mep.c (pragma_traits): Delete.
12150         (pragma_htab): Use nofree_string_hash as the first template parameter.
12151         (mep_note_pragma_flag): Update accordingly.
12152         * config/mips/mips.c (mips16_flip_traits): Delete.
12153         (mflip_mips16_htab): Use nofree_string_hash as the first template
12154         parameter.
12155         (mflip_mips16_use_mips16_p): Update accordingly.
12156         (local_alias_traits): Delete.
12157         (mips16_local_aliases): Use nofree_string_hash as the first template
12158         parameter.
12159         (mips16_local_alias): Update accordingly.
12161 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12163         * hash-map-traits.h (default_hashmap_traits): Delete.
12165 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12167         * hash-map-traits.h (unbounded_hashmap_traits): New class.
12168         (unbounded_int_hashmap_traits): Likewise.
12169         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
12171 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12173         * ipa-icf.h (symbol_compare_hash): New class.
12174         (symbol_compare_hashmap_traits): Use it.
12175         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12176         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
12177         (mem_alloc_description::reverse_mem_map_t): Remove redundant
12178         default_hashmap_traits.
12179         * sanopt.c (sanopt_tree_triplet_hash): New class.
12180         (sanopt_tree_triplet_map_traits): Use it.
12182 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12184         * gengtype-parse.c (require_template_declaration): Allow '+' in
12185         template parameters.  Consolidate cases.
12186         * hash-traits.h (int_hash): New class.
12187         * alias.c (alias_set_hash): New structure.
12188         (alias_set_traits): Use it.
12189         * symbol-summary.h (function_summary::map_hash): New class.
12190         (function_summary::summary_hashmap_traits): Use it.
12191         * tree-inline.h (dependence_hash): New class.
12192         (dependence_hasher): Use it.
12193         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
12194         * value-prof.c (profile_id_hash): New class.
12195         (profile_id_traits): Use it.
12197 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12199         * config/mips/mips.c (mips16_flip_traits): Use it.
12200         (local_alias_traits, mips16_local_aliases): Convert from a map of
12201         rtxes to a map of symbol names.
12202         (mips16_local_alias): Update accordingly.
12204 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12206         * hash-traits.h (string_hash, nofree_string_hash): New classes.
12207         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
12208         * passes.c (pass_registry_hasher): Likewise.
12209         * config/alpha/alpha.c (string_traits): Likewise.
12210         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
12211         * config/m32c/m32c.c (pragma_traits): Likewise.
12212         * config/mep/mep.c (pragma_traits): Likewise.
12214 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12216         * tree-hash-traits.h (tree_hash): New class.
12217         * except.c: Include tree-hash-traits.h.
12218         (tree_hash_traits): Use tree_hash.
12220 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12222         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
12223         * sese.c: Include tree-hash-traits.h.
12224         (rename_map_hasher): Use tree_ssa_name_hasher.
12226 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12228         * tree-hash-traits.h (tree_decl_hash): New class.
12229         * tree-ssa-strlen.c: Include tree-hash-traits.h.
12230         (stridxlist_hash_traits): Use tree_decl_hash.
12232 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12234         * tree-hash-traits.h: New file.
12235         (tree_operand_hash): New class.
12236         * sanopt.c: Include tree-hash-traits.h.
12237         (sanopt_tree_map_traits): Use tree_operand_hash.
12238         * tree-if-conv.c: Include tree-hash-traits.h.
12239         (phi_args_hash_traits): Use tree_operand_hash.
12240         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
12241         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
12243 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12245         * hash-map-traits.h: Include hash-traits.h.
12246         (simple_hashmap_traits): New class.
12247         * mem-stats.h (hash_map): Change the default traits to
12248         simple_hashmap_traits<default_hash_traits<Key> >.
12250 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12252         * hash-table.h: Update comments.
12254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12256         * hash-traits.h (default_hash_traits): New structure.
12257         * hash-set.h (default_hashset_traits): Delete.
12258         (hash_set): Use default_hash_traits<Key> instead of
12259         default_hashset_traits.  Delete hash_entry type and use Key directly.
12260         * ipa-devirt.c (pair_traits): Delete.
12261         (default_hash_traits <type_pair>): Override.
12262         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
12263         (odr_types_equivalent_p, add_type_duplicate): Likewise.
12265 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12267         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
12269 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12271         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
12272         (has_is_empty, is_empty_helper): Delete.
12273         (has_mark_deleted, mark_deleted_helper): Delete.
12274         (has_mark_empty, mark_empty_helper): Delete.
12275         (hash_table::is_deleted): Call the Descriptor unconditionally.
12276         (hash_table::is_empty): Likewise.
12277         (hash_table::mark_deleted): Likewise.
12278         (hash_table::mark_empty): Likewise.
12280 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12282         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
12283         redundant typedefs and members.
12284         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
12285         redundant typedefs.
12286         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
12287         * ipa-devirt.c (odr_name_hasher): Likewise.
12288         (polymorphic_call_target_hasher): Likewise.
12289         * ira-costs.c (cost_classes_hasher): Likewise.
12290         * statistics.c (stats_counter_hasher): Likewise.
12291         * trans-mem.c (log_entry_hasher): Likewise.
12292         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12293         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
12294         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
12295         * var-tracking.c (variable_hasher): Likewise.
12296         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
12297         Remove redundant typedefs and members.
12299 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12301         * hash-traits.h (ggc_cache_hasher): Rename to...
12302         (ggc_cache_remove): ...this and remove typedefs.
12303         (ggc_cache_ptr_hash): New class.
12304         * hash-table.h: Update commentary.
12305         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
12306         rather than ggc_cache_hasher.
12307         (const_wide_int_hasher, reg_attr_hasher): Likewise.
12308         (const_double_hasher, const_fixed_hasher): Likewise.
12309         * function.c (insn_cache_hasher): Likewise.
12310         * trans-mem.c (tm_wrapper_hasher): Likewise.
12311         * tree.h (tree_decl_map_cache_hasher): Likewise.
12312         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
12313         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
12314         * ubsan.c (tree_type_map_cache_hasher): Likewise.
12315         * varasm.c (tm_clone_hasher): Likewise.
12316         * config/i386/i386.c (dllimport_hasher): Likewise.
12317         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
12318         (tree_hasher): Likewise.
12320 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12322         * hash-traits.h (ggc_hasher): Rename to...
12323         (ggc_remover): ...this and remove typedefs.
12324         (ggc_cache_hasher): Update accordingly.  Add typedefs.
12325         (ggc_ptr_hash): New class.
12326         * hash-table.h: Update comment.
12327         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
12328         ggc_hasher.
12329         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
12330         (tree_descriptor_hasher): Likewise.
12331         * cgraph.c (function_version_hasher): Likewise.
12332         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
12333         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
12334         (dw_loc_list_hasher, addr_hasher): Likewise.
12335         * function.h (used_type_hasher): Likewise.
12336         * function.c (temp_address_hasher): Likewise.
12337         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
12338         * libfuncs.h (libfunc_hasher): Likewise.
12339         * lto-streamer.h (decl_state_hasher): Likewise.
12340         * optabs.c (libfunc_decl_hasher): Likewise.
12341         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
12342         * varasm.c (section_hasher, object_block_hasher): Likewise.
12343         (const_rtx_desc_hasher): Likewise.
12344         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
12345         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
12347 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12349         * hash-traits.h (free_ptr_hash): New class.
12350         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
12351         rather than typed_free_remove.  Remove redudant typedefs.
12352         (external_ref_hasher): Likewise.
12353         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
12354         (ehspec_hasher): Likewise.
12355         * ggc-common.c (saving_hasher): Likewise.
12356         * gimplify.c (gimplify_hasher): Likewise.
12357         * haifa-sched.c (delay_i2_hasher): Likewise.
12358         * loop-invariant.c (invariant_expr_hasher): Likewise.
12359         * loop-iv.c (biv_entry_hasher): Likewise.
12360         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
12361         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
12362         * tree-cfg.c (locus_discrim_hasher): Likewise.
12363         * tree-eh.c (finally_tree_hasher): Likewise.
12364         * tree-into-ssa.c (var_info_hasher): Likewise.
12365         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
12366         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
12367         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
12368         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
12369         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
12370         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
12371         (shared_bitmap_hasher): Likewise.
12372         * tree-ssa-threadupdate.c (redirection_data): Likewise.
12373         * tree-vectorizer.h (peel_info_hasher): Likewise.
12374         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
12375         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
12377 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12379         * hash-table.h: Update comments.
12380         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
12381         (nofree_ptr_hash): New class.
12382         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
12383         than typed_noop_remove.  Remove redudant typedefs.
12384         * attribs.c (attribute_hasher): Likewise.
12385         * cfg.c (bb_copy_hasher): Likewise.
12386         * cselib.c (cselib_hasher): Likewise.
12387         * dse.c (invariant_group_base_hasher): Likewise.
12388         * dwarf2cfi.c (trace_info_hasher): Likewise.
12389         * dwarf2out.c (macinfo_entry_hasher): Likewise.
12390         (comdat_type_hasher, loc_list_hasher): Likewise.
12391         * gcse.c (pre_ldst_expr_hasher): Likewise.
12392         * genmatch.c (id_base): Likewise.
12393         * genrecog.c (test_pattern_hasher): Likewise.
12394         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
12395         * haifa-sched.c (delay_i1_hasher): Likewise.
12396         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
12397         * ipa-icf.h (congruence_class_group_hash): Likewise.
12398         * ipa-profile.c (histogram_hash): Likewise.
12399         * ira-color.c (allocno_hard_regs_hasher): Likewise.
12400         * lto-streamer.h (string_slot_hasher): Likewise.
12401         * lto-streamer.c (tree_entry_hasher): Likewise.
12402         * plugin.c (event_hasher): Likewise.
12403         * postreload-gcse.c (expr_hasher): Likewise.
12404         * store-motion.c (st_expr_hasher): Likewise.
12405         * tree-sra.c (uid_decl_hasher): Likewise.
12406         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
12407         (ssa_name_var_hash): Likewise.
12408         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
12409         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
12410         * tree-ssa-pre.c (pre_expr_d): Likewise.
12411         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
12412         * vtable-verify.h (registration_hasher): Likewise.
12413         * vtable-verify.c (vtbl_map_hasher): Likewise.
12414         * config/arm/arm.c (libcall_hasher): Likewise.
12415         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
12416         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
12417         * config/sol2.c (comdat_entry_hasher): Likewise.
12418         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
12419         (print_fold_checksum, fold_checksum_tree): Likewise.
12420         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
12421         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
12422         (fold_build_call_array_loc): Likewise.
12423         * tree-ssa-ccp.c (gimple_htab): Likewise.
12424         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
12425         rather than pointer_type.
12427 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12429         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
12430         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
12432 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12434         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
12435         (ggc_hasher::ggc_mx): Likewise.
12436         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
12437         that duplicate ggc_hasher ones.
12439 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12441         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
12442         (gt_cleare_cache): Check here for deleted and empty entries.
12443         Replace handle_cache_entry with a call to keep_cache_entry.
12444         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
12445         (ggc_cache_hasher::keep_cache_entry): New function.
12446         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
12447         (tm_wrapper_hasher::keep_cache_entry): New function.
12448         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
12449         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12450         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
12451         (type_cache_hasher::keep_cache_entry): New function.
12452         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
12453         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
12454         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
12455         (tree_type_map_cache_hasher::keep_cache_entry): New function.
12456         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
12457         (tm_clone_hasher::keep_cache_entry): New function.
12458         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
12459         (dllimport_hasher::keep_cache_entry): New function.
12461 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12463         * hash-table.h: Include hash-traits.h.
12464         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
12465         (ggc_cache_hasher): Move to...
12466         * hash-traits.h: ...this new file.
12468 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
12470         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
12471         struct cl_optimization.
12472         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
12473         * tree.c (make_node_stat): Allocate cl_optimization struct.
12474         (copy_node_stat): Allocate and copy cl_optimization struct.
12476 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
12478         * function.h (struct incoming_args): Move struct.
12479         (pass_by_reference, reference_callee_copied): Remove prototypes.
12480         * emit-rtl.h (struct incoming_args): Relocate struct here.
12481         * calls.h (pass_by_reference, reference_callee_copied): Relocate
12482         prototypes here.
12483         * function.c (pass_by_reference, reference_callee_copied): Move.
12484         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
12485         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
12486         * ipa-chkp.c: Include calls.h.
12488 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
12490         * alias.h (alias_set_type): Move typedef.
12491         * coretypes.h (alias_set_type): Relocate typedef here.
12492         * rtl.h: Don't include alias.h.
12494 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
12496         * cgraph.h (cgraph_rtl_info): Move to rtl.h
12497         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
12498         and instance.
12499         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
12500         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
12501         doesn't exist.
12502         * calls.c: Include hard-reg-set.h before rtl.h.
12503         * ira.c: Likewise.
12505 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
12506             Vladimir Makarov  <vmakarov@redhat.com>
12508         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
12509         Add assert.
12511 2015-06-25  Richard Biener  <rguenther@suse.de>
12513         * fold-const.c (fold_binary_loc): Move simplification of
12514         (X <<>> C1) & C2 ...
12515         * match.pd: ... here.
12517 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
12519         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
12521 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
12523         * match.pd: Add patterns for vec_conds between 1 and 0.
12525 2015-06-25  Richard Biener  <rguenther@suse.de>
12527         * tree-vect-stmts.c (vectorizable_conversion): Do not set
12528         STMT_VINFO_VEC_STMT for SLP.
12529         (vectorizable_store): Likewise.
12530         (vectorizable_load): Likewise.
12531         (vect_transform_stmt): Catch SLP vectorization clobbering
12532         STMT_VINFO_VEC_STMT.
12534 2015-06-25  Richard Biener  <rguenther@suse.de>
12536         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
12537         dumping.
12538         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
12539         cleanup resulting dead code and parameters.
12540         (vect_transform_slp_perm_load): Adjust.
12542 2015-06-25  Nick Clifton  <nickc@redhat.com>
12544         * config/bfin/bfin.c (bfin_expand_prologue): Set
12545         current_function_static_stack_size if flag_stack_usage_info is set.
12546         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12547         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
12548         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12549         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
12551 2015-06-25  Tom de Vries  <tom@codesourcery.com>
12553         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
12554         comment that the generated IV is unsigned.
12556 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12558         PR target/29693
12559         * config/arm/arm.c (arm_dbx_register_number): Return
12560         DWARF_FRAME_REGISTERS by default.
12562 2015-06-25  Tom de Vries  <tom@codesourcery.com>
12564         * dominance.c (calculate_dominance_info): Fix verify_dominators call
12565         argument.  Call verify_dominator when reusing dominator info.
12567 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12569         PR target/66563
12570         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
12571         an additional element of the unspec vector.  Modify indices
12572         of operands.
12573         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
12574         * config/sh/sh.c (prepare_move_operands): Pass incremented
12575         const_int to gen_GOTaddr2picreg.
12576         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
12578 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
12580         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
12581         Condition on TARGET_FLOAT.
12583 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
12585         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
12586         and (no)crypto.
12588 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
12590         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
12592         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
12593         aarch64_err_no_fpadvsimd.
12595         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
12596         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
12597         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
12598         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
12599         Turn error into assert, test TARGET_FLOAT.
12600         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
12601         TARGET_FLOAT.
12603 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
12605         PR debug/66482
12606         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
12608 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
12610         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
12612 2015-06-24  Renlin Li <renlin.li@arm.com>
12614         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
12615         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
12617 2015-06-24  Richard Biener  <rguenther@suse.de>
12619         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
12620         (main): Likewise.
12621         (lower_opt_convert): Support lowering of conditional view_convert.
12622         (parser::parse_operation): Likewise.
12623         (parser::parse_for): Likewise.
12625 2015-06-24  Renlin Li  <renlin.li@arm.com>
12627         * varasm.c (emit_local): Use unsigned int for align variable.
12629 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12631         PR target/63408
12632         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
12633         for negative numbers.
12635 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12637         PR rtl-optimization/66306
12638         * reload.c (find_reloads): Swap the match_dup info for
12639         commutative operands.
12641 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12643         * config/s390/vx-builtins.md
12644         ("vec_scatter_element<mode>_<non_vec_int>")
12645         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
12646         attribute with bhfgq.
12648 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12650         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
12652 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12654         * config/s390/s390-builtin-types.def: Add flag to indicate the
12655         options under which the function type is needed.
12656         * config/s390/s390-builtins.def: Add flag to indicate the options
12657         under which the builtin is enabled.
12658         * config/s390/s390-builtins.h: Add flags parameter to macro
12659         definitions.
12660         (bflags_for_builtin): New function.
12661         (flags_for_builtin): Renamed to ...
12662         (opflags_for_builtin): ... this.
12663         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
12664         flags_for_builtin to bflags_for_builtin and
12665         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
12666         * config/s390/s390.c: Add initialization of bflags_builtin and
12667         opflags_builtin arrays.
12668         Remove code for flags_builtin.
12669         (s390_init_builtins): Only create builtin function types if one of
12670         their flags is active.
12671         Only create builtins if all of their flags are active.
12672         (s390_expand_builtin): Rename flags_for_builtin to
12673         opflags_for_builtin.
12675 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12677         * config/s390/vecintrin.h: Remove internal builtins.
12679 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12681         * config/s390/s390.c (s390_secondary_reload): Fix check for
12682         GENERAL_REGS register class.
12684 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12686         * config/s390/s390.c (s390_support_vector_misalignment): Call
12687         default implementation for !TARGET_VX.
12689 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12691         * config/s390/s390.c (s390_legitimate_constant_p): Add
12692         TARGET_VX check.
12694 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12696         * config/s390/s390.c (s390_vector_abi): New variable definition.
12697         (s390_check_type_for_vector_abi): New function.
12698         (TARGET_ASM_FILE_END): New macro definition.
12699         (s390_asm_file_end): New function.
12700         (s390_function_arg): Call s390_check_type_for_vector_abi.
12701         (s390_gimplify_va_arg): Likewise.
12702         * configure: Regenerate.
12703         * configure.ac: Check for .gnu_attribute Binutils feature.
12705 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
12707         PR target/65803
12708         * config/bfin/bfin.c (hwloop_optimize): Initialize
12709         JUMP_LABEL for newly created jump.
12711 2015-06-23  Tristan Gingold  <gingold@adacore.com>
12713         * collect-utils.c (collect_wait): Unlink the response file here
12714         instead of...
12715         (do_wait): ...here.
12716         (utils_cleanup): ...and here.
12718 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
12720         * df-scan.c: Don't include target-def.h.
12721         * targhooks.c: Likewise.
12722         * config/arm/arm-c.c: Likewise.
12723         * config/i386/i386-c.c: Likewise.
12724         * config/nds32/nds32-cost.c: Likewise.
12725         * config/nds32/nds32-fp-as-gp.c: Likewise.
12726         * config/nds32/nds32-intrinsic.c: Likewise.
12727         * config/nds32/nds32-isr.c: Likewise.
12728         * config/nds32/nds32-md-auxiliary.c: Likewise.
12729         * config/nds32/nds32-memory-manipulation.c: Likewise.
12730         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12731         * config/nds32/nds32-predicates.c: Likewise.
12733 2015-06-23  Richard Biener  <rguenther@suse.de>
12735         PR tree-optimization/66636
12736         * tree-vect-stmts.c (vectorizable_store): Properly compute the
12737         def type for further defs for strided stores.
12739 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
12741         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
12742         conditional selects.
12743         (setcc_int<mode>, setcc_float<mode>): Reformat.
12745 2015-06-23  Marek Polacek  <polacek@redhat.com>
12747         * match.pd ((x + y) - (x | y) -> x & y,
12748         (x + y) - (x & y) -> x | y): New patterns.
12750 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
12752         PR 65711
12753         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
12754         '-dynamic-linker' within %{!shared: ...}.
12756 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
12758         PR target/66560
12759         * config/i386/predicates.md (addsub_vm_operator): New predicate.
12760         (addsub_vs_operator): Ditto.
12761         (addsub_vs_parallel): Ditto.
12762         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
12763         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
12764         Put minus RTX before plus and adjust vec_merge selector.
12765         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
12766         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
12767         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
12768         (addsub vec_merge splitters): New combiner splitters.
12769         (addsub vec_select/vec_concat splitters): Ditto.
12771 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
12773         PR tree-optimization/66449
12774         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
12775         POINTER_PLUS_EXPR for pointers.
12777 2015-06-23  Alan Modra  <amodra@gmail.com>
12779         * rtlanal.c (commutative_operand_precedence): Correct comments.
12780         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
12781         declaration.  Return an int.  Distinguish REG,REG return from
12782         others.
12783         (struct simplify_plus_minus_op_data): Make local to function.
12784         (simplify_plus_minus): Don't set canonicalized if merely sorting
12785         registers.  Avoid packing ops if nothing changes.  White space fixes.
12787 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
12789         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
12790         -fdump-ada-spec is passed but not if -fsyntax-only is.
12792 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
12794         PR bootstrap/63740
12795         * lra-lives.c (process_bb_lives): Check insn copying the same
12796         reload pseudo and don't create a copy for it.
12798 2015-06-22  Tom de Vries  <tom@codesourcery.com>
12800         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
12801         for cond_stmt.
12803 2015-06-22  Tom de Vries  <tom@codesourcery.com>
12805         * builtins.def (DEF_GOMP_BUILTIN): Test
12806         'flag_tree_parallelize_loops > 1' instead of
12807         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
12809 2015-06-22  Tom de Vries  <tom@codesourcery.com>
12811         * dominance.c (calculate_dominance_info): Verify dominators if
12812         early-out.
12814 2015-06-22  Marek Polacek  <polacek@redhat.com>
12816         * match.pd ((x ^ y) ^ (x | y) -> x & y,
12817         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
12818         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
12819         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
12821 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
12823         PR target/65871
12824         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
12825         cost of embedded comparison.
12827 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12829         PR target/65914
12830         * config/rs6000/predicates.md (altivec_register_operand): Permit
12831         virtual stack registers.
12832         (vsx_register_operand): Likewise.
12833         (vfloat_operand): Likewise.
12834         (vint_operand): Likewise.
12835         (vlogical_operand): Likewise.
12837 2015-06-22  Richard Biener  <rguenther@suse.de>
12839         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
12840         and single_scalar_iteration_cost members.
12841         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
12842         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
12843         (vect_get_single_scalar_iteration_cost): Remove.
12844         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
12845         Use LOOP_VINFO_SCALAR_ITERATION_COST.
12846         * tree-vect-loop.c (destroy_loop_vec_info): Free
12847         scalar_cost_vec.
12848         (vect_get_single_scalar_iteration_cost): Compute result into
12849         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
12850         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
12851         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
12852         (vect_estimate_min_profitable_iters): Use them.
12854 2015-06-22  Christian Bruel  <christian.bruel@st.com>
12856         PR target/52144
12857         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
12858         (TARGET_INSERT_ATTRIBUTES): Define.
12859         (thumb_flipper): New var.
12860         * config/arm/arm.opt (-mflip-thumb): New switch.
12862 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
12863             Martin Liska  <mliska@suse.cz>
12865         PR ipa/65908
12866         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
12867         construction of arg_types.
12868         (sem_function::sem_function): Likewise.
12869         (sem_function::~sem_function): Remove destruction of arg_types.
12870         (sem_function::compatible_parm_types_p): New function.
12871         (sem_function::equals_wpa): Reorg matching of return values
12872         and parameter types.
12873         (sem_function::equals_private): Reorg mathcing of argument types.
12874         (sem_function::parse_tree_args): Remove.
12875         * ipa-icf.h (init_wpa): Do not call it.
12876         (parse_tree_args): Remove.
12877         (compatible_parm_types_p): Declare.
12878         (result_type): Remove.
12879         (arg_types): Remove.
12881 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
12883         PR ipa/66351
12884         * ipa-polymorphic-call.c
12885         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
12886         initializing alias oracle; fix formating; set base_alias_set if it
12887         is known.
12889 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
12891         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
12892         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
12893         (find_inc): Likewise.
12894         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
12895         swapping.
12896         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
12897         * df-scan.c (df_swap_refs): Remove.
12898         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
12899         * dominance.c (link_roots): Use std::swap instead of manually swapping.
12900         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
12901         * fold-const.c (fold_relational_const): Likewise.
12902         * genattrtab.c (simplify_test_exp): Likewise.
12903         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
12904         gimple_simplify): Likewise.
12905         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
12906         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
12907         * ipa-devirt.c (add_type_duplicate): Likewise.
12908         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
12909         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
12910         * lra.c (lra_create_copy): Likewise.
12911         * lto-streamer-out.c (DFS::DFS): Likewise.
12912         * modulo-sched.c (get_sched_window): Likewise.
12913         * omega.c (omega_pretty_print_problem): Likewise.
12914         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
12915         * reload1.c (reloads_unique_chain_p): Likewise.
12916         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
12917         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
12918         use std::swap.
12919         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
12920         manually swapping.
12921         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
12922         predicate_mem_writes): Likewise.
12923         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
12924         * tree-predcom.c (combine_chains): Likewise.
12925         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
12926         refs_may_alias_p_1): Likewise.
12927         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
12928         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12929         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
12930         number_of_iterations_cond): Likewise.
12931         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
12932         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12933         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
12934         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
12935         * tree-vrp.c (extract_range_from_binary_expr_1,
12936         extract_range_from_unary_expr_1): Likewise.
12938 2015-06-20  Marek Polacek  <polacek@redhat.com>
12940         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
12942 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12944         PR target/66591
12945         * config/sh/sh.c (prepare_move_operands): Replace subreg
12946         index term with R0 for base and index addressing.
12948 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
12950         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
12951         op1 is an fp zero.
12952         (movsf_aarch64): Change condition from register_operand to
12953         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
12954         load1.  Change type for alternative 7 to store1.
12955         (movdf_aarch64): Likewise.
12957 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
12959         * config/vax/vax.md: Adjust sign/zero extend patterns to
12960         handle SUBREGs in operands[1].
12962 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12964         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
12965         of manually swapping.
12966         (expand_vec_perm_interleave2): Likewise.
12968 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
12970         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
12971         reuse bounds created for abnormal ssa names.
12973 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
12975         * config/nvptx/nvptx.md (allocate_stack): Rename to...
12976         (allocate_stack_<mode>): ... this, and add :P on both
12977         match_operand and unspec.
12978         (allocate_stack): New expander.
12980 2015-06-19  Christian Bruel  <christian.bruel@st.com>
12982         PR target/66541
12983         PR target/52144
12984         * config/arm/arm.c (arm_set_current_function): Handle
12985         explicit default options.
12987 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
12989         * config/i386/i386.md (*movsicc_noc_zext): New insn.
12990         (zero-extended cmove with mem peephole2): New pattern.
12991         (cmove with mem peephole2): Merge patterns.
12993 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
12995         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
12997 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
12999         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
13000         * config/mips/mips.md (*madd4<mode>): Ditto.
13001         (*nmadd3<mode>) Ditto.
13002         (*nmadd4<mode>_fastmath): Ditto.
13003         (*nmadd3<mode>_fastmath): Ditto.
13004         (*nmsub4<mode>): Ditto.
13005         (*nmsub3<mode>): Ditto.
13006         (*nmsub4<mode>_fastmath): Ditto.
13007         (*nmsub3<mode>_fastmath): Ditto.
13009 2015-06-18  Michael Matz  <matz@suse.de>
13011         PR middle-end/66253
13012         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
13013         grouped strided stores.
13014         (vectorizable_load): Don't use the DR from first_stmt in
13015         the non-SLP grouped strided case.
13017 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13019         PR target/66569
13020         * function.c (assign_bounds): Add arguments assign_regs,
13021         assign_special, assign_bt.
13022         (assign_parms): For vararg functions handle bounds in BT
13023         and special slots after incoming vararg bounds.
13025 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13027         PR middle-end/66568
13028         * cfgexpand.c (expand_return): Handle missing bounds.
13029         (expand_gimple_stmt_1): Likewise.
13030         * tree-chkp.c (chkp_expand_zero_bounds): New.
13031         * tree-chkp.h (chkp_expand_zero_bounds): New.
13033 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13035         PR middle-end/66567
13036         * ipa-chkp.c (chkp_maybe_create_clone): Require
13037         functions to be instrumentable.
13038         * tree-chkp.c (chkp_replace_function_pointer): Use
13039         chkp_instrumentable_p instead of attribute check.
13041 2015-06-18  Richard Biener  <rguenther@suse.de>
13043         PR tree-optimization/66510
13044         * tree-vect-stmts.c (vectorizable_load): Properly compute the
13045         number of vector loads for SLP permuted loads.
13046         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
13047         check the stride for loop vectorization.
13048         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
13049         vectorization factor.
13050         (vect_analyze_group_access): If the group size is not a power
13051         of two require a epilogue loop.
13052         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
13053         compute and optimizing and alias test pruning after final
13054         vectorization factor computation.
13055         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
13056         vector alignment.
13057         (vect_transform_slp_perm_load): Properly compute the original
13058         number of vector load stmts.
13060 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
13062         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
13063         "unlikely character , in @var" warning.
13065 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
13067         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
13068         (ix86_function_arg_advance): Ditto.
13069         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
13071 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
13073         * function.h (struct rtl_data): Remove struct and accessor macros.
13074         * emit-rtl.h (struct rtl_data): Relocate to here.
13075         * Makefile.in (GTFILES): Add emit-rtl.h.
13076         * df-core.c: Include emit-rtl.h.
13077         * genattrtab.c: Likewise.
13078         * genconditions.c: Likewise.
13079         * genpreds.c: Likewise.
13080         * genrecog.c: Likewise.
13081         * regcprop.c: Likewise.
13082         * resource.c: Likewise.
13083         * sched-rgn.c: Likewise.
13084         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13085         * config/i386/winnt.c: Likewise.
13087 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
13089         PR middle-end/66429
13090         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
13091         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
13092         and has_force_vectorize_loops flags from cfun into
13093         child_cfun.
13094         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
13095         if simduid is non-NULL.
13096         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
13097         * passes.def (pass_simduid_cleanup): Add new pass after loop
13098         passes.
13099         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
13100         indirection from htab argument's type.
13101         (shrink_simd_arrays): New function.
13102         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
13103         Don't call adjust_simduid_builtins if there are no loops.
13104         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
13105         (pass_simduid_cleanup::execute): New method.
13106         (make_pass_simduid_cleanup): New function.
13108 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
13110         * tree-core.h (tree_target_option): Make opts field a pointer to a
13111         cl_target_option instead of an instance of the struct.
13112         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
13113         the structure.
13114         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
13115         TARGET_OPTION_NODE.
13116         (copy_node_stat): Allocate and copy struct cl_target_option.
13118 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
13120         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
13121         Remove conditional exposure of prototypes.
13122         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
13123         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
13124         definitions in tree.h with functions.
13125         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
13126         anon_aggrname_p.
13127         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
13129 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
13131         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
13132         (*cmp<mode>_signed): ... this.
13133         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
13134         (*cmp<mode>_unsigned): ... this.  Remove %b.
13136 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
13138         * coretypes.h: Include input.h and as-a.h.
13139         * rtl.h: Include input.h and as-a.h for generator files.
13140         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
13141         * vec.c: Don't include diagnostic-core.h.
13142         * alias.c: Do not include input.h, line-map.h or is-a.h.
13143         * asan.c: Likewise.
13144         * attribs.c: Likewise.
13145         * auto-inc-dec.c: Likewise.
13146         * auto-profile.c: Likewise.
13147         * bb-reorder.c: Likewise.
13148         * bt-load.c: Likewise.
13149         * builtins.c: Likewise.
13150         * caller-save.c: Likewise.
13151         * calls.c: Likewise.
13152         * ccmp.c: Likewise.
13153         * cfg.c: Likewise.
13154         * cfganal.c: Likewise.
13155         * cfgbuild.c: Likewise.
13156         * cfgcleanup.c: Likewise.
13157         * cfgexpand.c: Likewise.
13158         * cfghooks.c: Likewise.
13159         * cfgloop.c: Likewise.
13160         * cfgloop.h: Likewise.
13161         * cfgloopanal.c: Likewise.
13162         * cfgloopmanip.c: Likewise.
13163         * cfgrtl.c: Likewise.
13164         * cgraph.c: Likewise.
13165         * cgraphbuild.c: Likewise.
13166         * cgraphclones.c: Likewise.
13167         * cgraphunit.c: Likewise.
13168         * cilk-common.c: Likewise.
13169         * combine-stack-adj.c: Likewise.
13170         * combine.c: Likewise.
13171         * compare-elim.c: Likewise.
13172         * convert.c: Likewise.
13173         * coverage.c: Likewise.
13174         * cppbuiltin.c: Likewise.
13175         * cprop.c: Likewise.
13176         * cse.c: Likewise.
13177         * cselib.c: Likewise.
13178         * data-streamer-in.c: Likewise.
13179         * data-streamer-out.c: Likewise.
13180         * data-streamer.c: Likewise.
13181         * dbxout.c: Likewise.
13182         * dce.c: Likewise.
13183         * ddg.c: Likewise.
13184         * debug.c: Likewise.
13185         * df-core.c: Likewise.
13186         * df-problems.c: Likewise.
13187         * df-scan.c: Likewise.
13188         * df.h: Likewise.
13189         * dfp.c: Likewise.
13190         * diagnostic-core.h: Likewise.
13191         * diagnostic.c: Likewise.
13192         * dojump.c: Likewise.
13193         * dominance.c: Likewise.
13194         * domwalk.c: Likewise.
13195         * double-int.c: Likewise.
13196         * dse.c: Likewise.
13197         * dumpfile.c: Likewise.
13198         * dumpfile.h: Likewise.
13199         * dwarf2asm.c: Likewise.
13200         * dwarf2cfi.c: Likewise.
13201         * dwarf2out.c: Likewise.
13202         * emit-rtl.c: Likewise.
13203         * et-forest.c: Likewise.
13204         * except.c: Likewise.
13205         * explow.c: Likewise.
13206         * expmed.c: Likewise.
13207         * expr.c: Likewise.
13208         * final.c: Likewise.
13209         * fixed-value.c: Likewise.
13210         * fold-const.c: Likewise.
13211         * function.c: Likewise.
13212         * fwprop.c: Likewise.
13213         * gcc-plugin.h: Likewise.
13214         * gcse.c: Likewise.
13215         * generic-match-head.c: Likewise.
13216         * ggc-page.c: Likewise.
13217         * gimple-builder.c: Likewise.
13218         * gimple-expr.c: Likewise.
13219         * gimple-fold.c: Likewise.
13220         * gimple-iterator.c: Likewise.
13221         * gimple-low.c: Likewise.
13222         * gimple-match-head.c: Likewise.
13223         * gimple-pretty-print.c: Likewise.
13224         * gimple-ssa-isolate-paths.c: Likewise.
13225         * gimple-ssa-strength-reduction.c: Likewise.
13226         * gimple-streamer-in.c: Likewise.
13227         * gimple-streamer-out.c: Likewise.
13228         * gimple-streamer.h: Likewise.
13229         * gimple-walk.c: Likewise.
13230         * gimple.c: Likewise.
13231         * gimplify-me.c: Likewise.
13232         * gimplify.c: Likewise.
13233         * godump.c: Likewise.
13234         * graph.c: Likewise.
13235         * graphite-blocking.c: Likewise.
13236         * graphite-dependences.c: Likewise.
13237         * graphite-interchange.c: Likewise.
13238         * graphite-isl-ast-to-gimple.c: Likewise.
13239         * graphite-optimize-isl.c: Likewise.
13240         * graphite-poly.c: Likewise.
13241         * graphite-scop-detection.c: Likewise.
13242         * graphite-sese-to-poly.c: Likewise.
13243         * graphite.c: Likewise.
13244         * haifa-sched.c: Likewise.
13245         * hw-doloop.c: Likewise.
13246         * ifcvt.c: Likewise.
13247         * init-regs.c: Likewise.
13248         * input.c: Likewise.
13249         * internal-fn.c: Likewise.
13250         * ipa-chkp.c: Likewise.
13251         * ipa-comdats.c: Likewise.
13252         * ipa-cp.c: Likewise.
13253         * ipa-devirt.c: Likewise.
13254         * ipa-icf-gimple.c: Likewise.
13255         * ipa-icf.c: Likewise.
13256         * ipa-inline-analysis.c: Likewise.
13257         * ipa-inline-transform.c: Likewise.
13258         * ipa-inline.c: Likewise.
13259         * ipa-polymorphic-call.c: Likewise.
13260         * ipa-profile.c: Likewise.
13261         * ipa-prop.c: Likewise.
13262         * ipa-pure-const.c: Likewise.
13263         * ipa-ref.c: Likewise.
13264         * ipa-reference.c: Likewise.
13265         * ipa-split.c: Likewise.
13266         * ipa-utils.c: Likewise.
13267         * ipa-visibility.c: Likewise.
13268         * ipa.c: Likewise.
13269         * ira-build.c: Likewise.
13270         * ira-color.c: Likewise.
13271         * ira-conflicts.c: Likewise.
13272         * ira-costs.c: Likewise.
13273         * ira-emit.c: Likewise.
13274         * ira-lives.c: Likewise.
13275         * ira.c: Likewise.
13276         * jump.c: Likewise.
13277         * langhooks.c: Likewise.
13278         * lcm.c: Likewise.
13279         * loop-doloop.c: Likewise.
13280         * loop-init.c: Likewise.
13281         * loop-invariant.c: Likewise.
13282         * loop-iv.c: Likewise.
13283         * loop-unroll.c: Likewise.
13284         * lower-subreg.c: Likewise.
13285         * lra-assigns.c: Likewise.
13286         * lra-coalesce.c: Likewise.
13287         * lra-constraints.c: Likewise.
13288         * lra-eliminations.c: Likewise.
13289         * lra-lives.c: Likewise.
13290         * lra-remat.c: Likewise.
13291         * lra-spills.c: Likewise.
13292         * lra.c: Likewise.
13293         * lto-cgraph.c: Likewise.
13294         * lto-compress.c: Likewise.
13295         * lto-opts.c: Likewise.
13296         * lto-section-in.c: Likewise.
13297         * lto-section-out.c: Likewise.
13298         * lto-streamer-in.c: Likewise.
13299         * lto-streamer-out.c: Likewise.
13300         * lto-streamer.c: Likewise.
13301         * mcf.c: Likewise.
13302         * mode-switching.c: Likewise.
13303         * modulo-sched.c: Likewise.
13304         * omega.c: Likewise.
13305         * omp-low.c: Likewise.
13306         * optabs.c: Likewise.
13307         * opts-global.c: Likewise.
13308         * opts.h: Likewise.
13309         * passes.c: Likewise.
13310         * plugin.c: Likewise.
13311         * postreload-gcse.c: Likewise.
13312         * postreload.c: Likewise.
13313         * predict.c: Likewise.
13314         * pretty-print.h: Likewise.
13315         * print-rtl.c: Likewise.
13316         * print-tree.c: Likewise.
13317         * profile.c: Likewise.
13318         * real.c: Likewise.
13319         * realmpfr.c: Likewise.
13320         * recog.c: Likewise.
13321         * ree.c: Likewise.
13322         * reg-stack.c: Likewise.
13323         * regcprop.c: Likewise.
13324         * reginfo.c: Likewise.
13325         * regrename.c: Likewise.
13326         * regstat.c: Likewise.
13327         * reload.c: Likewise.
13328         * reload1.c: Likewise.
13329         * reorg.c: Likewise.
13330         * resource.c: Likewise.
13331         * rtl-chkp.c: Likewise.
13332         * rtl-error.c: Likewise.
13333         * rtlanal.c: Likewise.
13334         * rtlhooks.c: Likewise.
13335         * sanopt.c: Likewise.
13336         * sched-deps.c: Likewise.
13337         * sched-ebb.c: Likewise.
13338         * sched-rgn.c: Likewise.
13339         * sched-vis.c: Likewise.
13340         * sdbout.c: Likewise.
13341         * sel-sched-dump.c: Likewise.
13342         * sel-sched-ir.c: Likewise.
13343         * sel-sched.c: Likewise.
13344         * sese.c: Likewise.
13345         * shrink-wrap.c: Likewise.
13346         * simplify-rtx.c: Likewise.
13347         * stack-ptr-mod.c: Likewise.
13348         * statistics.c: Likewise.
13349         * stmt.c: Likewise.
13350         * stor-layout.c: Likewise.
13351         * store-motion.c: Likewise.
13352         * streamer-hooks.c: Likewise.
13353         * stringpool.c: Likewise.
13354         * symtab.c: Likewise.
13355         * target-globals.c: Likewise.
13356         * targhooks.c: Likewise.
13357         * toplev.c: Likewise.
13358         * tracer.c: Likewise.
13359         * trans-mem.c: Likewise.
13360         * tree-affine.c: Likewise.
13361         * tree-browser.c: Likewise.
13362         * tree-call-cdce.c: Likewise.
13363         * tree-cfg.c: Likewise.
13364         * tree-cfgcleanup.c: Likewise.
13365         * tree-chkp-opt.c: Likewise.
13366         * tree-chkp.c: Likewise.
13367         * tree-chrec.c: Likewise.
13368         * tree-complex.c: Likewise.
13369         * tree-data-ref.c: Likewise.
13370         * tree-dfa.c: Likewise.
13371         * tree-diagnostic.c: Likewise.
13372         * tree-dump.c: Likewise.
13373         * tree-eh.c: Likewise.
13374         * tree-emutls.c: Likewise.
13375         * tree-if-conv.c: Likewise.
13376         * tree-inline.c: Likewise.
13377         * tree-into-ssa.c: Likewise.
13378         * tree-iterator.c: Likewise.
13379         * tree-loop-distribution.c: Likewise.
13380         * tree-nested.c: Likewise.
13381         * tree-nrv.c: Likewise.
13382         * tree-object-size.c: Likewise.
13383         * tree-outof-ssa.c: Likewise.
13384         * tree-parloops.c: Likewise.
13385         * tree-phinodes.c: Likewise.
13386         * tree-predcom.c: Likewise.
13387         * tree-pretty-print.c: Likewise.
13388         * tree-profile.c: Likewise.
13389         * tree-scalar-evolution.c: Likewise.
13390         * tree-sra.c: Likewise.
13391         * tree-ssa-address.c: Likewise.
13392         * tree-ssa-alias.c: Likewise.
13393         * tree-ssa-ccp.c: Likewise.
13394         * tree-ssa-coalesce.c: Likewise.
13395         * tree-ssa-copy.c: Likewise.
13396         * tree-ssa-copyrename.c: Likewise.
13397         * tree-ssa-dce.c: Likewise.
13398         * tree-ssa-dom.c: Likewise.
13399         * tree-ssa-dse.c: Likewise.
13400         * tree-ssa-forwprop.c: Likewise.
13401         * tree-ssa-ifcombine.c: Likewise.
13402         * tree-ssa-live.c: Likewise.
13403         * tree-ssa-loop-ch.c: Likewise.
13404         * tree-ssa-loop-im.c: Likewise.
13405         * tree-ssa-loop-ivcanon.c: Likewise.
13406         * tree-ssa-loop-ivopts.c: Likewise.
13407         * tree-ssa-loop-manip.c: Likewise.
13408         * tree-ssa-loop-niter.c: Likewise.
13409         * tree-ssa-loop-prefetch.c: Likewise.
13410         * tree-ssa-loop-unswitch.c: Likewise.
13411         * tree-ssa-loop.c: Likewise.
13412         * tree-ssa-math-opts.c: Likewise.
13413         * tree-ssa-operands.c: Likewise.
13414         * tree-ssa-phiopt.c: Likewise.
13415         * tree-ssa-phiprop.c: Likewise.
13416         * tree-ssa-pre.c: Likewise.
13417         * tree-ssa-propagate.c: Likewise.
13418         * tree-ssa-reassoc.c: Likewise.
13419         * tree-ssa-sccvn.c: Likewise.
13420         * tree-ssa-scopedtables.c: Likewise.
13421         * tree-ssa-sink.c: Likewise.
13422         * tree-ssa-strlen.c: Likewise.
13423         * tree-ssa-structalias.c: Likewise.
13424         * tree-ssa-tail-merge.c: Likewise.
13425         * tree-ssa-ter.c: Likewise.
13426         * tree-ssa-threadedge.c: Likewise.
13427         * tree-ssa-threadupdate.c: Likewise.
13428         * tree-ssa-uncprop.c: Likewise.
13429         * tree-ssa-uninit.c: Likewise.
13430         * tree-ssa.c: Likewise.
13431         * tree-ssanames.c: Likewise.
13432         * tree-stdarg.c: Likewise.
13433         * tree-streamer-in.c: Likewise.
13434         * tree-streamer-out.c: Likewise.
13435         * tree-streamer.c: Likewise.
13436         * tree-switch-conversion.c: Likewise.
13437         * tree-tailcall.c: Likewise.
13438         * tree-vect-data-refs.c: Likewise.
13439         * tree-vect-generic.c: Likewise.
13440         * tree-vect-loop-manip.c: Likewise.
13441         * tree-vect-loop.c: Likewise.
13442         * tree-vect-patterns.c: Likewise.
13443         * tree-vect-slp.c: Likewise.
13444         * tree-vect-stmts.c: Likewise.
13445         * tree-vectorizer.c: Likewise.
13446         * tree-vrp.c: Likewise.
13447         * tree.c: Likewise.
13448         * tsan.c: Likewise.
13449         * ubsan.c: Likewise.
13450         * valtrack.c: Likewise.
13451         * value-prof.c: Likewise.
13452         * var-tracking.c: Likewise.
13453         * varasm.c: Likewise.
13454         * varpool.c: Likewise.
13455         * vmsdbgout.c: Likewise.
13456         * vtable-verify.c: Likewise.
13457         * web.c: Likewise.
13458         * wide-int.cc: Likewise.
13459         * xcoffout.c: Likewise.
13460         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
13461         * common/common-targhooks.c: Likewise.
13462         * config/aarch64/aarch64-builtins.c: Likewise.
13463         * config/aarch64/aarch64.c: Likewise.
13464         * config/alpha/alpha.c: Likewise.
13465         * config/arc/arc.c: Likewise.
13466         * config/arm/aarch-common.c: Likewise.
13467         * config/arm/arm-builtins.c: Likewise.
13468         * config/arm/arm-c.c: Likewise.
13469         * config/arm/arm.c: Likewise.
13470         * config/avr/avr-c.c: Likewise.
13471         * config/avr/avr-log.c: Likewise.
13472         * config/avr/avr.c: Likewise.
13473         * config/bfin/bfin.c: Likewise.
13474         * config/c6x/c6x.c: Likewise.
13475         * config/cr16/cr16.c: Likewise.
13476         * config/cris/cris.c: Likewise.
13477         * config/darwin-c.c: Likewise.
13478         * config/darwin.c: Likewise.
13479         * config/default-c.c: Likewise.
13480         * config/epiphany/epiphany.c: Likewise.
13481         * config/epiphany/mode-switch-use.c: Likewise.
13482         * config/epiphany/resolve-sw-modes.c: Likewise.
13483         * config/fr30/fr30.c: Likewise.
13484         * config/frv/frv.c: Likewise.
13485         * config/ft32/ft32.c: Likewise.
13486         * config/glibc-c.c: Likewise.
13487         * config/h8300/h8300.c: Likewise.
13488         * config/i386/i386-c.c: Likewise.
13489         * config/i386/i386.c: Likewise.
13490         * config/i386/msformat-c.c: Likewise.
13491         * config/i386/winnt-cxx.c: Likewise.
13492         * config/i386/winnt-stubs.c: Likewise.
13493         * config/i386/winnt.c: Likewise.
13494         * config/ia64/ia64-c.c: Likewise.
13495         * config/ia64/ia64.c: Likewise.
13496         * config/iq2000/iq2000.c: Likewise.
13497         * config/lm32/lm32.c: Likewise.
13498         * config/m32c/m32c-pragma.c: Likewise.
13499         * config/m32c/m32c.c: Likewise.
13500         * config/m32r/m32r.c: Likewise.
13501         * config/m68k/m68k.c: Likewise.
13502         * config/mcore/mcore.c: Likewise.
13503         * config/mep/mep-pragma.c: Likewise.
13504         * config/mep/mep.c: Likewise.
13505         * config/microblaze/microblaze-c.c: Likewise.
13506         * config/microblaze/microblaze.c: Likewise.
13507         * config/mips/mips.c: Likewise.
13508         * config/mmix/mmix.c: Likewise.
13509         * config/mn10300/mn10300.c: Likewise.
13510         * config/moxie/moxie.c: Likewise.
13511         * config/msp430/msp430-c.c: Likewise.
13512         * config/msp430/msp430.c: Likewise.
13513         * config/nds32/nds32-cost.c: Likewise.
13514         * config/nds32/nds32-fp-as-gp.c: Likewise.
13515         * config/nds32/nds32-intrinsic.c: Likewise.
13516         * config/nds32/nds32-isr.c: Likewise.
13517         * config/nds32/nds32-md-auxiliary.c: Likewise.
13518         * config/nds32/nds32-memory-manipulation.c: Likewise.
13519         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13520         * config/nds32/nds32-predicates.c: Likewise.
13521         * config/nds32/nds32.c: Likewise.
13522         * config/nios2/nios2.c: Likewise.
13523         * config/nvptx/nvptx.c: Likewise.
13524         * config/pa/pa.c: Likewise.
13525         * config/pdp11/pdp11.c: Likewise.
13526         * config/rl78/rl78-c.c: Likewise.
13527         * config/rl78/rl78.c: Likewise.
13528         * config/rs6000/rs6000-c.c: Likewise.
13529         * config/rs6000/rs6000.c: Likewise.
13530         * config/rx/rx.c: Likewise.
13531         * config/s390/s390-c.c: Likewise.
13532         * config/s390/s390.c: Likewise.
13533         * config/sh/sh-c.c: Likewise.
13534         * config/sh/sh-mem.cc: Likewise.
13535         * config/sh/sh.c: Likewise.
13536         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13537         * config/sh/sh_treg_combine.cc: Likewise.
13538         * config/sol2-c.c: Likewise.
13539         * config/sol2-cxx.c: Likewise.
13540         * config/sol2-stubs.c: Likewise.
13541         * config/sol2.c: Likewise.
13542         * config/sparc/sparc-c.c: Likewise.
13543         * config/sparc/sparc.c: Likewise.
13544         * config/spu/spu-c.c: Likewise.
13545         * config/spu/spu.c: Likewise.
13546         * config/stormy16/stormy16.c: Likewise.
13547         * config/tilegx/mul-tables.c: Likewise.
13548         * config/tilegx/tilegx-c.c: Likewise.
13549         * config/tilegx/tilegx.c: Likewise.
13550         * config/tilepro/mul-tables.c: Likewise.
13551         * config/tilepro/tilepro-c.c: Likewise.
13552         * config/tilepro/tilepro.c: Likewise.
13553         * config/v850/v850-c.c: Likewise.
13554         * config/v850/v850.c: Likewise.
13555         * config/vax/vax.c: Likewise.
13556         * config/visium/visium.c: Likewise.
13557         * config/vms/vms-c.c: Likewise.
13558         * config/vms/vms.c: Likewise.
13559         * config/vxworks.c: Likewise.
13560         * config/winnt-c.c: Likewise.
13561         * config/xtensa/xtensa.c: Likewise.
13563 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
13565         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
13566         function.
13567         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
13569 2015-06-17  Richard Biener  <rguenther@suse.de>
13571         PR tree-optimization/66251
13572         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
13573         stmts for SLP strided stores.
13575         Revert
13576         2015-05-22  Richard Biener  <rguenther@suse.de>
13578         PR tree-optimization/66251
13579         * tree-vect-stmts.c (vectorizable_conversion): Properly
13580         set STMT_VINFO_VEC_STMT even for the SLP case.
13582         2015-05-26  Michael Matz  <matz@suse.de>
13584         PR middle-end/66251
13585         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
13586         STMT_VINFO_VEC_STMT, also with SLP.
13588 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
13590         PR target/56766
13591         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
13592         (*avx_addsubv4df3_1s): Ditto.
13593         (*sse3_addsubv2df3_1): Ditto.
13594         (*sse3_addsubv2df3_1s): Ditto.
13595         (*avx_addsubv8sf3_1): Ditto.
13596         (*avx_addsubv8sf3_1s): Ditto.
13597         (*sse3_addsubv4sf3_1): Ditto.
13598         (*sse3_addsubv4sf3_1s): Ditto.
13600 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
13602         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
13603         (SYSROOT_SUFFIX_SPEC): Update.
13604         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
13605         (STARTFILE_PREFIX_SPEC): Update.
13606         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
13607         (MULTILIB_REQUIRED): New.
13608         (MULTILIB_OSDIRNAMES): New.
13609         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
13610         (MULTILIB_REQUIRED): New.
13611         (MULTILIB_OSDIRNAMES): New.
13613 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
13615         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
13616         * config/aarch64/aarch64-options-extensions.def: Update "fP",
13617         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
13618         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
13619         (AARCH64_FL_PAN): New.
13620         (AARCH64_FL_LOR): New.
13621         (AARCH64_FL_RDMA): New.
13622         (AARCH64_FL_FOR_ARCH8_1): New.
13623         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
13624         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
13626 2015-06-16  Martin Liska  <mliska@suse.cz>
13628         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
13629         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
13630         guard.
13632 2015-06-16  Richard Biener  <rguenther@suse.de>
13634         * tree-vect-stmts.c (vectorizable_store): Adjust.
13635         (vectorizable_load): Likewise.
13636         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13637         Simplify.
13638         (vect_create_data_ref_ptr): Likewise.
13639         (bump_vector_ptr): Adjust.
13641 2015-06-16  Richard Biener  <rguenther@suse.de>
13643         * tree-vect-stmts.c (vectorizable_load): Properly start loads
13644         with the first element if this is grouped loads.
13646 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
13648         * config/arm/arm-protos.h (struct tune_params): Rename
13649         log_op_non_sc to log_op_non_short_circuit, and rename enum
13650         values to expand SC to SHORT_CIRCUIT.
13651         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
13652         to LOG_OP_NON_SHORT_CIRCUIT.
13653         (arm_fastmul_tune):Likewise
13654         (arm_strongarm_tune): Likewise.
13655         (arm_xscale_tune): Likewise.
13656         (arm_9e_tune): Likewise.
13657         (arm_marvell_pj4_tune): Likewise.
13658         (arm_v6t2_tune): Likewise.
13659         (arm_cortex_tune): Likewise.
13660         (arm_cortex_a8_tune): Likewise.
13661         (arm_cortex_a7_tune): Likewise.
13662         (arm_cortex_a15_tune): Likewise.
13663         (arm_cortex_a53_tune): Likewise.
13664         (arm_cortex_a57_tune): Likewise.
13665         (arm_xgene1_tune): Likewise.
13666         (arm_cortex_a5_tune): Likewise.
13667         (arm_cortex_a9_tune): Likewise.
13668         (arm_cortex_a12_tune): Likewise.
13669         (arm_v7m_tune): Likewise.
13670         (arm_cortex_m7_tune): Likewise.
13671         (arm_v6m_tune): Likewise.
13672         (arm_fa726te_tune): Likewise.
13674 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
13676         * altivec.md: Delete UNSPEC_VMLADDUHM.
13677         (mulv4si3_p8): New pattern.
13678         (mulv4si3): Use it for POWER8.
13679         (mulv8hi3): Use vmladduhm with zero addend.
13680         (altivec_vmladduhm): Descriptive RTL.
13682 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
13684         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
13685         to use neon_move instead of mov_imm.
13686         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
13687         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
13689         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
13690         aarch64_float_const_zero_rtx_p check before TFmode check.
13691         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
13692         an fp zero.
13693         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
13694         code and attributes to match.  Change condition from register_operand
13695         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
13696         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
13697         to store2.
13699 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
13701         PR debug/66535
13702         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
13703         there is no parent.
13705 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
13707         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
13708         HOST_WIDE_INT parameter.
13710 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
13712         PR ipa/66181
13713         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
13714         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
13715         TYPE_NO_FORCE_BLK.
13716         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
13718 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
13720         * rtl.h (classify_insn): Declare.
13721         * emit-rtl.c (classify_insn): Move to...
13722         * rtl.c: ...here and add generator support.
13723         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
13724         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
13725         * genemit.c (gen_emit_seq): New function.
13726         (gen_expand, gen_split): Use it.
13728 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
13730         * tree.c (make_vector_stat): Fix comment to state that the
13731         function returns a VECTOR_CST.
13733 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
13735         * gensupport.h (add_implicit_parallel): Declare.
13736         * genrecog.c (add_implicit_parallel): Move to...
13737         * gensupport.c (add_implicit_parallel): ...here.
13738         (process_one_cond_exec): Use it.
13739         * genemit.c (gen_insn): Likewise.
13741 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
13743         PR bootstrap/66448
13744         * passes.c (rest_of_decl_compilation): Do not register globals for
13745         early debug if they are declared in built-ins.
13747 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
13749         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
13751 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13753         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
13754         manually swapping.
13755         (noce_try_cmove_arith): Likewise.
13756         (noce_get_alt_condition): Likewise.
13758 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13760         * common/config/i386/i386-common.c
13761         (OPTION_MASK_ISA_MWAITX_SET): New.
13762         (ix86_handle_option): Handle mwaitx.
13763         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
13764         (x86_64-*-*): Likewise.
13765         * config/i386/mwaitxintrin.h: New header.
13766         * config/i386/cpuid.h (bit_MWAITX):  Define.
13767         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13768         MWAITX support.
13769         * config/i386/i386.opt (mwaitx): New.
13770         * config/i386/i386-builtin-types.def
13771         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
13772         * config/i386/i386-c.c: Define __MWAITX__ if needed.
13773         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
13774         (PTA_MWAITX): New.
13775         (ix86_option_override_internal): Handle new option.
13776         (processor_alias_table): Added PTA_MWAITX.
13777         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
13778         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
13779         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
13780         IX86_BUILTIN_MONITORX  built-ins.
13781         * config/i386/i386.h (TARGET_MWAITX): New.
13782         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
13783         UNSPEC_MONITORX.
13784         (mwaitx):  New pattern.
13785         (monitorx_<mode>): New pattern.
13786         * config/i386/x86intrin.h: Include mwaitxintrin.h.
13787         * doc/extend.texi: Document monitorx and mwaitx builtins.
13788         * doc/invoke.texi: Document -mmwaitx option.
13790 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
13792         * emit-rtl.c (need_atomic_barrier_p): Mask model with
13793         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
13795 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
13797         * dbxout.c (xcoff_debug_hooks): Provide a function for
13798         register_main_translation_unit hook.
13800 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
13802         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
13803         variants cases from switch.
13804         (rs6000_post_atomic_barrier): Same.
13805         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
13806         (rs6000_expand_atomic_exchange): Same.
13807         (rs6000_expand_atomic_op): Same.
13808         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
13809         SYNC variants cases from switch.
13810         (atomic_load): Same.
13811         (atomic_store): Same.
13813 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
13815         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
13816         CONST_INT for goto.
13818 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
13820         PR bootstrap/66448
13821         * dwarf2out.c (check_die): Check for common duplicate attributes.
13822         (add_location_or_const_value_attribute): Do not add duplicate
13823         attributes.
13824         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
13825         time around.
13826         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
13827         (gen_type_die_with_usage): Call check_die.
13828         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
13830 2015-06-11  Jason Merrill  <jason@redhat.com>
13832         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
13833         dies.
13835 2015-06-11  Marek Polacek  <polacek@redhat.com>
13837         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
13839 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
13841         PR bootstrap/66252
13842         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
13843         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
13844         (*addx_extend_sp32): Fix pasto.
13845         (*subx_extend): Rename into...
13846         (*subx_extend_sp32): ...this.
13847         (*adddi3_extend_sp32): Add earlyclobber.
13848         (*subdi3_insn_sp32): Likewise.
13849         (*subdi3_extend_sp32): Likewise.
13850         (*and_not_di_sp32): Likewise.
13851         (*or_not_di_sp32): Likewise.
13852         (*xor_not_di_sp32): Likewise.
13853         (*negdi2_sp32): Likewise.
13854         (*one_cmpldi2_sp32): Likewise.
13856 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
13858         * debug.h (struct gcc_debug_hooks): Add a
13859         register_main_translation_unit hook.
13860         * debug.c (do_nothing_debug_hooks): Provide a function for this
13861         new hook.
13862         * dbxout.c (dbx_debug_hooks): Likewise.
13863         * sdbout.c (sdb_debug_hooks): Likewise.
13864         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13865         * dwarf2out.c (main_translation_unit): New global variable.
13866         (dwarf2out_register_main_translation_unit): New function
13867         implementing the new hook.
13868         (dwarf2_debug_hooks): Assign
13869         dwarf2out_register_main_translation_unit to this new hook.
13870         (dwarf2out_init): Associate any main translation unit to
13871         comp_unit_die ().
13873 2015-06-11  Marek Polacek  <polacek@redhat.com>
13875         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
13877 2015-06-11  Marek Polacek  <polacek@redhat.com>
13879         * match.pd: Use single_use throughout.
13881 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13883         * config/arm/arm.c (arm_option_params_internal): When optimising
13884         for speed set max_insns_skipped when arm_restrict_it.
13886 2015-06-11  Christian Bruel  <christian.bruel@st.com>
13888         PR target/52144
13889         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
13890          macros in ...
13891         (arm_cpu_builtins): New function.
13892         (arm_pragma_target_parse): Call arm_cpu_builtins.
13893         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
13894         (arm_register_target_pragmas): Likewise.
13895         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
13896          Call arm_register_target_pragmas.
13897         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
13898         (arm_pragma_target_parse): Likewise.
13900 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
13902         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
13903         of the second operand.
13905 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
13907         PR target/66473
13908         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
13909         to prepare mask operand for AVX512 modes.
13911 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13913         PR target/66474
13914         * doc/md.texi (Machine Constraints): Document that on the PowerPC
13915         if you use a constraint that targets a VSX register, you must use
13916         %x<n> in the template.
13918 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
13920         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
13921         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
13922         (define_insn "trap"): New definition.
13924 2015-06-10  Richard Biener  <rguenther@suse.de>
13926         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
13927         out from ...
13928         (vect_supported_load_permutation_p): ... here.  Handle
13929         supportable permutations in reductions.
13930         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
13931         for vectorizing strided group loads.
13933 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
13935         PR target/66470
13936         * config/i386/i386.c (ix86_split_long_move): For collisions
13937         involving direct tls segment refs, move the UNSPEC_TP possibly
13938         wrapped in ZERO_EXTEND out of the address for lea, to each of
13939         the memory loads.
13941 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13943         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
13944         dmb sy. Adjust tabs.
13946 2015-06-10  Tom de Vries  <tom@codesourcery.com>
13948         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
13950 2015-06-10  Martin Liska  <mliska@suse.cz>
13952         PR bootstrap/66471
13953         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
13954         all enum values in mem_alloc_origin.
13955         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
13956         name.
13957         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
13958         * bitmap.c (bitmap_register): Likewise.
13959         (dump_bitmap_statistics): Likewise.
13960         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
13961         (ggc_record_overhead): Likewise.
13962         * hash-map.h: Likewise.
13963         * hash-set.h: Likewise.
13964         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
13965         * hash-table.h: Likewise.
13966         * vec.c (vec_prefix::register_overhead): Likewise.
13967         (vec_prefix::release_overhead): Likewise.
13968         (dump_vec_loc_statistics): Likewise.
13970 2015-06-09  Christian Bruel  <christian.bruel@st.com>
13972         PR target/52144
13973         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
13974         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
13975         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
13976         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
13977         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
13978         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
13979         (arm_valid_target_attribute_p): Likewise.
13980         (arm_set_current_function, arm_can_inline_p): Likewise.
13981         (arm_valid_target_attribute_rec): Likewise.
13982         (arm_previous_fndecl): New variable.
13983         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13984         (TARGET_CAN_INLINE_P): Define.
13985         (arm_asm_trampoline_template): Emit mode.
13986         (arm_file_start): Don't set unified syntax.
13987         (arm_declare_function_name): Set unified syntax and mode.
13988         (arm_option_override): Init target_option_default_node.
13989         and target_option_current_node.
13990         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
13991         (*call_symbol): Likewise.
13992         * doc/extend.texi: Document ARM/Thumb target attribute.
13993         * doc/invoke.texi: Likewise.
13995 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13997         Revert:
13998         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
13999         PR rtl-optimization/64164
14000         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14001         * tree-ssa-copyrename.c: Removed.
14002         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14003         -ftree-coalesce-vars.
14004         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14005         * common.opt (ftree-copyrename): Ignore.
14006         (ftree-coalesce-inlined-vars): Likewise.
14007         * doc/invoke.texi: Remove the ignored options above.
14008         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14009         * tree-ssa-coalesce.h: ... here.
14010         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14011         headers required by it.
14012         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14013         across variables when flag_tree_coalesce_vars.  Check register
14014         use and promoted modes to allow coalescing.  Moved to
14015         tree-ssa-coalesce.c.
14016         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14017         with its member functions to tree-ssa-coalesce.c.
14018         (var_map_base_init): Likewise.  Renamed to
14019         compute_samebase_partition_bases.
14020         (partition_view_normal): Drop want_bases parameter.
14021         (partition_view_bitmap): Likewise.
14022         * tree-ssa-live.h: Adjust declarations.
14023         * tree-ssa-coalesce.c: Include explow.h.
14024         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14025         default defs at the entry point.
14026         (dump_part_var_map): New.
14027         (compute_optimized_partition_bases): New, called by...
14028         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14029         of compute_samebase_partition_bases.  Adjust.
14030         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14031         * cfgexpand.c (leader_merge): New.
14032         (get_rtl_for_parm_ssa_default_def): New.
14033         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14034         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14035         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14036         redundant MEM attr setting.
14037         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14038         from...
14039         (expand_one_stack_var): ... this.  New wrapper to check and
14040         skip already expanded SSA partitions.
14041         (record_alignment_for_reg_var): New, factored out of...
14042         (expand_one_var): ... this.
14043         (expand_one_ssa_partition): New.
14044         (adjust_one_expanded_partition_var): New.
14045         (expand_one_register_var): Check and skip already expanded SSA
14046         partitions.
14047         (expand_used_vars): Don't create DECLs for anonymous SSA
14048         names.  Expand all SSA partitions, then adjust all SSA names.
14049         (pass::execute): Replace the loops that set
14050         SA.partition_to_pseudo from partition leaders and cleared
14051         DECL_RTL for multi-location variables, and that which used to
14052         rename vars and set attrs, with one that clears DECL_RTL and
14053         checks that PARMs and RESULTs default_defs match DECL_RTL.
14054         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14055         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14056         * explow.c (promote_ssa_mode): New.
14057         * explow.h (promote_ssa_mode): Declare.
14058         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14059         * function.c: Include cfgexpand.h.
14060         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14061         (use_register_for_parm_decl): Wrapper for the above to
14062         special-case the result_ptr.
14063         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14064         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14065         multiple locations.
14066         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14067         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14068         (assign_parm_setup_block): Prefer SSA-assigned location.
14069         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14070         if stack_parm is NULL.
14071         (assign_parm_setup_stack): Prefer SSA-assigned location.
14072         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14073         rtl before testing for pointer bounds.  Special-case result_ptr.
14074         (expand_function_start): Maybe reset DECL_RTL of result.
14075         Prefer SSA-assigned location for result and static chain.
14076         Factor out DECL_RESULT and SET_DECL_RTL.
14077         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14078         anonymous SSA names.  Use promote_ssa_mode.
14079         (get_temp_reg): Likewise.
14080         (remove_ssa_form): Adjust.
14081         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14082         and get its reg_usage for reg invalidation.
14083         (compute_bb_dataflow): Pass it insn.
14084         (emit_notes_in_bb): Likewise.
14085         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14086         fail assert on conversion between unsigned types.
14088 2015-06-09  Tom de Vries  <tom@codesourcery.com>
14090         PR tree-optimization/65460
14091         * omp-low.c (expand_omp_target): Set parallelized_function on
14092         cgraph_node for child_fn.
14094 2015-06-09  Tom de Vries  <tom@codesourcery.com>
14096         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
14097         parallelized_function before add_new_function.
14099 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
14101         * gcc-plugin.h: Move decls to plugin.h and include it.
14102         * plugin.h: Relocate decls from gcc-plugin.h
14103         * ggc-page.c: Include required header files.
14104         * passes.c: Likewise.
14105         * cgraphunit.c: Likewise.
14107 2015-06-09  Tom de Vries  <tom@codesourcery.com>
14109         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
14111 2015-06-09  Jason Merrill  <jason@redhat.com>
14113         PR bootstrap/66448
14114         * toplev.c (check_global_declaration): Don't warn about a clone.
14116 2015-06-09  Marek Polacek  <polacek@redhat.com>
14118         PR tree-optimization/66299
14119         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
14120         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
14121         patterns.
14123 2015-06-09  Richard Biener  <rguenther@suse.de>
14125         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
14126         (vect_analyze_slp_instance): Instead do not falsely drop
14127         load permutations.
14129 2015-06-09  Richard Biener  <rguenther@suse.de>
14131         PR middle-end/66423
14132         * match.pd: Handle A % (unsigned)(1 << B).
14134 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
14136         * varasm.c (output_object_block_htab): Remove.
14137         (output_object_block_compare): New.
14138         (output_object_blocks): Sort named object_blocks before outputting
14139         them.
14141 2015-06-09  Richard Biener  <rguenther@suse.de>
14143         PR tree-optimization/66419
14144         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
14145         consider GROUP_GAP when detecting a perfect subchain.
14147 2015-06-09  Nick Clifton  <nickc@redhat.com>
14149         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
14150         place read only data in the .frodata section.
14152 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
14154         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
14155         (atomic_store<mode>): Likewise.
14157 2015-06-09  Richard Biener  <rguenther@suse.de>
14159         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
14161 2015-06-09  Richard Biener  <rguenther@suse.de>
14163         PR middle-end/66413
14164         * tree-inline.c (insert_init_debug_bind): Unshare value.
14166 2015-06-09  Richard Biener  <rguenther@suse.de>
14168         PR tree-optimization/66396
14169         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
14170         Rename virtual operands.
14172 2015-06-09  Tom de Vries  <tom@codesourcery.com>
14174         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
14175         always return false.
14177 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
14179         PR rtl-optimization/64164
14180         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14181         * tree-ssa-copyrename.c: Removed.
14182         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
14183         -ftree-coalesce-vars.
14184         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14185         * common.opt (ftree-copyrename): Ignore.
14186         (ftree-coalesce-inlined-vars): Likewise.
14187         * doc/invoke.texi: Remove the ignored options above.
14188         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14189         * tree-ssa-coalesce.h: ... here.
14190         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14191         headers required by it.
14192         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14193         across variables when flag_tree_coalesce_vars.  Check register
14194         use and promoted modes to allow coalescing.  Moved to
14195         tree-ssa-coalesce.c.
14196         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14197         with its member functions to tree-ssa-coalesce.c.
14198         (var_map_base_init): Likewise.  Renamed to
14199         compute_samebase_partition_bases.
14200         (partition_view_normal): Drop want_bases parameter.
14201         (partition_view_bitmap): Likewise.
14202         * tree-ssa-live.h: Adjust declarations.
14203         * tree-ssa-coalesce.c: Include explow.h.
14204         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14205         default defs at the entry point.
14206         (dump_part_var_map): New.
14207         (compute_optimized_partition_bases): New, called by...
14208         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14209         of compute_samebase_partition_bases.  Adjust.
14210         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14211         * cfgexpand.c (leader_merge): New.
14212         (get_rtl_for_parm_ssa_default_def): New.
14213         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14214         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14215         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
14216         redundant MEM attr setting.
14217         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
14218         from...
14219         (expand_one_stack_var): ... this.  New wrapper to check and
14220         skip already expanded SSA partitions.
14221         (record_alignment_for_reg_var): New, factored out of...
14222         (expand_one_var): ... this.
14223         (expand_one_ssa_partition): New.
14224         (adjust_one_expanded_partition_var): New.
14225         (expand_one_register_var): Check and skip already expanded SSA
14226         partitions.
14227         (expand_used_vars): Don't create DECLs for anonymous SSA
14228         names.  Expand all SSA partitions, then adjust all SSA names.
14229         (pass::execute): Replace the loops that set
14230         SA.partition_to_pseudo from partition leaders and cleared
14231         DECL_RTL for multi-location variables, and that which used to
14232         rename vars and set attrs, with one that clears DECL_RTL and
14233         checks that PARMs and RESULTs default_defs match DECL_RTL.
14234         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14235         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14236         * explow.c (promote_ssa_mode): New.
14237         * explow.h (promote_ssa_mode): Declare.
14238         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14239         * function.c: Include cfgexpand.h.
14240         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14241         (use_register_for_parm_decl): Wrapper for the above to
14242         special-case the result_ptr.
14243         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14244         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14245         multiple locations.
14246         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14247         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
14248         (assign_parm_setup_block): Prefer SSA-assigned location.
14249         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
14250         if stack_parm is NULL.
14251         (assign_parm_setup_stack): Prefer SSA-assigned location.
14252         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
14253         rtl before testing for pointer bounds.  Special-case result_ptr.
14254         (expand_function_start): Maybe reset DECL_RTL of result.
14255         Prefer SSA-assigned location for result and static chain.
14256         Factor out DECL_RESULT and SET_DECL_RTL.
14257         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14258         anonymous SSA names.  Use promote_ssa_mode.
14259         (get_temp_reg): Likewise.
14260         (remove_ssa_form): Adjust.
14261         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14262         and get its reg_usage for reg invalidation.
14263         (compute_bb_dataflow): Pass it insn.
14264         (emit_notes_in_bb): Likewise.
14265         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
14266         fail assert on conversion between unsigned types.
14268 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
14270         PR debug/58315
14271         * tree-inline.c (reset_debug_binding): New.
14272         (reset_debug_bindings): Likewise.
14273         (expand_call_inline): Call it.
14275 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
14277         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
14278         TYPE_STRING_FLAG.
14280 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
14282         * lto-streamer-out.c (lto_output_location): Stream
14283         reserved locations correctly.
14284         * lto-streamer-in.c (lto_output_location): Likewise.
14286 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
14288         * coretypes.h: Include hash-table.h and hash-set.h for host files.
14289         * ggc.h: Don't include statistics.h>
14290         * hash-map.h: Remove all includes.
14291         * hash-set.h: Likewise.
14292         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14293         the include list. Remove <new>.
14294         * inchash.h: Remove all includes.
14295         * mem-stats.h: Likewise.
14296         * vec.h: No special processing for generators or ggc.
14297         * alias.c : Adjust include files.
14298         * alloc-pool.c : Likewise.
14299         * alloc-pool.h : Likewise.
14300         * asan.c : Likewise.
14301         * attribs.c : Likewise.
14302         * auto-inc-dec.c : Likewise.
14303         * auto-profile.c : Likewise.
14304         * bb-reorder.c : Likewise.
14305         * bitmap.c : Likewise.
14306         * bitmap.h : Likewise.
14307         * bt-load.c : Likewise.
14308         * builtins.c : Likewise.
14309         * caller-save.c : Likewise.
14310         * calls.c : Likewise.
14311         * ccmp.c : Likewise.
14312         * cfg.c : Likewise.
14313         * cfganal.c : Likewise.
14314         * cfgbuild.c : Likewise.
14315         * cfgcleanup.c : Likewise.
14316         * cfgexpand.c : Likewise.
14317         * cfghooks.c : Likewise.
14318         * cfgloop.c : Likewise.
14319         * cfgloop.h : Likewise.
14320         * cfgloopanal.c : Likewise.
14321         * cfgloopmanip.c : Likewise.
14322         * cfgrtl.c : Likewise.
14323         * cgraph.c : Likewise.
14324         * cgraphbuild.c : Likewise.
14325         * cgraphclones.c : Likewise.
14326         * cgraphunit.c : Likewise.
14327         * cilk-common.c : Likewise.
14328         * combine-stack-adj.c : Likewise.
14329         * combine.c : Likewise.
14330         * compare-elim.c : Likewise.
14331         * context.c : Likewise.
14332         * convert.c : Likewise.
14333         * coverage.c : Likewise.
14334         * cppbuiltin.c : Likewise.
14335         * cprop.c : Likewise.
14336         * cse.c : Likewise.
14337         * cselib.c : Likewise.
14338         * data-streamer-in.c : Likewise.
14339         * data-streamer-out.c : Likewise.
14340         * data-streamer.c : Likewise.
14341         * data-streamer.h : Likewise.
14342         * dbxout.c : Likewise.
14343         * dce.c : Likewise.
14344         * ddg.c : Likewise.
14345         * debug.c : Likewise.
14346         * df-core.c : Likewise.
14347         * df-problems.c : Likewise.
14348         * df-scan.c : Likewise.
14349         * df.h : Likewise.
14350         * dfp.c : Likewise.
14351         * dojump.c : Likewise.
14352         * dominance.c : Likewise.
14353         * domwalk.c : Likewise.
14354         * double-int.c : Likewise.
14355         * dse.c : Likewise.
14356         * dumpfile.c : Likewise.
14357         * dwarf2asm.c : Likewise.
14358         * dwarf2cfi.c : Likewise.
14359         * dwarf2out.c : Likewise.
14360         * emit-rtl.c : Likewise.
14361         * et-forest.c : Likewise.
14362         * except.c : Likewise.
14363         * except.h : Likewise.
14364         * explow.c : Likewise.
14365         * expmed.c : Likewise.
14366         * expr.c : Likewise.
14367         * final.c : Likewise.
14368         * fixed-value.c : Likewise.
14369         * fold-const.c : Likewise.
14370         * function.c : Likewise.
14371         * fwprop.c : Likewise.
14372         * gcc-plugin.h : Likewise.
14373         * gcc.c : Likewise.
14374         * gcse-common.c : Likewise.
14375         * gcse.c : Likewise.
14376         * genattrtab.c : Likewise.
14377         * genautomata.c : Likewise.
14378         * genconditions.c : Likewise.
14379         * genemit.c : Likewise.
14380         * generic-match-head.c : Likewise.
14381         * genextract.c : Likewise.
14382         * gengtype-state.c : Likewise.
14383         * gengtype.c : Likewise.
14384         * genhooks.c : Likewise.
14385         * genmatch.c : Likewise.
14386         * genmodes.c : Likewise.
14387         * genrecog.c : Likewise.
14388         * gensupport.c : Likewise.
14389         * ggc-common.c : Likewise.
14390         * ggc-internal.h : Likewise.
14391         * ggc-none.c : Likewise.
14392         * ggc-page.c : Likewise.
14393         * gimple-builder.c : Likewise.
14394         * gimple-expr.c : Likewise.
14395         * gimple-fold.c : Likewise.
14396         * gimple-iterator.c : Likewise.
14397         * gimple-low.c : Likewise.
14398         * gimple-match-head.c : Likewise.
14399         * gimple-pretty-print.c : Likewise.
14400         * gimple-ssa-isolate-paths.c : Likewise.
14401         * gimple-ssa-strength-reduction.c : Likewise.
14402         * gimple-ssa.h : Likewise.
14403         * gimple-streamer-in.c : Likewise.
14404         * gimple-streamer-out.c : Likewise.
14405         * gimple-streamer.h : Likewise.
14406         * gimple-walk.c : Likewise.
14407         * gimple.c : Likewise.
14408         * gimplify-me.c : Likewise.
14409         * gimplify.c : Likewise.
14410         * godump.c : Likewise.
14411         * graph.c : Likewise.
14412         * graphds.c : Likewise.
14413         * graphite-blocking.c : Likewise.
14414         * graphite-dependences.c : Likewise.
14415         * graphite-interchange.c : Likewise.
14416         * graphite-isl-ast-to-gimple.c : Likewise.
14417         * graphite-optimize-isl.c : Likewise.
14418         * graphite-poly.c : Likewise.
14419         * graphite-scop-detection.c : Likewise.
14420         * graphite-sese-to-poly.c : Likewise.
14421         * graphite.c : Likewise.
14422         * haifa-sched.c : Likewise.
14423         * hard-reg-set.h : Likewise.
14424         * hw-doloop.c : Likewise.
14425         * ifcvt.c : Likewise.
14426         * inchash.c : Likewise.
14427         * incpath.c : Likewise.
14428         * init-regs.c : Likewise.
14429         * input.c : Likewise.
14430         * internal-fn.c : Likewise.
14431         * ipa-chkp.c : Likewise.
14432         * ipa-comdats.c : Likewise.
14433         * ipa-cp.c : Likewise.
14434         * ipa-devirt.c : Likewise.
14435         * ipa-icf-gimple.c : Likewise.
14436         * ipa-icf.c : Likewise.
14437         * ipa-inline-analysis.c : Likewise.
14438         * ipa-inline-transform.c : Likewise.
14439         * ipa-inline.c : Likewise.
14440         * ipa-polymorphic-call.c : Likewise.
14441         * ipa-profile.c : Likewise.
14442         * ipa-prop.c : Likewise.
14443         * ipa-pure-const.c : Likewise.
14444         * ipa-ref.c : Likewise.
14445         * ipa-reference.c : Likewise.
14446         * ipa-split.c : Likewise.
14447         * ipa-utils.c : Likewise.
14448         * ipa-visibility.c : Likewise.
14449         * ipa.c : Likewise.
14450         * ira-build.c : Likewise.
14451         * ira-color.c : Likewise.
14452         * ira-conflicts.c : Likewise.
14453         * ira-costs.c : Likewise.
14454         * ira-emit.c : Likewise.
14455         * ira-lives.c : Likewise.
14456         * ira.c : Likewise.
14457         * jump.c : Likewise.
14458         * langhooks.c : Likewise.
14459         * lcm.c : Likewise.
14460         * libfuncs.h : Likewise.
14461         * lists.c : Likewise.
14462         * loop-doloop.c : Likewise.
14463         * loop-init.c : Likewise.
14464         * loop-invariant.c : Likewise.
14465         * loop-iv.c : Likewise.
14466         * loop-unroll.c : Likewise.
14467         * lower-subreg.c : Likewise.
14468         * lra-assigns.c : Likewise.
14469         * lra-coalesce.c : Likewise.
14470         * lra-constraints.c : Likewise.
14471         * lra-eliminations.c : Likewise.
14472         * lra-lives.c : Likewise.
14473         * lra-remat.c : Likewise.
14474         * lra-spills.c : Likewise.
14475         * lra.c : Likewise.
14476         * lto-cgraph.c : Likewise.
14477         * lto-compress.c : Likewise.
14478         * lto-opts.c : Likewise.
14479         * lto-section-in.c : Likewise.
14480         * lto-section-out.c : Likewise.
14481         * lto-streamer-in.c : Likewise.
14482         * lto-streamer-out.c : Likewise.
14483         * lto-streamer.c : Likewise.
14484         * lto-streamer.h : Likewise.
14485         * mcf.c : Likewise.
14486         * mode-switching.c : Likewise.
14487         * modulo-sched.c : Likewise.
14488         * omega.c : Likewise.
14489         * omp-low.c : Likewise.
14490         * optabs.c : Likewise.
14491         * opts-global.c : Likewise.
14492         * opts.h : Likewise.
14493         * passes.c : Likewise.
14494         * plugin.c : Likewise.
14495         * postreload-gcse.c : Likewise.
14496         * postreload.c : Likewise.
14497         * predict.c : Likewise.
14498         * print-rtl.c : Likewise.
14499         * print-tree.c : Likewise.
14500         * profile.c : Likewise.
14501         * read-md.c : Likewise.
14502         * read-md.h : Likewise.
14503         * read-rtl.c : Likewise.
14504         * real.c : Likewise.
14505         * realmpfr.c : Likewise.
14506         * recog.c : Likewise.
14507         * ree.c : Likewise.
14508         * reg-stack.c : Likewise.
14509         * regcprop.c : Likewise.
14510         * reginfo.c : Likewise.
14511         * regrename.c : Likewise.
14512         * regstat.c : Likewise.
14513         * reload.c : Likewise.
14514         * reload1.c : Likewise.
14515         * reorg.c : Likewise.
14516         * resource.c : Likewise.
14517         * rtl-chkp.c : Likewise.
14518         * rtl.c : Likewise.
14519         * rtl.h : Likewise.
14520         * rtlanal.c : Likewise.
14521         * rtlhash.c : Likewise.
14522         * rtlhash.h : Likewise.
14523         * rtlhooks.c : Likewise.
14524         * sanopt.c : Likewise.
14525         * sched-deps.c : Likewise.
14526         * sched-ebb.c : Likewise.
14527         * sched-rgn.c : Likewise.
14528         * sched-vis.c : Likewise.
14529         * sdbout.c : Likewise.
14530         * sel-sched-dump.c : Likewise.
14531         * sel-sched-ir.c : Likewise.
14532         * sel-sched-ir.h : Likewise.
14533         * sel-sched.c : Likewise.
14534         * sese.c : Likewise.
14535         * shrink-wrap.c : Likewise.
14536         * shrink-wrap.h : Likewise.
14537         * simplify-rtx.c : Likewise.
14538         * stack-ptr-mod.c : Likewise.
14539         * statistics.c : Likewise.
14540         * stmt.c : Likewise.
14541         * stor-layout.c : Likewise.
14542         * store-motion.c : Likewise.
14543         * stringpool.c : Likewise.
14544         * symtab.c : Likewise.
14545         * target-globals.c : Likewise.
14546         * targhooks.c : Likewise.
14547         * tlink.c : Likewise.
14548         * toplev.c : Likewise.
14549         * tracer.c : Likewise.
14550         * trans-mem.c : Likewise.
14551         * tree-affine.c : Likewise.
14552         * tree-affine.h : Likewise.
14553         * tree-browser.c : Likewise.
14554         * tree-call-cdce.c : Likewise.
14555         * tree-cfg.c : Likewise.
14556         * tree-cfgcleanup.c : Likewise.
14557         * tree-chkp-opt.c : Likewise.
14558         * tree-chkp.c : Likewise.
14559         * tree-chrec.c : Likewise.
14560         * tree-complex.c : Likewise.
14561         * tree-data-ref.c : Likewise.
14562         * tree-dfa.c : Likewise.
14563         * tree-diagnostic.c : Likewise.
14564         * tree-dump.c : Likewise.
14565         * tree-eh.c : Likewise.
14566         * tree-eh.h : Likewise.
14567         * tree-emutls.c : Likewise.
14568         * tree-hasher.h : Likewise.
14569         * tree-if-conv.c : Likewise.
14570         * tree-inline.c : Likewise.
14571         * tree-inline.h : Likewise.
14572         * tree-into-ssa.c : Likewise.
14573         * tree-iterator.c : Likewise.
14574         * tree-loop-distribution.c : Likewise.
14575         * tree-nested.c : Likewise.
14576         * tree-nrv.c : Likewise.
14577         * tree-object-size.c : Likewise.
14578         * tree-outof-ssa.c : Likewise.
14579         * tree-parloops.c : Likewise.
14580         * tree-phinodes.c : Likewise.
14581         * tree-predcom.c : Likewise.
14582         * tree-pretty-print.c : Likewise.
14583         * tree-profile.c : Likewise.
14584         * tree-scalar-evolution.c : Likewise.
14585         * tree-sra.c : Likewise.
14586         * tree-ssa-address.c : Likewise.
14587         * tree-ssa-alias.c : Likewise.
14588         * tree-ssa-ccp.c : Likewise.
14589         * tree-ssa-coalesce.c : Likewise.
14590         * tree-ssa-copy.c : Likewise.
14591         * tree-ssa-copyrename.c : Likewise.
14592         * tree-ssa-dce.c : Likewise.
14593         * tree-ssa-dom.c : Likewise.
14594         * tree-ssa-dse.c : Likewise.
14595         * tree-ssa-forwprop.c : Likewise.
14596         * tree-ssa-ifcombine.c : Likewise.
14597         * tree-ssa-live.c : Likewise.
14598         * tree-ssa-loop-ch.c : Likewise.
14599         * tree-ssa-loop-im.c : Likewise.
14600         * tree-ssa-loop-ivcanon.c : Likewise.
14601         * tree-ssa-loop-ivopts.c : Likewise.
14602         * tree-ssa-loop-manip.c : Likewise.
14603         * tree-ssa-loop-niter.c : Likewise.
14604         * tree-ssa-loop-prefetch.c : Likewise.
14605         * tree-ssa-loop-unswitch.c : Likewise.
14606         * tree-ssa-loop.c : Likewise.
14607         * tree-ssa-math-opts.c : Likewise.
14608         * tree-ssa-operands.c : Likewise.
14609         * tree-ssa-phiopt.c : Likewise.
14610         * tree-ssa-phiprop.c : Likewise.
14611         * tree-ssa-pre.c : Likewise.
14612         * tree-ssa-propagate.c : Likewise.
14613         * tree-ssa-reassoc.c : Likewise.
14614         * tree-ssa-sccvn.c : Likewise.
14615         * tree-ssa-scopedtables.c : Likewise.
14616         * tree-ssa-sink.c : Likewise.
14617         * tree-ssa-strlen.c : Likewise.
14618         * tree-ssa-structalias.c : Likewise.
14619         * tree-ssa-tail-merge.c : Likewise.
14620         * tree-ssa-ter.c : Likewise.
14621         * tree-ssa-threadedge.c : Likewise.
14622         * tree-ssa-threadupdate.c : Likewise.
14623         * tree-ssa-uncprop.c : Likewise.
14624         * tree-ssa-uninit.c : Likewise.
14625         * tree-ssa.c : Likewise.
14626         * tree-ssanames.c : Likewise.
14627         * tree-stdarg.c : Likewise.
14628         * tree-streamer-in.c : Likewise.
14629         * tree-streamer-out.c : Likewise.
14630         * tree-streamer.c : Likewise.
14631         * tree-streamer.h : Likewise.
14632         * tree-switch-conversion.c : Likewise.
14633         * tree-tailcall.c : Likewise.
14634         * tree-vect-data-refs.c : Likewise.
14635         * tree-vect-generic.c : Likewise.
14636         * tree-vect-loop-manip.c : Likewise.
14637         * tree-vect-loop.c : Likewise.
14638         * tree-vect-patterns.c : Likewise.
14639         * tree-vect-slp.c : Likewise.
14640         * tree-vect-stmts.c : Likewise.
14641         * tree-vectorizer.c : Likewise.
14642         * tree-vectorizer.h : Likewise.
14643         * tree-vrp.c : Likewise.
14644         * tree.c : Likewise.
14645         * tsan.c : Likewise.
14646         * ubsan.c : Likewise.
14647         * valtrack.c : Likewise.
14648         * valtrack.h : Likewise.
14649         * value-prof.c : Likewise.
14650         * var-tracking.c : Likewise.
14651         * varasm.c : Likewise.
14652         * varpool.c : Likewise.
14653         * vec.c: Likewise.
14654         * vmsdbgout.c : Likewise.
14655         * vtable-verify.c : Likewise.
14656         * vtable-verify.h : Likewise.
14657         * web.c : Likewise.
14658         * wide-int.cc : Likewise.
14659         * xcoffout.c : Likewise.
14660         * config/aarch64/aarch64-builtins.c : Likewise.
14661         * config/aarch64/aarch64.c : Likewise.
14662         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
14663         * config/alpha/alpha.c : Likewise.
14664         * config/arc/arc.c : Likewise.
14665         * config/arm/aarch-common.c : Likewise.
14666         * config/arm/arm-builtins.c : Likewise.
14667         * config/arm/arm-c.c : Likewise.
14668         * config/arm/arm.c : Likewise.
14669         * config/avr/avr-c.c : Likewise.
14670         * config/avr/avr-log.c : Likewise.
14671         * config/avr/avr.c : Likewise.
14672         * config/bfin/bfin.c : Likewise.
14673         * config/c6x/c6x.c : Likewise.
14674         * config/cr16/cr16.c : Likewise.
14675         * config/cris/cris.c : Likewise.
14676         * config/darwin-c.c : Likewise.
14677         * config/darwin.c : Likewise.
14678         * config/default-c.c : Likewise.
14679         * config/epiphany/epiphany.c : Likewise.
14680         * config/epiphany/mode-switch-use.c : Likewise.
14681         * config/epiphany/resolve-sw-modes.c : Likewise.
14682         * config/fr30/fr30.c : Likewise.
14683         * config/frv/frv.c : Likewise.
14684         * config/ft32/ft32.c : Likewise.
14685         * config/glibc-c.c : Likewise.
14686         * config/h8300/h8300.c : Likewise.
14687         * config/i386/i386-c.c : Likewise.
14688         * config/i386/i386.c : Likewise.
14689         * config/i386/msformat-c.c : Likewise.
14690         * config/i386/winnt-cxx.c : Likewise.
14691         * config/i386/winnt-stubs.c : Likewise.
14692         * config/i386/winnt.c : Likewise.
14693         * config/ia64/ia64-c.c : Likewise.
14694         * config/ia64/ia64.c : Likewise.
14695         * config/iq2000/iq2000.c : Likewise.
14696         * config/lm32/lm32.c : Likewise.
14697         * config/m32c/m32c-pragma.c : Likewise.
14698         * config/m32c/m32c.c : Likewise.
14699         * config/m32r/m32r.c : Likewise.
14700         * config/m68k/m68k.c : Likewise.
14701         * config/mcore/mcore.c : Likewise.
14702         * config/mep/mep-pragma.c : Likewise.
14703         * config/mep/mep.c : Likewise.
14704         * config/microblaze/microblaze-c.c : Likewise.
14705         * config/microblaze/microblaze.c : Likewise.
14706         * config/mips/mips.c : Likewise.
14707         * config/mmix/mmix.c : Likewise.
14708         * config/mn10300/mn10300.c : Likewise.
14709         * config/moxie/moxie.c : Likewise.
14710         * config/msp430/msp430-c.c : Likewise.
14711         * config/msp430/msp430.c : Likewise.
14712         * config/nds32/nds32-cost.c : Likewise.
14713         * config/nds32/nds32-fp-as-gp.c : Likewise.
14714         * config/nds32/nds32-intrinsic.c : Likewise.
14715         * config/nds32/nds32-isr.c : Likewise.
14716         * config/nds32/nds32-md-auxiliary.c : Likewise.
14717         * config/nds32/nds32-memory-manipulation.c : Likewise.
14718         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
14719         * config/nds32/nds32-predicates.c : Likewise.
14720         * config/nds32/nds32.c : Likewise.
14721         * config/nios2/nios2.c : Likewise.
14722         * config/nvptx/nvptx.c : Likewise.
14723         * config/pa/pa.c : Likewise.
14724         * config/pdp11/pdp11.c : Likewise.
14725         * config/rl78/rl78-c.c : Likewise.
14726         * config/rl78/rl78.c : Likewise.
14727         * config/rs6000/rs6000-c.c : Likewise.
14728         * config/rs6000/rs6000.c : Likewise.
14729         * config/rx/rx.c : Likewise.
14730         * config/s390/s390-c.c : Likewise.
14731         * config/s390/s390.c : Likewise.
14732         * config/sh/sh-c.c : Likewise.
14733         * config/sh/sh-mem.cc : Likewise.
14734         * config/sh/sh.c : Likewise.
14735         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
14736         * config/sh/sh_treg_combine.cc : Likewise.
14737         * config/sol2-c.c : Likewise.
14738         * config/sol2-cxx.c : Likewise.
14739         * config/sol2-stubs.c : Likewise.
14740         * config/sol2.c : Likewise.
14741         * config/sparc/sparc-c.c : Likewise.
14742         * config/sparc/sparc.c : Likewise.
14743         * config/spu/spu-c.c : Likewise.
14744         * config/spu/spu.c : Likewise.
14745         * config/stormy16/stormy16.c : Likewise.
14746         * config/tilegx/mul-tables.c : Likewise.
14747         * config/tilegx/tilegx-c.c : Likewise.
14748         * config/tilegx/tilegx.c : Likewise.
14749         * config/tilepro/mul-tables.c : Likewise.
14750         * config/tilepro/tilepro-c.c : Likewise.
14751         * config/tilepro/tilepro.c : Likewise.
14752         * config/v850/v850-c.c : Likewise.
14753         * config/v850/v850.c : Likewise.
14754         * config/vax/vax.c : Likewise.
14755         * config/visium/visium.c : Likewise.
14756         * config/vms/vms-c.c : Likewise.
14757         * config/vms/vms.c : Likewise.
14758         * config/vxworks.c : Likewise.
14759         * config/winnt-c.c : Likewise.
14760         * config/xtensa/xtensa.c : Likewise.
14762 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
14764         PR lto/65378
14765         * ipa-utils.h (warn_types_mismatch): Update prototype.
14766         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
14767         parameters.
14768         (type_mismatch_p): New function.
14769         (warn_types_mismatch): Reorg to work better on non-C++ types.
14770         (odr_types_equivalent_p): Add loc1/loc2 parameters.
14771         (add_type_duplicate): Update.
14773 2015-06-08  Tom de Vries  <tom@codesourcery.com>
14775         PR rtl-optimization/66444
14776         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
14777         call_used_regs.
14779 2015-06-08  Richard Biener  <rguenther@suse.de>
14781         PR tree-optimization/66422
14782         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
14783         block after inserted gcc_unreachable.
14785 2015-06-08  Nick Clifton  <nickc@redhat.com>
14787         * config/rx/rx.c (rx_function_value): Do not promote vector types.
14788         (rx_promote_function_mode): Likewise.
14789         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
14791 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
14793         * genattrtab.c (insn_alternatives): Change type from int *
14794         to uint64_t *.
14795         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
14796         (get_attr_value): Change type of num_alt to uint64_t.
14797         (compute_alternative_mask): Change return type from
14798         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
14799         (make_alternative_compare, mk_attr_alt): Change argument type
14800         from int to uint64_t.
14801         (simplify_test_exp): Change type of i from int to uint64_t.
14802         Shift ((uint64_t) 1) instead of 1 up.
14803         (main): Adjust oballocvec first argument from int to uint64_t.
14804         Shift ((uint64_t) 1) instead of 1 up.
14806 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
14808         PR other/65366
14809         * gdbhooks.py: Import sys.
14810         (intptr): New function.  Replace int(...) by intptr(...).
14812 2015-06-08  Richard Biener  <rguenther@suse.de>
14814         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
14815         adjustment for gaps at the end of a SLP load group properly.
14816         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
14817         all permutations we can generate.
14818         (vect_transform_slp_perm_load): Use the correct group-size.
14820 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
14822         * genmatch.c (expr::gen_transform): For conditions, guess the type
14823         from the second operand.
14825 2015-06-08  Tom de Vries  <tom@codesourcery.com>
14827         PR tree-optimization/66442
14828         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
14829         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
14830         if the loop latch is not a singleton.  Use
14831         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
14833 2015-06-08  Marek Polacek  <polacek@redhat.com>
14835         PR sanitizer/66452
14836         * toplev.c (check_global_declaration): Don't warn about artificial
14837         decls.
14839 2015-06-08  Tom de Vries  <tom@codesourcery.com>
14841         PR tree-optimization/66436
14842         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
14843         dump file.
14844         * gimplify.c: Add tree-dump.h include.
14845         (gimplify_function_tree): Dump function to gimple dump file.
14846         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
14847         dump file.
14849 2015-06-08  Tom de Vries  <tom@codesourcery.com>
14851         PR tree-optimization/66435
14852         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
14853         function.
14855 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
14857         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
14858         of ptr_type_node to not be ptr_to_node.
14859         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
14860         TREE_TYPE of pointers.
14861         * gimple-expr.c (useless_type_conversion): Reorder the check for
14862         function pointers and TYPE_CANONICAL.
14864 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
14866         PR bootstrap/66319
14867         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
14868         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
14869         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
14870         later.
14871         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
14872         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
14873         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
14874         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
14875         and non iso if unix2003.
14877 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
14879         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
14881 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
14883         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
14884         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
14885         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
14886         except.c, final.c, function.c, gcse-common.c, genemit.c,
14887         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
14888         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
14889         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
14890         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
14891         more derived ones.
14893 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
14895         * combine.c (combine_split_insns): Remove cast.
14896         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
14897         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
14898         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
14899         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
14900         * genemit.c (gen_split): Change return type of generated functions to
14901         rtx_insn.
14902         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
14903         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
14904         gen_peephole2_* functions.
14905         (print_subroutine, main): Likewise.
14906         * recog.c (peephole2_optimize): Remove cast.
14907         (peep2_next_insn): Promote return type to rtx_insn.
14908         * recog.h (peep2_next_insn): Fix prototype.
14909         * rtl.h (try_split, split_insns): Likewise.
14911 2015-06-06  DJ Delorie  <dj@redhat.com>
14913         * config/msp430/msp430.c (msp430_asm_integer): Support addition
14914         and subtraction too.
14916 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
14918         PR target/66410
14919         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
14920         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
14921         instead of Snd.  Disparage Sid/z alternative with '^'.
14923 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
14925         * dwarf2out.c: Remove deferred_locations*.
14926         (dwarf2_debug_hooks): Add early_finish hook.
14927         Remove global_decl hook.
14928         Add early_global_decl and late_global_decl hook.
14929         New global early_dwarf.
14930         New structure set_early_dwarf.
14931         (output_die): Indicate whether a DIE was generated early
14932         when generating assembly with -dA.
14933         (struct limbo_die_struct): Document created_for field.
14934         Remove file_table_last_lookup.
14935         (remove_AT): Return TRUE if successful.
14936         (remove_child_TAG): Clear die_parent.
14937         (reparent_child): New function abstracted from...
14938         (splice_child_die): ...here.
14939         (new_die): ICE if a DIE ends up in limbo too late.
14940         (check_die): New.
14941         (defer_location): Remove.
14942         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
14943         (fill_variable_array_bounds): New.
14944         (decl_start_label): Call fill_variable_array_bounds.
14945         (gen_formal_parameter_die): Rewrite to reuse previously generated
14946         DIEs.
14947         (gen_subprogram_die): Same.
14948         (gen_variable_die): Same.
14949         (gen_const_die): Same.
14950         (gen_label_die): Same.
14951         (gen_lexical_block_die): Same.
14952         (decl_will_get_specification_p): New.
14953         (local_function_static): New.
14954         (gen_struct_or_union_type_die): Fill in variable-length fields.
14955         (gen_typedef_die): Fill in variable-length typedefs.
14956         (gen_tagged_type_die): Gracefully return on error_mark_node.
14957         Handle re-entrancy.
14958         (gen_type_die_with_usage): Handle variable-length types.
14959         Remove duplicate code for ARRAY_TYPE case.
14960         (process_scope_var): Only process imported modules during early
14961         dwarf.
14962         (dwarf2out_early_global_decl): New.
14963         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
14964         (dwarf2out_type_decl): Set early_dwarf while calling
14965         dwarf2out_decl.
14966         (dwarf2out_decl): Verify that we did not recreate a previously
14967         generated DIE.
14968         Do not return on DECL_EXTERNALs in VAR_DECLs.
14969         Abstract some code to local_function_static.
14970         (lookup_filename): Remove use of file_table_last_lookup.
14971         Gracefully exit on missing file_name.
14972         (dwarf2out_finish): Verify limbo list.
14973         Remove deferred_locations_list use.
14974         Move deferred_asm_name and limbo flushing to...
14975         (dwarf2out_early_finish): ...here.  New.
14976         (dwarf2out_c_finalize): Remove set of deferred_location_list,
14977         deferred_asm_name, and file_table_last_lookup.
14978         * cgraph.h (referred_to_p): Add default argument.
14979         * cgraphunit.c (referred_to_p): Add and handle include_self
14980         argument.
14981         (analyze_functions): Add first_time argument.
14982         Call check_global_declaration for all symbols.
14983         Call late_global_decl for nodes for moribund nodes.
14984         (finalize_compilation_unit): Add new argument to
14985         analyze_functions.
14986         Call early_global_decl for functions.
14987         Call early_finish debug hook.
14988         * dbxout.c (dbxout_early_global_decl): New.
14989         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
14990         (dbx_debug_hooks): Add new hooks.
14991         (xcoff_debug_hooks): Same.
14992         * debug.c (do_nothing_debug_hooks): Add early_finish field.
14993         Add early and late debug hooks.
14994         Remove global_decl hook.
14995         * debug.h (struct gcc_debug_hooks): Add early_finish,
14996         early_global_decl, and late_global_decl fields.
14997         Remove global_decl field.
14998         Document gcc_debug_hooks.
14999         * gengtype.c (output_typename): Remove.
15000         * godump.c (go_early_global_decl): New.
15001         (go_late_global_decl): New.
15002         (go_global_decl): Remove.
15003         (dump_go_spec_init): Remove global_decl.  Add
15004         {early,late}_global_decl.
15005         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
15006         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
15007         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
15008         (write_global_declarations): Remove.
15009         (global_decl_processing): New.
15010         * langhooks.h (struct lang_hooks_for_decls): Remove
15011         final_write_globals field.
15012         Add post_compilation_parsing_cleanups field.
15013         * passes.c (rest_of_decl_compilation): Call early_global_decl.
15014         * sdbout.c: Add early and late_global_decl hooks.  Remove
15015         sdbout_global_decl hook.
15016         Add early_finish field for sdb_debug_hooks.
15017         (sdbout_global_decl): Remove.
15018         (sdbout_early_global_decl): New.
15019         (sdbout_late_global_decl): New.
15020         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
15021         * toplev.c (check_global_declaration): Rename from
15022         check_global_declaration_1.
15023         Adapt to use symtab infrastructure.
15024         (check_global_declarations): Remove.
15025         (emit_debug_global_declarations): Remove.
15026         (compile_file): Remove call to final_write_globals langhook.
15027         Run the actual compilation process.
15028         Perform any post compilation parser cleanups.
15029         Generate late debug info.
15030         * toplev.h (check_global_declaration): New.
15031         (check_global_declaration_1): Remove.
15032         (check_global_declarations): Remove.
15033         (write_global_declarations): Remove.
15034         (emit_debug_global_declarations): Remove.
15035         (global_decl_processing): New.
15036         * tree-core.h (struct tree_block): Add DIE field.
15037         * tree.h (BLOCK_DIE): New.
15038         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
15039         throughout.
15040         (vmsdbgout_early_global_decl): New.
15041         (vmsdbgout_late_global_decl): New.
15042         Add early_finish debug hook field to vmsdbg_debug_hooks.
15043         Remove vmsdbgout_decl to vmsdbgout_function_decl.
15044         Add early and late_global_decl debug hooks.
15046 2015-06-05  Julian Brown  <julian@codesourcery.com>
15047             Sandra Loosemore  <sandra@codesourcery.com>
15049         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
15050         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
15051         to print-sysroot-suffix.sh script.
15053 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15055         merge from gomp4 branch:
15056         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15058         PR tree-optimization/65443
15059         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
15060         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
15061         (try_transform_to_exit_first_loop_alt): New function.
15062         (transform_to_exit_first_loop): Use
15063         try_transform_to_exit_first_loop_alt.
15065 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
15067         * builtins.c (expand_builtin_atomic_compare_exchange): Call
15068         emit_cmp_and_jump_insns with the mode of target.
15070 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15072         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
15074 2015-06-04  DJ Delorie  <dj@redhat.com>
15076         * config/msp430/msp430.md (movsi_s): New.  Special case for
15077         storing a 20-bit symbol into a 32-bit register.
15078         * config/msp430/msp430.c (msp430_subreg): Add support for it.
15079         * config/msp430/predicates.md (msp430_symbol_operand): New.
15081 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
15083         * c-family/c-common.c (noplt): New attribute.
15084         (handle_noplt_attribute): New handler.
15085         * calls.c (prepare_call_address): Check for noplt
15086         attribute.
15087         * config/i386/i386.c (ix86_expand_call): Check
15088         for noplt attribute.
15089         (ix86_nopic_noplt_attribute_p): New function.
15090         (ix86_output_call_insn): Output indirect call for non-pic
15091         no plt calls.
15092         * doc/extend.texi (noplt): Document new attribute.
15093         * doc/invoke.texi: Document new attribute.
15095 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
15097         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
15098         real.h, and fixed-value.h when included in host source files.
15099         * double-int.h: Remove redundant #includes listed above.
15100         * fixed-value.h: Likewise.
15101         * real.h: Likewise.
15102         * wide-int.h: Likewise.
15103         * inchash.h: Likewise.
15104         * rtl.h: Add some include files When included from a generator file.
15105         * target.h: Remove wide-int.h and insn-modes.h from the include list.
15106         * internal-fn.h: Don't include coretypes.h.
15107         * alias.c: Adjust includes for restructured coretypes.h.
15108         * asan.c: Likewise.
15109         * attribs.c: Likewise.
15110         * auto-inc-dec.c: Likewise.
15111         * auto-profile.c: Likewise.
15112         * bb-reorder.c: Likewise.
15113         * bt-load.c: Likewise.
15114         * builtins.c: Likewise.
15115         * caller-save.c: Likewise.
15116         * calls.c: Likewise.
15117         * ccmp.c: Likewise.
15118         * cfg.c: Likewise.
15119         * cfganal.c: Likewise.
15120         * cfgbuild.c: Likewise.
15121         * cfgcleanup.c: Likewise.
15122         * cfgexpand.c: Likewise.
15123         * cfghooks.c: Likewise.
15124         * cfgloop.c: Likewise.
15125         * cfgloop.h: Likewise.
15126         * cfgloopanal.c: Likewise.
15127         * cfgloopmanip.c: Likewise.
15128         * cfgrtl.c: Likewise.
15129         * cgraph.c: Likewise.
15130         * cgraphbuild.c: Likewise.
15131         * cgraphclones.c: Likewise.
15132         * cgraphunit.c: Likewise.
15133         * cilk-common.c: Likewise.
15134         * combine-stack-adj.c: Likewise.
15135         * combine.c: Likewise.
15136         * compare-elim.c: Likewise.
15137         * convert.c: Likewise.
15138         * coverage.c: Likewise.
15139         * cppbuiltin.c: Likewise.
15140         * cprop.c: Likewise.
15141         * cse.c: Likewise.
15142         * cselib.c: Likewise.
15143         * data-streamer-in.c: Likewise.
15144         * data-streamer-out.c: Likewise.
15145         * data-streamer.c: Likewise.
15146         * dbxout.c: Likewise.
15147         * dce.c: Likewise.
15148         * ddg.c: Likewise.
15149         * debug.c: Likewise.
15150         * df-core.c: Likewise.
15151         * df-problems.c: Likewise.
15152         * df-scan.c: Likewise.
15153         * df.h: Likewise.
15154         * dfp.c: Likewise.
15155         * dojump.c: Likewise.
15156         * dominance.c: Likewise.
15157         * domwalk.c: Likewise.
15158         * double-int.c: Likewise.
15159         * dse.c: Likewise.
15160         * dumpfile.c: Likewise.
15161         * dwarf2asm.c: Likewise.
15162         * dwarf2cfi.c: Likewise.
15163         * dwarf2out.c: Likewise.
15164         * dwarf2out.h: Likewise.
15165         * emit-rtl.c: Likewise.
15166         * et-forest.c: Likewise.
15167         * except.c: Likewise.
15168         * explow.c: Likewise.
15169         * expmed.c: Likewise.
15170         * expr.c: Likewise.
15171         * final.c: Likewise.
15172         * fixed-value.c: Likewise.
15173         * fold-const.c: Likewise.
15174         * function.c: Likewise.
15175         * fwprop.c: Likewise.
15176         * gcc-plugin.h: Likewise.
15177         * gcse.c: Likewise.
15178         * generic-match-head.c: Likewise.
15179         * ggc-page.c: Likewise.
15180         * gimple-builder.c: Likewise.
15181         * gimple-expr.c: Likewise.
15182         * gimple-fold.c: Likewise.
15183         * gimple-iterator.c: Likewise.
15184         * gimple-low.c: Likewise.
15185         * gimple-match-head.c: Likewise.
15186         * gimple-pretty-print.c: Likewise.
15187         * gimple-ssa-isolate-paths.c: Likewise.
15188         * gimple-ssa-strength-reduction.c: Likewise.
15189         * gimple-streamer-in.c: Likewise.
15190         * gimple-streamer-out.c: Likewise.
15191         * gimple-streamer.h: Likewise.
15192         * gimple-walk.c: Likewise.
15193         * gimple.c: Likewise.
15194         * gimplify-me.c: Likewise.
15195         * gimplify.c: Likewise.
15196         * godump.c: Likewise.
15197         * graph.c: Likewise.
15198         * graphite-blocking.c: Likewise.
15199         * graphite-dependences.c: Likewise.
15200         * graphite-interchange.c: Likewise.
15201         * graphite-isl-ast-to-gimple.c: Likewise.
15202         * graphite-optimize-isl.c: Likewise.
15203         * graphite-poly.c: Likewise.
15204         * graphite-scop-detection.c: Likewise.
15205         * graphite-sese-to-poly.c: Likewise.
15206         * graphite.c: Likewise.
15207         * haifa-sched.c: Likewise.
15208         * hooks.h: Likewise.
15209         * hw-doloop.c: Likewise.
15210         * ifcvt.c: Likewise.
15211         * incpath.c: Likewise.
15212         * init-regs.c: Likewise.
15213         * internal-fn.c: Likewise.
15214         * ipa-chkp.c: Likewise.
15215         * ipa-comdats.c: Likewise.
15216         * ipa-cp.c: Likewise.
15217         * ipa-devirt.c: Likewise.
15218         * ipa-icf-gimple.c: Likewise.
15219         * ipa-icf.c: Likewise.
15220         * ipa-inline-analysis.c: Likewise.
15221         * ipa-inline-transform.c: Likewise.
15222         * ipa-inline.c: Likewise.
15223         * ipa-polymorphic-call.c: Likewise.
15224         * ipa-profile.c: Likewise.
15225         * ipa-prop.c: Likewise.
15226         * ipa-pure-const.c: Likewise.
15227         * ipa-ref.c: Likewise.
15228         * ipa-reference.c: Likewise.
15229         * ipa-split.c: Likewise.
15230         * ipa-utils.c: Likewise.
15231         * ipa-visibility.c: Likewise.
15232         * ipa.c: Likewise.
15233         * ira-build.c: Likewise.
15234         * ira-color.c: Likewise.
15235         * ira-conflicts.c: Likewise.
15236         * ira-costs.c: Likewise.
15237         * ira-emit.c: Likewise.
15238         * ira-lives.c: Likewise.
15239         * ira.c: Likewise.
15240         * jump.c: Likewise.
15241         * langhooks.c: Likewise.
15242         * lcm.c: Likewise.
15243         * loop-doloop.c: Likewise.
15244         * loop-init.c: Likewise.
15245         * loop-invariant.c: Likewise.
15246         * loop-iv.c: Likewise.
15247         * loop-unroll.c: Likewise.
15248         * lower-subreg.c: Likewise.
15249         * lra-assigns.c: Likewise.
15250         * lra-coalesce.c: Likewise.
15251         * lra-constraints.c: Likewise.
15252         * lra-eliminations.c: Likewise.
15253         * lra-lives.c: Likewise.
15254         * lra-remat.c: Likewise.
15255         * lra-spills.c: Likewise.
15256         * lra.c: Likewise.
15257         * lto-cgraph.c: Likewise.
15258         * lto-compress.c: Likewise.
15259         * lto-opts.c: Likewise.
15260         * lto-section-in.c: Likewise.
15261         * lto-section-out.c: Likewise.
15262         * lto-streamer-in.c: Likewise.
15263         * lto-streamer-out.c: Likewise.
15264         * lto-streamer.c: Likewise.
15265         * mcf.c: Likewise.
15266         * mode-switching.c: Likewise.
15267         * modulo-sched.c: Likewise.
15268         * omega.c: Likewise.
15269         * omp-low.c: Likewise.
15270         * optabs.c: Likewise.
15271         * opts-global.c: Likewise.
15272         * passes.c: Likewise.
15273         * plugin.c: Likewise.
15274         * postreload-gcse.c: Likewise.
15275         * postreload.c: Likewise.
15276         * predict.c: Likewise.
15277         * print-rtl.c: Likewise.
15278         * print-tree.c: Likewise.
15279         * profile.c: Likewise.
15280         * real.c: Likewise.
15281         * realmpfr.c: Likewise.
15282         * realmpfr.h: Likewise.
15283         * recog.c: Likewise.
15284         * ree.c: Likewise.
15285         * reg-stack.c: Likewise.
15286         * regcprop.c: Likewise.
15287         * reginfo.c: Likewise.
15288         * regrename.c: Likewise.
15289         * regs.h: Likewise.
15290         * regstat.c: Likewise.
15291         * reload.c: Likewise.
15292         * reload1.c: Likewise.
15293         * reorg.c: Likewise.
15294         * resource.c: Likewise.
15295         * rtl-chkp.c: Likewise.
15296         * rtlanal.c: Likewise.
15297         * rtlhooks.c: Likewise.
15298         * sanopt.c: Likewise.
15299         * sched-deps.c: Likewise.
15300         * sched-ebb.c: Likewise.
15301         * sched-rgn.c: Likewise.
15302         * sched-vis.c: Likewise.
15303         * sdbout.c: Likewise.
15304         * sel-sched-dump.c: Likewise.
15305         * sel-sched-ir.c: Likewise.
15306         * sel-sched.c: Likewise.
15307         * sese.c: Likewise.
15308         * shrink-wrap.c: Likewise.
15309         * shrink-wrap.h: Likewise.
15310         * simplify-rtx.c: Likewise.
15311         * stack-ptr-mod.c: Likewise.
15312         * statistics.c: Likewise.
15313         * stmt.c: Likewise.
15314         * stor-layout.c: Likewise.
15315         * store-motion.c: Likewise.
15316         * stringpool.c: Likewise.
15317         * symtab.c: Likewise.
15318         * target-globals.c: Likewise.
15319         * targhooks.c: Likewise.
15320         * toplev.c: Likewise.
15321         * tracer.c: Likewise.
15322         * trans-mem.c: Likewise.
15323         * tree-affine.c: Likewise.
15324         * tree-affine.h: Likewise.
15325         * tree-browser.c: Likewise.
15326         * tree-call-cdce.c: Likewise.
15327         * tree-cfg.c: Likewise.
15328         * tree-cfgcleanup.c: Likewise.
15329         * tree-chkp-opt.c: Likewise.
15330         * tree-chkp.c: Likewise.
15331         * tree-chrec.c: Likewise.
15332         * tree-complex.c: Likewise.
15333         * tree-data-ref.c: Likewise.
15334         * tree-dfa.c: Likewise.
15335         * tree-diagnostic.c: Likewise.
15336         * tree-dump.c: Likewise.
15337         * tree-eh.c: Likewise.
15338         * tree-emutls.c: Likewise.
15339         * tree-if-conv.c: Likewise.
15340         * tree-inline.c: Likewise.
15341         * tree-into-ssa.c: Likewise.
15342         * tree-iterator.c: Likewise.
15343         * tree-loop-distribution.c: Likewise.
15344         * tree-nested.c: Likewise.
15345         * tree-nrv.c: Likewise.
15346         * tree-object-size.c: Likewise.
15347         * tree-outof-ssa.c: Likewise.
15348         * tree-parloops.c: Likewise.
15349         * tree-phinodes.c: Likewise.
15350         * tree-predcom.c: Likewise.
15351         * tree-pretty-print.c: Likewise.
15352         * tree-pretty-print.h: Likewise.
15353         * tree-profile.c: Likewise.
15354         * tree-scalar-evolution.c: Likewise.
15355         * tree-sra.c: Likewise.
15356         * tree-ssa-address.c: Likewise.
15357         * tree-ssa-alias.c: Likewise.
15358         * tree-ssa-ccp.c: Likewise.
15359         * tree-ssa-coalesce.c: Likewise.
15360         * tree-ssa-copy.c: Likewise.
15361         * tree-ssa-copyrename.c: Likewise.
15362         * tree-ssa-dce.c: Likewise.
15363         * tree-ssa-dom.c: Likewise.
15364         * tree-ssa-dse.c: Likewise.
15365         * tree-ssa-forwprop.c: Likewise.
15366         * tree-ssa-ifcombine.c: Likewise.
15367         * tree-ssa-live.c: Likewise.
15368         * tree-ssa-loop-ch.c: Likewise.
15369         * tree-ssa-loop-im.c: Likewise.
15370         * tree-ssa-loop-ivcanon.c: Likewise.
15371         * tree-ssa-loop-ivopts.c: Likewise.
15372         * tree-ssa-loop-manip.c: Likewise.
15373         * tree-ssa-loop-niter.c: Likewise.
15374         * tree-ssa-loop-prefetch.c: Likewise.
15375         * tree-ssa-loop-unswitch.c: Likewise.
15376         * tree-ssa-loop.c: Likewise.
15377         * tree-ssa-loop.h: Likewise.
15378         * tree-ssa-math-opts.c: Likewise.
15379         * tree-ssa-operands.c: Likewise.
15380         * tree-ssa-phiopt.c: Likewise.
15381         * tree-ssa-phiprop.c: Likewise.
15382         * tree-ssa-pre.c: Likewise.
15383         * tree-ssa-propagate.c: Likewise.
15384         * tree-ssa-reassoc.c: Likewise.
15385         * tree-ssa-sccvn.c: Likewise.
15386         * tree-ssa-scopedtables.c: Likewise.
15387         * tree-ssa-sink.c: Likewise.
15388         * tree-ssa-strlen.c: Likewise.
15389         * tree-ssa-structalias.c: Likewise.
15390         * tree-ssa-tail-merge.c: Likewise.
15391         * tree-ssa-ter.c: Likewise.
15392         * tree-ssa-threadedge.c: Likewise.
15393         * tree-ssa-threadupdate.c: Likewise.
15394         * tree-ssa-uncprop.c: Likewise.
15395         * tree-ssa-uninit.c: Likewise.
15396         * tree-ssa.c: Likewise.
15397         * tree-ssanames.c: Likewise.
15398         * tree-stdarg.c: Likewise.
15399         * tree-streamer-in.c: Likewise.
15400         * tree-streamer-out.c: Likewise.
15401         * tree-streamer.c: Likewise.
15402         * tree-switch-conversion.c: Likewise.
15403         * tree-tailcall.c: Likewise.
15404         * tree-vect-data-refs.c: Likewise.
15405         * tree-vect-generic.c: Likewise.
15406         * tree-vect-loop-manip.c: Likewise.
15407         * tree-vect-loop.c: Likewise.
15408         * tree-vect-patterns.c: Likewise.
15409         * tree-vect-slp.c: Likewise.
15410         * tree-vect-stmts.c: Likewise.
15411         * tree-vectorizer.c: Likewise.
15412         * tree-vrp.c: Likewise.
15413         * tree.c: Likewise.
15414         * tsan.c: Likewise.
15415         * ubsan.c: Likewise.
15416         * valtrack.c: Likewise.
15417         * value-prof.c: Likewise.
15418         * var-tracking.c: Likewise.
15419         * varasm.c: Likewise.
15420         * varpool.c: Likewise.
15421         * vmsdbgout.c: Likewise.
15422         * vtable-verify.c: Likewise.
15423         * web.c: Likewise.
15424         * wide-int-print.cc: Likewise.
15425         * wide-int-print.h: Likewise.
15426         * wide-int.cc: Likewise.
15427         * xcoffout.c: Likewise.
15428         * config/aarch64/aarch64-builtins.c: Likewise.
15429         * config/aarch64/aarch64.c: Likewise.
15430         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15431         * config/alpha/alpha.c: Likewise.
15432         * config/arc/arc.c: Likewise.
15433         * config/arm/aarch-common.c: Likewise.
15434         * config/arm/arm-builtins.c: Likewise.
15435         * config/arm/arm-c.c: Likewise.
15436         * config/arm/arm.c: Likewise.
15437         * config/avr/avr-c.c: Likewise.
15438         * config/avr/avr-log.c: Likewise.
15439         * config/avr/avr.c: Likewise.
15440         * config/bfin/bfin.c: Likewise.
15441         * config/c6x/c6x.c: Likewise.
15442         * config/cr16/cr16.c: Likewise.
15443         * config/cris/cris.c: Likewise.
15444         * config/darwin-c.c: Likewise.
15445         * config/darwin.c: Likewise.
15446         * config/default-c.c: Likewise.
15447         * config/epiphany/epiphany.c: Likewise.
15448         * config/epiphany/mode-switch-use.c: Likewise.
15449         * config/epiphany/resolve-sw-modes.c: Likewise.
15450         * config/fr30/fr30.c: Likewise.
15451         * config/frv/frv.c: Likewise.
15452         * config/ft32/ft32.c: Likewise.
15453         * config/glibc-c.c: Likewise.
15454         * config/h8300/h8300.c: Likewise.
15455         * config/i386/i386-c.c: Likewise.
15456         * config/i386/i386.c: Likewise.
15457         * config/i386/msformat-c.c: Likewise.
15458         * config/i386/winnt-cxx.c: Likewise.
15459         * config/i386/winnt-stubs.c: Likewise.
15460         * config/i386/winnt.c: Likewise.
15461         * config/ia64/ia64-c.c: Likewise.
15462         * config/ia64/ia64.c: Likewise.
15463         * config/iq2000/iq2000.c: Likewise.
15464         * config/lm32/lm32.c: Likewise.
15465         * config/m32c/m32c-pragma.c: Likewise.
15466         * config/m32c/m32c.c: Likewise.
15467         * config/m32r/m32r.c: Likewise.
15468         * config/m68k/m68k.c: Likewise.
15469         * config/mcore/mcore.c: Likewise.
15470         * config/mep/mep-pragma.c: Likewise.
15471         * config/mep/mep.c: Likewise.
15472         * config/microblaze/microblaze-c.c: Likewise.
15473         * config/microblaze/microblaze.c: Likewise.
15474         * config/mips/mips.c: Likewise.
15475         * config/mmix/mmix.c: Likewise.
15476         * config/mn10300/mn10300.c: Likewise.
15477         * config/moxie/moxie.c: Likewise.
15478         * config/msp430/msp430-c.c: Likewise.
15479         * config/msp430/msp430.c: Likewise.
15480         * config/nds32/nds32-cost.c: Likewise.
15481         * config/nds32/nds32-fp-as-gp.c: Likewise.
15482         * config/nds32/nds32-intrinsic.c: Likewise.
15483         * config/nds32/nds32-isr.c: Likewise.
15484         * config/nds32/nds32-md-auxiliary.c: Likewise.
15485         * config/nds32/nds32-memory-manipulation.c: Likewise.
15486         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15487         * config/nds32/nds32-predicates.c: Likewise.
15488         * config/nds32/nds32.c: Likewise.
15489         * config/nios2/nios2.c: Likewise.
15490         * config/nvptx/nvptx.c: Likewise.
15491         * config/pa/pa.c: Likewise.
15492         * config/pdp11/pdp11.c: Likewise.
15493         * config/rl78/rl78-c.c: Likewise.
15494         * config/rl78/rl78.c: Likewise.
15495         * config/rs6000/rs6000-c.c: Likewise.
15496         * config/rs6000/rs6000.c: Likewise.
15497         * config/rx/rx.c: Likewise.
15498         * config/s390/s390-c.c: Likewise.
15499         * config/s390/s390.c: Likewise.
15500         * config/sh/sh-c.c: Likewise.
15501         * config/sh/sh-mem.cc: Likewise.
15502         * config/sh/sh.c: Likewise.
15503         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15504         * config/sh/sh_treg_combine.cc: Likewise.
15505         * config/sol2-c.c: Likewise.
15506         * config/sol2-cxx.c: Likewise.
15507         * config/sol2-stubs.c: Likewise.
15508         * config/sol2.c: Likewise.
15509         * config/sparc/sparc-c.c: Likewise.
15510         * config/sparc/sparc.c: Likewise.
15511         * config/spu/spu-c.c: Likewise.
15512         * config/spu/spu.c: Likewise.
15513         * config/stormy16/stormy16.c: Likewise.
15514         * config/tilegx/mul-tables.c: Likewise.
15515         * config/tilegx/tilegx-c.c: Likewise.
15516         * config/tilegx/tilegx.c: Likewise.
15517         * config/tilepro/mul-tables.c: Likewise.
15518         * config/tilepro/tilepro-c.c: Likewise.
15519         * config/tilepro/tilepro.c: Likewise.
15520         * config/v850/v850-c.c: Likewise.
15521         * config/v850/v850.c: Likewise.
15522         * config/vax/vax.c: Likewise.
15523         * config/visium/visium.c: Likewise.
15524         * config/vms/vms-c.c: Likewise.
15525         * config/vms/vms.c: Likewise.
15526         * config/vxworks.c: Likewise.
15527         * config/winnt-c.c: Likewise.
15528         * config/xtensa/xtensa.c: Likewise.
15529         * common/config/bfin/bfin-common.c: Likewise.
15531 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
15533         * tree.h (tree_code_for_canonical_type_merging): New function.
15534         * tree.c (gimple_canonical_types_compatible_p): Use
15535         tree_code_for_canonical_type_merging..
15537 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15539         PR c++/66192
15540         PR target/66200
15541         * doc/tm.texi: Regenerate.
15542         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
15543         * target.def (TARGET_RELAXED_ORDERING): Likewise.
15544         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
15545         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
15546         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
15547         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
15548         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
15549         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
15550         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
15552 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15554         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
15555         register fma steering pass.
15556         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
15557         AARCH64_TUNE_FMA_STEERING.
15559 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
15561         * tree.c (verify_type_variant): Verify that type and variant is
15562         compatible.
15563         (gimple_canonical_types_compatible_p): Look for main variants.
15565 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15567         * config.gcc (powerpc*-*-*): Add support for a new configure
15568         option --with-advance-toolchain=<xxx> which overrides using the
15569         default header files, libraries and dynamic linker.
15571         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
15572         specs to support the configure --with-advance-toolchain=<xxx>
15573         option.
15574         (INCLUDE_EXTRA_SPEC): Likewise.
15575         (LINK_OS_EXTRA_SPEC32): Likewise.
15576         (LINK_OK_EXTRA_SPEC64): Likewise.
15577         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
15578         (DYNAMIC_LINKER_PREFIX): Likewise.
15579         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
15580         toolchain support.
15581         (GLIBC_DYNAMIC_LINKER32): Likewise.
15582         (GLIBC_DYNAMIC_LINKER64): Likewise.
15583         (LINK_OS_LINUX_SPEC32): Likewise.
15584         (LINK_OS_LINUX_SPEC64): Likewise.
15586         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
15587         configuration option.
15589 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
15591         PR target/66275
15592         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
15593         to determine current function ABI.
15594         (ix86_function_value_regno_p): Ditto.
15596 2015-06-03  Martin Liska  <mliska@suse.cz>
15598         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
15599         * bitmap.h (struct bitmap_usage): Likewise.
15600         * ggc-common.c (struct ggc_usage): Likewise.
15601         * mem-stats.h (struct mem_location): Likewise.
15602         (struct mem_usage): Likewise.
15603         * vec.c (struct vec_usage): Likewise.
15605 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
15607         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
15608         -Bsymbolic.
15610 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
15612         * doc/plugins.texi (enum plugin_event): New event.
15613         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
15614         and PLUGIN_FINISH_FUNCTION.
15615         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
15616         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
15618 2015-06-03  Richard Biener  <rguenther@suse.de>
15620         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15621         compute GROUP_GAP for the first element.
15622         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
15623         on in-group gaps.
15625 2015-06-03  Nick Clifton  <nickc@redhat.com>
15627         * config/rl78/rl78-real.md: Add peepholes to avoid a register
15628         copy when calling a function.
15629         * config/rl78/rl78.c (need_to_save): Do not push the frame
15630         pointer in an interrupt handler prologue if it is never used.
15632 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15634         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
15636 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
15638         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
15639         reference when cloning alias node.
15641 2015-06-03  Martin Liska  <mliska@suse.cz>
15643         * alloc-pool.h (struct pool_usage): Correct space padding.
15644         * ggc-page.c (ggc_print_statistics): Align columns in a report.
15645         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
15646         * tree.c (dump_tree_statistics): Align columns in a report.
15648 2015-06-03  Martin Liska  <mliska@suse.cz>
15650         * alloc-pool.c (allocate_pool_descriptor): Remove.
15651         (struct pool_output_info): Likewise.
15652         (print_alloc_pool_statistics): Likewise.
15653         (dump_alloc_pool_statistics): Likewise.
15654         * alloc-pool.h (struct pool_usage): New struct.
15655         (pool_allocator::initialize): Change usage of memory statistics
15656         to a new interface.
15657         (pool_allocator::release): Likewise.
15658         (pool_allocator::allocate): Likewise.
15659         (pool_allocator::remove): Likewise.
15660         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
15661         for a pool allocator.
15662         * mem-stats.h (struct mem_location): Add new ctor.
15663         (struct mem_usage): Add counter for number of
15664         instances.
15665         (mem_alloc_description::register_descriptor): New overload of
15666         * mem-stats.h (mem_location::to_string): New function.
15667         * bitmap.h (struct bitmap_usage): Use this new function.
15668         * ggc-common.c (struct ggc_usage): Likewise.
15669         the function.
15671 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
15673         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
15674         of GCC_INSN_FLAGS_H block.
15676 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15678         * explow.c (plus_constant): Update check after force_const_mem call
15679         to see if the value returned is not a NULL_RTX.
15681 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
15683         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
15684         remove instumentation thunks calling reachable functions.
15685         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
15686         * lto/lto-partition.c (privatize_symbol_name_1): New.
15687         (privatize_symbol_name): Privatize both decl and orig_decl
15688         names for instrumented functions.
15689         * cgraph.c (cgraph_node::verify_node): Add transparent
15690         alias chain check for instrumented node.
15692 2015-06-03  Marek Polacek  <polacek@redhat.com>
15694         PR c/64223
15695         PR c/29358
15696         * tree.c (attribute_value_equal): Handle attribute format.
15697         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
15699 2015-06-03  Richard Biener  <rguenther@suse.de>
15701         PR tree-optimization/63916
15702         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15703         Forward-propagate non-invariant addresses by splicing their
15704         reference ops if the result isn't going to be used by PRE.
15705         (vn_reference_lookup_3): Remove pointless assert.
15707 2015-06-03  Richard Biener  <rguenther@suse.de>
15709         PR tree-optimization/66375
15710         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
15711         add to the evolution before following SSA edges.
15713 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
15715         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
15716         (dump_use, dump_cand, find_induction_variables): Pass new argument
15717         to dump_iv.
15718         (record_use): Preserve the ssa name information in IV.
15720 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
15722         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
15723         NO_MODE_TEST.
15724         (add_mode_tests): Don't add mode tests if the predicate only
15725         accepts scalar constant integers.  Otherwise, allow the mode
15726         of "op" to be VOIDmode if the predicate does accept such integers.
15728 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
15730         PR target/66258
15731         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
15732         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
15733         (aarch64_secondary_reload): Likewise
15734         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
15735         to !TARGET_FLOAT.
15736         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
15737         Likewise.
15739 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
15740             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15742         PR target/65768
15743         * cprop.c (try_replace_reg): Check cost of constants before propagating.
15745 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15747         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
15748         provide access to the IBM extended double floating point mode if
15749         long double is IEEE 128-bit floating point.
15750         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
15751         point if long double is the IBM extended double type.
15753         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
15754         enable adding IEEE 128-bit floating point support.
15755         (-mfloat128-software): Likewise.
15756         (-mfloat128-sw): Likewise.
15758         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
15759         128-bit floating point types to occupy any register if
15760         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
15761         -mfloat128-software is enabled.
15762         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
15763         support.
15764         (rs6000_option_override_internal): Add -mfloat128-* support.
15765         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
15767         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
15768         and float128 type nodes.
15769         (ieee128_float_type_node): Likewise.
15770         (ibm128_float_type_node): Likewise.
15772 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15774         PR target/66136
15775         * config/aarch64/geniterators.sh: Rewrite in awk.
15777 2015-06-02  Martin Liska  <mliska@suse.cz>
15779         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
15780         values to avoid -Wmaybe-uninitialized errors.
15782 2015-06-02  Richard Biener  <rguenther@suse.de>
15784         PR debug/65549
15785         * dwarf2out.c (lookup_context_die): New function.
15786         (resolve_addr): Avoid forcing a full DIE for the
15787         target of a DW_TAG_GNU_call_site during late compilation.
15788         Instead create a stub DIE without a type if we have a
15789         context DIE present.
15791 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
15793         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
15795 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
15797         PR tree-optimization/48052
15798         * cfgloop.h (struct control_iv): New.
15799         (struct loop): New field control_ivs.
15800         * tree-ssa-loop-niter.c : Include "stor-layout.h".
15801         (number_of_iterations_lt): Set no_overflow information.
15802         (number_of_iterations_exit): Init control iv in niter struct.
15803         (record_control_iv): New.
15804         (estimate_numbers_of_iterations_loop): Call record_control_iv.
15805         (loop_exits_before_overflow): New.  Interface factored out of
15806         scev_probably_wraps_p.
15807         (scev_probably_wraps_p): Factor loop niter related code into
15808         loop_exits_before_overflow.
15809         (free_numbers_of_iterations_estimates_loop): Free control ivs.
15810         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
15812 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15814         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
15815         the target doesn't belong to the current function.
15817 2015-06-02  Marek Polacek  <polacek@redhat.com>
15819         PR middle-end/66345
15820         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
15821         get_maxval_strlen does not produce an INTEGER_CST.
15823 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
15825         * config/arc/constraints.md: Use lower-case names in match_code.
15826         * config/mmix/constraints.md: Likewise.
15828 2015-06-02  Richard Biener  <rguenther@suse.de>
15830         PR tree-optimization/65961
15831         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
15832         check and clarify dump message.
15833         (vect_build_slp_tree): If all children are built up from scalars
15834         build up the parent from scalars instead.
15835         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
15837 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
15839         PR other/65366
15840         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
15841         instead of print ... .
15843 2015-06-02  Alan Modra  <amodra@gmail.com>
15845         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
15846         2014-08-11 change.
15848 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
15850         PR tree-optimization/52563
15851         PR tree-optimization/62173
15852         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
15853         (alloc_iv, set_iv): New parameter.
15854         (determine_biv_step): Delete.
15855         (find_bivs): Inline original determine_biv_step.  Pass new
15856         argument to set_iv.
15857         (idx_find_step): Use no_overflow information for conversion.
15858         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
15859         resolve_mixers handle folded_casts.
15860         (instantiate_scev_name): Change bool parameter to bool pointer.
15861         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
15862         (instantiate_array_ref, instantiate_scev_not): Ditto.
15863         (instantiate_scev_3, instantiate_scev_2): Ditto.
15864         (instantiate_scev_1, instantiate_scev_r): Ditto.
15865         (instantiate_scev_convert, ): Change parameter.  Pass argument
15866         to chrec_convert_aggressive.
15867         (instantiate_scev): Change argument.
15868         (resolve_mixers): New parameter and set it.
15869         (scev_const_prop): New argument.
15870         * tree-scalar-evolution.h (resolve_mixers): New parameter.
15871         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
15872         of chrec_conert_1.
15873         (chrec_convert): New parameter.  Move definition below.
15874         (chrec_convert_aggressive): New parameter and set it.  Call
15875         convert_affine_scev.
15876         * tree-chrec.h (chrec_convert): New parameter.
15877         (chrec_convert_aggressive): Ditto.
15879 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
15881         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
15882         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
15883         the LHS of a no-return call if its type has variable size.
15884         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15885         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
15887 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
15889         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
15890         * config.in: Regenerate.
15892 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
15894         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
15895         consecutive accesses within outer-loop with force_vectorize
15896         for references with zero step in inner-loop.
15898 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
15900         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
15901         rather than from gcc/build directory.
15903 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
15905         PR target/65697
15906         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
15907         for __sync memory models, emit initial loads and final barriers as
15908         appropriate.
15910 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
15912         PR target/65697
15913         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
15914         (aarch64_split_atomic_op): Check for __sync memory models, emit
15915         appropriate initial loads and final barriers.
15917 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
15919         * Makefile.in: Fix gcov dependencies that should
15920         not point to a build folder.
15922 2015-06-01  Richard Biener  <rguenther@suse.de>
15924         Revert
15925         2015-05-29  Richard Biener  <rguenther@suse.de>
15927         PR tree-optimization/66314
15928         * tree-ssa-threadupdate.c (create_block_for_threading): Add
15929         parameter that says which loop the new block belongs to.
15930         (ssa_create_duplicates): Blocks duplicated for the threaded
15931         path belong to the loop of the thread destination.
15933 2015-06-01  Martin Liska  <mliska@suse.cz>
15935         * sched-deps.c: Include pool-alloc.h before
15936         cselib.h header file is included.
15938 2015-06-01  Richard Biener  <rguenther@suse.de>
15940         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
15941         functions.
15943 2015-06-01  Martin Liska  <mliska@suse.cz>
15945         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
15946         a function local variable.
15948 2015-06-01  Martin Liska  <mliska@suse.cz>
15950         * alloc-pool.c (create_alloc_pool): Remove.
15951         (empty_alloc_pool): Likewise.
15952         (free_alloc_pool): Likewise.
15953         (free_alloc_pool_if_empty): Likewise.
15954         (pool_alloc): Likewise.
15955         (pool_free): Likewise.
15956         * alloc-pool.h: Remove old declarations.
15958 2015-06-01  Martin Liska  <mliska@suse.cz>
15960         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
15961         (ira_create_object): Likewise.
15962         (ira_create_allocno): Likewise.
15963         (ira_create_live_range): Likewise.
15964         (copy_live_range): Likewise.
15965         (ira_finish_live_range): Likewise.
15966         (ira_free_allocno_costs): Likewise.
15967         (finish_allocno): Likewise.
15968         (finish_allocnos): Likewise.
15969         (initiate_prefs): Likewise.
15970         (ira_create_pref): Likewise.
15971         (finish_pref): Likewise.
15972         (finish_prefs): Likewise.
15973         (initiate_copies): Likewise.
15974         (ira_create_copy): Likewise.
15975         (finish_copy): Likewise.
15976         (finish_copies): Likewise.
15977         (finish_prefs): Likewise.
15979 2015-06-01  Martin Liska  <mliska@suse.cz>
15981         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
15982         (allocate_and_init_ipcp_value): Likewise.
15983         (ipcp_lattice::add_value): Likewise.
15984         (merge_agg_lats_step): Likewise.
15985         (ipcp_driver): Likewise.
15986         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
15987         (ipa_free_all_structures_after_iinln): Likewise.
15988         * ipa-prop.h: Likewise.
15990 2015-06-01  Martin Liska  <mliska@suse.cz>
15992         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
15993         pool allocator.
15994         (set_hint_predicate): Likewise.
15995         (inline_summary_alloc): Likewise.
15996         (reset_inline_edge_summary): Likewise.
15997         (reset_inline_summary): Likewise.
15998         (set_cond_stmt_execution_predicate): Likewise.
15999         (set_switch_stmt_execution_predicate): Likewise.
16000         (compute_bb_predicates): Likewise.
16001         (estimate_function_body_sizes): Likewise.
16002         (inline_free_summary): Likewise.
16004 2015-06-01  Martin Liska  <mliska@suse.cz>
16006         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
16007         (ipa_edge_duplication_hook): Likewise.
16008         (ipa_free_all_structures_after_ipa_cp): Likewise.
16009         (ipa_free_all_structures_after_iinln): Likewise.
16011 2015-06-01  Martin Liska  <mliska@suse.cz>
16013         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
16014         (ipa_profile_generate_summary): Likewise.
16015         (ipa_profile_read_summary): Likewise.
16016         (ipa_profile): Likewise.
16018 2015-06-01  Martin Liska  <mliska@suse.cz>
16020         * tree-ssa-structalias.c (new_var_info): Use new type-based
16021         pool allocator.
16022         (new_constraint): Likewise.
16023         (init_alias_vars): Likewise.
16024         (delete_points_to_sets): Likewise.
16026 2015-06-01  Martin Liska  <mliska@suse.cz>
16028         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
16029         (free_strinfo): Likewise.
16030         (pass_strlen::execute): Likewise.
16032 2015-06-01  Martin Liska  <mliska@suse.cz>
16034         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
16035         pool allocator.
16036         (vn_reference_insert_pieces): Likewise.
16037         (vn_phi_insert): Likewise.
16038         (visit_reference_op_call): Likewise.
16039         (copy_phi): Likewise.
16040         (copy_reference): Likewise.
16041         (process_scc): Likewise.
16042         (allocate_vn_table): Likewise.
16043         (free_vn_table): Likewise.
16045 2015-06-01  Martin Liska  <mliska@suse.cz>
16047         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
16048         pool allocator.
16049         (add_repeat_to_ops_vec): Likewise.
16050         (get_ops): Likewise.
16051         (maybe_optimize_range_tests): Likewise.
16052         (init_reassoc): Likewise.
16053         (fini_reassoc): Likewise.
16055 2015-06-01  Martin Liska  <mliska@suse.cz>
16057         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
16058         pool allocator.
16059         (bitmap_set_new): Likewise.
16060         (get_or_alloc_expr_for_constant): Likewise.
16061         (get_or_alloc_expr_for): Likewise.
16062         (phi_translate_1): Likewise.
16063         (compute_avail): Likewise.
16064         (init_pre): Likewise.
16065         (fini_pre): Likewise.
16067 2015-06-01  Martin Liska  <mliska@suse.cz>
16069         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
16070         (delete_dep_node): Likewise.
16071         (create_deps_list): Likewise.
16072         (free_deps_list): Likewise.
16073         (sched_deps_init): Likewise.
16074         (sched_deps_finish): Likewise.
16076 2015-06-01  Martin Liska  <mliska@suse.cz>
16078         * regcprop.c (free_debug_insn_changes): Use new type-based
16079         pool allocator.
16080         (replace_oldest_value_reg): Likewise.
16081         (pass_cprop_hardreg::execute): Likewise.
16083 2015-06-01  Martin Liska  <mliska@suse.cz>
16085         * ira-build.c (initiate_cost_vectors): Use new type-based
16086         pool allocator.
16087         (ira_allocate_cost_vector): Likewise.
16088         (ira_free_cost_vector): Likewise.
16089         (finish_cost_vectors): Likewise.
16091 2015-06-01  Martin Liska  <mliska@suse.cz>
16093         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
16094         pool allocator.
16095         (free_sched_pools): Likewise.
16096         * sel-sched-ir.h (_list_alloc): Likewise.
16097         (_list_remove): Likewise.
16099 2015-06-01  Martin Liska  <mliska@suse.cz>
16101         * stmt.c (add_case_node): Use new type-based pool allocator.
16102         (expand_case): Likewise.
16103         (expand_sjlj_dispatch_table): Likewise.
16105 2015-06-01  Martin Liska  <mliska@suse.cz>
16107         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
16108         (free_bb): Likewise.
16109         (pass_cse_reciprocals::execute): Likewise.
16111 2015-06-01  Martin Liska  <mliska@suse.cz>
16113         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
16114         (sra_deinitialize) Likewise.
16115         (create_access_1) Likewise.
16116         (build_accesses_from_assign) Likewise.
16117         (create_artificial_child_access) Likewise.
16119 2015-06-01  Martin Liska  <mliska@suse.cz>
16121         * dse.c (get_group_info):Use new type-based pool allocator.
16122         (dse_step0) Likewise.
16123         (free_store_info) Likewise.
16124         (delete_dead_store_insn) Likewise.
16125         (free_read_records) Likewise.
16126         (record_store) Likewise.
16127         (replace_read) Likewise.
16128         (check_mem_read_rtx) Likewise.
16129         (scan_insn) Likewise.
16130         (dse_step1) Likewise.
16131         (dse_step7) Likewise.
16133 2015-06-01  Martin Liska  <mliska@suse.cz>
16135         * df-scan.c (struct df_scan_problem_data):Use new type-based
16136         pool allocator.
16137         (df_scan_free_internal) Likewise.
16138         (df_scan_alloc) Likewise.
16139         (df_grow_reg_info) Likewise.
16140         (df_free_ref) Likewise.
16141         (df_insn_create_insn_record) Likewise.
16142         (df_mw_hardreg_chain_delete) Likewise.
16143         (df_insn_info_delete) Likewise.
16144         (df_free_collection_rec) Likewise.
16145         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
16146         (df_sort_and_compress_mws) Likewise.
16147         (df_ref_create_structure) Likewise.
16148         (df_ref_record) Likewise.
16150 2015-06-01  Martin Liska  <mliska@suse.cz>
16152         * df-problems.c (df_chain_create):Use new type-based pool allocator.
16153         (df_chain_unlink_1) Likewise.
16154         (df_chain_unlink) Likewise.
16155         (df_chain_remove_problem) Likewise.
16156         (df_chain_alloc) Likewise.
16157         (df_chain_free) Likewise.
16158         * df.h (struct dataflow) Likewise.
16160 2015-06-01  Martin Liska  <mliska@suse.cz>
16162         * cselib.c (new_elt_list):Use new type-based pool allocator.
16163         (new_elt_loc_list) Likewise.
16164         (unchain_one_elt_list) Likewise.
16165         (unchain_one_elt_loc_list) Likewise.
16166         (unchain_one_value) Likewise.
16167         (new_cselib_val) Likewise.
16168         (cselib_init) Likewise.
16169         (cselib_finish) Likewise.
16171 2015-06-01  Martin Liska  <mliska@suse.cz>
16173         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
16174         (sh_reorg) Likewise.
16176 2015-06-01  Martin Liska  <mliska@suse.cz>
16178         * cfg.c (initialize_original_copy_tables):Use new type-based
16179         pool allocator.
16180         (free_original_copy_tables) Likewise.
16181         (copy_original_table_clear) Likewise.
16182         (copy_original_table_set) Likewise.
16184 2015-06-01  Martin Liska  <mliska@suse.cz>
16186         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
16187         pool allocator.
16188         (asan_mem_ref_new) Likewise.
16189         (free_mem_ref_resources) Likewise.
16191 2015-06-01  Martin Liska  <mliska@suse.cz>
16193         * var-tracking.c (variable_htab_free):Use new type-based
16194         pool allocator.
16195         (attrs_list_clear) Likewise.
16196         (attrs_list_insert) Likewise.
16197         (attrs_list_copy) Likewise.
16198         (shared_hash_unshare) Likewise.
16199         (shared_hash_destroy) Likewise.
16200         (unshare_variable) Likewise.
16201         (var_reg_delete_and_set) Likewise.
16202         (var_reg_delete) Likewise.
16203         (var_regno_delete) Likewise.
16204         (drop_overlapping_mem_locs) Likewise.
16205         (variable_union) Likewise.
16206         (insert_into_intersection) Likewise.
16207         (canonicalize_values_star) Likewise.
16208         (variable_merge_over_cur) Likewise.
16209         (dataflow_set_merge) Likewise.
16210         (remove_duplicate_values) Likewise.
16211         (variable_post_merge_new_vals) Likewise.
16212         (dataflow_set_preserve_mem_locs) Likewise.
16213         (dataflow_set_remove_mem_locs) Likewise.
16214         (variable_from_dropped) Likewise.
16215         (variable_was_changed) Likewise.
16216         (set_slot_part) Likewise.
16217         (clobber_slot_part) Likewise.
16218         (delete_slot_part) Likewise.
16219         (loc_exp_insert_dep) Likewise.
16220         (notify_dependents_of_changed_value) Likewise.
16221         (emit_notes_for_differences_1) Likewise.
16222         (vt_emit_notes) Likewise.
16223         (vt_initialize) Likewise.
16224         (vt_finalize) Likewise.
16226 2015-06-01  Martin Liska  <mliska@suse.cz>
16228         * ira-color.c (init_update_cost_records):Use new type-based
16229         pool allocator.
16230         (get_update_cost_record) Likewise.
16231         (free_update_cost_record_list) Likewise.
16232         (finish_update_cost_records) Likewise.
16233         (initiate_cost_update) Likewise.
16235 2015-06-01  Martin Liska  <mliska@suse.cz>
16237         * lra.c (init_insn_regs): Use new type-based pool allocator.
16238         (new_insn_reg) Likewise.
16239         (free_insn_reg) Likewise.
16240         (free_insn_regs) Likewise.
16241         (finish_insn_regs) Likewise.
16242         (init_insn_recog_data) Likewise.
16243         (init_reg_info) Likewise.
16244         (finish_reg_info) Likewise.
16245         (lra_free_copies) Likewise.
16246         (lra_create_copy) Likewise.
16247         (invalidate_insn_data_regno_info) Likewise.
16249 2015-06-01  Martin Liska  <mliska@suse.cz>
16251         * lra-lives.c (free_live_range): Use new type-based pool allocator.
16252         (free_live_range_list) Likewise.
16253         (create_live_range) Likewise.
16254         (copy_live_range) Likewise.
16255         (lra_merge_live_ranges) Likewise.
16256         (remove_some_program_points_and_update_live_ranges) Likewise.
16257         (lra_live_ranges_init) Likewise.
16258         (lra_live_ranges_finish) Likewise.
16260 2015-06-01  Martin Liska  <mliska@suse.cz>
16262         * et-forest.c (et_new_occ): Use new type-based pool allocator.
16263         (et_new_tree): Likewise.
16264         (et_free_tree): Likewise.
16265         (et_free_tree_force): Likewise.
16266         (et_free_pools): Likewise.
16267         (et_split): Likewise.
16269 2015-06-01  Martin Liska  <mliska@suse.cz>
16271         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
16272         to header file.
16273         * alloc-pool.h (pool_allocator::pool_allocator): New function.
16274         (pool_allocator::release): Likewise.
16275         (inline pool_allocator::release_if_empty): Likewise.
16276         (inline pool_allocator::~pool_allocator): Likewise.
16277         (pool_allocator::allocate): Likewise.
16278         (pool_allocator::remove): Likewise.
16280 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
16282         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
16283         in comment.
16285 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
16287         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
16288         to fusible_ops.
16289         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
16290         (arm_macro_fusion_p): Likewise.
16291         (arm_macro_fusion_pair_p): Likewise.
16293 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
16295         * config/aarch64/aarch64-protos.h (tune_params): Rename
16296         fuseable_ops to fusible_ops.
16297         * config/aarch64/aarch64.c (generic_tunings): Rename
16298         fuseable_ops to fusible_ops.
16299         (cortexa53_tunings): Likewise.
16300         (cortexa57_tunings): Likewise.
16301         (thunderx_tunings): Likewise.
16302         (xgene1_tunings): Likewise.
16303         (aarch64_macro_fusion_p): Likewise.
16304         (aarch64_macro_fusion_pair_p): Likewise.
16306 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16308         * config/s390/driver-native.c: New file.
16309         * config/s390/x-native: New file.
16310         * config.host: Add new files for s390.
16311         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
16312         and -march=native
16313         * config.gcc: Likewise.
16314         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
16315         * config/s390/s390-opts.h (enum processor_type): Ditto.
16316         * config/s390/s390.c (s390_option_override): Catch unhandled
16317         PROCESSOR_NATIVE
16319 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
16321         PR target/65527
16322         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
16323         redirection for instrumented calls.
16324         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
16325         (append_compiler_options): Append -fcheck-pointer-bounds.
16326         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
16327         (chkp_redirect_edge): New.
16328         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
16329         (chkp_redirect_edge): New.
16331 2015-06-01  Richard Biener  <rguenther@suse.de>
16333         PR tree-optimization/66280
16334         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
16335         def-use walking.
16337 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16339         * config/aarch64/aarch64.md
16340         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
16341         logic_shift_imm.
16343 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
16345         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
16346         Remove obsolete kludge.
16348 2015-06-01  Richard Biener  <rguenther@suse.de>
16350         * tree-ssa-reassoc.c (get_rank): Simplify.
16352 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16354         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
16355         * configure: Regenerated.
16357 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
16359         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
16360         issue (add space between string literal and macro).
16361         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
16363 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
16365         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
16366         implict or explicit -fPIE or -fpie.
16368 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
16370         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
16372 2015-05-28  DJ Delorie  <dj@redhat.com>
16374         * expmed.c (extract_bit_field_1): Avoid clobbering a
16375         yet-to-be-used base/index register.
16377 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
16379         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
16380         (alias_stats): Add num_universal.
16381         (alias_set_subset_of): Special case pointers; be ready for NULL
16382         children.
16383         (alias_sets_conflict_p): Special case pointers; be ready for NULL
16384         children.
16385         (init_alias_set_entry): Break out from ...
16386         (record_alias_subset): ... here; propagate new fields;
16387         allocate children only when really needed.
16388         (get_alias_set): Do less generous pointer globbing.
16389         (dump_alias_stats_in_alias_c): Update statistics.
16391 2015-05-30  Alan Modra  <amodra@gmail.com>
16393         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
16394         correct block for use of r12.
16395         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
16397 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16399         PR target/66215
16400         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
16401         with -mhotpatch=.
16403 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
16405         PR tree-optimization/66142
16406         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
16407         virtual phis that feed themselves.
16409 2015-05-29  Richard Biener  <rguenther@suse.de>
16411         PR tree-optimization/66314
16412         * tree-ssa-threadupdate.c (create_block_for_threading): Add
16413         parameter that says which loop the new block belongs to.
16414         (ssa_create_duplicates): Blocks duplicated for the threaded
16415         path belong to the loop of the thread destination.
16417 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16419         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
16420         to cleanup-saved-temps.
16421         * doc/sourcebuild.texi (Clean up generated test files): Expand
16422         introduction.
16423         (dg-keep-saved-temps): Document new proc.
16424         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
16425         cleanup-saved-temps): Remove.
16427 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
16429         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
16430         gcc_AC_CHECK_DECLS.
16431         * configure: Regenerate.
16433 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
16435         * config/nios2/linux.h (CPP_SPEC): Define.
16437 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
16439         * config/microblaze/linux.h (CPP_SPEC): Define.
16441 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
16443         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
16444         -pthread is specified.
16446 2015-05-28  Richard Biener  <rguenther@suse.de>
16448         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
16449         (vect_fixup_scalar_cycles_with_patterns): Likewise.
16450         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
16451         after pattern recog.
16452         (vect_create_epilog_for_reduction): Properly handle reductions
16453         with patterns.
16454         (vectorizable_reduction): Likewise.
16455         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
16456         reduction chains.
16457         (vect_get_constant_vectors): Create the correct number of
16458         initial values for reductions.
16459         (vect_schedule_slp_instance): Handle reduction chains that are
16460         type changing properly.
16461         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
16463 2015-05-28  Richard Biener  <rguenther@suse.de>
16465         PR tree-optimization/66142
16466         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
16467         values better in memcpy destination handling.  Handle non-aliasing
16468         we discover here.
16470 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
16472         PR target/63810
16473         * config/darwin-c.c (version_components): New global enum.
16474         (parse_version, version_as_legacy_macro)
16475         (version_as_modern_macro, macosx_version_as_macro): New functions.
16476         (version_as_macro): Remove.
16477         (darwin_cpp_builtins): Use new function.
16479 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
16481         * builtins.c (expand_builtin_acc_on_device): Mark parameters
16482         with ATTRIBUTE_UNUSED.
16484 2015-05-28  Julian Brown  <julian@codesourcery.com>
16486         PR libgomp/65742
16488         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
16489         sequence for !ACCEL_COMPILER.
16491 2015-05-28  Nick Clifton  <nickc@redhat.com>
16493         * config/rx/rx.c (push_regs): New function.  Extracts code from...
16494         (rx_expand_prologue): ... here.  Use push_regs to push even small
16495         spans of registers.
16496         (pop_regs): New function.
16497         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
16498         registers.
16500 2015-05-28  Richard Biener  <rguenther@suse.de>
16502         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
16503         member.
16504         (SLP_INSTANCE_BODY_COST_VEC): Remove.
16505         (vect_update_slp_costs_according_to_vf): Likewise.
16506         (vect_slp_analyze_operations): Update prototype.
16507         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
16508         vect_update_slp_costs_according_to_vf, adjust.
16509         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
16510         (vect_analyze_slp_cost_1): Likewise.
16511         (vect_analyze_slp_cost): Likewise.  Properly deal with
16512         widening reduction ops.  Commit body costs.
16513         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
16514         cost for loops from here.
16515         (vect_slp_analyze_operations): But do it from here when
16516         the vectorization factor is known and stmts are analyzed.
16517         (vect_bb_vectorization_profitable_p): Simplify.
16518         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
16519         (vect_update_slp_costs_according_to_vf): Remove.
16521 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
16522             H.J. Lu  <hongjiu.lu@intel.com>
16524         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
16525         (BUILD_CFLAGS): Likewise.
16526         (BUILD_CXXFLAGS): Likewise.
16527         (LINKER): Add @NO_PIE_FLAG@.
16528         (BUILD_LDFLAGS): Likewise.
16529         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
16530         --enable-default-pie.
16531         * common.opt (fPIE): Initialize to -1.
16532         (fpie): Likewise.
16533         (no-pie): New option.
16534         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
16535         * configure.ac: Add --enable-default-pie.
16536         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
16537         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
16538         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
16539         * gcc.c (NO_PIE_SPEC): New.
16540         (PIE_SPEC): Likewise.
16541         (NO_FPIE1_SPEC): Likewise.
16542         (FPIE1_SPEC): Likewise.
16543         (NO_FPIE2_SPEC): Likewise.
16544         (FPIE2_SPEC): Likewise.
16545         (NO_FPIE2_SPEC): Likewise.
16546         (FPIE_SPEC): Likewise.
16547         (NO_FPIE_SPEC): Likewise.
16548         (NO_FPIC1_SPEC): Likewise.
16549         (FPIC1_SPEC): Likewise.
16550         (NO_FPIC2_SPEC): Likewise.
16551         (FPIC2_SPEC): Likewise.
16552         (NO_FPIC2_SPEC): Likewise.
16553         (FPIC_SPEC): Likewise.
16554         (NO_FPIC_SPEC): Likewise.
16555         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
16556         (FPIE1_OR_FPIC1_SPEC): Likewise.
16557         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
16558         (FPIE2_OR_FPIC2_SPEC): Likewise.
16559         (NO_FPIE_AND_FPIC_SPEC): Likewise.
16560         (FPIE_OR_FPIC_SPEC): Likewise.
16561         (LD_PIE_SPEC): Likewise.
16562         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
16563         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
16564         * config/darwin.h (PIE_SPEC): Renamed to ...
16565         (DARWIN_PIE_SPEC): This.
16566         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
16567         * config/darwin9.h (PIE_SPEC): Renamed to ...
16568         (DARWIN_PIE_SPEC): This.
16569         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
16570         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16571         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
16572         FPIE2_OR_FPIC2_SPEC.
16573         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
16574         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
16575         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
16576         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16577         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16578         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
16579         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
16580         * config/m32r/m32r.h (ASM_SPEC): Likewise.
16581         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
16582         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16583         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16584         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
16585         * config/sparc/linux.h (ASM_SPEC): Likewise.
16586         * config/sparc/linux64.h (ASM_SPEC): Likewise.
16587         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
16588         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
16589         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16590         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16591         * config/sparc/sparc.h (ASM_SPEC): Likewise.
16592         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
16593         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
16594         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
16595         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
16596         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
16597         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
16598         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
16599         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
16600         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
16601         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
16602         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
16603         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
16604         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16605         * config/vax/linux.h (ASM_SPEC): Likewise.
16606         * doc/install.texi: Document --enable-default-pie.
16607         * doc/invoke.texi: Document -no-pie.
16608         * config.in: Regenerated.
16609         * configure: Likewise.
16611 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16613         PR rtl-optimization/66168
16614         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
16615         can_move_invariant_reg.
16617 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
16619         PR target/66148
16620         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
16621         REG_EQUAL note when doing insert.
16623         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
16624         instead of "%d" for 'o' operand.
16626 2015-05-27  Nathan Sidwell  <nathan@acm.org>
16628         PR c++/66270
16629         * tree.c (build_pointer_type_for_mode): Canonical type does not
16630         inherit can_alias_all.
16631         (build_reference_type_for_mode): Likewise.
16633 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16635         * expr.h (array_at_struct_end_p): Move to...
16636         (array_ref_element_size): Likewise.
16637         (component_ref_field_offset): Likewise.
16638         * tree.h (array_ref_element_size): ...here.
16639         (array_at_struct_end_p): Likewise.
16640         (component_ref_field_offset): Likewise.
16641         * expr.c (array_ref_element_size): Move to...
16642         (array_ref_low_bound): Likewise.
16643         (array_at_struct_end_p): Likewise.
16644         (array_ref_up_bound): Likewise.
16645         (component_ref_field_offset): Likewise.
16646         * tree.c (array_ref_element_size): ...here.
16647         (array_ref_low_bound): Likewise.
16648         (array_ref_up_bound): Likewise.
16649         (array_at_struct_end_p): Likewise.
16650         (component_ref_field_offset): Likewise.
16652 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
16653             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16655         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
16657 2015-05-27  Jason Merrill  <jason@redhat.com>
16659         PR bootstrap/66304
16660         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
16661         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
16662         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
16664 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
16666         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
16667         is true.
16669         * statistics.c (statistics_fini_pass): Print pass name.
16671 2015-05-27  Richard Biener  <rguenther@suse.de>
16673         PR tree-optimization/66272
16674         Revert parts of
16675         2014-08-15  Richard Biener  <rguenther@suse.de>
16677         PR tree-optimization/62031
16678         * tree-data-ref.c (dr_analyze_indices): Do not set
16679         DR_UNCONSTRAINED_BASE.
16680         (dr_may_alias_p): All indirect accesses have to go the
16681         formerly DR_UNCONSTRAINED_BASE path.
16682         * tree-data-ref.h (struct indices): Remove
16683         unconstrained_base member.
16684         (DR_UNCONSTRAINED_BASE): Remove.
16686 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
16688         * dwarf2out.c: Remove block_map.
16689         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
16690         (gen_lexical_block_die): Same.
16691         (dwarf2out_function_decl): Remove block_map use.
16692         (dwarf2out_c_finalize): Same.
16693         * tree-core.h (struct tree_block): Add die field.
16694         * tree.h (BLOCK_DIE): New.
16696 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16698         PR target/65358
16699         * expr.c (memory_load_overlap): New function.
16700         (emit_push_insn): When pushing partial args to the stack would
16701         clobber the register part load the overlapping part into a pseudo
16702         and put it into the hard reg after pushing.  Change return type
16703         to bool.  Add bool argument.
16704         * expr.h (emit_push_insn): Change return type to bool.
16705         Add bool argument.
16706         * calls.c (expand_call): Cancel sibcall optimization when encountering
16707         partial argument on targets with ARGS_GROW_DOWNWARD and
16708         !STACK_GROWS_DOWNWARD.
16709         (emit_library_call_value_1): Update callsite of emit_push_insn.
16710         (store_one_arg): Likewise.
16712 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
16714         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
16716 2015-05-27  Martin Liska  <mliska@suse.cz>
16718         * Makefile.in: Add additional dependencies related to memory report
16719         enhancement.
16720         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
16721         * bitmap.c (struct bitmap_descriptor_d): Remove.
16722         (struct loc): Likewise.
16723         (struct bitmap_desc_hasher): Likewise.
16724         (bitmap_desc_hasher::hash): Likewise.
16725         (bitmap_desc_hasher::equal): Likewise.
16726         (get_bitmap_descriptor): Likewise.
16727         (bitmap_register): User new memory descriptor API.
16728         (register_overhead): Likewise.
16729         (bitmap_find_bit): Register nsearches and search_iter statistics.
16730         (struct bitmap_output_info): Remove.
16731         (print_statistics): Likewise.
16732         (dump_bitmap_statistics): Use new memory descriptor.
16733         * bitmap.h (struct bitmap_usage): New class.
16734         * genmatch.c: Extend header file inclusion.
16735         * genpreds.c: Likewise.
16736         * ggc-common.c (struct ggc_usage): New class.
16737         (struct ggc_loc_desc_hasher): Remove.
16738         (ggc_loc_desc_hasher::hash): Likewise.
16739         (ggc_loc_desc_hasher::equal): Likewise.
16740         (struct ggc_ptr_hash_entry): Likewise.
16741         (struct ptr_hash_hasher): Likewise.
16742         (ptr_hash_hasher::hash): Likewise.
16743         (ptr_hash_hasher::equal): Likewise.
16744         (make_loc_descriptor): Likewise.
16745         (ggc_prune_ptr): Likewise.
16746         (dump_ggc_loc_statistics): Use new memory descriptor.
16747         (ggc_record_overhead): Likewise.
16748         (ggc_free_overhead): Likewise.
16749         (final_cmp_statistic): Remove.
16750         (cmp_statistic): Likewise.
16751         (ggc_add_statistics): Liekwise.
16752         (ggc_prune_overhead_list): Likewise.
16753         * hash-map-traits.h: New file.
16754         * hash-map.h (struct default_hashmap_traits): Move the traits to a
16755         separate header file.
16756         * hash-set.h: Pass memory statistics info to ctor.
16757         * hash-table.c (void dump_hash_table_loc_statistics): New function.
16758         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
16759         (hash_table::~hash_table): Register memory release operation.
16760         (hash_table::alloc_entries): Handle memory allocation operation.
16761         (hash_table::expand): Likewise.
16762         * inchash.c (iterative_hash_hashval_t): Move implementation to header
16763         file.
16764         (iterative_hash_host_wide_int): Likewise.
16765         * inchash.h (class hash): Likewise.
16766         * mem-stats-traits.h: New file.
16767         * mem-stats.h: New file.
16768         (mem_location): Add new class.
16769         (mem_usage): Likewise.
16770         (mem_alloc_description): Likewise.
16771         * sese.c: Add new header file inclusision.
16772         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
16773         and hash_set.
16774         * tree-sra.c: Add new header file inclusision.
16775         * vec.c (struct vec_descriptor): Remove.
16776         (hash_descriptor): Likewise.
16777         (struct vec_usage): Likewise.
16778         (struct ptr_hash_entry): Likewise.
16779         (hash_ptr): Likewise.
16780         (eq_ptr): Likewise.
16781         (vec_prefix::register_overhead): Use new memory descriptor API.
16782         (vec_prefix::release_overhead): Likewise.
16783         (add_statistics): Remove.
16784         (dump_vec_loc_statistics): Use new memory descriptor API.
16785         * vec.h (struct vec_prefix): Likewise.
16786         (va_heap::reserve): Likewise.
16787         (va_heap::release): Likewise.
16788         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
16790 2015-05-27  Richard Biener  <rguenther@suse.de>
16792         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
16793         earlier and remove ??? comment.
16794         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
16795         and got called from loop analysis bail out.  Always pass the SLP
16796         node to the vectorizable_* functions.
16797         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
16798         the premature SLP check here.
16799         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
16800         detected SLP stmts.
16801         (vect_detect_hybrid_slp_1): Likewise.
16803 2015-05-26  Jeff Law  <law@redhat.com>
16805         * combine.c (find_split_point): Verify that the shift count is a
16806         constant when choosing (plus (ashift ...)) as a split point.
16808         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
16809         No functional changes.
16811 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
16813         * ipa-polymorphic-call.c
16814         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
16815         case when call target is already known.
16817 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
16819         PR target/65979
16820         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
16821         take into account the case that operands[1] and operands[2]
16822         are the same register.
16824 2015-05-26  Michael Matz  <matz@suse.de>
16826         PR middle-end/66251
16828         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
16829         stores.
16830         (vect_create_vectorized_demotion_stmts): Always set
16831         STMT_VINFO_VEC_STMT, also with SLP.
16832         (vectorizable_store): Handle strided group stores.
16834 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16836         PR target/66049
16837         * config/aarch64/aarch64.md
16838         (*adds_shift_imm_<mode>):  New pattern.
16839         (*subs_shift_imm_<mode>):  Likewise.
16840         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
16841         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
16842         (*add_uxt<mode>_shift2): Likewise.
16843         (*add_uxtsi_shift2_uxtw): Likewise.
16844         (*sub_uxt<mode>_shift2): Likewise.
16845         (*sub_uxtsi_shift2_uxtw): Likewise.
16847 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
16849         * config/rs6000/constraints.md (Y, U): Use match_test.
16851 2015-05-26  Christian Bruel  <christian.bruel@st.com>
16853         PR target/52144
16854         * config/arm/arm.c (arm_option_check_internal)
16855         (arm_option_params_internal): Check opts->target_flags to set macros.
16856         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16857         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
16858         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16859         (builtin_define): Replaced with def_or_undef_macro.
16860         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
16861         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
16862         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
16863         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
16864         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
16865         (TARGET_ARM_FEATURE_LDREX_P)
16866         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
16867         * config/arm/arm-c.c (def_or_undef_macro): New function.
16868         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
16870 2015-05-26  Christian Bruel  <christian.bruel@st.com>
16872         * c-common.h (builtin_define_with_int_value)
16873         (builtin_define_type_sizeof): Declare.
16874         * c-cppbuiltin.c (builtin_define_with_int_value)
16875         (builtin_define_type_sizeof): Externalize.
16876         (builtin_define_std): Cleanup declaration.
16877         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
16878         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
16879         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
16880         (builtin_define, builtin_assert): New macros.
16882 2015-05-26  Richard Biener  <rguenther@suse.de>
16884         PR tree-optimization/66142
16885         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
16886         MEM_REFs for the same base address.
16888 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16890         PR ipa/66181
16891         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
16893 2015-05-26  Jason Merrill  <jason@redhat.com>
16895         * configure.ac: Set CXXFLAGS for ISL test.
16896         * configure: Regenerate.
16898         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
16899         strstr and basename.
16900         * configure: Regenerate.
16902 2015-05-26  Richard Biener  <rguenther@suse.de>
16904         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
16905         X % C -> X & (C - 1) for C being a power-of two to ...
16906         * match.pd: ... patterns.
16908 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
16910         * match.pd (swapped_tcc_comparison): New operator list.
16911         (-A CMP -B): New simplification.
16912         * fold-const.c (fold_comparison): Remove corresponding code.
16914 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
16916         * caller-save.c (init_caller_save): Base temporary register numbers
16917         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
16918         * cfgloopanal.c (init_set_costs): Likewise.
16919         * dojump.c (prefer_and_bit_test): Likewise.
16920         * expr.c (init_expr_target): Likewise.
16921         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16922         * lower-subreg.c (init_lower_subreg): Likewise.
16923         * postreload.c (reload_cse_regs_1): Likewise.
16925 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
16927         * gensupport.h (compute_test_codes): Declare.
16928         * gensupport.c (compute_predicate_codes): Rename to...
16929         (compute_test_codes): ...this.  Generalize error message.
16930         (process_define_predicate): Update accordingly.
16931         * genpreds.c (compute_maybe_allows): Delete.
16932         (add_constraint): Use compute_test_codes to determine whether
16933         something can accept a SUBREG, REG or MEM.
16935 2015-05-26  Torvald Riegel  <triegel@redhat.com>
16937         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
16938         'memory model' to align with C++11; fix description of memory orders;
16939         fix a few typos.
16941 2015-05-26  Richard Biener  <rguenther@suse.de>
16943         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
16944         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
16945         detect whether we apply SLP.  Remove call to
16946         vect_update_slp_costs_according_to_vf.
16947         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
16948         vect_update_slp_costs_according_to_vf from here.  Dispatch
16949         to vect_slp_analyze_operations to analyze SLP stmts.
16950         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
16951         unused bb_vec_info parameter, adjust assert.
16952         (vect_slp_analyze_operations): Pass in the slp instance tree
16953         instead of bb_vec_info.
16954         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
16955         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
16957 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
16959         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
16960         Q_REGS.  Expand comment.
16961         (REG_CLASS_NAMES): Ditto.
16962         (REG_CLASS_CONTENTS): Ditto.
16964 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
16966         PR target/66274
16967         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
16968         when LEGACY_INT_REGNO_P is processed.
16970 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
16972         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
16974 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16976         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
16977         register if not marked dead/unused, before return.
16979 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
16981         PR lto/66180
16982         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
16983         is set; check for assembler name at LTO time.
16984         (type_in_anonymous_namespace): Remove hacks, check that all
16985         anonymous types are called "<anon>"
16986         (odr_type_p): Simplify; add check for "<anon>"
16987         (odr_subtypes_equivalent): Add odr_type_p check.
16988         * tree.c (need_assembler_name_p): Even anonymous namespace needs
16989         assembler name.
16991 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
16993         * ipa-utils.h (method_class_type): Remove.
16994         * cgraphunit.c (walk_polymorphic_call_targets): Use
16995         TYPE_METHOD_BASETYPE.
16996         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
16997         on main variants only.
16998         (method_class_type): Remove.
16999         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
17000         (build_type_inheritance_graph): Likewise.
17001         * ipa-icf.c (sem_function::equals_wpa): Likewise.
17002         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
17003         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
17005 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
17007         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
17008         is_typedef_decl, typedef_variant_p): Constify.
17009         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
17010         is_typedef_decl, typedef_variant_p): Constify.
17012 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17014         * defaults.h (gen_tablejump): New function.
17015         (HAVE_tablejump): Add default value.
17016         * expr.c: Adjust.
17017         * stmt.c: Likewise.
17019 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17021         * defaults.h (gen_store_multiple): New function.
17022         (HAVE_store_multiple): Add default value.
17023         * expr.c (move_block_from_reg): Adjust.
17025 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17027         * defaults.h (gen_load_multiple): New function.
17028         (HAVE_load_multiple): Add default value.
17029         * expr.c (move_block_to_reg): Adjust.
17031 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17033         * defaults.h (gen_mem_signal_fence): New function.
17034         (HAVE_mem_signal_fence): Add default value.
17035         * optabs.c: Adjust.
17037 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17039         * defaults.h (gen_memory_barrier): New function.
17040         (HAVE_memory_barrier): Add default value.
17041         * optabs.c: Adjust.
17043 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17045         * defaults.h (gen_mem_thread_fence): New function.
17046         (HAVE_mem_thread_fence): Add default definition.
17047         * optabs.c: Adjust.
17049 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17051         * combine.c (find_split_point): Check the value of HAVE_lo_sum
17052         instead of if it is defined.
17053         (combine_simplify_rtx): Likewise.
17054         * lra-constraints.c (process_address_1): Likewise.
17055         * config/darwin.c: Adjust.
17056         * genconfig.c (main): Always define HAVE_lo_sum.
17058 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17060         * genmatch.c (parser::parse_operation): Reject expanding
17061         operator-list inside 'for'.
17063 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17065         * genmatch.c (parser::parse_for): Reject iterator if used as
17066         operator-list.
17068 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17070         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
17071         after end of id-list.
17073 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
17075         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
17076         we do not try to compute canonical type for type that does not need
17077         alias set.
17078         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
17079         FUNCITON_TYPE.
17080         * tree.h (type_with_alias_set_p): New.
17082 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
17084         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
17085         function attributes.
17086         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
17088 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
17090         * Makefile.in (check_gcc_parallelize): Delete.
17091         (lang_checks_parallelized): Update comment.
17093 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
17095         PR rtl-optimization/66237
17096         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
17097         location of an "as_a" cast.
17099 2015-05-22  Jeff Law  <law@redhat.com>
17101         * config/pa/pa.md (non-canonical shift-add insns): Remove.
17102         (peepholes with non-canonical RTL sources): Remove.
17103         (peepholes for indexed stores of FP regs in integer modes): Match and
17104         generate canonical RTL.
17106 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
17108         PR tree-optimization/63387
17109         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
17110         ((x ord x) & (y ord y) -> (x ord y),
17111         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
17112         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
17113         vectors like scalars.
17115 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
17117         * convert.c (convert_to_integer, convert_to_vector): Include the
17118         types in the error message.
17120 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
17122         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
17123         simplifications.
17125 2015-05-22  Jeff Law  <law@redhat.com>
17127         * config/pa/pa.md (integer_indexed_store splitters): Use
17128         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
17129         insns -- adjusting the constant 2nd operand accordingly.
17131         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
17132         (plus (ashift X log2) Y) if it is a split point.
17134         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
17135         out of hppa_legitimize_address to handle both forms of a multiply
17136         by 2, 4 or 8.
17137         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
17138         Always generate the ASHIFT variant as the result is not directly
17139         used in a MEM.  Update comments and refactor slightly to improve
17140         readability.
17142 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17144         PR target/65491
17145         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
17146         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
17147         (aarch64_composite_type_p): Return false if given type and mode are
17148         for a short vector.
17150 2015-05-22  Richard Biener  <rguenther@suse.de>
17152         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
17153         member.
17154         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
17155         patterns when determining whether SLP is pure.
17156         (vect_is_slp_reduction): Remove check for pattern stmts.
17157         (vect_is_simple_reduction_1): Remove dead code.
17158         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
17159         (vect_get_and_check_slp_defs): Pass in the stmt number.
17160         Allow the first def in a reduction to be not a pattern stmt when
17161         the rest of the stmts def are patterns.
17162         (vect_build_slp_tree_1): Allow tcc_expression codes like
17163         SAD_EXPR and DOT_PROD_EXPR.
17164         (vect_build_slp_tree): Adjust.
17165         (vect_analyze_slp): Refactor and move BB vect error message ...
17166         (vect_slp_analyze_bb_1): ... here.
17168 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
17170         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
17171         for CSWTCH temporary.
17173 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17175         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
17176         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
17177         unknown unspecs.
17179 2015-05-22  Richard Biener  <rguenther@suse.de>
17181         PR tree-optimization/66251
17182         * tree-vect-stmts.c (vectorizable_conversion): Properly
17183         set STMT_VINFO_VEC_STMT even for the SLP case.
17185 2015-05-22  Marek Polacek  <polacek@redhat.com>
17187         * doc/extend.texi: Use @pxref instead of @xref.
17189 2015-05-22  hiraditya  <hiraditya@msn.com>
17191         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
17192         redundant if.
17194 2015-05-22  Richard Biener  <rguenther@suse.de>
17196         PR tree-optimization/65701
17197         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17198         Move peeling cost models into one place.  Peel for alignment
17199         for single loads only if an aligned load is cheaper than
17200         an unaligned load.
17202 2015-05-22  Marek Polacek  <polacek@redhat.com>
17204         PR c/47043
17205         * doc/extend.texi (Enumerator Attributes): New section.
17206         Document syntax of enumerator attributes.
17208 2015-05-22  Richard Biener  <rguenther@suse.de>
17210         * tree-vect-loop.c (get_reduction_op): New function.
17211         (vect_model_reduction_cost): Use it, add reduc_index parameter.
17212         Make ready for BB reductions.
17213         (vect_create_epilog_for_reduction): Use get_reduction_op.
17214         (vectorizable_reduction): Init reduc_index to a valid value.
17215         Adjust vect_model_reduction_cost call.
17216         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
17217         operand for reduction defaults.  Add SAD_EXPR support.
17218         Assert we have a neutral op for SLP reductions.
17219         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
17220         walking pattern stmt ops only recurse to SSA names.
17222 2015-05-22  Richard Biener  <rguenther@suse.de>
17224         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
17225         assert with guard, remove check on detected reduction.
17226         (vect_recog_sad_pattern): Likewise.
17227         (vect_recog_widen_sum_pattern): Likewise.
17229 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17231         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
17232         __always_inline__ attribute.
17233         (vaesdq_u8): Likewise.
17234         (vaesmcq_u8): Likewise.
17235         (vaesimcq_u8): Likewise.
17236         (vsha1cq_u32): Likewise.
17237         (vsha1mq_u32): Likewise.
17238         (vsha1pq_u32): Likewise.
17239         (vsha1h_u32): Likewise.
17240         (vsha1su0q_u32): Likewise.
17241         (vsha1su1q_u32): Likewise.
17242         (vsha256hq_u32): Likewise.
17243         (vsha256h2q_u32): Likewise.
17244         (vsha256su0q_u32): Likewise.
17245         (vsha256su1q_u32): Likewise.
17246         (vmull_p64): Likewise.
17247         (vmull_high_p64): Likewise.
17249 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17251         * final.c (final_scan_insn): Don't check HAVE_peephole with the
17252         preprocessor.
17253         * output.h: Likewise.
17254         * genconfig.c (main): Alwways define HAVE_peephole.
17255         * genpeep.c: Don't emit checks of HAVE_peephole.
17257 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17259         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
17260         check HAVE_conditional_move with the preprocessor.
17262 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17264         * genconfig.c (main): Always define HAVE_conditional_move.
17265         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
17266         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
17267         is defined.
17269 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17271         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
17272         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
17273         and FRAME_POINTER_REGNUM with the preprocessor.
17275 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17277         * defaults.h: Add default for STACK_PUSH_CODE.
17278         * expr.c: Don't redefine STACK_PUSH_CODE.
17279         * recog.c: Likewise.
17281 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17283         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
17284         sched-deps.c: Use if instead of preprocessor checks with
17285         STACK_GROWS_DOWNWARD.
17287 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17289         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
17290         is defined.
17291         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
17292         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
17293         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
17294         * doc/tm.texi: Regenerate.
17296 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17298         PR target/66232
17299         * config/i386/constraints.md (Bg): New constraint for GOT memory
17300         operand.
17301         * config/i386/i386.md (*call_got_x32): New pattern.
17302         (*call_value_got_x32): Likewise.
17303         * config/i386/predicates.md (GOT_memory_operand): New predicate.
17305 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
17307         PR tree-optimization/66233
17308         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
17309         Simplify.
17311 2015-05-21  Jeff Law  <law@redhat.com>
17313         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
17314         than MULT for shadd sequences.
17316 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
17318         * alias.c (alias_stats): New static var.
17319         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
17320         (dump_alias_stats_in_alias_c): New function.
17321         * alias.h (dump_alias_stats_in_alias_c): Declare.
17322         * tree-ssa-alias.c (dump_alias_stats): Call it.
17324 2015-05-08  Michael Matz  <matz@suse.de>
17326         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
17327         to strided_p.
17328         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
17329         (STMT_VINFO_STRIDED_P): ... this.
17330         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
17331         (vect_verify_datarefs_alignment): Likewise.
17332         (vect_enhance_data_refs_alignment): Likewise.
17333         (vect_analyze_data_ref_access): Likewise.
17334         (vect_analyze_data_refs): Accept strided stores.
17335         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
17336         (vect_model_load_cost): Adjust for macro rename.
17337         (vectorizable_mask_load_store): Likewise.
17338         (vectorizable_load): Likewise.
17339         (vectorizable_store): Open code strided stores.
17341 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17343         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
17344         Document sqrt_insn.
17346 2015-05-21  Richard Biener  <rguenther@suse.de>
17348         PR c++/66211
17349         * match.pd: Guard pattern optimzing (int)(float)int
17350         conversions to apply only on GIMPLE.
17352 2015-05-21  Jeff Law  <law@redhat.com>
17354         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
17355         multiply-accumulate/shift-add insn generation.
17357 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
17359         PR target/54236
17360         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
17361         operands[1] are the same.
17363 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
17365         PR middle-end/66221
17366         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
17367         build_distinct_type_copy to copy bounds.
17369 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
17371         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
17372         Change to unsigned int.
17374 2015-05-20  Jeff Law  <law@redhat.com>
17376         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
17377         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
17378         (pa_shadd_constant_p): Allow constants for shadd insns rather
17379         than valid scaling constants for memory addresses.
17380         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
17381         * config/pa/predicates.md (mem_shadd_operand): New predicate.
17382         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
17383         (shift-add insns using ASHIFT): New patterns.
17385 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
17387         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
17388         feasible.
17389         (fix_up_fall_thru_edges): Likewise.
17390         (fix_crossing_conditional_branches): Likewise. Promote jump targets
17391         from to rtx_insn to rtx_code_label where feasible.
17392         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
17393         gen_move_insn (returned type changed to rtx_insn).
17394         * builtins.c (expand_errno_check): Fix arguments of
17395         do_compare_rtx_and_jump (now expects rtx_code_label).
17396         (expand_builtin_acc_on_device): Likewise.
17397         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
17398         invert_jump (now exprects rtx_jump_insn).
17399         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
17400         (construct_init_block): Use rtx_code_label.
17401         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
17402         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
17403         calling redirect_jump.
17404         (patch_jump_insn): Likewise.
17405         (redirect_branch_edge): Likewise.
17406         (force_nonfallthru_and_redirect): Likewise.
17407         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
17408         when suitable.
17409         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
17410         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
17411         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
17412         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
17413         to store the value retured by gen_label_rtx.
17414         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
17415         rtx_jump_insn.
17416         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
17417         (split_branches): Fix calls of redirect_jump.
17418         * dojump.c (jumpifnot): Promote argument type from rtx to
17419         rtx_code_label.
17420         (jumpifnot_1): Likewise.
17421         (jumpif): Likewise.
17422         (jumpif_1): Likewise.
17423         (do_jump_1): Likewise.
17424         (do_jump): Likewise. Use rtx_code_label when feasible.
17425         (do_jump_by_parts_greater_rtx): Likewise.
17426         (do_jump_by_parts_zero_rtx): Likewise.
17427         (do_jump_by_parts_equality_rtx): Likewise.
17428         (do_compare_rtx_and_jump): Likewise.
17429         * dojump.h: Update function prototypes.
17430         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
17431         returns rtx_insn).
17432         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
17433         rtx_jump_insn.
17434         (emit_label_before): Likewise.
17435         (emit_jump_insn_after_noloc): Likewise.
17436         (emit_jump_insn_after_setloc): Likewise.
17437         (emit_jump_insn_after): Likewise
17438         (emit_jump_insn_before_setloc): Likewise.
17439         (emit_jump_insn_before): Likewise.
17440         (emit_label_before): Promote return type to rtx_code_label.
17441         (emit_label): Likewise.
17442         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
17443         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
17444         gen_move_insn.
17445         (emit_stack_restore): Likewise.
17446         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
17447         (do_cmp_and_jump): Likewise.
17448         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
17449         from rtx to rtx_code_label.
17450         (gen_move_insn_uncast): New function.
17451         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
17452         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
17453         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
17454         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
17455         invert_jump_1 and redirect_jump_1.
17456         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
17457         do_compare_rtx_and_jump.
17458         (expand_addsub_overflow): Likewise.
17459         (expand_neg_overflow): Likewise.
17460         (expand_mul_overflow): Likewise.
17461         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
17462         return value of gen_move_insn.
17463         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
17464         * loop-doloop.c (add_test): Use rtx_code_label.
17465         (doloop_modify): Likewise.
17466         (doloop_optimize): Likewise.
17467         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
17468         * lra-constraints.c (emit_spill_move): Remove cast of value returned
17469         by gen_move_insn.
17470         (inherit_reload_reg): Add cast when calling dump_insn_slim.
17471         (split_reg): Likewise.
17472         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
17473         gen_move_insn.
17474         * optabs.c (expand_binop_directly): Remove casts of values returned by
17475         maybe_gen_insn.
17476         (expand_unop_direct): Likewise.
17477         (expand_abs): Likewise.
17478         (maybe_emit_unop_insn): Likewise.
17479         (maybe_gen_insn): Promote return type to rtx_insn.
17480         * optabs.h: Update prototype of maybe_gen_insn.
17481         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
17482         redundant cast.
17483         * recog.c (struct peep2_insn_data): Promote type of insn field to
17484         rtx_insn.
17485         (peep2_reinit_state): Use NULL instead of NULL_RTX.
17486         (peep2_attempt): Remove casts of insn in peep2_insn_data.
17487         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
17488         * recog.h (struct insn_gen_fn): Promote return types of function
17489         pointers and operator ().from rtx to rtx_insn.
17490         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
17491         (fill_eager_delay_slots): Likewise.
17492         (relax_delay_slots): Likewise.
17493         (make_return_insns): Likewise.
17494         (dbr_schedule): Likewise.
17495         (optimize_skips): Likewise.
17496         (reorg_redirect_jump): Likewise.
17497         (fill_slots_from_thread): Likewise.
17498         * reorg.h: Update prototypes.
17499         * resource.c (find_dead_or_set_registers): Use dyn_cast to
17500         rtx_jump_insn instead of check.  Use it's jump_target method.
17501         * rtl.h (rtx_jump_insn::jump_label): Define new method.
17502         (rtx_jump_insn::jump_target): Define new method.
17503         (rtx_jump_insn::set_jump_target): Define new method.
17504         * rtlanal.c (tablejump_p): Promote type of one local variable.
17505         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
17506         (sched_analyze_insn): Likewise.
17507         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
17508         (print_insn): Likewise.
17509         * stmt.c (label_rtx): Promote return type to rtx_insn.
17510         (force_label_rtx): Likewise.
17511         (jump_target_rtx): Define new function.
17512         (expand_label): Use it, get rid of one cast.
17513         (expand_naked_return): Promote rtx to rtx_code_label.
17514         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
17515         (expand_case): Use rtx_code_label instread of rtx where feasible.
17516         (expand_sjlj_dispatch_table): Likewise.
17517         (emit_case_nodes): Likewise.
17518         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
17519         * store-motion.c (insert_store): Make use of new return type of
17520         gen_move_insn and remove a cast.
17521         (replace_store_insn): Likewise.
17523 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
17525         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
17526         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
17528 2015-05-20  Jeff Law  <law@redhat.com>
17530         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
17531         dispose of the jump thread path when the jump threading
17532         opportunity is cancelled.
17534 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17536         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
17537         when printing the caret character.
17539 2015-05-20  Marek Polacek  <polacek@redhat.com>
17541         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
17543 2015-05-20  Marek Polacek  <polacek@redhat.com>
17545         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
17546         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
17547         * gimple-fold.c (canonicalize_bool): Likewise.
17548         (same_bool_result_p): Likewise.
17549         * tree-if-conv.c (parse_predicate): Likewise.
17551 2015-05-20  Marek Polacek  <polacek@redhat.com>
17553         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
17554         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
17556 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17558         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
17559         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
17560         values.
17562 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
17564         * config/mips/mips.h (micromips_globals): Declare.
17566 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
17568         * timevar.def (TV_INITIALIZE_RTL): New.
17569         * toplev.c (initialize_rtl): Use an auto_timevar to account this
17570         function's time to TV_INITIALIZE_RTL.
17572 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
17574         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
17575         gimple_build_nop calls.
17576         (chkp_find_bounds_for_elem): Likewise.
17577         (chkp_get_zero_bounds): Likewise.
17578         (chkp_get_none_bounds): Likewise.
17579         (chkp_get_bounds_by_definition): Likewise.
17580         (chkp_generate_extern_var_bounds): Likewise.
17581         (chkp_get_bounds_for_decl_addr): Likewise.
17582         (chkp_get_bounds_for_string_cst): Likewise.
17584 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
17586         PR tree-optimization/65447
17587         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
17588         (dump_use, dump_uses): Support to dump sub use.
17589         (record_use): New parameters to support sub use.  Remove call to
17590         dump_use.
17591         (record_sub_use, record_group_use): New functions.
17592         (compute_max_addr_offset, split_all_small_groups): New functions.
17593         (group_address_uses, rewrite_use_address): New functions.
17594         (strip_offset): New declaration.
17595         (find_interesting_uses_address): Call record_group_use.
17596         (add_candidate): New assertion.
17597         (infinite_cost_p): Move definition forward.
17598         (add_costs): Check INFTY cost and return immediately.
17599         (get_computation_cost_at): Clear setup cost and dependent bitmap
17600         for sub uses.
17601         (determine_use_iv_cost_address): Compute cost for sub uses.
17602         (rewrite_use_address_1): Rename from old rewrite_use_address.
17603         (free_loop_data): Free sub uses.
17604         (tree_ssa_iv_optimize_loop): Call group_address_uses.
17606 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
17607             Jim Wilson  <jim.wilson@linaro.org>
17609         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
17610         new  fields loadv and storev.
17611         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17612         Initialize loadv and storev.
17613         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
17614         (cortexa53_extra_costs): Likewise.
17615         (cortexa57_extra_costs): Likewise.
17616         (xgene1_extra_costs): Likewise.
17617         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
17618         rtx_costs.
17620 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
17622         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
17623          storev.
17624         (cortexa8_extra_costs): Likewise.
17625         (cortexa5_extra_costs): Likewise.
17626         (cortexa7_extra_costs): Likewise.
17627         (cortexa12_extra_costs): Likewise.
17628         (cortexa15_extra_costs): Likewise.
17629         (v7m_extra_costs): Likewise.
17631 2015-05-20  Jeff Law  <law@redhat.com>
17633         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
17634         instead of open-coded version.  Also delete the jump thread created
17635         within this function.
17637 2015-05-20  Alan Modra  <amodra@gmail.com>
17639         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
17640         stack adjusting insn.  Formatting.
17641         (rs6000_emit_prologue): Track stack adjusting insn, and use of
17642         r12.  If possible, emit first -fsplit-stack arg pointer insn
17643         before stack adjust.  Don't use r12 to save cr if split-stack.
17645 2015-05-20  Alan Modra  <amodra@gmail.com>
17647         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
17648         Define.
17649         (rs6000_supports_split_stack): New function.
17650         * gcc/config/rs6000/rs6000.c (machine_function): Add
17651         split_stack_arg_pointer.
17652         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
17653         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
17654         rather than virtual_incoming_args_rtx.
17655         (rs6000_va_start): Likewise.
17656         (split_stack_arg_pointer_used_p): New function.
17657         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
17658         (morestack_ref): New var.
17659         (gen_add3_const, rs6000_expand_split_stack_prologue,
17660         rs6000_internal_arg_pointer, rs6000_live_on_entry,
17661         rs6000_split_stack_space_check): New functions.
17662         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
17663         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
17664         (UNSPECV_SPLIT_STACK_RETURN): Define.
17665         (split_stack_prologue, load_split_stack_limit,
17666         load_split_stack_limit_di, load_split_stack_limit_si,
17667         split_stack_return, split_stack_space_check): New expands and insns.
17668         * gcc/config/rs6000/rs6000-protos.h
17669         (rs6000_expand_split_stack_prologue): Declare.
17670         (rs6000_split_stack_space_check): Declare.
17672 2015-05-20  Alan Modra  <amodra@gmail.com>
17674         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
17675         (direct_return): Test vrsave_size rather than vrsave_mask.
17676         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
17677         (rs6000_emit_epilogue): Likewise.
17679 2015-05-20  Alan Modra  <amodra@gmail.com>
17681         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
17682         when not saving registers.
17683         (debug_stack_info): Adjust to omit printing unused offsets,
17684         as before.
17685         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
17686         expression.
17688 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17690         PR c++/65835
17691         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
17692         value_type to const char *.
17694 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
17696         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
17697         to build a biarch toolchain again.
17699 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
17701         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
17702         or implicit declarations.
17703         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
17704         into it.
17705         (get_odr_type): Check type has linkage before adding bases.
17706         (register_odr_type): Check that type has linkage before adding it.
17707         (type_known_to_have_no_deriavations_p): Rename to ..
17708         (type_known_to_have_no_derivations_p): This one.
17709         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
17710         (type_known_to_have_no_derivations_p): This one.
17711         * ipa-polymorphic-call.c
17712         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
17713         type has linkage.
17715 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
17717         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
17718         (layout_type): Use RECORD_OR_UNION_TYPE_P.
17720 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17722         * config/s390/s390.c (s390_vector_bool_type_p): New function.
17723         (s390_invalid_binary_op): New function.
17724         (TARGET_INVALID_BINARY_OP): Define macro.
17726 2015-05-19  David Sherwood  <david.sherwood@arm.com>
17728         * loop-invariant.c (create_new_invariant): Don't calculate address cost
17729         if mode is not a scalar integer.
17730         (get_inv_cost): Increase computational cost for unused invariants.
17732 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17734         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
17735         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
17736         * config/s390/s390-builtin-types.def: New file.
17737         * config/s390/s390-builtins.def: New file.
17738         * config/s390/s390-builtins.h: New file.
17739         * config/s390/s390-c.c: New file.
17740         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
17741         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
17742         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
17743         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
17744         prototypes.
17745         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
17746         Include.
17747         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
17748         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
17749         variable definitions.
17750         (s390_const_operand_ok): New function.
17751         (s390_expand_builtin): Rewrite.
17752         (s390_init_builtins): New function.
17753         (s390_handle_vectorbool_attribute): New function.
17754         (s390_attribute_table): Add s390_vector_bool attribute.
17755         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
17756         (s390_branch_condition_mask): Generate masks for new modes.
17757         (s390_expand_vec_compare_cc): New function.
17758         (s390_mangle_type): Add mangling for vector bool types.
17759         (enum s390_builtin): Remove.
17760         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
17761         efpc builtins.
17762         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
17763         s390_cpu_cpp_builtins.
17764         (REGISTER_TARGET_PRAGMAS): New macro.
17765         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
17766         (insn_cmp mode attribute): Add new CC modes.
17767         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
17768         (lcbb): New pattern definition.
17769         * config/s390/s390intrin.h: Include vecintrin.h.
17770         * config/s390/t-s390: New file.
17771         * config/s390/vecintrin.h: New file.
17772         * config/s390/vector.md: Include vx-builtins.md.
17773         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
17774         support.
17776 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17778         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
17779         CCVFHE.
17780         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
17781         (s390_select_ccmode): Likewise.
17782         (s390_canonicalize_comparison): Swap operands if necessary.
17783         (s390_expand_vec_compare_scalar): Expand DFmode compare using
17784         single element vector instructions.
17785         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
17786         (s390_branch_condition_mask): Generate CC masks for the new modes.
17787         * config/s390/s390.md (v0, vf, vd): New mode attributes.
17788         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
17789         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
17790         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
17791         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
17792         (*extend<DSF:mode><BFP:mode>2): New insn definition.
17793         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
17794         (extend<DSF:mode><BFP:mode>2): Turn into expander.
17795         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
17796         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
17797         (sqrt<mode>2): Add vector instruction.
17799 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17801         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
17802         constraints.
17803         * config/s390/predicates.md (const0_operand, constm1_operand)
17804         (constable_operand): Accept vector operands.
17805         * config/s390/s390-modes.def: Add supported vector modes.
17806         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
17807         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
17808         (s390_bytemask_vector_p, s390_expand_vec_strlen)
17809         (s390_expand_vec_compare, s390_expand_vcond)
17810         (s390_expand_vec_init): Add prototypes.
17811         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
17812         (s390_vector_mode_supported_p): New function.
17813         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
17814         (s390_contiguous_bitmask_vector_p): New function.
17815         (s390_bytemask_vector_p): New function.
17816         (s390_split_ok_p): Vector regs don't work either.
17817         (regclass_map): Add VEC_REGS.
17818         (s390_legitimate_constant_p): Handle vector constants.
17819         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
17820         (legitimate_reload_vector_constant_p): New function.
17821         (s390_preferred_reload_class): Handle CONST_VECTOR.
17822         (s390_reload_symref_address):  Likewise.
17823         (s390_secondary_reload): Vector memory instructions only support
17824         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
17825         (s390_emit_ccraw_jump): New function.
17826         (s390_expand_vec_strlen): New function.
17827         (s390_expand_vec_compare): New function.
17828         (s390_expand_vcond): New function.
17829         (s390_expand_vec_init): New function.
17830         (s390_dwarf_frame_reg_mode): New function.
17831         (print_operand): Handle addresses with 'O' and 'R' constraints.
17832         (NR_C_MODES, constant_modes): Add vector modes.
17833         (s390_output_pool_entry): Handle vector constants.
17834         (s390_hard_regno_mode_ok): Handle vector registers.
17835         (s390_class_max_nregs): Likewise.
17836         (s390_cannot_change_mode_class): New function.
17837         (s390_invalid_arg_for_unprototyped_fn): New function.
17838         (s390_function_arg_vector): New function.
17839         (s390_function_arg_float): Remove size variable.
17840         (s390_pass_by_reference): Handle vector arguments.
17841         (s390_function_arg_advance): Likewise.
17842         (s390_function_arg): Likewise.
17843         (s390_return_in_memory): Vector values are returned in a VR if
17844         possible.
17845         (s390_function_and_libcall_value): Handle vector arguments.
17846         (s390_gimplify_va_arg): Likewise.
17847         (s390_call_saved_register_used): Consider the arguments named.
17848         (s390_conditional_register_usage): Disable v16-v31 for non-vec
17849         targets.
17850         (s390_preferred_simd_mode): New function.
17851         (s390_support_vector_misalignment): New function.
17852         (s390_vector_alignment): New function.
17853         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
17854         (TARGET_VECTOR_MODE_SUPPORTED_P)
17855         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
17856         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17857         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
17858         (TARGET_VECTOR_ALIGNMENT): Define target macro.
17859         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
17860         (FIRST_PSEUDO_REGISTER): Increase value.
17861         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
17862         (VECTOR_REG_P): Define macros.
17863         (FIXED_REGISTERS, CALL_USED_REGISTERS)
17864         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
17865         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
17866         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
17867         Add vector registers.
17868         (CANNOT_CHANGE_MODE_CLASS): Call C function.
17869         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
17870         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
17871         memory.
17872         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
17873         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
17874         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
17875         (VR*_REGNUM): New constants.
17876         (ALL): New mode iterator.
17877         (INTALL): Remove mode iterator.
17878         Include vector.md.
17879         (movti): Implement TImode moves for VRs.
17880         Disable TImode splitter for VR targets.
17881         Implement splitting TImode GPR<->VR moves.
17882         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
17883         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
17884         reload<mode>_la_in, reload<mode>_la_out.
17885         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
17886         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
17887         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
17888         (mov<mode> SF SD): Prefer lder, lde for loading.
17889         Add lrl and strl instructions.
17890         Add vector instructions.
17891         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
17892         Call s390_expand_vec_strlen on z13.
17893         (*cc_to_int): Change predicate to nonimmediate_operand.
17894         (addti3): Rename to *addti3.  New expander.
17895         (subti3): Rename to *subti3.  New expander.
17896         * config/s390/vector.md: New file.
17898 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17900         * common/config/s390/s390-common.c (processor_flags_table): Add
17901         z13.
17902         * config.gcc: Add z13.
17903         * config/s390/s390-opts.h (enum processor_type): Add
17904         PROCESSOR_2964_Z13.
17905         * config/s390/s390.c (s390_adjust_priority): Check for
17906         PROCESSOR_2964_Z13.
17907         (s390_reorg): Likewise.
17908         (s390_sched_reorder): Likewise.
17909         (s390_sched_variable_issue): Likewise.
17910         (s390_loop_unroll_adjust): Likewise.
17911         (s390_option_override): Likewise. Default to -mvx when available.
17912         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
17913         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
17914         (TARGET_VX_ABI): Define macros.
17915         macros.
17916         (TARGET_DEFAULT): Add MASK_OPT_VX.
17917         * config/s390/s390.md ("cpu" attribute): Add z13.
17918         ("cpu_facility" attribute): Add vec.
17919         * config/s390/s390.opt (processor_type): Add z13.
17920         (mvx): New options.
17921         * doc/invoke.texi: Add z13 option for -march.
17923 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17925         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
17926         mode check to make sure that only scalar integer values are
17927         accepted.
17929 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
17931         * tree.c (verify_type_variant): Fix #undef.
17932         (gimple_canonical_types_compatible_p): Move here from lto.c
17933         (verify_type): Verify TYPE_CANONICAL compatibility.
17934         * tree.h (gimple_canonical_types_compatible_p): Declare.
17936 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
17938         PR middle-end/66199
17939         * tree.h (OMP_TEAMS_COMBINED): Define.
17940         * gimplify.c (enum gimplify_omp_var_data): Add
17941         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
17942         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
17943         (omp_notice_variable): Accept both ORT_TEAMS
17944         and ORT_COMBINED_TEAMS.  Don't recurse if
17945         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
17946         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
17947         GOVD_FIRSTPRIVATE.
17948         (omp_no_lastprivate): New function.
17949         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
17950         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
17951         notice_outer and set appropriate bits, otherwise make
17952         sure default(none) combined constructs won't complain.
17953         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
17954         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
17955         omp_no_lastprivate either remove the clause or turn it
17956         into OMP_CLAUSE_PRIVATE.
17957         (gimplify_omp_for): Fix up handling of implicit
17958         lastprivate or linear iterators.
17959         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
17960         ORT_COMBINED_TEAMS.
17961         * omp-low.c (lower_omp_for_lastprivate): For combined
17962         for simd use fd.loop.n2 from the for rather than simd.
17964 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
17966         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
17967         instead of gen_rtx_raw_REG.
17968         (cris_expand_epilogue): Likewise.
17969         * config/microblaze/microblaze.c (microblaze_classify_address):
17970         Likewise.
17971         * config/sparc/sparc.md: Likewise.
17973 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
17975         * config/alpha/alpha.c (alpha_legitimize_reload_address)
17976         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
17977         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
17978         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
17979         Use CASE_CONST_SCALAR_INT.
17980         (print_operand) <case 'M'>: Use mode_width_operand to check the
17981         value of the constant.
17982         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
17983         * config/alpha/predicates.md (input_operand): Use general_operand
17984         instead of match_code as operand check.
17985         (symbolic_operand): Use match_code with subexpression digits.
17986         * config/alpha/constraints.md (Q): Ditto.
17988 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17990         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
17992 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17994         * config/s390/s390.c (s390_secondary_reload): Fix check for
17995         load/store relative.
17997 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17999         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
18000         alternative_mask to uint64_t.
18002 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
18004         PR tree-optimization/66187
18005         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
18006         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
18007         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
18009 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
18011         * diagnostic.c (diagnostic_report_current_module): Strengthen
18012         local "new_map" from const line_map * to
18013         const line_map_ordinary *.
18014         * genmatch.c (error_cb): Likewise for local "map".
18015         (output_line_directive): Likewise for local "map".
18016         * input.c (expand_location_1): Likewise for local "map".
18017         Pass NULL rather than &map to
18018         linemap_unwind_to_first_non_reserved_loc, since the value is never
18019         read from there, and the value written back not read from here.
18020         (is_location_from_builtin_token): Strengthen local "map" from
18021         const line_map * to const line_map_ordinary *.
18022         (dump_location_info): Strengthen locals "map" from
18023         line_map *, one to const line_map_ordinary *, the other
18024         to const line_map_macro *.
18025         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
18026         const line_map * to const line_map_macro *.
18027         (maybe_unwind_expanded_macro_loc): Add a call to
18028         linemap_check_macro when writing to the "map" field of the
18029         loc_map_pair.
18030         Introduce local const line_map_ordinary * "ord_map", using it in
18031         place of "map" in the part of the function where we know we have
18032         an ordinary map.  Strengthen local "m" from const line_map * to
18033         const line_map_ordinary *.
18035 2015-05-19  Nick Clifton  <nickc@redhat.com>
18037         PR target/66156
18038         * config/msp430/msp430.md (zero_extendhisi2): Add support for
18039         separate source and destination registers.
18041 2015-05-19  Richard Biener  <rguenther@suse.de>
18043         PR tree-optimization/66165
18044         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
18045         for no load permutation.
18047         PR tree-optimization/66185
18048         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
18049         when building the SLP node from scalars.
18051 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18052             Tristan Gingold  <gingold@adacore.com>
18054         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
18055         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
18056         (expand_stack_restore): Call record_new_stack_level.
18057         (expand_stack_save): Do not call do_pending_stack_adjust.
18058         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
18059         * calls.c (expand_call): Call record_new_stack_level for alloca.
18060         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
18061         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
18062         (update_sjlj_context): New global function.
18063         * except.h (update_sjlj_context): Declare.
18064         * explow.c (record_new_stack_level): New global function.
18065         (allocate_dynamic_stack_space): Call record_new_stack_level.
18066         * explow.h (record_new_stack_level): Declare.
18067         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
18068         * cfgrtl.c (duplicate_insn_chain): Likewise.
18070 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18072         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
18073         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
18074         STACK_GROWS_DOWNWARD as normal if.
18075         (expand_call): Likewise.
18077 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
18079         PR target/54236
18080         * config/sh/sh.md (*round_int_even): New insn_and_split and
18081         accompanying new unnamed split.
18083 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18085         * bitmap.c (bitmap_set_range): Handle count==1 specially.
18086         (bitmap_clear_range): Likewise.
18087         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
18088         bitmap_set_range unconditionally.
18089         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18090         * df-scan.c (df_mark_reg): Likewise.
18091         * haifa-sched.c (setup_ref_regs): Likewise.
18092         * sched-rgn.c (update_live_1): Likewise.
18094 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18096         * regs.h (END_HARD_REGNO): Delete.
18097         (END_REGNO): Move to...
18098         * rtl.h: ...here.
18099         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
18100         * caller-save.c (mark_set_regs): Likewise.
18101         * combine.c (move_deaths, distribute_notes): Likewise.
18102         * cse.c (invalidate, invalidate_for_call): Likewise.
18103         * df-scan.c (df_ref_record): Likewise.
18104         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
18105         (record_last_reg_set_info): Likewise.
18106         * reg-stack.c (convert_regs_exit): Likewise.
18107         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
18108         * resource.c (update_live_status): Likewise.
18109         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
18111 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18113         * rtl.h (reg_info): Add an nregs field.
18114         (REG_NREGS): Use it.
18115         (SET_REGNO_RAW): Delete.
18116         (set_regno_raw): New function.
18117         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
18118         (END_REGNO): Redefine in terms of REG_NREGS.
18119         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
18120         SET_REGNO_RAW.
18121         * emit-rtl.c (set_mode_and_regno): Likewise.
18122         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
18123         instead of SET_REGNO_RAW.
18125 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18127         * rtl.h (PUT_MODE_RAW): New macro.
18128         (PUT_REG_NOTE_KIND): Use it.
18129         (set_mode_and_regno): Declare.
18130         (gen_raw_REG): Change regno to "unsigned int".
18131         (gen_rtx_REG): Change "unsigned" to "unsigned int".
18132         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
18133         use set_mode_and_regno to change the mode of registers.
18134         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
18135         * emit-rtl.c (set_mode_and_regno): New function.
18136         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
18137         * caller-save.c (reg_save_code): Use set_mode_and_regno.
18138         * expr.c (init_expr_target): Likewise.
18139         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18140         * postreload.c (reload_cse_simplify_operands): Likewise.
18142 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18144         * caller-save.c (init_caller_save): Use word_mode and
18145         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
18146         * expr.c (init_expr_target): Likewise.
18147         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18148         * postreload.c (reload_cse_regs_1): Likewise.
18150 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18152         * rtl.def (REG): Change format to "r".
18153         * rtl.h (rtunion): Remove rt_reg.
18154         (reg_info): New structure.
18155         (rtx_def): Add reg field to main union.
18156         (X0REGATTR): Delete.
18157         (REG_CHECK): New macro.
18158         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
18159         * rtl.c (rtx_format): Document "r".
18160         (rtx_code_size): Handle REG specially.
18161         * gengenrtl.c (special_format): Return true for formats
18162         that include 'r'.
18163         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
18164         Deal with REG_ATTRS after the field loop.
18165         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
18166         * expmed.c (init_expmed): Call gen_raw_REG instead of
18167         gen_rtx_raw_REG.
18168         * expr.c (init_expr_target): Likewise.
18169         * regcprop.c (maybe_mode_change): Likewise.
18170         * varasm.c (make_decl_rtl): Likewise.
18171         * final.c (leaf_renumber_regs_insn): Return early after
18172         handling REGs.
18173         * genemit.c (gen_exp): Handle 'r' fields.
18174         * genpeep.c (match_rtx): Likewise.
18175         * gensupport.c (subst_pattern_match): Likewise.
18176         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
18177         (alter_constraints, subst_dup): Likewise.
18178         * read-rtl.c (read_rtx_code): Likewise.
18179         * print-rtl.c (print_rtx): Likewise.
18180         * genrecog.c (find_operand, find_matching_operand): Likewise.
18181         (validate_pattern, match_pattern_2): Likewise.
18182         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
18183         (rtx_test::regno_field): New function.
18184         (operator ==, safe_to_hoist_p, transition_parameter_type)
18185         (parameter_type_string, print_parameter_value)
18186         (print_nonbool_test, print_test): Handle new enum values.
18187         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
18188         * lra-constraints.c (operands_match_p): Likewise.
18190 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18192         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
18193         Change type of new_regno to unsigned int.
18194         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
18195         new_regno to unsigned int.
18196         (df_ref_change_reg_with_loc): Remove old_regno parameter.
18197         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
18198         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
18199         (SET_REGNO_RAW): Add space after ",".
18201 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18203         * rtl.h (REG_NREGS): New macro
18204         * alias.c (record_set): Use it.
18205         * cfgcleanup.c (mark_effect): Likewise.
18206         * combine.c (likely_spilled_retval_1): Likewise.
18207         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
18208         (move_deaths, distribute_notes): Likewise.
18209         * cselib.c (cselib_record_set): Likewise.
18210         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
18211         * df-scan.c (df_mark_reg): Likewise.
18212         * dse.c (look_for_hardregs): Likewise.
18213         * dwarf2out.c (reg_loc_descriptor): Likewise.
18214         (multiple_reg_loc_descriptor): Likewise.
18215         * expr.c (write_complex_part, read_complex_part): Likewise.
18216         (emit_move_complex): Likewise.
18217         * haifa-sched.c (setup_ref_regs): Likewise.
18218         * ira-lives.c (mark_hard_reg_live): Likewise.
18219         * lra.c (lra_set_insn_recog_data): Likewise.
18220         * mode-switching.c (create_pre_exit): Likewise.
18221         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
18222         (reload_combine_recognize_pattern): Likewise.
18223         (reload_combine_note_use, move2add_record_mode): Likewise.
18224         (reload_cse_move2add): Likewise.
18225         * reg-stack.c (subst_stack_regs_pat): Likewise.
18226         * regcprop.c (kill_value, copy_value): Likewise.
18227         (copyprop_hardreg_forward_1): Likewise.
18228         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
18229         (build_def_use): Likewise.
18230         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
18231         (deps_analyze_insn): Likewise.
18232         * sched-rgn.c (check_live_1, update_live_1): Likewise.
18233         * sel-sched.c (count_occurrences_equiv): Likewise.
18234         * valtrack.c (dead_debug_insert_temp): Likewise.
18236 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
18238         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
18239         * dse.c (note_add_store): Likewise.
18240         * ira-lives.c (mark_hard_reg_dead): Likewise.
18241         * loop-invariant.c (mark_reg_store): Likewise.
18242         (mark_reg_death): Likewise.
18243         * postreload.c (reload_combine): Likewise.
18244         (reload_combine_note_store): Likewise.
18245         (reload_combine_note_use): Likewise.
18246         * recog.c (peep2_reg_dead_p): Likewise.
18248 2015-05-19  Alan Modra  <amodra@gmail.com>
18250         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
18251         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
18252         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
18253         unused predicates.
18254         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
18255         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
18256         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
18257         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
18259 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
18261         * config/mips/mips.md (JOIN_MODE): New mode iterator.
18262         (join2_load_Store<JOIN_MODE:mode>): New pattern.
18263         (join2_loadhi): Likewise.
18264         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
18265         load-load and store-stores.
18266         * config/mips/mips.opt (mload-store-pairs): New option.
18267         (TARGET_LOAD_STORE_PAIRS): New macro.
18268         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
18269         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
18270         * config/mips/mips.c (mips_load_store_bonding_p): New function.
18272 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
18274         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
18275         explicit swaps.
18276         * dojump.c (do_compare_rtx_and_jump): Likewise.
18277         * expmed.c (emit_store_flag_1): Likewise.
18278         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
18279         * final.c (sprint_ul): Use std::reverse for reversing a string.
18280         * fold-const.c (extract_muldiv_1): Use std::swap.
18281         * genmodes.c (emit_mode_int_n): Likewise.
18282         * ifcvt.c (dead_or_predicable): Likewise.
18283         * ira-build.c (ira_merge_live_ranges): Likewise.
18284         (swap_allocno_copy_ends_if_necessary): Likewise.
18285         * ira.c (ira_setup_alts): Likewise.
18286         * loop-iv.c (iv_analyze_expr): Likewise.
18287         (implies_p): Likewise.
18288         (canon_condition): Likewise.
18289         * lra-constraints.c (swap_operands): Likewise.
18290         * lra-lives.c (lra_merge_live_ranges): Likewise.
18291         * omega.c (swap): Remove.
18292         (bswap): Remove.
18293         (omega_unprotect_1): Use std::swap.
18294         (omega_solve_geq): Likewise.
18295         * optabs.c (expand_binop_directly): Likewise.
18296         (expand_binop): Likewise.
18297         (emit_conditional_move): Likewise.
18298         (emit_conditional_add): Likewise.
18299         * postreload.c (reload_cse_simplify_operands): Likewise.
18300         * reg-stack.c (emit_swap_insn): Likewise.
18301         (swap_to_top): Likewise.
18302         (compare_for_stack_reg): Likewise.
18303         (subst_asm_stack_regs): Likewise.
18304         * reload.c (find_reloads): Likewise.
18305         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
18306         * sel-sched.c (invoke_reorder_hooks): Likewise.
18307         (create_block_for_bookkeeping): Likewise.
18308         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
18309         (lambda_matrix_right_hermite): Use std::swap.
18310         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
18311         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
18312         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
18313         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
18314         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
18315         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
18316         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18317         * tree-vrp.c (compare_ranges): Likewise.
18318         * var-tracking.c (add_with_sets): Likewise.
18319         (vt_find_locations): Likewise.
18321 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
18323         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
18324         pie executables.
18325         (FBSD_ENDFILE_SPEC): Likewise.
18326         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
18327         config/freebsd-spec.h.
18328         (ENDFILE_SPEC): Likewise.
18330 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
18331             Richard Henderson  <rth@redhat.com>
18333         PR target/57032
18334         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
18335         Check for a memory location that is not a reference (using an AND)
18336         to an unaligned location here.
18337         * config/alpha/predicates.md (normal_memory_operand): Remove.
18339 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
18341         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
18342         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
18344 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18346         * config/mips/mips.c (micromips_globals): New variable.
18347         (mips_set_compression_mode): Save and reinitialize target-dependent
18348         state for microMIPS.
18350 2015-05-18  Martin Liska  <mliska@suse.cz>
18352         * dbgcnt.def: Add new counter.
18353         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
18355 2015-05-18  Martin Liska  <mliska@suse.cz>
18357         * dbgcnt.def: Sort counters.
18358         * opts.c (common_handle_option): Do not compile if
18359         -fdbg-cnt-list is enabled.
18361 2015-05-18  Tom de Vries  <tom@codesourcery.com>
18363         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
18364         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
18365         address operator to va_list operand.
18366         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
18367         unconditionally.
18368         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
18369         operand.
18370         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
18371         * config/s390/s390.c (s390_gimplify_va_arg): Same.
18372         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
18374 2015-05-18  Tom de Vries  <tom@codesourcery.com>
18376         * tree-ssa-tail-merge.c: Fix whitespace.
18378 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
18380         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
18381         cortex-a17, and cortex-a17.cortex-a7.
18383 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
18385         PR target/54236
18386         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
18388 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
18390         PR target/66174
18391         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
18392         QImode inner modes for TARGET_AVX512BW.  Force mask operand
18393         to a register for AVX512F modes.
18395 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
18397         * toplev.c (emit_debug_global_declarations): Do not output debug info
18398         when doing slim LTO objects.
18400 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
18402         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
18403         odr_types_equivalent_p): Declare.
18404         (odr_type_p): Use gcc_checking_assert.
18405         (type_in_anonymous_namespace_p) Declare.
18406         (type_with_linkage_p): Declare.
18407         * common.opt (Wlto-type-mismatch): New warning.
18408         * ipa-devirt.c (compound_type_base): New function.
18409         (odr_or_derived_type_p): New function.
18410         (odr_types_equivalent_p): New function.
18411         (add_type_duplicate): Simplify.
18412         (type_with_linkage_p): Add hack to prevent false positives on C types
18413         (type_in_anonymous_namespace_p): Likewise.
18414         * tree.c (need_assembler_name_p): Use type_with_linkage.
18415         * tree.h (type_in_anonymous_namespace_p): Remove.
18416         * doc/invoke.texi (-Wlto-type-mismatch): Document
18418 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
18420         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
18421         (verify_type): Verify STRING_FLAG.
18423 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18425         PR fortran/44054
18426         * tree-pretty-print.c (percent_K_format): Replace locus pointer
18427         with accessor function.
18428         * tree-diagnostic.c (diagnostic_report_current_function): Use
18429         diagnostic_location function.
18430         (maybe_unwind_expanded_macro_loc): Likewise.
18431         (virt_loc_aware_diagnostic_finalizer): Likewise.
18432         (default_tree_printer): Replace locus pointer with accessor function.
18433         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
18434         (diagnostic_set_info_translated): Initialize second location.
18435         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
18436         (diagnostic_show_locus): Handle two locations. Call
18437         diagnostic_print_caret_line.
18438         (diagnostic_print_caret_line): New.
18439         (default_diagnostic_starter): Use diagnostic_location function.
18440         (diagnostic_report_diagnostic): Use diagnostic_location function.
18441         (verbatim): Do not set text.locus.
18442         * diagnostic.h (struct diagnostic_info): Remove location field.
18443         (struct diagnostic_context): Make caret_chars an array of two.
18444         (diagnostic_location): New inline.
18445         (diagnostic_expand_location): Handle two locations.
18446         (diagnostic_same_line): New inline.
18447         (diagnostic_print_caret_line): Declare.
18448         (CARET_LINE_MARGIN): New constant.
18449         * pretty-print.c (pp_printf): Do not set text.locus.
18450         (pp_verbatim): Do not set text.locus.
18451         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
18452         (struct text_info): Replace locus pointer with locations
18453         array. Add accessor functions.
18455 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
18456             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18458         PR target/65768
18459         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
18460         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
18461          large constants in register instead of splitting them.
18463 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
18465         PR target/66140
18466         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
18467         replacements in memory addresses.
18468         (get_unaligned_address): Ditto.
18470 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
18472         * config/ft32/*: New files for FT32 port.
18473         * doc/install.texi: Add FT32 information.
18474         * doc/invoke.texi: Add FT32 information.
18475         * doc/md.texi: Add FT32 information.
18476         * doc/contrib.texi: Self added.
18478 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
18480         PR tree-optimization/64454
18481         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
18482         (-1 - A -> ~A): Remove unnecessary condition.
18484 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
18486         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
18487         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
18488         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
18490 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
18492         * ipa-chkp.h (chkp_wrap_function): New.
18493         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
18494         (chkp_wrap_function_name): New.
18495         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
18496         to get wrapper name.
18497         * lto-cgraph.c: Include ipa-chkp.h.
18498         (input_cgraph_1): Avoid alias chain for wrappers.
18500 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18502         PR middle-end/66134
18503         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
18504         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
18506 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18508         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
18509         (AARCH64_FL_SLOWMUL): Delete.
18510         (AARCH64_FL_CRC): Redefine to 1<<3.
18511         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
18513 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18515         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
18516         casting.
18518 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
18520         * config/alpha/alpha.md (extendqidi2): Use general_operand
18521         instead of some_operand for operand[1] predicate.
18522         (extendhidi2): Ditto.
18523         (cbranchdi4): Use general_operand instead of some_operand
18524         for operand[1] and operands[2] predicates.
18525         (cstoredi4): Ditto.
18526         * config/alpha/predicates.md (some_operand): Remove unused predicate.
18527         (some_ni_operand): Ditto.
18529 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
18531         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
18532         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
18533         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
18534         low part of the constant using alpha_emit_set_const_1.
18535         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
18537 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
18539         * varasm.c (output_constant_pool_1): Pass down alignment from
18540         constant pool entry's descriptor to output_constant_pool_2.
18541         (output_object_block): Add comment prior to call to
18542         output_constant_pool_1.
18544 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
18546         PR rtl-optimization/65862
18547         * target.def (ira_change_pseudo_allocno_class): New hook.
18548         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
18549         value of the hook.
18550         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
18551         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
18552         hook.
18553         * ira-costs.c (find_costs_and_classes): Call the hook and change
18554         classes when it is necessary.
18555         * doc/tm.texi: Update.
18557 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
18559         * config/i386/i386.md (sibcall_memory): Check that register with
18560         callee address is not also used as one of the arguments, instead
18561         of checking that it is not live after the sibcall.
18562         (sibcall_pop_memory): Ditto.
18563         (sibcall_value_memory): Ditto.
18564         (sibcall_value_pop_memory): Ditto.
18566 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
18568         * generic-match-head.c (types_match): Handle non-types.
18569         * gimple-match-head.c (types_match): Likewise.
18570         * match.pd: Remove unnecessary TREE_TYPE for types_match.
18572 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
18574         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
18575         (csneg3<mode>_insn): Enable expansion of pattern.
18577 2015-05-14  Nick Clifton  <nickc@redhat.com>
18579         * config/rl78/rl78.c (rl78_select_section): Select the correct
18580         default section based upon the category of the decl.
18582 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
18584         PR rtl-optimization/30967
18585         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
18586         destination mode for the cost of scc patterns.
18588 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
18590         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
18591         using SWIM248 mode iterator.
18592         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
18593         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
18594         for operand[2] constraint.
18595         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
18597 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
18599         PR middle-end/66133
18600         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
18601         make sure it is never noreturn, even when the task body does not
18602         return.
18603         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
18604         right before GIMPLE_OMP_RETURN.
18605         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
18606         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
18607         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
18609 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18611         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
18612         * tree-ssa-math-opts.c: Include params.h
18613         (pow_synth_sqrt_info): New struct.
18614         (representable_as_half_series_p): New function.
18615         (get_fn_chain): Likewise.
18616         (print_nested_fn): Likewise.
18617         (dump_fractional_sqrt_sequence): Likewise.
18618         (dump_integer_part): Likewise.
18619         (expand_pow_as_sqrts): Likewise.
18620         (gimple_expand_builtin_pow): Use above to attempt to expand
18621         pow as series of square roots.  Removed now unused variables.
18623 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
18625         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
18626         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
18627         Remove *p0 and *p1 arguments.  Rewrite function.
18628         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
18629         (alpha_split_const_mov): Update calls to alpha_extract_integer and
18630         alpha_emit_set_long_const.
18631         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
18632         (alpha_output_mi_thunk_osf): Ditto.
18633         * config/alpha/alpha.md (movti): Do not check operands[1]
18634         for CONST_DOUBLE.
18636 2015-05-13  Richard Biener  <rguenther@suse.de>
18638         PR tree-optimization/66129
18639         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
18640         commutative.
18641         (vect_schedule_slp_instance): Fix typo.
18643 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
18645         * common.opt (fdump-internal-locations): New option.
18646         * input.c: Include diagnostic-core.h.
18647         (get_end_location): New function.
18648         (write_digit): New function.
18649         (write_digit_row): New function.
18650         (dump_location_range): New function.
18651         (dump_labelled_location_range): New function.
18652         (dump_location_info): New function.
18653         * input.h (dump_location_info): New prototype.
18654         * toplev.c (compile_file): Handle flag_dump_locations.
18656 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
18658         * gimple-expr.h (is_gimple_constant): Reorder.
18659         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
18661 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
18663         * combine.c (simplify_set): When generating a CC set, if the
18664         source already is in the correct mode, do not wrap it in a
18665         compare.  Simplify the rest of that code.
18667 2015-05-13  Richard Biener  <rguenther@suse.de>
18669         PR tree-optimization/66123
18670         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
18671         a taken edge.
18673 2015-05-13  Richard Biener  <rguenther@suse.de>
18675         PR middle-end/66110
18676         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
18677         specially.
18678         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
18680 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
18682         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
18683         * aclocal.m4: Regenerated with automake-1.11.6.
18685 2015-05-13  Tom de Vries  <tom@codesourcery.com>
18687         PR tree-optimization/66010
18688         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
18689         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
18690         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
18691         and rval based on do_deref.
18693 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18695         PR target/65103
18696         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
18697         link time constants into adress expressions and therefore set
18698         their cost to 0.
18700 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
18702         PR target/66112
18703         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
18704         Use SWI248 iterator instead of SWI.
18705         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
18706         Use eq_attr "alternative" "0" instead of match_test in
18707         length_immediate attribute computation.
18708         (*mulvhi4, *mulvhi4_1): New define_insns.
18710         PR target/66112
18711         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
18712         SIGNED to get precision of non-negative value.
18714 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18716         PR target/66048
18717         * function.c (diddle_return_value_1): Process bounds first.
18718         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
18719         register.
18721 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18723         PR rtl-optimization/64616
18724         * loop-invariant.c (can_move_invariant_reg): New.
18725         (move_invariant_reg): Call above new function to decide whether
18726         instruction can just be moved, skipping creation of temporary
18727         register.
18729 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
18731         PR target/pr66047.c
18732         * i386.c (ix86_function_sseregparm): Only return -1 if local function
18733         with implied regparm is called from -mno-sse function.
18734         (init_cumulative_args): Output error if ix86_function_sseregparm
18735         return -1 and SSE register would be needed.
18736         (function_arg_advance_32): Likewise.
18737         (function_arg_32): Likewise.
18738         * i386.h (ix86_args): Add decl field.
18740 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
18742         PR ipa/65873
18743         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
18744         inlines across optimization boundary.
18746 2015-05-12  Jason Merrill  <jason@redhat.com>
18748         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
18749         string literal and macro name.
18751 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
18753         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
18754         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
18755         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
18757 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
18759         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
18760         (-Wmisleading-indentation): New option.
18761         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
18763 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
18765         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
18766         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
18767         (alpha_extract_integer): Ditto.
18768         (alpha_legitimate_constant_p): Ditto.
18769         (alpha_split_tmode_pair): Ditto.
18770         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
18771         (alpha_expand_mov): Ditto.
18772         (print_operand): Remove handling of 'H' modifier.
18773         <case 'm'>: Remove CONST_DOUBLE handling.
18774         (summarize_insn): Handle CONST_WIDE_INT.
18775         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
18776         (anddi3): Ditto.
18777         (movti): Handle CONST_WIDE_INT.
18778         * config/alpha/constraints.md ('H'): Remove constraint definition.
18779         ('G'): Do not match MODE_FLOAT class.
18780         * config/alpha/predicates.md (const0_operand): Also match
18781         const_wide_int.
18782         (non_add_const_operand): Ditto.
18783         (non_zero_const_operand): Ditto.
18784         (some_operand): Ditto.
18785         (input_operand): Ditto.  Handle CONST_WIDE_INT.
18786         (and_operand): Do not match const_double.
18787         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
18789 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
18791         PR target/65697
18792         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
18793         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
18794         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
18795         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
18796         is_mm_seq_cst, is_mm_sync): New accessor functions.
18797         * builtins.c (expand_builtin_sync_operation,
18798         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
18799         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
18800         (get_memmodel,  expand_builtin_atomic_compare_exchange,
18801         expand_builtin_atomic_load, expand_builtin_atomic_store,
18802         expand_builtin_atomic_clear): Use new accessor routines.
18803         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
18804         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
18805         (maybe_emit_sync_lock_test_and_set): Use new accessors and
18806         MEMMODEL_SYNC_ACQUIRE.
18807         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
18808         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
18809         expand_atomic_store): Use new accessors.
18810         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
18811         * tsan.c (instrument_builtin_call): Update check for memory model beyond
18812         final enum to use MEMMODEL_LAST.
18813         * c-family/c-common.c: Use new accessor for memmodel_base.
18814         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
18815         accessors.
18816         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
18817         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
18818         mem_thread_fence, *dmb): Likewise.
18819         * config/alpha/alpha.c (alpha_split_compare_and_swap,
18820         alpha_split_compare_and_swap_12): Likewise.
18821         * config/arm/arm.c (arm_expand_compare_and_swap,
18822         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
18823         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
18824         atomic_loaddi): Likewise.
18825         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
18826         Likewise.
18827         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
18828         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
18829         use new accessors.
18830         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
18831         atomic_store<mode>, atomic_compare_and_swap<mode>,
18832         atomic_exchange<mode>): Use new accessors.
18833         * config/mips/mips.c (mips_process_sync_loop): Likewise.
18834         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
18835         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
18836         rs6000_post_atomic_barrier): Add new cases.
18837         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
18838         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
18839         (atomic_load<mode>): Add new cases and use new accessors.
18840         (store_quadpti): Add new cases.
18841         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
18842         accessors.
18843         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
18844         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
18845         model, not 8.
18847 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
18849         * ipa-devirt.c (type_with_linkage_p): New function.
18850         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
18851         type has linkage.
18852         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
18853         (can_be_name_hashed_p): Simplify.
18854         (hash_odr_name): Check that type has linkage before checking if it is
18855         anonymous.
18856         (types_same_for_odr): Likewise.
18857         (odr_name_hasher::equal): Likewise.
18858         (odr_subtypes_equivalent_p): Likewise.
18859         (warn_types_mismatch): Likewise.
18860         (get_odr_type): Likewise.
18861         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
18862         * ipa-utils.h (odr_type_p): Move offline.
18863         * tree.c (need_assembler_name_p): Fix handling of types
18864         without linkages.
18865         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
18867 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
18869         * timevar.c (timevar_enable): Delete in favor of...
18870         (g_timer): New global.
18871         (struct timevar_def): Move to timevar.h inside class timer.
18872         (struct timevar_stack_def): Likewise.
18873         (timevars): Delete global in favor of field "m_timevars" within
18874         class timer in timevar.h
18875         (stack): Likewise, in favor of field "m_stack".
18876         (unused_stack_instances): Likewise, in favor of field
18877         "m_unused_stack_instances".
18878         (start_time): Likewise, in favor of field "m_start_time".
18879         (get_time): Eliminate check for timevar_enable.
18880         (timer::timer): New function, built from part of timevar_init.
18881         (timevar_init): Rewrite idempotency test from using
18882         "timevar_enable" bool to using dynamic allocation of "g_timer".
18883         Move rest of implementation into timer's constructor.
18884         (timevar_push_1): Rename to...
18885         (timer::push): ...this, adding "m_" prefixes to variables that
18886         are now fields of timer.
18887         (timevar_pop_1): Likewise, rename to...
18888         (timer::pop): ...this, and add "m_" prefixes.
18889         (timevar_start): Replace test for "timevar_enable" with one for
18890         "g_timer", and move bulk of implementation to...
18891         (timer::start): ...here, adding "m_" prefixes.
18892         (timevar_stop): Likewise, from here...
18893         (timer::stop): ...to here.
18894         (timevar_cond_start): Likewise, from here...
18895         (timer::cond_start): ...to here.
18896         (timevar_cond_stop): Likewise, from here...
18897         (timer::cond_stop): ...to here.
18898         (validate_phases): Rename to...
18899         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
18900         locals "total" and "tv" const.
18901         (timevar_print): Rename to...
18902         (timer::print): ...this, and add "m_" prefixes.  Make locals
18903         "total" and "tv" const.  Eliminate test for timevar_enable.
18904         * timevar.h (timevar_enable): Eliminate.
18905         (g_timer): New declaration.
18906         (timevar_push_1): Eliminate.
18907         (timevar_pop_1): Eliminate.
18908         (timevar_print): Eliminate.
18909         (class timer): New class.
18910         (timevar_push): Rewrite to use g_timer.
18911         (timevar_pop): Likewise.
18912         * toplev.c (toplev::~toplev): Likewise.
18914 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
18916         * arm-protos.h (arm_sched_autopref): Delete.
18917         (tune_params): Re-organize, use enums for flag values.
18918         (FUSE_OPS): New macro.
18919         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
18920         (ARM_PREFETCH_BENEFICIAL): Likewise.
18921         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
18922         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
18923         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
18924         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
18925         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
18926         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
18927         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
18928         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
18929         format.
18930         (arm_option_override, thumb2_reorg, arm_print_tune_info)
18931         (aarch_macro_fusion_pair_p): Update uses of current_tune.
18932         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
18934 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
18936         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
18937         "break".
18939 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
18940             Sandra Loosemore <sandra@codesourcery.com>
18942         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
18943         value.
18944         (REG_CLASS_NAMES): Add "IJMP_REGS".
18945         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
18946         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
18947         use new "c" register constraint.
18948         * config/nios2/constraint.md (c): New register constraint
18949         corresponding to IJMP_REGS.
18951 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18953         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
18954         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
18955         define_splits): Delete, revamp, transmogrify into ...
18956         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
18957         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
18958         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
18959         New.
18961 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18963         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
18964         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
18966 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18968         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
18969         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
18970         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
18971         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
18972         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
18973         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
18974         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
18975         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
18976         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
18977         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18978         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
18979         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
18980         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
18981         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
18982         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
18983         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
18984         and 30 corresponding splitters): Delete.
18986 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18988         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
18989         zero_extract.
18991 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
18993         * combine.c (recog_for_combine_1): New function, factored out
18994         from recog_for_combine.
18995         (change_zero_ext): New function.
18996         (recog_for_combine): If recog fails, try again with the pattern
18997         modified by change_zero_ext; if that still fails, restore the
18998         pattern.
19000 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
19002         * combine.c (get_undo_marker): New function.
19003         (undo_to_marker): New function, largely factored out from ...
19004         (undo_all): ... this.  Adjust.
19006 2015-05-12  Richard Biener  <rguenther@suse.de>
19008         PR tree-optimization/66101
19009         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
19010         fixup if we turn a loop exit edge to a fallthru edge.
19012 2015-05-12  Richard Biener  <rguenther@suse.de>
19014         PR tree-optimization/37021
19015         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
19016         (SLP_TREE_TWO_OPERATORS): New define.
19017         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
19018         SLP_TREE_TWO_OPERATORS.
19019         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
19020         SLP node.
19021         (vect_build_slp_tree): Adjust.
19022         (vect_analyze_slp_cost_1): Likewise.
19023         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
19024         emitting two vector stmts and mixing the results.
19026 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19028         * call.c (print_z_candidates): Remove dead code.
19030 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19032         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
19033         and zEC12_simple_fp.
19034         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
19035         to 1.
19037 2015-05-12  Tom de Vries  <tom@codesourcery.com>
19039         PR tree-optimization/66010
19040         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
19041         ifn_va_arg.
19042         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
19043         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
19044         va_lists are passed, and remove corresponding handling.
19045         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
19046         do_deref argument to ifn_va_arg.
19047         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
19048         ifn_va_arg.
19050 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19052         PR target/65955
19053         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
19054         REG before taking its REGNO.
19056 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19058         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
19059         rsp->sign_bit_copies and rsp->nonzero_bits into ...
19060         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
19061         present to get more accurate information about the number of sign bit
19062         copies and non zero bits.
19064 2015-05-12  Richard Biener  <rguenther@suse.de>
19066         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
19067         do not allow unrolling.
19069 2015-05-11  Richard Henderson  <rth@redhat.com>
19071         * config/i386/i386-modes.def (CCP): New.
19072         * config/i386/i386.c (put_condition_code): Handle it.
19073         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
19075 2015-05-11  Richard Henderson  <rth@redhat.com>
19077         * target.def (md_asm_clobbers): Replace with...
19078         (md_asm_adjust): this.
19079         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
19080         (TARGET_MD_ASM_ADJUST): New.
19081         * tm.texi: Rebuild.
19082         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
19083         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
19084         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
19086         * cfgexpand.c (check_operand_nalternatives): Accept vector of
19087         constraints instead of lists of outputs and inputs.
19088         (expand_asm_stmt): Save and restore input_location around the
19089         body of the function.  Move asm data into vectors instead of
19090         building tree lists.  Generate cleanup sequences as needed,
19091         rather than waiting til the end.  Use new md_asm_adjust hook.
19093         * config/vxworks.c: Include vec.h before target.h.
19094         * gimple.c: Likewise.
19095         * incpath.c: Likewise.
19096         * mode-switching.c: Likewise.
19098         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
19099         (cris_md_asm_adjust): this.
19100         (TARGET_MD_ASM_CLOBBERS): Remove.
19101         (TARGET_MD_ASM_ADJUST): New.
19102         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
19103         (ix86_md_asm_adjust): this.
19104         (TARGET_MD_ASM_CLOBBERS): Remove.
19105         (TARGET_MD_ASM_ADJUST): New.
19106         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
19107         (mn10300_md_asm_adjust): this.
19108         (TARGET_MD_ASM_CLOBBERS): Remove.
19109         (TARGET_MD_ASM_ADJUST): New.
19110         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
19111         (rs6000_md_asm_adjust): this.
19112         (TARGET_MD_ASM_CLOBBERS): Remove.
19113         (TARGET_MD_ASM_ADJUST): New.
19114         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
19115         (visium_md_asm_adjust): this.
19116         (TARGET_MD_ASM_CLOBBERS): Remove.
19117         (TARGET_MD_ASM_ADJUST): New.
19119 2015-05-11  Richard Henderson  <rth@redhat.com>
19121         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
19122         if noutputs is zero.
19123         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
19125         * cfgexpand.c (expand_asm_operands): Merge into...
19126         (expand_asm_stmt): ... here.
19128         * cfgexpand.c (expand_asm_operands): Don't call
19129         resolve_asm_operand_names.
19130         * stmt.c (resolve_asm_operand_names): Clarify block comment.
19132 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
19134         * dwarf2out.c (gen_member_die): Sanity check that we access
19135         TYPE_MAIN_VARIANT for TYPE_METHODS.
19136         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
19137         checking TYPE_METHODS.
19138         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
19139         if non-null.
19140         (build_distinct_type_copy): Clear TYPE_METHODS.
19141         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
19142         (verify_type): Allow TYPE_METHODS to be error_mark_node.
19143         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
19145 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
19147         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
19148         (emit_pattern_before_setloc): Likewise.
19150 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
19152         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
19153         for define_peephole2s.
19154         (get_peephole2_pattern): New function.
19155         (main): Use it.  Call validate_pattern.
19157 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19159         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
19160         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
19161         (Last callee saved reg is different for AVR_TINY architecture)
19163 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
19165         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
19166         when looking for memory references.
19168 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
19170         PR target/65753
19171         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
19172         via function pointers.
19174 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
19176         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
19177         indirect call by forcing address into a pseudo with -fno-plt.
19178         * common.opt (flag_plt): New option.
19179         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
19180         ([-fno-plt]): Document.
19182 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
19184         PR bootstrap/66105
19185         * config/rs6000/option-defaults.h: Add space between string literal
19186         and macro name.
19188 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19190         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
19191         accross ARM targets.
19193 2015-05-11  Christian Bruel  <christian.bruel@st.com>
19195         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
19196         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
19198 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
19200         PR rtl-optimization/66076
19201         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
19202         Don't grow the heap array if it is already big enough from a
19203         previous iteration.
19205 2015-05-11  Christian Bruel  <christian.bruel@st.com>
19207         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
19208         (is_called_in_ARM_mode): Remove.
19209         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
19210         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
19211         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
19212          arm_declare_function_name.
19214 2015-05-11  Christian Bruel  <christian.bruel@st.com>
19216         * config/arm/arm.c (arm_option_override): Reoganized and split into :
19217         (arm_option_params_internal); New function.
19218         (arm_option_check_internal): New function.
19219         (arm_option_override_internal): New function.
19220         (thumb_code, thumb1_code): Remove.
19221         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
19222         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
19223         (thumb_code, thumb1_code): Remove.
19224         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
19226 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
19228         * config/alpha/alpha.c (alpha_emit_set_const_1)
19229         (alpha_emit_set_long_const, alpha_extract_integer)
19230         (alpha_legitimate_constant_p, alpha_split_const_mov)
19231         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
19232         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19233         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
19234         HOST_WIDE_INT_1U.
19235         * config/alpha/predicates.md (mode_mask_operand): Do not match
19236         const_double RTX.
19237         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19238         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
19239         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
19240         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
19241         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
19243 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
19245         PR target/65780
19246         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
19247         default_binds_local_p_2.
19248         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
19249         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
19251 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
19253         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
19255 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
19257         Patch by Richard Biener
19258         * coverage.c (coverage_obj_init): Delay building of type variant
19259         until the type is finished.
19261 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
19263         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
19264         mismatch between C and C++ type; compoare correctly ARG_TYPES
19265         for non-prototypes and output correctly parameter index for METHOD_TYPE.
19266         (odr_types_equivalent_p): Fix wording of warning about attributes;
19267         it is OK to match prototype and non-prototype.
19269 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
19271         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
19272         TYPE_ARG_TYPES list.
19273         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
19274         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
19276 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
19278         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
19279         * tree.h (is_lang_specific): Constify.
19281 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
19283         PR tree-optimization/64454
19284         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
19285         Rewrite.
19287 2015-05-08  Jason Merrill  <jason@redhat.com>
19289         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
19290         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
19291         config/darwin.h, config/darwin9.h, config/elfos.h,
19292         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
19293         config/microblaze/microblaze.h, config/mips/mips.h,
19294         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
19295         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
19296         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
19297         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
19298         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
19299         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
19300         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
19301         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
19302         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
19303         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
19304         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
19305         between string literal and macro name.
19307 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19309         * jump.c: Change argument types to rtx_insn *.
19310         * rtl.h: Adjust.
19312 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19314         * lra-constraints.c: Change argument type to rtx_insn *.
19316 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19318         * df-problems.c: Change argument type to rtx_insn *.
19320 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19322         * combine.c: Change argument type to rtx_insn *.
19324 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19326         * rtl.h: Adjust.
19327         * rtlanal.c: Change argument type to rtx_insn *.
19329 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19331         * sched-deps.c: Change argument types to rtx_insn *.
19332         * sched-int.h: Adjust.
19334 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19336         * dwarf2cfi.c: Change argument type to rtx_insn *.
19338 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19340         * ira.c (decrease_live_ranges_number): Changetype of local
19341         variable to rtx_insn *.
19342         * recog.c: Change argument types to rtx_insn *.
19343         * recog.h: Adjust.
19345 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19347         * reorg.c: Change argument types to rtx_insn *.
19349 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19351         * ira-color.c: Change argument types to rtx_insn *.
19352         * lra-eliminations.c: Likewise.
19353         * ira.h: Adjust.
19355 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19357         * gcse.c: Change argument types to rtx_insn *.
19359 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19361         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
19363 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19365         * emit-rtl.c (emit_debug_insn_before): Change argument type to
19366         rtx_insn *.
19367         * rtl.h: Adjust.
19369 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19371         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
19372         * rtl.h: Adjust.
19374 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19376         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
19377         * rtl.h: Adjust.
19379 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19381         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
19382         * rtl.h: Adjust.
19384 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19386         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
19387         * rtl.h: Adjust.
19389 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19391         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
19392         to rtx_insn *.
19393         * rtl.h: Adjust.
19395 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19397         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
19398         to rtx_insn *.
19399         * rtl.h: Likewise.
19401 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19403         * except.c (can_nonlocal_goto): Change type of argument to
19404         rtx_insn *.
19405         * rtl.h: Adjust.
19407 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19409         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
19410         * rtl.h: Adjust.
19412 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19414         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
19415         * cfgrtl.c (can_delete_label_p): Adjust.
19416         * rtl.h: likewise.
19418 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19420         * reorg.c (stop_search_p): Change argument to rtx_insn *.
19422 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19424         * except.c (make_reg_eh_region_note): Change argument to
19425         rtx_insn *.
19426         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
19427         * except.h: Adjust.
19429 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19431         * mode-switching.c (commit_mode_sets): Change type of local
19432         variable from rtx to rtx_insn *.
19434 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
19436         * doc/install.texi (--enable-languages): Add missing jit and lto info.
19437         Add ^ to grep command.
19438         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
19439         arg to last gimple_simplify declaration.  Add missing gimple_build
19440         declaration for built-in function case with four tree args.
19442 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
19443             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19445         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
19446         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
19447         (GNU_USER_DYNAMIC_LINKERN32): Update.
19449 2015-05-08  Richard Biener  <rguenther@suse.de>
19451         PR tree-optimization/66036
19452         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19453         Handle strided group loads.
19454         (vect_verify_datarefs_alignment): Likewise.
19455         (vect_enhance_data_refs_alignment): Likewise.
19456         (vect_analyze_group_access): Likewise.
19457         (vect_analyze_data_ref_access): Likewise.
19458         (vect_analyze_data_ref_accesses): Likewise.
19459         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
19460         (vectorizable_load): Likewise.
19462 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
19464         * config/rs6000/rs6000.md: Require operand inequality in one
19465         of the peepholes.
19467 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
19468             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19470         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
19471         from (set ...).
19472         * config/rx/rx.md (movdi, movdf): Likewise.
19473         Likewise for define_peephole2s.
19475 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
19477         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
19478         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
19479         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
19480         vtst_u64): Rewrite using gcc vector extensions.
19482 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
19484         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
19485         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
19487 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
19489         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
19491 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19493         * config/glibc-stdint.h (OPTION_MUSL): Define.
19494         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
19495         Change the definition based on OPTION_MUSL for 64 bit targets.
19496         * config/linux.h (OPTION_MUSL): Redefine.
19497         * config/alpha/linux.h (OPTION_MUSL): Redefine.
19498         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
19499         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
19501 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
19502             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19504         * config.gcc (LIBC_MUSL): New tm_defines macro.
19505         * config/linux.h (OPTION_MUSL): Define.
19506         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
19507         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
19508         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19509         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19510         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19511         * config/linux.opt (mmusl): New option.
19512         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
19513         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19514         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19515         * configure: Regenerate.
19517 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
19518             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19520         PR target/48904
19521         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
19522         * config/i386/knetbsd-gnu64.h: New file.
19524 2015-05-08  Marek Polacek  <polacek@redhat.com>
19526         PR c/64918
19527         * doc/invoke.texi: Document -Woverride-init-side-effects.
19529 2015-05-07  Marek Polacek  <polacek@redhat.com>
19531         PR c/65179
19532         * doc/invoke.texi: Document -Wshift-negative-value.
19534 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
19536         * gcov-tool.c (do_merge): Refactore to remove int ret.
19537         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
19538         !type == FUNC to type != FUNC.
19539         * reload.h (struct target_reload): Changee to type of
19540         x_spill_indirect_levels from bool to unsigned char.
19542 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
19544         * rtl.h (always_void_p): New function.
19545         * gengenrtl.c (always_void_p): Likewise.
19546         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
19547         with code foo are always VOIDmode.
19548         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
19549         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
19550         compare-elim.c, config/aarch64/aarch64.c,
19551         config/aarch64/aarch64.md, config/alpha/alpha.c,
19552         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
19553         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
19554         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
19555         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19556         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
19557         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
19558         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
19559         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
19560         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
19561         config/ia64/vect.md, config/iq2000/iq2000.c,
19562         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
19563         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
19564         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
19565         config/mep/mep.c, config/microblaze/microblaze.c,
19566         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
19567         config/mn10300/mn10300.c, config/msp430/msp430.c,
19568         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
19569         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
19570         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
19571         config/rs6000/altivec.md, config/rs6000/rs6000.c,
19572         config/rs6000/rs6000.md, config/rs6000/vector.md,
19573         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
19574         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
19575         config/sh/sh.md, config/sh/sh_treg_combine.cc,
19576         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
19577         config/spu/spu.md, config/stormy16/stormy16.c,
19578         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
19579         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
19580         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
19581         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
19582         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
19583         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
19584         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
19585         var-tracking.c: Update calls accordingly.
19587 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
19589         PR middle-end/192
19590         PR middle-end/54303
19591         * varasm.c (function_mergeable_rodata_prefix): New function.
19592         (mergeable_string_section): Use it.
19593         (mergeable_constant_section): Use it.
19595 2015-05-07  Jeff Law  <law@redhat.com>
19597         PR target/39726
19598         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19599         simplifier to narrow arithmetic.
19600         * generic-match-head.c: (types_match, single_use): New functions.
19601         * gimple-match-head.c: (types_match, single_use): New functions.
19603 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19605         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
19606         rtx type.
19608 2015-05-07  Richard Biener  <rguenther@suse.de>
19610         PR tree-optimization/66002
19611         * passes.def: Schedule another pass_merge_phi after ifcombine, right
19612         before phiopt.
19614 2015-05-07  Marek Polacek  <polacek@redhat.com>
19615             Martin Uecker  <uecker@eecs.berkeley.edu>
19617         * doc/invoke.texi: Document -fsanitize=bounds-strict.
19618         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
19619         into SANITIZE_NONDEFAULT.
19620         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
19622 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
19624         PR target/66015
19625         * config/alpha/alpha.c (alpha_override_options_after_change): New.
19626         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
19627         (alpha_override_options): Move align_loops, align_jumps and
19628         align_functions handling into alpha_override_options_after_change.
19630 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
19631             Chris Jones  <chrisj@nvidia.com>
19632             Joshua Conner  <jconner@nvidia.com>
19634         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
19635         linking of crtfastmath.o.
19636         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
19638 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
19640         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
19641         (cstore<mode>4_unsigned_imm): New expander.
19642         (cstore<mode>4): Remove empty constraint strings.  Use the new
19643         expanders.
19645 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
19647         PR target/64208
19648         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
19649         alternatives.
19651 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19653         * config/aarch64/geniterators.sh: Use standard BRE in sed.
19655 2015-05-06  Alan Modra  <amodra@gmail.com>
19657         PR target/66033
19658         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
19659         (UNSPEC_NOP): Define.
19660         (reload_vsx_from_gpr<mode>): Add missing DONE.
19661         (reload_gpr_from_vsx<mode>): Likewise.
19662         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
19663         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
19665 2015-05-06  Christian Bruel  <christian.bruel@st.com>
19667         PR target/66015
19668         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
19669         align_jumps, align_functions into aarch64_override_options_after_change.
19671 2015-05-06  Richard Biener  <rguenther@suse.de>
19673         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
19674         vect_transform_slp_perm_load to check if we support a permutation
19675         for basic-block vectorization.
19677 2015-05-06  Nick Clifton  <nickc@redhat.com>
19679         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
19680         used, even if it is not being used as a frame pointer.
19682 2015-05-05  Jason Merrill  <jason@redhat.com>
19684         * dwarf2out.c (gen_member_die): Don't emit anything for an
19685         anonymous class constructor.
19687 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
19689         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
19690         that it reflects the block structure.
19691         (afdo_propagate_edge): Likewise.
19692         (afdo_calculate_branch_prob): Likewise.
19693         (afdo_annotate_cfg): Likewise.
19694         * cfgcleanup.c (equal_different_set_p): Likewise.
19695         (try_crossjump_to_edge): Likewise.
19696         * cgraph.c (cgraph_node::verify_node): Likewise.
19697         * cgraphunit.c (expand_all_functions): Likewise.
19698         * config/i386/i386.c (ix86_expand_copysign): Likewise.
19699         (exact_dependency_1): Likewise.
19700         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
19701         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
19702         * gensupport.c (process_define_subst): Likewise.
19703         * lto-wrapper.c (merge_and_complain): Likewise.
19704         * tree-if-conv.c (if_convertible_bb_p): Likewise.
19705         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
19706         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
19707         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
19708         * tree-vect-loop.c (vectorizable_reduction): Likewise.
19709         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
19710         * tree-vect-stmts.c (vectorizable_shift): Likewise.
19711         * tree-vrp.c (vrp_finalize): Likewise.
19712         * tree.c (variably_modified_type_p): Likewise.
19714 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
19716         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
19717         on darwin12 and later.
19718         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
19719         file to pass -rdynamic on darwin12 and later.
19720         * config/darwin.opt (rdynamic): Add.
19722 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
19724         * doc/extend.texi (C Extensions): Update menu for moved Variable
19725         Attributes and Type Attributes sections.
19727 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
19729         PR target/65990
19730         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
19731         if rep_8byte stringop strategy was specified for 32-bit target.
19733 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
19735         PR target/65915
19736         * config/i386/i386.md (vector convert to float spltiter): Check for
19737         xmm16+, when splitting scalar float conversion.
19738         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
19740 2015-05-05  Nick Clifton  <nickc@redhat.com>
19742         * config/msp430/msp430-opts.h (enum msp430_regions): New.
19743         * config/msp430/msp430.c (msp430_override_options): Complain if
19744         -mcode-region or -mdata-region is used on a non MSP430X.
19745         (msp430_section_attr): New function.  Checks lower, upper and
19746         either attributes.
19747         (msp430_attribute_table): Add lower, upper and either.
19748         (gen_prefix): New function.  Generates a prefix for a section
19749         name.
19750         (msp430_select_section): New function - handles the choice of
19751         section for an object.  Takes into account memory region
19752         attributes and options.
19753         (msp430_function_section): Use gen_prefix.
19754         (TARGET_SECTION_TYPE_FLAGS): Define.
19755         (msp430_section_type_flags): New function.
19756         (TARGET_ASM_UNIQUE_SECTION): Define.
19757         (msp430_unique_section): New function.
19758         (msp430_output_aligned_decl_common): New function.
19759         (msp430_do_not_relax_short_jumps): New function.
19760         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
19761         Define.
19762         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19763         * config/msp430/msp430-protos.h
19764         (msp430_do_not_relax_short_jumps): New prototype.
19765         (msp430_output_aligned_decl_common): New prototype.
19766         * config/msp430/msp430.md (length): New attribute.
19767         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
19768         then use a long code sequence for short jumps.
19769         * config/msp430/msp430.opt (mcode-region): New.
19770         (mdata-region): New.
19771         * doc/invoke.texi: Document new options.
19772         * doc/extend.texi: Document new attributes.
19774 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
19776         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
19777         (tune_params): Add field branch_costs.
19778         (aarch64_branch_cost): Declare.
19779         * gcc/config/aarch64.c (generic_branch_cost): New.
19780         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
19781         (cortexa53_tunings): Likewise.
19782         (cortexa57_tunings): Likewise.
19783         (thunderx_tunings): Likewise.
19784         (xgene1_tunings): Likewise.
19785         (aarch64_branch_cost): Define.
19786         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
19788 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
19790         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
19791         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
19792         * config/i386/i386.md: Ditto.
19793         * config/i386/winnt.c: Ditto.
19795 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
19797         * doc/extend.texi (__atomic Builtins): Move implementation details
19798         to the end of the description, rewrite opening paragraphs, state
19799         difference with __sync builtins, state C11/C++11 assumptions,
19800         weaken itemized descriptions, add explanation of memory model
19801         behaviour, expand description of compare-exchange, simplify text.
19803 2015-05-05  Renlin Li  <renlin.li@arm.com>
19805         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
19807 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
19809         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
19810         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19811         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
19812         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
19813         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
19814         * configure: Regenerate.
19815         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
19816         * doc/install.texi (aarch64*-*-*): Document new
19817         --enable-fix-cortex-a53-843419 option.
19818         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
19819         and -mno-fix-cortex-a53-843419 options.
19821 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
19823         PR target/65871
19824         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
19826 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
19828         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
19829         fix overactive TYPE_MIN_VALUE check and add FIXME for type
19830         compatibility problems.
19832 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
19834         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
19835         constraints.
19836         (cbranchsi4_reg): New.
19837         * config/microblaze/microblaze.c
19838         (microblaze_expand_conditional_branch_reg): New.
19839         * config/microblaze/microblaze-protos.h
19840         (microblaze_expand_conditional_branch_reg): New prototype.
19842 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
19844         * config/microblaze/microblaze.md (peephole2): New.
19846 2015-05-04  Jeff Law  <law@redhat.com>
19848         Revert:
19849         2015-05-04  Jeff Law  <law@redhat.com>
19851         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19852         simplifier to narrow arithmetic.
19853         * generic-match-head.c: (types_match, single_use): New functions.
19854         * gimple-match-head.c: (types_match, single_use): New functions.
19856 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
19858         PR target/65987
19859         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
19860         (split_branches): Likewise.
19862 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
19864         * common.opt (fdelete-null-pointer-checks): Init to -1.
19865         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
19866         override flag_delete_null_pointer_checks default.
19867         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
19868         behavior re address zero.  Better document target-specific behavior.
19869         (-fisolate-errneous-paths-dereference): Mention relationship to
19870         -fdelete-null-pointer-checks.
19872 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
19874         PR tree-optimization/65984
19875         * ubsan.c: Include tree-cfg.h.
19876         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
19877         stmt_could_throw_p test, rename can_throw variable to ends_bb.
19879 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
19881         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
19882         to CONST_DOUBLE_P predicate.
19883         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
19884         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
19885         allow only operands that satisfy standard_sse_constant_p predicate.
19886         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
19887         to CONST_DOUBLE_P predicate.
19889 2015-05-04  Jeff Law  <law@redhat.com>
19891         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
19892         simplifier to narrow arithmetic.
19893         * generic-match-head.c: (types_match, single_use): New functions.
19894         * gimple-match-head.c: (types_match, single_use): New functions.
19896 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
19898         * config/arm/arm.c: Restore bootstrap.
19900 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
19902         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
19903         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
19904         as CONST_WIDE_INT, not CONST_DOUBLE.
19905         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
19906         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
19907         (ix86_find_base_term): Do not check for CONST_DOUBLE.
19908         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
19909         (ix86_build_signbit_mask): Rewrite using wide ints.
19910         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
19911         (ix86_rtx_costs): Handle CONST_WIDE_INT.
19912         (find_constant): Ditto.
19913         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
19914         using gen_int_mode.
19915         * config/i386/predicates.md (x86_64_immediate_operand)
19916         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19917         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
19918         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
19919         (const0_operand): Also match const_wide_int.
19920         (constm1_operand): Ditto.
19921         (const1_operand): Ditto.
19923 2015-05-04  Richard Biener  <rguenther@suse.de>
19925         PR tree-optimization/65965
19926         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
19927         store groups at gaps.
19929 2015-05-04  Richard Biener  <rguenther@suse.de>
19931         PR tree-optimization/65935
19932         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
19933         then make sure to apply that swapping to the IL.
19935 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
19937         * Makefile.in (PATCHLEVEL_c): New variable.
19938         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
19939         expand the same way as if DEVPHASE_c was non-empty.
19941 2015-05-04  Kai Tietz  <ktietz@redhat.com>
19943         PR target/65559
19944         * lto-wrapper.c (run_gcc): Open filename
19945         in binary-mode.
19947 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
19949         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
19950         sections up in file, to immediately after the Function Attributes
19951         section.
19953 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
19955         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
19957 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19959         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
19960         (insert_partition_copy_on_edge): Adjust.
19961         (insert_rtx_to_part_on_edge): Likewise.
19962         (insert_part_to_rtx_on_edge): Likewise.
19964 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19966         * function.c (set_return_jump_label): Change type of argument to
19967         rtx_insn *.
19968         * function.h (set_return_jump_label): Adjust.
19970 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19972         * reload.h (struct reg_equivs_t): Change type of init to
19973         rtx_insn *.
19974         * ira.c (fix_reg_equiv_init): Adjust.
19975         * reload1.c (eliminate_regs_1): Likewise.
19976         (init_eliminable_invariants): Likewise.
19978 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19980         * cselib.c (fp_setter_insn): Take a rtx_insn *.
19981         * cselib.h (fp_setter_insn): Adjust.
19983 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19985         * recog.c (struct validate_replace_src_data): Change type of
19986         insn field to rtx_insn *.
19987         (validate_replace_src_group): Change type of argument to rtx_insn *.
19988         * recog.h (validate_replace_src_group): Adjust.
19990 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19992         * haifa-sched.c: Change the type of some variables to rtx_insn *.
19993         * sched-deps.c: Likewise.
19994         * sched-int.h: Likewise.
19995         * sched-rgn.c: Likewise.
19996         * sel-sched.c: Likewise.
19998 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20000         to rtx_insn *.
20001         * config/i386/i386.c: Change the type of some arguments to
20002         rtx_insn *.
20003         * config/arm/arm.c: Likewise.
20005 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20007         * lra-constraints.c: Change type of some arguments to rtx_insn *.
20009 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20011         * regcprop.c (kill_autoinc_value): Change type of argument to
20012         rtx_insn *.
20014 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20016         * genrecog.c (print_subroutine): Adjust.
20017         * recog.c (get_bool_attr_mask_uncached): Likewise.
20018         * recog.h (struct recog_data_d): Change the type of insn to
20019         rtx_insn *.
20021 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20023         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
20025 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20027         * df-problems.c (df_set_note): Change type of argument to
20028         rtx_insn *.
20030 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20032         * builtins.c (expand_builtin_trap): Change type of local
20033         variable to rtx_insn *.
20034         (add_sched_insns_for_speculation): Likewise.
20035         (ix86_emit_save_regs): Likewise.
20036         (get_scratch_register_on_entry): Likewise.
20037         (ix86_emit_restore_reg_using_pop): Likewise.
20038         (ix86_emit_leave): Likewise.
20039         (ix86_emit_restore_regs_using_mov): Likewise.
20040         (ix86_expand_epilogue): Likewise.
20041         Likewise.
20042         (rl78_alloc_physical_registers_umul): Likewise.
20043         * cselib.c (discard_useless_locs): Likewise.
20044         (cselib_invalidate_regno): Likewise.
20045         (cselib_invalidate_mem): Likewise.
20046         * function.c (expand_function_start): Likewise.
20047         (emit_use_return_register_into_block): Likewise.
20048         * gcse.c: Likewise.
20049         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
20050         * ifcvt.c (noce_get_alt_condition): Likewise.
20051         * loop-doloop.c (doloop_condition_get): Likewise.
20052         * lra-constraints.c (inherit_in_ebb): Likewise.
20053         * modulo-sched.c (sms_schedule_by_order): Likewise.
20054         * recog.c (next_insn_tests_no_inequality): Likewise.
20055         * reorg.c (emit_delay_sequence): Likewise.
20056         (update_reg_dead_notes): Likewise.
20057         (fix_reg_dead_note): Likewise.
20058         (fill_slots_from_thread): Likewise.
20059         (delete_computation): Likewise.
20061 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
20063         * doc/extend.texi (Variable Attributes): Add menu and proper
20064         @nodes to subsections.  Move Microsoft Windows attributes to
20065         their own subsection.
20066         (Type Attributes): Reorganize introduction to remove duplicate
20067         list of attributes.  Add menu and proper @nodes to subsections.
20068         Alphabetize the main table of common attributes.
20070 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
20072         * match.pd: New simplification patterns.
20073         (x + (x & 1))  -> ((x + 1) & ~1)
20074         (x & ~(x & y)) -> ((x & ~y))
20075         (x | ~(x | y)) -> ((x | ~y))
20077 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20079         * target.def (attribute_table): Mention that struct attribute_spec
20080         is defined in tree-core.h rather than tree.h
20081         * doc/tm.texi: Regenerate.
20083 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
20085         * genrecog.c (test): Rename to rtx_test.  Update rest of file
20086         accordingly.
20088 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
20090         PR translation/65959
20091         * params.h (DEFPARAM): Rename msgid to nocmsgid.
20093 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
20095         * gcc/config/aarch64/aarch64-protos.h (tune_params):
20096         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
20097         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
20098         Return value depending on target.
20099         (generic_tunings): Initialize new target settings.
20100         (cortexa53_tunings): Likewise.
20101         (cortexa57_tunings): Likewise.
20102         (thunderx_tunings): Likewise.
20103         (xgene1_tunings): Likewise.
20105 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
20107         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
20108         Make Cortex-A53 shift costs more accurate.
20110 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20112         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
20113         UNSIGNED_FLOAT.
20115 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
20117         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
20118         Calculate cost of op0 and op1 in PLUS and MINUS cases.
20120 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20122         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20123         Add cost of op0 in the compare-with-fpzero case.
20125 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
20127         * builtins.c (fold_builtin_1): Remove spurious second
20128         semicolon.
20129         * cgraph.h (symtab_node::get_availability): Likewise.
20130         * opts.c (common_handle_option): Remove spurious second semicolon.
20131         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20132         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20134 2015-04-30  Caroline Tice  <cmtice@google.com>
20136         PR gcov-profile/65929
20137         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
20138         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
20139         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
20140         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
20141         * doc/tm.texi: Regenerate.
20142         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
20143         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
20144         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
20145         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
20147 2015-04-30  Marek Polacek  <polacek@redhat.com>
20149         * varasm.c (handle_cache_entry): Fix logic.
20151 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20153         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
20154         (*extrsi5_insn_uxtw_alt): Likewise.
20155         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
20156         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
20157         operations.
20159 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20161         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
20162         fabd in ABS case.
20164 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20166         * config/aarch64/aarch64.md
20167         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
20168         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
20169         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
20170         appropriately.  Handle alternative EON form.
20172 2015-04-30  Renlin Li  <renlin.li@arm.com>
20174         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
20175         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
20177 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
20179         PR ipa/65873
20180         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
20181         -fstrict-aliasing boundaries.
20183 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20185         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
20186         and [SU]MNEGL patterns.
20188 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20190         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
20191         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
20192         combined arithmetic-shift ops.  Properly handle all shift and extend
20193         operations that can occur in combination with PLUS/MINUS.
20194         Rename maybe_fma to compound_p.
20195         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
20196         arithmetic and shift operations.
20198 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20200         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
20201         rather than arith_shift cost when costing ADD/MINUS of an
20202         extended value.
20204 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
20206         PR lto/65948
20207         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
20208         to itself.
20210 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
20212         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
20213         are for the same position.
20215 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
20217         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
20218         vectorize_loops.
20219         (vectorize_loops): Use it.
20221 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
20223         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
20224         for aggregate types.
20225         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
20226         type to be non_ODR.
20227         * tree.c (need_assembler_name_p): Compute mangled name for
20228         non-fundamental types and integer types.
20230 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
20232         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
20233         manual swaps.
20234         * expr.c (expand_expr_real_2): Likewise.
20236 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
20238         * tree.c (build_common_builtin_nodes): Do not build
20239         __builtin_alloca_with_align as equivalent of library alloca.
20241 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
20243         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
20244         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
20245         bugus variants.
20246         * tree.c: Include print-tree.h and ipa-utils.h
20247         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
20248         (free_lang_data_in_cgraph): Call verify_type.
20249         (verify_type_variant): New function.
20250         (verify_type): New function.
20251         * tree.h (verify_type): Declare.
20253 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
20255         * config/mips/mips-cpus.def: (mips4): Change default processor
20256         from PROCESSOR_R8000 to PROCESSOR_R10000.
20258 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
20260         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
20261         la/jalr instead of jal.
20263 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
20265         PR target/65871
20266         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
20267         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
20268         (setcc+movzbl peephole2): Check also clobbered reg.
20269         (setcc+andl peephole2): Ditto.
20271 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
20273         PR libgomp/65099
20274         * config/nvptx/mkoffload.c (target_ilp32): New variable.
20275         (main): Set it depending on "-foffload-abi=[...]".
20276         (compile_native, main): Use it to pass "-m32" or "-m64" to the
20277         compiler.
20279 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
20281         PR target/65770
20282         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
20283         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
20284         Flip lane index back at assembly time for bigendian.
20286 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
20288         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
20289         * gimplify.c (gimplify_omp_workshare): Use it.
20291 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
20293         * Makefile.in (build/genrecog.o): Depend on inchash.h.
20294         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
20295         build/inchash.o
20296         * genrecog.c: Rewrite most of the code except for the third page.
20298 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
20300         * inchash.h, inchash.c: Include bconfig.h for build objects.
20301         * Makefile.in (build/inchash.o): New rule.
20303 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
20305         PR target/65924
20306         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
20307         number in type attribute expression.
20309 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
20311         * loop-iv.c (canon_condition): Generalize to all types of integer
20312         constant.
20314 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
20316         * gimple-walk.c: Prune duplicate or unneeded includes.
20317         (walk_gimple_asm): Only call parse_input_constraint or
20318         parse_output_constraint if their findings are used.
20319         Honour parse_input_constraint and parse_output_constraint
20320         result.
20322 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
20324         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
20326 2015-04-29  Tom de Vries  <tom@codesourcery.com>
20328         PR tree-optimization/65893
20329         * passes.def (pass_all_optimizations): Move pass_stdarg to after
20330         pass_dce.
20332 2015-04-29  Richard Biener  <rguenther@suse.de>
20334         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
20335         compute GROUP_SIZE for basic-block SLP.
20336         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
20337         take into account gaps.
20338         (vect_get_mask_element): Properly reject references to previous
20339         vectors.
20340         (vect_transform_slp_perm_load): Likewise.
20342 2015-04-29  Christian Bruel  <christian.bruel@st.com>
20344         PR target/64835
20345         * config/i386/i386.c (ix86_default_align): New function.
20346         (ix86_override_options_after_change): Call ix86_default_align.
20347         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
20348         (ix86_override_options_after_change): New function.
20350 2015-04-28  Jeff Law  <law@redhat.com>
20352         * tree-ssa-dom.c (record_equality); Fix comment typos.
20354 2015-04-28  Tom de Vries  <tom@codesourcery.com>
20356         PR tree-optimization/65887
20357         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
20359 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
20361         * doc/extend.texi (Declaring Attributes of Functions): Split into
20362         subsections by target.  Alphabetize the table of common attributes.
20363         Rewrite some of the introductory text to reflect the new structure.
20364         Update some cross-references to point to the new subsections.
20365         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
20366         duplicate copies in the discussion of function, label, and type
20367         attributes.
20369 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
20371         PR bootstrap/65910
20372         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
20374 2015-04-28  Jason Merrill  <jason@redhat.com>
20376         PR c++/65734
20377         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
20378         (finalize_type_size): Respect TYPE_USER_ALIGN.
20379         (layout_type) [ARRAY_TYPE]: Likewise.
20381 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
20383         * config/arm/arm.md (*arm_movt): Fix type attribute.
20384         (*cmpsi_shiftsi): Likewise.
20385         (*cmpsi_shiftsi_swp): Likewise.
20386         (*movsicc_insn): Likewise.
20387         (*cond_move): Likewise.
20388         (*if_plus_move): Likewise.
20389         (*if_move_plus): Likewise.
20390         (*if_arith_move): Likewise.
20391         (*if_move_arith): Likewise.
20392         (*if_shift_move): Likewise.
20393         (*if_move_shift): Likewise.
20394         (*arm_movtas_ze): Likewise.
20395         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
20396         redundancy and type attribute.
20397         (*thumb2_movsi_insn): Fix type attribute.
20398         (*thumb2_addsi_short): Likewise.
20399         (thumb2_addsi3_compare0): Likewise.
20400         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
20401         attributes accordingly.
20403 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
20405         PR other/65911
20406         * function.c (pad_to_arg_alignment): Add parentheses.
20408 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
20410         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
20411         libgcc/config/frv/elf-lib.h.
20413 2015-04-28  Tom de Vries  <tom@codesourcery.com>
20415         * tree-call-cdce.c: Fix example in header comment.
20417 2015-04-28  Richard Biener  <rguenther@suse.de>
20419         PR tree-optimization/62283
20420         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
20421         fails fatally and we are vectorizing a basic-block simply
20422         cause the child to be constructed piecewise.
20423         (vect_analyze_slp_cost_1): Adjust.
20424         (vect_detect_hybrid_slp_stmts): Likewise.
20425         (vect_bb_slp_scalar_cost): Likewise.
20426         (vect_get_constant_vectors): For piecewise constructed
20427         constants place them after the last def.
20428         (vect_get_slp_defs): Adjust.
20429         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
20430         externals for basic-block vectorization.
20432 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20434         PR target/63503
20435         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
20436         aarch64-*-*.
20437         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
20438         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
20439         (AARCH64_TUNE_FMA_STEERING): Likewise.
20440         * config/aarch64/aarch64-cores.def: Set
20441         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
20442         FMUL/FMADD instructions.
20443         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
20444         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
20445         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
20446         * config/aarch64/cortex-a57-fma-steering.h: New file.
20447         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20449 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
20451         * gensupport.c (std_preds): Add missing codes to address_operand entry.
20453 2015-04-28  Richard Biener  <rguenther@suse.de>
20455         PR tree-optimization/65851
20456         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
20457         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
20458         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
20459         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
20460         (ccp_visit_phi_node): Adjust.
20461         (evaluate_stmt): For simplifications to SSA names return its
20462         lattice value if that isn't VARYING.  Return immediately when
20463         simplified to a constant.
20464         (visit_assignment): Adjust.
20465         (ccp_visit_stmt): Likewise.
20467 2015-04-28  Tom de Vries  <tom@codesourcery.com>
20469         PR tree-optimization/65818
20470         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
20471         evaluated.
20473 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20475         * calls.c (save_fixed_argument_area): Don't check
20476         ARGS_GROW_DOWNWARD with the preprocessor.
20477         (restore_fixed_argument_area): Likewise.
20478         (mem_overlaps_already_clobbered_arg_p): Likewise.
20479         (check_sibcall_argument_overlap): Likewise.
20480         (expand_call): Likewise.
20481         (emit_library_call_value_1): Likewise.
20482         (store_one_arg): Likewise.
20483         * function.c (assign_parms): Likewise.
20484         (locate_and_pad_parm): Likewise.
20485         (pad_to_arg_alignment): Likewise.
20486         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20488 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20490         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
20491         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
20492         * calls.c (save_fixed_argument_area): Don't chekc if
20493         ARGS_GROW_DOWNWARD is defined.
20494         (restore_fixed_argument_area): Likewise.
20495         (mem_overlaps_already_clobbered_arg_p): Likewise.
20496         (check_sibcall_argument_overlap): Likewise.
20497         (expand_call): Likewise.
20498         (emit_library_call_value_1): Likewise.
20499         (store_one_arg): Likewise.
20500         * function.c (assign_parms): Likewise.
20501         (locate_and_pad_parm): Likewise.
20502         (pad_to_arg_alignment): Likewise.
20503         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
20505 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20507         * defaults.h (gen_epilogue): New function.
20508         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
20509         defined.
20510         * cfgrtl.c (cfg_layout_finalize): Likewise.
20511         * df-scan.c: Likewise.
20512         * function.c (thread_prologue_and_epilogue_insns): Likewise.
20513         (reposition_prologue_and_epilogue_notes): Likewise.
20514         * reorg.c (find_end_label): Likewise.
20515         * toplev.c: Likewise.
20517 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20519         * bb-reorder.c (HAVE_return): Don't check if its undefined.
20520         * defaults.h (gen_simple_return): New function.
20521         (gen_simple_return): Likewise.
20522         (HAVE_return): Add default definition to false.
20523         (HAVE_simple_return): Likewise.
20524         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
20525         HAVE_return and HAVE_simple_return are defined.
20526         * function.c (gen_return_pattern): Likewise.
20527         (convert_jumps_to_returns): Likewise.
20528         (thread_prologue_and_epilogue_insns): Likewise.
20529         * reorg.c (find_end_label): Likewise.
20530         (dbr_schedule): Likewise.
20531         * shrink-wrap.c: Likewise.
20532         * shrink-wrap.h: Likewise.
20534 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20536         * defaults.h (EPILOGUE_USES): Add default definition of false.
20537         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
20538         * resource.c (init_resource_info): Likewise.
20540 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20542         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
20543         to false.
20544         * dwarf2out.c (field_byte_offset): REmove check if
20545         PCC_BITFIELD_TYPE_MATTERS is defined.
20546         * stor-layout.c (layout_decl): Likewise.
20547         (update_alignment_for_field): Likewise.
20548         (place_field): Likewise.
20550 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20552         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
20553         true.
20554         * regrename.c (check_new_reg_p): Remove check if
20555         HARD_REGNO_RENAME_OK is defined.
20556         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
20558 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20560         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
20561         * cse.c (fold_rtx): Likewise.
20562         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
20563         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
20564         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
20565         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
20566         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
20567         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
20568         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
20569         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
20570         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
20571         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
20572         * Likewise.
20573         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
20574         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
20575         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
20576         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
20577         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
20578         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
20579         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
20580         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
20581         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
20582         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
20583         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
20584         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
20585         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
20586         * doc/tm.texi: Regenerate.
20587         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
20588         either true or false.
20590 2015-04-27  Jeff Law  <law@redhat.com>
20592         PR tree-optimization/65217
20593         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
20594         of them has a single use, make sure it is the LHS of the implied
20595         copy.
20597 2015-04-28  Alan Modra  <amodra@gmail.com>
20599         PR target/65810
20600         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
20601         (offsettable_ok_by_alignment): Use minimum of decl and toc
20602         pointer alignment.  Replace dead code with assertion.
20603         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
20604         case if size exceeds toc pointer alignment.
20605         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
20606         (rs6000_emit_move): Likewise.
20607         * configure.ac: Add linker toc pointer alignment check.
20608         * configure: Regenerate.
20609         * config.in: Regenerate.
20611 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
20613         * config.gcc: Add h8300-*-linux.
20614         * config/h8300/linux.h: New.
20615         * config/h8300/t-linux: New.
20616         * config/h8300/h8300.c (h8300_option_override): Normal mode
20617         is not supported for h8300-*-linux.
20618         (h8300_file_start): Target priority change.
20619         (get_shift_alg): Likewise.
20620         (h8300_shift_need_scratch_p): Likewise.
20621         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20622         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
20624 2015-04-27  Caroline Tice  <cmtice@google.com>
20626         * final.c (final_scan_insn):  Output cold_function_name as function
20627         type.
20628         * varasm.c (cold_function_name):  Make global.
20629         (assemble_start_function):  Re-set cold_function_name.
20630         (assemble_end_function): Output cold partition size.
20631         * varasm.h (cold_function_name):  Declare global.
20633 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
20635         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
20636         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
20637         constraint.
20638         (*movxi_internal_avx512f): Ditto.
20639         (define_split): Check for xmm16+, when splitting scalar float_extend.
20640         (*extendsfdf2_mixed): Use "v" constraint.
20641         (define_split): Check for xmm16+, when splitting scalar float_truncate.
20642         (*truncdfsf_fast_sse): Use "v" constraint.
20643         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
20644         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
20645         (define_peephole2): Check for xmm16+, when converting scalar
20646         float_truncate.
20647         (define_peephole2): Check for xmm16+, when converting scalar
20648         float_extend.
20649         (*fop_<mode>_comm_mixed): Use "v" constraint.
20650         (*fop_<mode>_comm_sse): Ditto.
20651         (*fop_<mode>_1_mixed): Ditto.
20652         (*sqrt<mode>2_sse): Ditto.
20653         (*ieee_s<ieee_maxmin><mode>3): Ditto.
20655 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20657         * combine.c (simplify_if_then_else): Use std::swap instead
20658         of manually swapping.
20659         (known_cond): Likewise.
20660         (simplify_comparison): Likewise.
20662 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
20664         PR target/64579
20665         * config/rs6000/htm.md: Remove all define_expands.
20666         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
20667         UNSPECV_HTM_TABORTWCI): Remove.
20668         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
20669         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
20670         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
20671         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
20672         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
20673         tabortwci_internal): Remove define_insns.
20674         (tabort<wd>c, tabort<wd>ci): New define_insns.
20675         (tabort): Use gpc_reg_operand.
20676         (tcheck): Remove operand.
20677         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
20678         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
20679         expected value.
20680         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
20681         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
20682         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
20683         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
20684         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
20685         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
20686         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
20687         (tcheck): Remove builtin argument.
20688         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
20689         not TARGET_64BIT.
20690         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
20691         tabortdc and tabortdci builtins when not in 64-bit mode.
20692         Modify code to handle the loss of the HTM define_expands.
20693         Emit code to copy the CR register to TARGET.
20694         (htm_init_builtins): Modify code to handle the loss of the HTM
20695         define_expands.
20696         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
20697         (RS6000_BTC_64BIT): Likewise.
20698         (RS6000_BTC_CR): New macro.
20699         * doc/extend.texi: Update documentation for htm builtins.
20701 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20703         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
20704         of manually swapping.
20705         (simplify_associative_operation): Likewise.
20706         (simplify_binary_operation): Likewise.
20707         (simplify_plus_minus): Likewise.
20708         (simplify_relational_operation): Likewise.
20709         (simplify_ternary_operation): Likewise.
20711 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
20713         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
20714         (xs_hi_nonmemory_operand): Remove error.
20715         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
20716         general_operand rather than xs_hi_general_operand.
20718 2015-04-27  Richard Biener  <rguenther@suse.de>
20720         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
20721         (record_equivalences_from_stmt): Valueize rhs.
20722         (record_equality): Canonicalize x and y order via
20723         tree_swap_operands_p.  Do not swap operands for same loop depth.
20725 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
20727         PR target/65296
20728         PR target/65895
20729         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
20730         Add hint how to use own spec file.
20732 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
20734         PR tree-optimization/65875
20735         * tree-vrp.c (update_value_range): If in is_new case setting
20736         old_vr to VR_VARYING, also set new_vr to it.  Remove
20737         old_vr->type == VR_VARYING test.
20738         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
20739         SSA_PROP_INTERESTING if update_value_range returned true,
20740         but new range is VR_VARYING.
20742 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20744         * combine.c (sign_extend_short_imm): New.
20745         (set_nonzero_bits_and_sign_copies): Use above new function for sign
20746         extension of src short immediate.
20747         (reg_nonzero_bits_for_combine): Likewise for tem.
20749 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
20751         * stor-layout.c (self_referential_component_ref_p): New predicate.
20752         (copy_self_referential_tree_r): Use it.
20753         (self_referential_size): Punt for simple operations directly involving
20754         self-referential component references.
20755         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
20757 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
20759         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
20761 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
20763         * vec.h (vec): Make splice arguments const.  Update definitions
20764         accordingly.
20766 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
20768         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
20769         alternatives.
20771 2015-04-26  Tom de Vries  <tom@codesourcery.com>
20773         PR tree-optimization/65826
20774         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
20776 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
20778         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
20779         (*madd3<mode>): Ditto.
20780         (*msub4<mode>): Ditto.
20781         (*msub3<mode>): Ditto.
20782         (*nmadd4<mode>): Ditto.
20783         (*nmadd3<mode>): Ditto.
20784         (*nmadd4<mode>_fastmath): Ditto.
20785         (*nmadd3<mode>_fastmath): Ditto.
20786         (*nmsub4<mode>): Ditto.
20787         (*nmsub3<mode>): Ditto.
20788         (*nmsub4<mode>_fastmath): Ditto.
20789         (*nmsub3<mode>_fastmath): Ditto.
20791 2015-04-24  Jason Merrill  <jason@redhat.com>
20793         PR c++/50800
20794         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
20795         down when building TYPE_CANONICAL.
20796         (build_pointer_type_for_mode): Likewise.
20798 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
20800         * genrecog.c (validate_pattern): Check matching constraint refers
20801         to a lower numbered operand.
20803 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20805         PR target/65849
20806         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
20807         save to independent variables use the Save attribute.  This will
20808         allow these options to be modified with the #pragma/attribute
20809         target support.
20810         (-mallow-movmisalign): Likewise.
20811         (-mallow-df-permute): Likewise.
20812         (-msched-groups): Likewise.
20813         (-malways-hint): Likewise.
20814         (-malign-branch-targets): Likewise.
20815         (-mvectorize-builtins): Likewise.
20816         (-msave-toc-indirect): Likewise.
20818         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
20819         can be set via the #pragma/attribute target support.
20820         (rs6000_opt_vars): Likewise.
20821         (rs6000_inner_target_options): If VSX was set, also set
20822         -mno-avoid-indexed-addresses.
20824 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20826         * config/arm/iterators.md (shiftable_ops): Rename to...
20827         (SHIFTABLE_OPS): ... This.  Update use in comments.
20828         (ior_xor): Rename to...
20829         (IOR_XOR): ... This.
20830         (vqh_ops): Rename to...
20831         (VQH_OPS): ... This.
20832         (vqhs_ops): Rename to...
20833         (VQHS_OPS): ... This.
20834         (rshifts): Rename to...
20835         (RSHIFTS): ... This.
20836         (returns): Rename to...
20837         (RETURNS): ... This.
20838         * config/arm/arm.md: Update uses of the above.
20839         * config/arm/neon.md: Likewise.
20841 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20843         * config.host (case ${host}): Add aarch64*-*-linux case.
20844         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
20845         fields to all the cores.
20846         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
20847         Add MCPU_MTUNE_NATIVE_SPECS.
20848         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
20849         field to all extensions.
20850         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
20851         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
20852         Adjust definition of AARCH64_OPT_EXTENSION.
20853         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
20854         (MCPU_MTUNE_NATIVE_SPECS): Define.
20855         * config/aarch64/driver-aarch64.c: New file.
20856         * config/aarch64/x-arch64: New file.
20857         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
20858         -mtune and -march.
20860 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
20861             Wei Mi  <wmi@google.com>
20863         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
20864         * config/i386/i386.c (extract_base_offset_in_addr): New function.
20865         (ix86_operands_ok_for_move_multiple): Ditto.
20866         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
20867         (movlpd/movhpd to movupd peephole2): Ditto.
20869 2015-04-24  Marek Polacek  <polacek@redhat.com>
20871         PR c/61534
20872         * input.h (from_macro_expansion_at): Define.
20874         PR c/63357
20875         * doc/invoke.texi: Update description of -Wlogical-op.
20877 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20879         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
20880         ternary operator in fprintf and harmonize spacing.
20882 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
20884         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
20885         Mark operand1 commutative.
20887 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
20889         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
20890         input operands in memory.
20891         (*vec_concatv2si_sse4_1): Ditto.
20892         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
20893         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
20894         register_operand.
20895         (vec_extract_hi_v32hi): Ditto.
20896         (vec_extract_hi_v64hi): Ditto.
20897         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
20899 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20900             Steven Bosscher <steven@gcc.gnu.org>
20902         PR rtl-optimization/34503
20903         * cprop.c (cprop_reg_p): New.
20904         (hash_scan_set): Use above function to check if register can be
20905         propagated.
20906         (find_avail_set): Return up to two sets, one whose source is a
20907         register and one whose source is a constant.  Sets are returned in an
20908         array passed as parameter rather than as a return value.
20909         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
20910         sets returned by find_avail_set, starting with the one whose source is
20911         a constant. Use cprop_reg_p to check if register can be propagated.
20912         (do_local_cprop): Use cprop_reg_p to check if register can be
20913         propagated.
20914         (implicit_set_cond_p): Likewise.
20916 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20918         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
20919         (sem_function::equals): IGNORED_NODES parameter is now unused;
20920         update call of equals_private.
20921         (sem_function::equals_private): Do not call equals_wpa; skip
20922         gimple body matching if there is no body.
20923         (sem_function::init): Add logic to hash tthunk info.
20924         (sem_function::parse): Also parse thunks.
20925         * ipa-icf.h (equals_private): Update declaration.
20927 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20929         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
20930         asterisk from name so this can be generated directly.
20931         (*altivec_stvx_<mode>_internal): Likewise.
20932         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
20933         that this is never called during or after reload/lra.
20934         (rs6000_frame_related): Remove split_reg
20935         argument and logic that references it.
20936         (emit_frame_save): Remove last parameter from call to
20937         rs6000_frame_related.
20938         (rs6000_emit_prologue): Remove last parameter from eight calls to
20939         rs6000_frame_related.  Force generation of stvx instruction for
20940         Altivec register saves.  Remove split_reg handling, which is no
20941         longer needed.
20942         (rs6000_emit_epilogue):  Force generation of lvx instruction for
20943         Altivec register restores.
20945 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20947         * config/rs6000/rs6000.opt (mcrypto): Change option description to
20948         match category changes in ISA 2.07B.
20950 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20952         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
20953         iterators.
20954         (cmp_op, cmp_type): New code attributes.
20955         (NEON_VCMP, NEON_VACMP): New int iterators.
20956         (cmp_op_unsp): New int attribute.
20957         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
20958         (neon_vceq<mode>): Delete.
20959         (neon_vc<cmp_op><mode>_insn): New pattern.
20960         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
20961         (neon_vcgeu<mode>): Delete.
20962         (neon_vcle<mode>): Likewise.
20963         (neon_vclt<mode>: Likewise.
20964         (neon_vcage<mode>): Likewise.
20965         (neon_vcagt<mode>): Likewise.
20966         (neon_vca<cmp_op><mode>): New define_expand.
20967         (neon_vca<cmp_op><mode>_insn): New pattern.
20968         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
20970 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20972         * tree.h (attribute_value_equal): Declare.
20973         * tree.c (attribute_value_equal): Export.
20975 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20977         * ipa-icf.c (sem_item::compare_attributes): New function.
20978         (sem_item::compare_referenced_symbol_properties): Compare variable
20979         attributes.
20980         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
20981         (sem_function::param_used_p): New function.
20982         (sem_function::equals_wpa): Fix attribute comparsion; match
20983         parameter type codes; do not compare paremter flags when
20984         they are not used; compare edge flags; compare indirect calls.
20985         (sem_item::update_hash_by_addr_refs): Hash reference type.
20986         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
20987         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
20988         reference use type.
20989         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
20990         * ipa-icf.h (compare_attributes, param_used_p): Declare.
20992 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
20994         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
20995         cleanup.
20996         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
20997         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
20998         (sem_item::compare_referenced_symbol_properties): New.
20999         (sem_item::hash_referenced_symbol_properties): New.
21000         (sem_item::compare_cgraph_references): Rename to ...
21001         (sem_item::compare_symbol_references): ... this one; use
21002         compare_referenced_symbol_properties.
21003         (sem_function::equals_wpa): Do not compare
21004         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
21005         DECL_IS_OPERATOR_NEW; compare pointer sizes.
21006         (sem_item::update_hash_by_addr_refs): Call
21007         hash_referenced_symbol_properties.
21008         (sem_item::update_hash_by_local_refs): Cleanup.
21009         (sem_function::merge): Do not mix up symbol properties.
21010         (sem_variable::equals_wpa): Use compare_symbol_references.
21011         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
21012         (sem_item::hash_referenced_symbol_properties): New.
21013         (sem_item::compare_symbol_references): New.
21014         (sem_item::compare_cgraph_references): Remove.
21016 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
21018         PR target/26702
21019         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
21020         Emit size of local.
21022 2015-04-23  Nick Clifton  <nickc@redhat.com>
21024         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
21025         ATTRIBUTE_UNUSED to x parameter.
21026         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
21028 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21030         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
21031         TARGET_CRYPTO to TARGET_P8_VECTOR>
21032         (crypto_vpermxor_<mode>): Likewise.
21033         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
21034         (BU_CRYPTO_3A): Likewise.
21035         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
21036         (BU_CRYPTO_OVERLOAD_3A): New #define.
21037         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
21038         (VPMSUMH): Likewise.
21039         (VPMSUMW): Likewise.
21040         (VPMSUMD): Likewise.
21041         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
21042         (VPERMXOR_V4SI): Likewise.
21043         (VPERMXOR_V8HI): Likewise.
21044         (VPERMXOR_V16QI): Likewise.
21045         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
21046         BU_CRYPTO_OVERLOAD_2A.
21047         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
21048         BU_CRYPTO_OVERLOAD_3A.
21049         * config/rs6000/rs6000.opt (mcrypto): Change description of
21050         option.
21052 2015-04-23  Richard Biener  <rguenther@suse.de>
21054         * passes.def: Remove copy propagation passes run directly after CCP.
21055         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
21056         SSA names.
21057         (ccp_visit_phi_node): Rework to handle first executable edge
21058         specially.
21060 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
21062         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21063         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
21064         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
21065         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
21066         (thumb_legimitimize_reload_address): Remove.
21067         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
21068         Remove.
21069         (thumb_legimitimize_reload_address): Remove.
21071 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21073         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
21075 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21077         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
21078         MAX_LDM_STM_OPS.
21079         (store_multiple): Likewise.
21081 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21083         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
21084         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
21085         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
21086         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
21087         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
21088         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
21089         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
21090         Specify issue_rate value.
21091         (arm_issue_rate): Look up issue rate from tuning structs. Remove
21092         large switch statement.
21093         (arm_marvell_pj4_tune): New struct.
21094         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
21095         struct.
21097 2015-04-23  Richard Biener  <rguenther@suse.de>
21099         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
21100         (vect_find_last_store_in_slp_instance): Rename to ...
21101         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
21102         (vect_analyze_slp_cost_1): Use vector_load for constant defs
21103         and vec_construct for external defs when estimating prologue cost.
21104         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
21105         Compute costs here only when vectorizing loops.
21106         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
21107         have been determined.
21108         (vect_schedule_slp_instance): Simplify vectorized code placement
21109         and prepare for in-BB external defs.
21110         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
21111         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
21112         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
21113         guard.
21114         (vect_model_load_cost): Likewise.
21115         (vectorizable_store): Instead add it here.
21116         (vectorizable_load): Likewise.
21117         (vect_is_simple_use): Dump def type textually.
21119 2015-04-23  Richard Biener  <rguenther@suse.de>
21121         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
21122         * cfgloop.c (verify_loop_structure): Verify the root loop node.
21123         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
21124         instead of get_eh_region_from_lp_number.
21125         * loop-init.c (fix_loop_structure): If we removed a loop, reset
21126         the SCEV cache.
21128 2015-04-23  Anton Blanchard  <anton@samba.org>
21130         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
21131         need for -mprofile-kernel to save LR to stack.
21133 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21135         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
21136         adjustments.
21137         (insn_is_swappable_p): Return 1 for a convert from double to
21138         single precision when all of its uses are splats of BE element
21139         zero.
21141 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21143         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
21145 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21147         PR target/65456
21148         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
21149         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
21150         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
21151         option.
21152         (rs6000_builtin_mask_for_load): Return 0 for targets with
21153         efficient unaligned VSX accesses so that the vectorizer will use
21154         direct unaligned loads.
21155         (rs6000_builtin_support_vector_misalignment): Always return true
21156         for targets with efficient unaligned VSX accesses.
21157         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
21158         stores on targets with efficient unaligned VSX accesses is almost
21159         always the same as the cost of an aligned load or store, so model
21160         it that way.
21161         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
21162         unaligned vectors if we have efficient unaligned VSX accesses.
21163         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
21164         undocumented option.
21166 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21168         Revert:
21169         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
21171         * config.gcc (LIBC_MUSL): New tm_defines macro.
21172         * config/linux.h (OPTION_MUSL): Define.
21173         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21174         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21175         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21177         * config/linux.opt (mmusl): New option.
21178         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21179         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21181         * configure: Regenerate.
21183 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
21185         * config.gcc (LIBC_MUSL): New tm_defines macro.
21186         * config/linux.h (OPTION_MUSL): Define.
21187         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
21188         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
21189         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
21191         * config/linux.opt (mmusl): New option.
21192         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
21193         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
21195         * configure: Regenerate.
21197 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
21199         * doc/invoke.texi (-fsanitize-sections): Update description.
21200         * asan.c (set_sanitized_sections): Parse incoming arg.
21201         (section_sanitized_p): Support wildcards.
21203 2015-04-22  Tom de Vries  <tom@codesourcery.com>
21205         PR tree-optimization/65823
21206         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
21207         equality between ap_copy and ap.
21209 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21211         PR target/47098
21212         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
21214 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21216         PR target/47122
21217         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
21219 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21221         PR target/55144
21222         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
21223         remove already contained t-files.
21225 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21227         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
21228         Remove unneeded forward declarations.
21229         (suitable_for_tail_call_opt_p): Commentary typo fix.
21231 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21233         * varasm.c (emit_bss): Remove redundant guard.
21235 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21237         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
21239 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21241         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
21243 2015-04-22  Hale Wang  <hale.wang@arm.com>
21244             Terry Guo  <terry.guo@arm.com>
21246         PR rtl-optimization/64818
21247         * combine.c (can_combine_p): Don't combine user-specified
21248         register if it is in an asm input.
21250 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
21252         PR ipa/65076
21253         * passes.def (early_optimizations): Add pass_dse.
21255 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21257         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
21258         * reorg.c (redundant_insn): Remove ifdef
21259         INSN_REFERENCES_ARE_DELAYED.
21260         * resource.c (mark_referenced_resources): Likewise.
21262 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21264         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
21265         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
21266         * resource.c (mark_set_resources): Likewise.
21268 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21270         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
21271         * cfgcleanup.c (flow_find_cross_jump): Likewise.
21272         (flow_find_head_matching_sequence): Likewise.
21273         (try_head_merge_bb): Likewise.
21274         * combine.c (can_combine_p): Likewise.
21275         (try_combine): Likewise.
21276         (distribute_notes): Likewise.
21277         * df-problems.c (can_move_insns_across): Likewise.
21278         * final.c (final): Likewise.
21279         * gcse.c (insert_insn_end_basic_block): Likewise.
21280         * ira.c (find_moveable_pseudos): Likewise.
21281         * reorg.c (try_merge_delay_insns): Likewise.
21282         (fill_simple_delay_slots): Likewise.
21283         (fill_slots_from_thread): Likewise.
21284         * sched-deps.c (sched_analyze_2): Likewise.
21286 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21288         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
21289         PIC_OFFSET_TABLE_REGNUM.
21291 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21293         * alias.c (init_alias_target): Remove ifdef
21294         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
21295         * df-scan.c (df_insn_refs_collect): Likewise.
21296         (df_get_regular_block_artificial_uses): Likewise.
21297         (df_get_eh_block_artificial_uses): Likewise.
21298         (df_get_entry_block_def_set): Likewise.
21299         (df_get_exit_block_use_set): Likewise.
21300         * emit-rtl.c (gen_rtx_REG): Likewise.
21301         * ira.c (ira_setup_eliminable_regset): Likewise.
21302         * reginfo.c (init_reg_sets_1): Likewise.
21303         * regrename.c (rename_chains): Likewise.
21304         * reload1.c (reload): Likewise.
21305         (eliminate_regs_in_insn): Likewise.
21306         * resource.c (mark_referenced_resources): Likewise.
21307         (init_resource_info): Likewise.
21309 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21311         * defaults.h (MASK_RETURN_ADDR): New definition.
21312         * except.c (expand_builtin_extract_return_addr): Remove ifdef
21313         MASK_RETURN_ADDR.
21315 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21317         * defaults.h (RETURN_ADDR_OFFSET): New definition.
21318         * except.c (expand_builtin_extract_return_addr): Remove ifdef
21319         RETURN_ADDR_OFFSET.
21320         (expand_builtin_frob_return_addr): Likewise.
21322 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21324         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
21325         (try_redirect_by_replacing_jump): Likewise.
21326         (rtl_tidy_fallthru_edge): Likewise.
21327         * combine.c (insn_a_feeds_b): Likewise.
21328         (find_split_point): Likewise.
21329         (simplify_set): Likewise.
21330         * cprop.c (cprop_jump): Likewise.
21331         * cse.c (cse_extended_basic_block): Likewise.
21332         * df-problems.c (can_move_insns_across): Likewise.
21333         * function.c (emit_use_return_register_into_block): Likewise.
21334         * haifa-sched.c (sched_init): Likewise.
21335         * ira.c (find_moveable_pseudos): Likewise.
21336         * loop-invariant.c (find_invariant_insn): Likewise.
21337         * lra-constraints.c (curr_insn_transform): Likewise.
21338         * postreload.c (reload_combine_recognize_const_pattern):
21339         * Likewise.
21340         * reload.c (find_reloads): Likewise.
21341         * reorg.c (delete_scheduled_jump): Likewise.
21342         (steal_delay_list_from_target): Likewise.
21343         (steal_delay_list_from_fallthrough): Likewise.
21344         (redundant_insn): Likewise.
21345         (fill_simple_delay_slots): Likewise.
21346         (fill_slots_from_thread): Likewise.
21347         (delete_computation): Likewise.
21348         * sched-rgn.c (add_branch_dependences): Likewise.
21350 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21352         * genconfig.c (main): Always define HAVE_cc0.
21353         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
21354         HAVE_cc0.
21355         * cfgcleanup.c (flow_find_cross_jump): Likewise.
21356         (flow_find_head_matching_sequence): Likewise.
21357         (try_head_merge_bb): Likewise.
21358         * cfgrtl.c (rtl_merge_blocks): Likewise.
21359         (try_redirect_by_replacing_jump): Likewise.
21360         (rtl_tidy_fallthru_edge): Likewise.
21361         * combine.c (do_SUBST_MODE): Likewise.
21362         (insn_a_feeds_b): Likewise.
21363         (combine_instructions): Likewise.
21364         (can_combine_p): Likewise.
21365         (try_combine): Likewise.
21366         (find_split_point): Likewise.
21367         (subst): Likewise.
21368         (simplify_set): Likewise.
21369         (distribute_notes): Likewise.
21370         * cprop.c (cprop_jump): Likewise.
21371         * cse.c (cse_extended_basic_block): Likewise.
21372         * df-problems.c (can_move_insns_across): Likewise.
21373         * final.c (final): Likewise.
21374         (final_scan_insn): Likewise.
21375         * function.c (emit_use_return_register_into_block): Likewise.
21376         * gcse.c (insert_insn_end_basic_block): Likewise.
21377         * haifa-sched.c (sched_init): Likewise.
21378         * ira.c (find_moveable_pseudos): Likewise.
21379         * loop-invariant.c (find_invariant_insn): Likewise.
21380         * lra-constraints.c (curr_insn_transform): Likewise.
21381         * optabs.c (prepare_cmp_insn): Likewise.
21382         * postreload.c (reload_combine_recognize_const_pattern):
21383         * Likewise.
21384         * reload.c (find_reloads): Likewise.
21385         (find_reloads_address_1): Likewise.
21386         * reorg.c (delete_scheduled_jump): Likewise.
21387         (steal_delay_list_from_target): Likewise.
21388         (steal_delay_list_from_fallthrough): Likewise.
21389         (try_merge_delay_insns): Likewise.
21390         (redundant_insn): Likewise.
21391         (fill_simple_delay_slots): Likewise.
21392         (fill_slots_from_thread): Likewise.
21393         (delete_computation): Likewise.
21394         (relax_delay_slots): Likewise.
21395         * sched-deps.c (sched_analyze_2): Likewise.
21396         * sched-rgn.c (add_branch_dependences): Likewise.
21398 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21400         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
21401         that is trivially ded on non cc0 targets.
21402         (simplify_set): Likewise.
21403         (mark_used_regs_combine): Likewise.
21404         * cse.c (new_basic_block): Likewise.
21405         (fold_rtx): Likewise.
21406         (cse_insn): Likewise.
21407         (cse_extended_basic_block): Likewise.
21408         (set_live_p): Likewise.
21409         * rtlanal.c (canonicalize_condition): Likewise.
21410         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21412 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21414         * conditions.h: Define macros even if HAVE_cc0 is undefined.
21415         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
21416         * final.c: Likewise.
21417         * jump.c: Likewise.
21418         * recog.c: Likewise.
21419         * recog.h: Declare functions even when HAVE_cc0 is undefined.
21420         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
21422 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21424         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
21425         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
21426         * builtins.c (expand_builtin): Remove check if
21427         EH_RETURN_DATA_REGNO is defined.
21428         * df-scan.c (df_bb_refs_collect): Likewise.
21429         (df_get_exit_block_use_set): Likewise.
21430         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21431         * ira-lives.c (process_bb_node_lives): Likewise.
21432         * lra-lives.c (process_bb_lives): Likewise.
21434 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
21436         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
21437         FIRST_PSEUDO_REG): New.
21438         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
21439         (ARG_POINTER_REGNUM): Define to ARGP_REG.
21440         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
21441         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
21442         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
21443         (FIRST_INT_REG): New.
21444         (LAST_INT_REG): New.
21445         (FIRST_*_REG): Define using *_REG.
21446         (LAST_*_REG): Ditto.
21447         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
21448         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
21449         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
21451 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21453         * expmed.c: (synth_mult): Only assume overlapping
21454         shift with previous steps in alg_sub_t_m2 case.
21456 2015-04-21  Richard Biener  <rguenther@suse.de>
21458         PR tree-optimization/65650
21459         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
21460         transitions involving copies.
21461         (set_lattice_value): Adjust for copy lattice state.
21462         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
21463         if that doesn't dominate the merge point.
21464         (bit_value_unop): Adjust what we treat as varying mask.
21465         (bit_value_binop): Likewise.
21466         (bit_value_assume_aligned): Likewise.
21467         (evaluate_stmt): When we simplified to a SSA name record a copy
21468         instead of dropping to varying.
21469         (visit_assignment): Simplify.
21471         * gimple-match.h (gimple_simplify): Add another callback.
21472         * gimple-fold.c (fold_stmt_1): Adjust caller.
21473         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
21474         for the 2nd callback.
21475         * gimple-match-head.c (gimple_simplify): Add a callback that is
21476         used to valueize the stmt operands and use it that way.
21478 2015-04-21  Richard Biener  <rguenther@suse.de>
21480         PR tree-optimization/65788
21481         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
21483 2015-04-21  Richard Biener  <rguenther@suse.de>
21485         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
21486         vec_construct cost by vec_stmt_cost.
21488 2015-04-21  Richard Biener  <rguenther@suse.de>
21490         * cfghooks.h (create_basic_block): Replace with two overloads
21491         for RTL and GIMPLE.
21492         (split_block): Likewise.
21493         * cfghooks.c (split_block): Rename to ...
21494         (split_block_1): ... this.
21495         (split_block): Add two type-safe overloads for RTL and GIMPLE.
21496         (split_block_after_labels): Call split_block_1.
21497         (create_basic_block): Rename to ...
21498         (create_basic_block_1): ... this.
21499         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
21500         (create_empty_bb): Call create_basic_block_1.
21501         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
21502         split_block_after_labels.
21503         * omp-low.c (expand_parallel_call): Likewise.
21504         (expand_omp_target): Likewise.
21505         (simd_clone_adjust): Likewise.
21506         * tree-chkp.c (chkp_get_entry_block): Likewise.
21507         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
21508         create_basic_block overload.
21509         (cgraph_node::expand_thunk): Likewise.
21510         * tree-cfg.c (make_blocks): Likewise.
21511         (handle_abnormal_edges): Likewise.
21512         * tree-inline.c (copy_bb): Likewise.
21514 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21516         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
21517         New pattern.
21518         (*xor_one_cmplsidi3_ze): Likewise.
21520 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21522         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
21523         use df_remove_problem rather than manually removing problems, leaving
21524         holes in df->problems_in_order[].
21526 2015-04-21  Tom de Vries  <tom@codesourcery.com>
21528         PR tree-optimization/65802
21529         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
21531 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21533         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
21534         Increase to 128.
21535         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
21536         at '.'.  Assert that there's enough space for everything.
21538 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
21540         PR tree-optimization/64950
21541         Revert:
21542         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
21544         PR target/41089
21545         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
21546         as volatile.
21548 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
21550         PR rtl-optimization/64916
21551         * cfgcleanup.c (values_equal_p): New function.
21552         (can_replace_by): Use it.
21554 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
21556         PR c++/65801
21557         * doc/invoke.texi ([-Wnarrowing]): Update.
21559 2015-04-20  Jeff Law  <law@redhat.com>
21561         PR tree-optimization/65658
21562         * tree-ssa-threadupdate.c (redirection_block_p): Remove
21563         redundant test for GIMPLE_ASSIGN in last change.
21565 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
21567         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
21568         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
21569         (legitimize_tls_address): Ditto.
21570         (ix86_expand_move): Ditto.
21571         (ix86_expand_binary_operator): Remove reload_in_progress checks.
21572         (ix86_expand_unary_operator): Ditto.
21573         * config/i386/predicates.md (index_register_operand): Ditto.
21575 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
21577         * reorg.c (try_merge_delay_insns): Improve correctness checking
21578         for targets with multiple delay slots.
21580 2015-04-20  Jeff Law  <law@redhat.com>
21582         PR tree-optimization/65658
21583         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
21584         statements too.
21586 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
21588         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
21589         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
21590         Delete.
21592 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
21594         PR debug/65807
21595         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
21597 2015-04-20  Richard Biener  <rguenther@suse.de>
21599         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
21600         * gimple-fold.c (gimple_build_valueize): New function.
21601         (gimple_build): Always use gimple_build_valueize as valueize hook.
21603 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
21605         PR target/64134
21606         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
21607         and overwrite variable parts if <= 1/2 the elements are variable.
21609 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
21611         PR rtl-optimization/65805
21612         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
21613         Don't use difference of offset and previous offset if
21614         update_sp_offset is non-zero.
21615         (eliminate_regs_in_insn): Ditto.
21616         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
21617         lra_eliminate_regs_1 call.
21618         * lra-constraints.c (get_equiv_with_elimination): Ditto.
21620 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
21622         * hash-table.h: Remove version of hash_table that stored value_type *.
21623         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
21624         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
21625         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
21626         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
21627         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
21628         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
21629         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
21630         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
21631         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
21632         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
21633         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
21634         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
21635         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
21636         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
21637         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
21638         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
21640 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21641             Jakub Jelinek  <jakub@redhat.com>
21643         PR target/65787
21644         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
21645         subsequent SH_NONE operand does not overwrite an existing *special
21646         value.
21647         (adjust_extract): Handle case where a vec_extract operation is
21648         wrapped in a PARALLEL.
21650 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21652         PR target/65780
21653         * config/i386/i386.c (ix86_binds_local_p): Define only if
21654         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
21656 2015-04-17  Jeff Law  <law@redhat.com>
21658         PR tree-optimization/47679
21659         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
21660         * tree-ssa-scopedtables.c: New file.
21661         * tree-ssa-scopedtables.h: New file.
21662         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
21663         (const_and_copies): Change name/type.
21664         (record_const_or_copy): Move into tree-ssa-scopedtables.c
21665         (record_const_or_copy_1): Similarly.
21666         (restore_vars_to_original_value): Similarly.
21667         (pass_dominator::execute): Create and destroy const_and_copies table.
21668         (thread_across_edge): Update passing of const_and_copies.
21669         (record_temporary_equivalence): Use method calls rather than
21670         manipulating const_and_copies directly.
21671         (record_equality, cprop_into_successor_phis): Similarly.
21672         (dom_opt_dom_walker::before_dom_children): Similarly.
21673         (dom_opt_dom_walker::after_dom_children): Similarly.
21674         (eliminate_redundant_computations): Similarly.
21675         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
21676         (record_temporary_equivalence): Likewise.
21677         (invalidate_equivalences): Likewise.
21678         (record_temporary_equivalences_from_phis): Update due to type
21679         change of const_and_copies.  Use method calls rather than
21680         manipulating the stack directly.
21681         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
21682         (thread_through_normal_block, thread_across_edge): Likewise.
21683         (thread_across_edge): Likewise.
21684         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
21685         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
21686         of equiv_stack.
21687         (identify_jump_threads): Update due to type change of equiv_stack.
21688         (finalize_jump_threads): Delete the equiv_stack when complete.
21690 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
21692         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
21693         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
21694         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
21696 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
21698         PR target/65535
21699         * config.gcc: Exit with a comment when we do not have a major version
21700         number for the FreeBSD target.
21702 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
21704         PR target/65689
21705         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
21706         maybe_allows_mem bitfields.
21707         (maybe_allows_none_start, maybe_allows_none_end,
21708         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
21709         maybe_allows_mem_end): New variables.
21710         (compute_maybe_allows): New function.
21711         (add_constraint): Use it to initialize maybe_allows_reg and
21712         maybe_allows_mem fields.
21713         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
21714         is_address constraints such that those that allow neither mem nor
21715         reg come first, then those that only allow reg but not mem, then
21716         those that only allow mem but not reg, then the rest.
21717         (write_allows_reg_mem_function): New function.
21718         (write_tm_preds_h): Call it.
21719         * stmt.c (parse_output_constraint, parse_input_constraint): Use
21720         the generated insn_extra_constraint_allows_reg_mem function
21721         instead of always setting *allows_reg = true; *allows_mem = true;
21722         for unknown extra constraints.
21724 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21726         PR target/65780
21727         * output.h (default_binds_local_p_3): New.
21728         * varasm.c (default_binds_local_p_3): Make it public.  Take an
21729         argument to indicate if common symbol may be local.  If common
21730         symbol may be local, treat non-external variable as defined
21731         locally.
21732         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
21733         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
21734         * config/i386/i386.c (ix86_binds_local_p): New.
21735         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
21736         ix86_binds_local_p.
21738 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
21740         PR debug/65771
21741         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
21742         trying mem_loc_descriptor on XEXP (rtl, 0).
21744 2015-04-17  Martin Liska  <mliska@suse.cz>
21746         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
21747         Release symbol_compare_collection.
21748         * ipa-reference.c: Add TODO that a vector should be released.
21750 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
21752         PR target/65296
21753         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
21754         to new AVR-LibC file layout (bug #44574).
21755         (*avrlibc_devicelib): Same.
21756         * config/avr/avr-mcus.def: Adjust comments.
21757         * config/avr/avr.opt (nodevicelib): Adjust help.
21759 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
21761         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
21763 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
21765         PR c++/64527
21766         * gimplify.c (gimplify_init_constructor): Always emit a
21767         side-effecting constructor.
21769 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21771         PR tree-optimization/64950
21772         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
21773         in cfun->curr_properties.
21774         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
21775         if we generate an IFN_VA_ARG.
21776         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
21777         function if PROP_gimple_lva is not set in src function.
21779 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21780             Michael Matz  <matz@suse.de>
21782         PR tree-optimization/64950
21783         * gimple-iterator.c (update_modified_stmts): Remove static.
21784         * gimple-iterator.h (update_modified_stmts): Declare.
21785         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
21786         (gimplify_va_arg_internal): New function.
21787         (gimplify_va_arg_expr): Use IFN_VA_ARG.
21788         * gimplify.h (gimplify_va_arg_internal): Declare.
21789         * internal-fn.c (expand_VA_ARG): New unreachable function.
21790         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
21791         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
21792         (expand_ifn_va_arg): New function.
21793         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
21794         (pass_stdarg::execute): Call expand_ifn_va_arg.
21795         (pass_data_lower_vaarg): New pass_data.
21796         (pass_lower_vaarg): New gimple_opt_pass.
21797         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
21798         (make_pass_lower_vaarg): New function.
21799         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
21800         properties_required field.
21801         * passes.def (all_passes): Add pass_lower_vaarg.
21802         * tree-pass.h (PROP_gimple_lva): Add define.
21803         (make_pass_lower_vaarg): Declare.
21805 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21807         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
21808         * calls.c (call_expr_flags): Same.
21810 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21812         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
21813         (pass_stdarg::execute): ... here.
21815 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21816             Michael Matz  <matz@suse.de>
21818         * tree-cfg.c (make_blocks_1): Factor out of ...
21819         (make_blocks): ... here.
21820         (make_edges_bb): Factor out of ...
21821         (make_edges): ... here.
21822         (gimple_find_sub_bbs): New function.
21823         * tree-cfg.h (gimple_find_sub_bbs): Declare.
21825 2015-04-17  Tom de Vries  <tom@codesourcery.com>
21827         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
21829 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
21831         * asan.c (set_sanitized_sections): New function.
21832         (section_sanitized_p): Ditto.
21833         (asan_protect_global): Optionally sanitize user-defined
21834         sections.
21835         * asan.h (set_sanitized_sections): Declare new function.
21836         * common.opt (fsanitize-sections): New option.
21837         * doc/invoke.texi (-fsanitize-sections): Document new option.
21838         * opts-global.c (handle_common_deferred_options): Handle new
21839         option.
21841 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
21843         PR debug/65771
21844         * dwarf2out.c (loc_list_from_tree): Return NULL
21845         for DEBUG_EXPR_DECL.
21847 2015-04-17  Christian Bruel  <christian.bruel@st.com>
21849         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
21850         same attributes.
21852 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21854         * ira-color.c (setup_left_conflict_sizes_p): Do not process
21855         node itself when computing left conflict subnode size.
21857 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
21859         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
21860         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
21861         *fop_<mode>_1_sse using enabled attribute.  Use
21862         register_mixssei387nonimm_operand operand 1 predicate. Change
21863         alternative 3 constraints from "x" to "v".
21865 2015-04-16  Richard Biener  <rguenther@suse.de>
21867         PR tree-optimization/65774
21868         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
21869         bit-value tracking on.
21871 2015-04-16  Richard Biener  <rguenther@suse.de>
21873         PR tree-optimization/64277
21874         * tree-vrp.c (check_array_ref): Fix anti-range handling,
21875         simplify upper bound handling.
21876         (search_for_addr_array): Simplify.
21877         (check_array_bounds): Handle ADDR_EXPRs here.
21878         (check_all_array_refs): Simplify.
21880 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
21882         * config/i386/i386.c (print_reg): Rewrite function.
21884 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21886         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
21887         Invert the condition.
21889 2015-04-16  Renlin Li  <renlin.li@arm.com>
21891         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
21892         simplifications for UNSIGNED_FLOAT.
21894 2015-04-16  Nick Clifton  <nickc@redhat.com>
21896         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
21897         MUL_UNINIT.
21898         (enum rl78_cpu_type): New.
21899         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
21900         (umulhi3_shift_virt): Remove m constraint from operand 1.
21901         (umulqihi3_virt): Likewise.
21902         * config/rl78/rl78.c (rl78_option_override): Add code to process
21903         -mcpu and -mmul options.
21904         (rl78_alloc_physical_registers): Add code to handle divhi and
21905         divsi valloc attributes.
21906         (set_origin): Likewise.
21907         * config/rl78/rl78.h (RL78_MUL_G14): Define.
21908         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
21909         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
21910         __RL78_Gxx__.
21911         (ASM_SPEC): Pass -mcpu on to assembler.
21912         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
21913         (mulqi3_rl78): Likewise.
21914         (mulhi3_g13): Likewise.
21915         (mulhi3): Generate the G13 or G14 versions of the insn directly.
21916         (mulsi3): Likewise.
21917         (mulhi3_g14): Add clobbers of AX and BC.
21918         (mulsi3_g14): Likewise.
21919         (mulsi3_g13): Likewise.
21920         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
21921         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
21922         * config/rl78/rl78.opt (mmul): Initialise value to
21923         RL78_MUL_UNINIT.
21924         (mcpu): New option.
21925         (m13, m14, mrl78): New option aliases.
21926         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
21927         (MULTILIB_DIRNAMES): Add g13 and g14.
21928         * doc/invoke.texi: Document -mcpu and -mmul options.
21930 2015-04-16  Richard Biener  <rguenther@suse.de>
21932         * tree-ssa-ccp.c (likely_value): See if we have operands that
21933         are marked as never simulate again and return CONSTANT in this
21934         case.
21935         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
21936         not have any operands that will be simulated again as
21937         not being simulated again.
21939 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
21941         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
21942         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
21943         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
21944         attribute.
21945         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
21946         enabled attribute.
21947         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
21948         *float<SWI48:mode><MODEF:mode>2_sse.
21949         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
21950         enabled attribute.
21951         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
21952         enabled attribute.
21954 2015-04-15  Tom de Vries  <tom@codesourcery.com>
21956         PR other/65487
21957         * function.c (push_dummy_function): New function.
21958         (init_dummy_function_start): Use push_dummy_function.
21959         (pop_dummy_function): New function.  Factored out of ...
21960         (expand_dummy_function_end): ... here.
21961         * function.h (push_dummy_function, pop_dummy_function): Declare.
21962         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
21963         pop_dummy_function.
21964         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
21966 2015-04-15  Jeff Law  <law@redhat.com>
21968         PR tree-optimization/47679
21969         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
21970         need for forward declaration in upcoming changes.
21971         (record_conditions, record_edge_info): Likewise.
21973         PR rtl-optimization/42522
21974         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
21975         SIGN_EXTRACT as a whole object rather than simplifying
21976         its operand.
21978 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
21980         PR ipa/65765
21981         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
21982         and GIMPLE_PREDICT use break instead of return true. For
21983         GIMPLE_EH_DISPATCH, compare dispatch region.
21985 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
21987         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
21988         details about the implementation.  Make clear preference for
21989         __atomic builtins.  Reduce possibility of future change.
21991 2015-04-15  Nick Clifton  <nickc@redhat.com>
21993         * config/rx/rx.opt (mallow-string-insns): New option.
21994         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
21995         builtin if string instructions are denied.
21996         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
21997         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
21998         appropriate.
21999         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
22000         * config/rx/rx.md (movstr): Enable pattern only if string
22001         instructions are allowed.
22002         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
22003         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
22004         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
22005         (MULTILIB_DIRNAMES): Add no-strings.
22006         * doc/invoke.texi: Document -mno-allow-string-insns.
22008 2015-04-15  Alan Modra  <amodra@gmail.com>
22010         PR target/65408
22011         PR target/58744
22012         PR middle-end/36043
22013         * calls.c (load_register_parameters): Don't load past end of
22014         mem unless suitably aligned.
22016 2015-04-15  Nick Clifton  <nickc@redhat.com>
22018         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
22019         decrement instruction as being frame related.
22020         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
22021         based addresses.
22022         If zero extending a function address enclose the operation in
22023         %code(...).
22024         (rl78_preferred_reload_class): New function.
22025         (TARGET_PREFERRED_RELOAD_CLASS): Define.
22026         * config/rl78/rl78.md: Remove useless constraints in expanders.
22027         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
22028         (mulhi3_rl78): Likewise.
22029         (mulhi3_g13): Likewise.
22030         (mulsi3_rl78): Likewise.
22031         (es_addr): Move to before the multiply patterns.
22033 2015-04-15  Alan Modra  <amodra@gmail.com>
22035         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
22036         and sequence_stack.  Add seq.
22037         (seq_stack): Delete.
22038         * function.c (prepare_function_start): Don't access x_last_insn.
22039         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
22040         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
22041         * emit_rtl.c (start_sequence, push_topmost_sequence,
22042         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
22043         sequence accessors.
22044         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
22045         remove_insn): Likewise.  Simplify.
22046         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
22047         and pop_topmost_sequence.
22048         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
22049         debug insns.
22050         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
22052 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
22054         PR target/65729
22055         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
22056         the assertiion.
22058 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
22060         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
22061         (LEGACY_INT_REGNO_P): Ditto.
22062         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
22063         (ANY_MASK_REG_P): Remove.
22064         (BND_REG_P): Rename from ANY_BND_REG_P.
22065         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
22066         legacy integer registers.  Do not handle MMX_REG_P in a special way.
22067         Merge 64byte and 32byte SSE handling.
22069 2015-04-14  Nick Clifton  <nickc@redhat.com>
22071         * expr.c (expand_assignment): Force an address offset computation
22072         into a register before changing its mode.
22073         (expand_expr_real_1): Likewise.
22075 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
22077         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
22078         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
22079         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
22080         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
22081         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
22082         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
22083         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
22084         and __aarch64_vget_lane_any.
22086 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
22088         PR rtl-optimization/65761
22089         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
22090         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
22092 2015-04-14  Richard Biener  <rguenther@suse.de>
22094         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
22095         (graphite_can_represent_scev): Use POINTER_TYPE_P.
22097 2015-04-14  Richard Biener  <rguenther@suse.de>
22099         PR tree-optimization/65758
22100         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
22101         against -1.
22102         (ccp_lattice_meet): Likewise.
22103         (bit_value_unop): Likewise.
22104         (bit_value_binop): Likewise.
22105         (bit_value_assume_aligned): Likewise.
22107 2015-04-14  Christian Bruel  <christian.bruel@st.com>
22109         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
22110         function.
22112 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
22114         PR tree-optimization/63387
22115         * match.pd ((x unord x) | (y unord y) -> (x unord y),
22116         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
22118 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
22120         * config/i386/predicates.md (any_QIreg_operand): Rename from
22121         q_regs_operand.  Do not process subregs.
22122         (QIreg_operand): Use QI_REGNO_P predicate.
22123         (ext_QIreg_operand): Ditto.
22124         (ext_register_operand): Ditto.
22125         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
22126         (AND splitters): Ditto.
22127         (AND with -65536 splitter): Add SWI48 mode for operand 0.
22128         (AND with -256 splitter): Use any_QIreg_operand predicate and
22129         SWI248 mode for operand 0.
22130         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
22131         mode for operand 0.
22132         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
22134 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
22136         * doc/plugins.texi: Rewrite first introductory paragraph.
22138 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
22140         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
22141         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
22143 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
22145         * ipa-profie.c (ipa_profile): Check number of parameters
22146         and possible polymorphic call targets before
22147         devirtualizing.
22149 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
22151         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
22152         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
22154 2015-04-13  Richard Biener  <rguenther@suse.de>
22156         PR tree-optimization/65204
22157         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
22158         takens for bit-CCP.
22160 2015-04-13  Richard Biener  <rguenther@suse.de>
22162         PR target/65660
22163         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
22164         and cond_not_taken_branch_cost to 4 and 2.
22165         (bdver2_cost): Likewise.
22166         (bdver3_cost): Likewise.
22167         (bdver4_cost): Likewise.
22169 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
22171         * hash-table.h (hash_table constructor): Add mem stats.
22172         (alloc_entries): Likewise.
22174 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
22176         * ipa-cp.c (ipcp_driver): Relase prev_edge.
22177         * passes.c (execute_one_pass): Only add transform if pass has one.
22179 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
22181         * config/i386/i386.c (ix86_option_override_internal): Don't set
22182         -fprefetch-loop-arrays if optimizing for size.
22184 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
22185             Gerald Pfeifer  <gerald@pfeifer.com>
22187         * doc/contrib.texi (Contributors): Add Martin Jambor and
22188         Michael Matz.
22190 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
22192         * BASE-VER: Set to 6.0.0.
22194         PR tree-optimization/65747
22195         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
22196         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
22198 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
22200         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
22201         sentence.  Improve grammar.
22203 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
22205         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
22207 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
22209         PR ipa/65743
22210         * ipa-inline-transform.c (speculation_removed): Remove static var.
22211         (check_speculations): New function.
22212         (clone_inlined_nodes): Do not check spculations.
22213         (inline_call): Call check_speculations.
22214         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
22215         consider non-invariants.
22217 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
22218             Martin Liska  <mliska@suse.cz>
22220         PR ipa/65722
22221         * ipa-icf.c (sem_item::compare_cgraph_references): function and
22222         variable can not match.
22223         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
22224         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
22226 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
22228         PR tree-optimization/65735
22229         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
22230         Remove visited_phis argument, add visited_bbs, avoid recursing into the
22231         same bb rather than just into the same phi node.
22232         (thread_through_normal_block): Adjust caller.
22234 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
22236         * doc/contrib.texi (Contributors): Add Ira Rosen.
22238 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
22240         * gcov.c (find_source): Fix miswording in error message.
22241         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
22242         (ix86_expand_sse_comi_round): Fix typo in error message.
22244 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
22246         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
22248 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
22250         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
22252 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
22254         PR target/65710
22255         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
22256         Print bad_spills_num and insn_pseudos_num.
22258 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22260         PR target/65694
22261         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
22262         when creating +1 values for SImode.
22264 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
22266         PR target/65729
22267         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
22268         assert.
22270 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
22271             Iain Sandoe  <iain@codesourcery.com>
22273         PR target/65351
22274         * configure: Regenerate.
22276 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
22278         PR target/65671
22279         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
22281 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
22283         * doc/contrib.texi (Contributors): Add John Marino.
22285 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
22287         PR tree-optimization/65709
22288         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
22289         TREE_TYPE (TREE_TYPE (t)).
22291 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
22293         PR target/65710
22294         * lra-int.h (lra_bad_spill_regno_start): New.
22295         * lra.c (lra_bad_spill_regno_start): New.
22296         (lra): Set up lra_bad_spill_regno_start.  Set up
22297         lra_constraint_new_regno_start unconditionally.
22298         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
22299         spill preferences.
22301 2015-04-09  Marek Polacek  <polacek@redhat.com>
22302             Jakub Jelinek  <jakub@redhat.com>
22304         PR middle-end/65554
22305         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
22306         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
22307         of STRIP_NOPS.
22309 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
22311         PR rtl-optimization/65693
22312         * combine.c (is_parallel_of_n_reg_sets): Move outside of
22313         #ifndef HAVE_cc0.
22315 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
22317         PR target/65296
22318         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
22319         device specs file if "device-specs%s" didn't resolve to a path.
22321 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
22323         PR target/65676
22324         * config/i386/i386.c (fixup_modeless_constant): New.
22325         (ix86_expand_args_builtin): Fixup modeless constant operand.
22326         (ix86_expand_round_builtin): Ditto.
22327         (ix86_expand_special_args_builtin): Ditto.
22328         (ix86_expand_builtin): Ditto.
22330 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
22332         PR target/65693
22333         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
22334         any pow2 integer in between 2 and 0x80000000U inclusive.
22336 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
22338         PR rtl-optimization/65693
22339         * combine.c (is_parallel_of_n_reg_sets): Change first argument
22340         from an rtx_insn * to an rtx.
22341         (try_combine): Adjust both callers.  Use it once more.
22343 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
22345         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
22346         (chkp_make_static_const_bounds): Search existing
22347         symbol by assembler name.  Use make_decl_one_only.
22348         (chkp_get_zero_bounds_var): Remove node search which
22349         is now performed in chkp_make_static_const_bounds.
22350         (chkp_get_none_bounds_var): Likewise.
22352 2015-04-08  Michael Witten  <mfwitten@gmail.com>
22354         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
22355         to an example.
22357 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22359         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
22361 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
22363         * doc/extend.texi (__sync Builtins): Fix grammar.
22365 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22367         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
22369 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22371         * varasm.c (emit_local): Move definition of align.
22373 2015-04-08  Julian Brown  <julian@codesourcery.com>
22375         * config/nvptx/mkoffload.c (process): Support variable mapping.
22377 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
22379         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
22380         alpha_links **.
22381         (alpha_write_one_linkage): Correct typo.
22383 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
22385         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
22387 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
22389         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
22391 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
22393         * tree-chkp.h (chkp_insert_retbnd_call): New.
22394         * tree-chkp.c (chkp_insert_retbnd_call): New.
22395         * ipa-split.c (insert_bndret_call_after): Remove.
22396         (split_function): Use chkp_insert_retbnd_call.
22397         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
22398         bounds for instrumented functions.
22400 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
22402         PR ipa/65540
22403         * calls.c (initialize_argument_information): When producing tail
22404         call also turn SSA_NAMES passed by references to original PARM_DECLs
22406 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
22408         PR target/65648
22409         * lra-remat.c (do_remat): Process input and non-input insn
22410         registers separately.
22412 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
22414         PR debug/65678
22415         * valtrack.c (debug_lowpart_subreg): New function.
22416         (dead_debug_insert_temp): Use it.
22418         PR middle-end/65680
22419         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
22420         into signed HOST_WIDE_INT the same as negative bit_offset.
22422 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
22424         * ipa-comdats.c (ipa_comdats): Visit all thunks
22425         to set proper comdat group.
22427 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22429         PR target/65489
22430         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
22431         on constants for NEON VSTRUCT modes.
22433 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
22434             Iain Sandoe  <iain@codesourcery.com>
22436         PR target/65351
22437         * configure: Regenerate.
22439 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22441         PR target/65614
22442         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
22443         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
22444         that LFD is used to load double constants instead of LFS.  Add
22445         defaults for all costs structures.  Add comments for missing
22446         initialization fields.
22447         (size32_cost): Likewise.
22448         (size64_cost): Likewise.
22449         (rs64a_cost): Likewise.
22450         (mpccore_cost): Likewise.
22451         (ppc403_cost): Likewise.
22452         (ppc405_cost): Likewise.
22453         (ppc440_cost): Likewise.
22454         (ppc476_cost): Likewise.
22455         (ppc601_cost): Likewise.
22456         (ppc603_cost): Likewise.
22457         (ppc604_cost): Likewise.
22458         (ppc604e_cost): Likewise.
22459         (ppc620_cost): Likewise.
22460         (ppc630_cost): Likewise.
22461         (ppccell_cost): Likewise.
22462         (ppc750_cost): Likewise.
22463         (ppc7450_cost): Likewise.
22464         (ppc8540_cost): Likewise.
22465         (ppce300c2c3_cost): Likewise.
22466         (ppce500mc_cost): Likewise.
22467         (ppce500mc64_cost): Likewise.
22468         (ppce5500_cost): Likewise.
22469         (ppce6500_cost): Likewise.
22470         (titan_cost): Likewise.
22471         (power4_cost): Likewise.
22472         (power6_cost): Likewise.
22473         (power7_cost): Likewise.
22474         (power8_cost): Likewise.
22475         (ppca2_cost): Likewise.
22476         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
22478         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
22479         instead of XXLOR to copy SFmode to clear out dirty bits created
22480         when SFmode denormals are generated.
22481         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
22482         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
22484 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
22486         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
22487         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
22488         * config/aarch64/aarch64-tune.md: Regenerate.
22490 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
22492         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
22493         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
22494         * config/arm/arm-cores.def (exynos-m1): New core.
22495         * config/arm/arm-tune.md: Regenerate.
22496         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
22497         * config/arm/bpabi.h: Likewise.
22499 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
22501         * ipa-cp (set_single_call_flag): Remove too
22502         restrictive assert.
22504 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
22506         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
22507         GOMP_offload_unregister from the destructor.
22509 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
22511         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
22512         flags for instrumentation thunk.
22513         (chkp_produce_thunks): Likewise.
22515 2015-04-05  Martin Liska  <mliska@suse.cz>
22517         PR ipa/65665
22518         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
22519         has computed data structure.
22520         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22522 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
22524         * invoke.texi (inline-unit-growth): Increase growth to 20%
22525         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
22527 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22529         PR target/65647
22530         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
22531         value checking.
22532         (lra_rematerialization_iter): New.
22533         * lra.c (lra): Initialize lra_rematerialization_iter.
22534         Stop updating lra_constraint_new_regno_start after switching of
22535         inheritance and rematerialization.
22536         * lra-remat.c (lra_rematerialization_iter): New.
22537         (lra_remat): Add printing pass iteration.  Do rematerialization
22538         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
22540 2015-04-04  Richard Biener  <rguenther@suse.de>
22542         PR tree-optimization/64909
22543         PR tree-optimization/65660
22544         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
22545         to take a cost vector for scalar iteration cost.
22546         (vect_get_single_scalar_iteration_cost): Likewise.
22547         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
22548         Compute the scalar iteration cost into a cost vector.
22549         (vect_get_known_peeling_cost): Use the scalar cost vector to
22550         account for the cost of the peeled iterations.
22551         (vect_estimate_min_profitable_iters): Likewise.
22552         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
22553         Likewise.
22555 2015-04-04  Alan Modra  <amodra@gmail.com>
22557         PR target/65576
22558         PR target/65240
22559         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
22560         0.0 constant unless TARGET_VSX.
22561         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
22562         alternative.
22564 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
22566         PR ipa/65654
22567         * ipa-inline-transform.c (inline_call): Skip sanity check to work
22568         around the ICE
22570 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
22572         PR ipa/65655
22573         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
22574         speculative indirect edges to avoid ordering issue.
22576 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
22578         PR ipa/65076
22579         * ipa-inline.c (edge_badness): Add combined size to the denominator.
22581 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
22583         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
22584         TYPE_ARTIFICIAL on the .omp_data* types.
22586 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22588         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
22589         instrumentation thunks.
22591 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22593         * config/i386/i386.c (ix86_expand_call): Avoid nested
22594         PARALLEL in returned call value.
22596 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22598         * lto-cgraph.c (input_cgraph_1): Always link instrumented
22599         assembler name with original one.
22601 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
22603         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
22605 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
22607         Revert parts of r216820.
22608         * config/i386/i386.md (movqi_internal): Correct type calculation
22609         for alternatives 3 and 5.
22611 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
22613         PR preprocessor/61977
22614         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
22615         predefine __vector/__bool/__pixel macros nor context sensitive
22616         macros for CLK_ASM.
22617         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
22619 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
22621         * config/pa/pa.c (pa_output_move_double): Directly handle register
22622         indexed memory operand.  Simplify handling of scaled register indexed
22623         memory operands.
22625 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22627         PR driver/65444
22628         * config/i386/linux-common.h (MPX_SPEC): New.
22629         (CHKP_SPEC): Add MPX_SPEC.
22630         * doc/invoke.texi (-fcheck-pointer-boudns): Document
22631         possible issues with '-z bndplt' support in linker.
22633 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
22635         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
22636         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
22637         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
22638         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
22639         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
22641 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
22643         * config/i386/sync.md (UNSPEC_MOVA): Remove.
22644         (atomic_load<mode>): Change operand 0 predicate to
22645         nonimmediate_operand and fix up the destination when needed.
22646         Use UNSPEC_LDA.
22647         (atomic_loaddi_fpu): Use UNSPEC_LDA.
22648         (atomic_store<mode>): Change operand 1 predicate to
22649         nonimmendate_operand and move the source to register when needed.
22650         Use UNSPEC_STA.
22651         (atomic_store<mode>_1): Use UNSPEC_STA.
22652         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
22653         Fix moves from memory operand.  Use UNSPEC_STA.
22655 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22657         * expmed.c (strict_volatile_bitfield_p): Check that the access will
22658         not cross a MODESIZE boundary.
22659         (store_bit_field, extract_bit_field): Added assertions in the
22660         strict volatile bitfields code path.
22662 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22664         PR target/65624
22665         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
22666         Increase args array size by one to avoid buffer overflow.
22668 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
22670         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22671         split_part.
22672         * ipa-inline.c (edge_badness): Add wrapper penalty.
22673         (sum_callers): Move up.
22674         (inline_small_functions): Set single_caller.
22675         * ipa-inline.h (inline_summary): Add single_caller.
22676         * ipa-split.c (split_function): Set split_part.
22677         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
22678         * cgraph.h (cgraph_node): Add split_part.
22680 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
22682         PR target/58945
22683         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
22684         Do not split operands 0 and operands 2 to halfmode.
22685         (atomic_compare_and_swap<mode>): Update for
22686         atomic_compare_and_swap<dwi>_doubleword changes.
22688 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
22690         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
22691         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
22692         no caching is done.
22694 2015-03-31  Martin Liska  <mliska@suse.cz>
22696         PR ipa/65557
22697         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
22698         has already filled up function summary.
22699         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
22701 2015-03-31  Richard Biener  <rguenther@suse.de>
22703         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
22704         of types.
22706 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22708         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
22709         nested functions.
22710         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
22711         (s390_asm_output_function_label): Adapt to new signature of
22712         s390_function_num_hotpatch_hw
22713         Optimise the code generating assembler output.
22714         Add comments to assembler file.
22716 2015-03-31  Richard Biener  <rguenther@suse.de>
22718         PR middle-end/65626
22719         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
22720         of the noreturn call so it is last and cleanup_control_flow_bb
22721         can do the CFG part.
22723 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
22725         PR target/65531
22726         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
22727         same_comdat_group for external symbols.
22728         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
22729         infinite same_comdat_group traversal loop.
22731 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
22733         PR plugins/61176
22734         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
22735         automatically to $headers.
22737 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
22739         PR ipa/65610
22740         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
22741         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
22742         function.
22743         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
22744         Use it.
22745         * ipa-prop.c (param_type_may_change_p): Likewise.
22746         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
22747         (remove_unused_scope_block_p): Add in_ctor_dtor_block
22748         argument.  Before inlining, preserve
22749         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
22750         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
22751         recursive calls.
22752         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
22754 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
22756         PR ipa/65076
22757         * ipa-inline.c (edge_badness): Base denominator on callee's
22758         grwoth squared.
22760 2015-03-27  Martin Jambor  <mjambor@suse.cz>
22762         PR ipa/65478
22763         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
22764         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
22765         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
22766         node_calling_single_call.
22767         * ipa-cp.c (count_callers): New function.
22768         (set_single_call_flag): Likewise.
22769         (initialize_node_lattices): Count callers and set single_flag_call if
22770         necessary.
22771         (incorporate_penalties): New function.
22772         (good_cloning_opportunity_p): Use it, dump new flags.
22773         (propagate_constants_topo): Set node_within_scc flag if appropriate.
22774         * doc/invoke.texi (ipa-cp-recursion-penalty,
22775         ipa-cp-single-call-pentalty): Document.
22777 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
22779         PR ipa/65588
22780         * symtab.c (symtab_node::get_partitioning_class): Register vars
22781         are duplicated.
22782         * varpool.c (symbol_table::output_variables) Do not assemble unefined
22783         decls for non-symbols.
22785 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22787         PR target/65248
22788         * output.h (default_binds_local_p_2): New.
22789         * varasm.c (default_binds_local_p_2): Renamed to ...
22790         (default_binds_local_p_3): This.  Don't return true on protected
22791         data symbol if protected data may be external.
22792         (default_binds_local_p): Use default_binds_local_p_3.
22793         (default_binds_local_p_1): Likewise.
22794         (default_binds_local_p_2): New.
22795         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
22796         default_binds_local_p_2 if TARGET_MACHO is undefined.
22798 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
22800         PR target/65593
22801         * config/i386/i386.c (legitimize_pic_address): If base
22802         is SYMBOL_REF or LABEL_REF using %rip addressing, force
22803         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
22805 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
22807         PR target/65531
22808         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
22809         comdat groups.
22811 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
22813         PR ipa/65600
22814         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
22815         of optimized out indirect call.
22816         (redirect_to_unreachable): Always build symbol table node for
22817         BUILT_IN_UNREACHABLE
22819 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
22821         PR target/65407
22822         * ira-costs.c (record_reg_classes): Process all constraint string
22823         containing 0-9.
22825 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
22827         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
22828         memory_operand.
22830         PR target/65052
22831         * config/c6x/constraints.md (S3): New constraint.
22832         * config/c6x/c6x.md (real_jump): Use it.
22834 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22836         PR middle-end/65595
22837         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
22838         do redirection if the call is not optimized out.
22840 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
22842         PR target/65495
22843         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
22844         (fchkp-check-incomplete-type): Add LTO.
22845         (fchkp-zero-input-bounds-for-main): Likewise.
22846         (fchkp-first-field-has-own-bounds): Likewise.
22847         (fchkp-narrow-bounds): Likewise.
22848         (fchkp-narrow-to-innermost-array): Likewise.
22849         (fchkp-use-static-bounds): Likewise.
22850         (fchkp-use-static-const-bounds): Likewise.
22851         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
22853 2015-03-27  Marek Polacek  <polacek@redhat.com>
22855         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
22857 2015-03-27  Marek Polacek  <polacek@redhat.com>
22859         PR sanitizer/65583
22860         * ubsan.c (ubsan_create_edge): New function.
22861         (instrument_bool_enum_load): Call it.
22862         (instrument_nonnull_arg): Likewise.
22863         (instrument_nonnull_return): Likewise.
22864         (instrument_object_size): Likewise.
22866 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22868         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
22869         auto_vec.
22871 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22873         PR lto/65536
22874         * lto-streamer.h (class lto_location_cache): New.
22875         (struct data_in): Add location_cache.
22876         (lto_input_location): Update prototype.
22877         (stream_input_location_now): New.
22878         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
22879         pointer to location.
22880         (stream_input_location): Update.
22881         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
22882         (warn_odr): Apply location cache before warning.
22883         (lto_input_location): Update prototype.
22884         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
22885         Use stream_input_location_now.
22886         * lto-streamer-in.c (lto_location_cache::current_cache): New static
22887         variable.
22888         (lto_location_cache::cmp_loc): New function.
22889         (lto_location_cache::apply_location_cache): New function.
22890         (lto_location_cache::accept_location_cache): New function.
22891         (lto_location_cache::revert_location_cache): New function.
22892         (lto_location_cache::input_location): New function.
22893         (lto_input_location): Do location caching.
22894         (stream_input_location_now): New function.
22895         (input_eh_region, input_struct_function_base): Use
22896         stream_input_location_now.
22897         (lto_data_in_create): use new.
22898         (lto_data_in_delete): Use delete.
22899         * tree-streamer-in.c (unpack_ts_block_value_fields,
22900         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
22901         lto_input_ts_exp_tree_pointers): Update for cached location api.
22903 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22905         PR ipa/65076
22906         * passes.def: Add pass_nothrow.
22907         * ipa-pure-const.c: (pass_data_nothrow): New.
22908         (pass_nothrow): New.
22909         (pass_nothrow::execute): New.
22910         (make_pass_nothrow): New.
22911         * tree-pass.h (make_pass_nothrow): Declare.
22913 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22915         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
22916         edge to change by speculation resolution or redirection.
22917         (edge_set_predicate): Likewise.
22918         (inline_summary_t::duplicate): Likewise.
22919         (remap_edge_summaries): Likewise.
22921 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22923         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
22924         New macros.
22925         (can_inline_edge_p): Relax option matching for always inline functions.
22927 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
22929         PR target/65561
22930         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
22931         Check operand 4 and operand 0 for equality.
22932         (avx512f_vextract<shuffletype>32x4_1_maskm):
22933         Check operand 6 and operand 0 for equality.
22934         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
22935         for equality.
22936         (vec_extract_hi_<mode>_maskm): Ditto.
22938 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22940         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
22941         dead calls back to live.
22942         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
22943         cross check to ...
22944         (cgraph_node::verify_node): ... here; verify only callee edges,
22945         not caller.
22946         * cif-code.def (CILK_SPAWN): New code.
22948 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
22950         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
22951         (edge_set_predicate): Use it to mark unreachable edges.
22952         (inline_summary_t::duplicate): Remove unnecesary code.
22953         (remap_edge_summaries): Likewise.
22954         (dump_inline_summary): Report contains_cilk_spawn.
22955         (compute_inline_parameters): Compute contains_cilk_spawn.
22956         (inline_read_section, inline_write_summary): Stream
22957         contains_cilk_spawn.
22958         * ipa-inline.c (can_inline_edge_p): Do not touch
22959         DECL_STRUCT_FUNCTION that may not be available;
22960         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
22961         remove check for callee_fun->can_throw_non_call_exceptions and
22962         replace it by optimization attribute check; check for flag_exceptions.
22963         * ipa-inline-transform.c (inline_call): Maintain
22964         DECL_FUNCTION_PERSONALITY
22965         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
22967 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
22969         PR tree-optimization/65551
22970         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
22971         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
22973 2015-03-26  Richard Biener  <rguenther@suse.de>
22975         PR middle-end/65555
22976         * tree-cfg.c (verify_gimple_call): Do not require a call to
22977         have no LHS if it wasn't recognized as control altering yet.
22979 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
22981         PR tree-optimization/64715
22982         * passes.def: Add another instance of pass_object_sizes before ccp1.
22983         * tree-object-size.c (pass_object_sizes::execute): In
22984         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
22985         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
22986         __bos result and the computed constant.  Remove redundant
22987         checks, obsoleted by gimple_call_builtin_p test.
22989         * var-tracking.c (variable_tracking_main_1): Don't track
22990         variables for targetm.no_register_allocation targets.
22992 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
22994         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
22995         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
22997 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
22999         PR target/65569
23000         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
23001         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
23002         0.0 is correctly setup.
23003         (extenddftf2_internal): Likewise.
23005 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
23007         PR tree-optimization/65177
23008         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
23009         (bb_in_bbs): New.
23010         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
23011         edges not adjacent on the path to the original code.
23013 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
23015         PR bootstrap/65537
23016         * doc/install.texi (Building a native compiler): Document new
23017         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
23018         configuration assumes that the host supports the linker plugin.
23020 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
23022         PR target/65508
23023         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
23024         chain for generated call.
23026 2015-03-25  Richard Biener  <rguenther@suse.de>
23028         * passes.c (pass_manager::execute_early_local_passes): Guard
23029         execution of pass_chkp_instrumentation_passes with
23030         flag_check_pointer_bounds.
23031         (pass_chkp_instrumentation_passes::gate): Likewise.
23033 2015-03-25  Martin Liska  <mliska@suse.cz>
23035         PR tree-optimization/65538
23036         * symbol-summary.h (function_summary::~function_summary):
23037         Relese memory for allocated summaries.
23038         (function_summary::release): New function.
23040 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
23042         PR lto/65515
23043         * lto-streamer-out.c (DFS::worklist): New struct.
23044         (DFS::worklist_vec): New data member.
23045         (DFS::next_dfs_num): Remove.
23046         (DFS::DFS): Rewritten using worklist instead of recursion,
23047         using most of code from DFS::DFS_write_tree.
23048         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
23049         pass it to DFS_write_tree calls.
23050         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
23051         quick initial checks push it into worklist_vec and return.
23053 2015-03-25  Richard Biener  <rguenther@suse.de>
23055         PR middle-end/65519
23056         * genmatch.c (expr::gen_transform): Re-write to avoid
23057         using gimple_build.
23059 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
23061         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
23063 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
23065         * config/arm/arm.opt (print_tune_info): New option.
23066         * config/arm/arm.c (arm_print_tune_info): New function.
23067         (arm_file_start): Call arm_print_tune_info.
23068         * config/arm/arm-protos.h (struct tune_params): Add comment.
23069         * doc/invoke.texi (@item -mprint-tune-info): New item.
23070         (-mtune): mention it in ARM Option Summary.
23072 2015-03-25  DJ Delorie  <dj@redhat.com>
23074         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
23075         correct clause.
23077 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
23078             Martin Liska  <mliska@suse.cz>
23080         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
23081         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
23082         (sem_item::add_type): New function.
23083         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
23084         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
23085         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
23086         (sem_function::equals_wpa): Fix typo.
23087         * ipa-icf.h (sem_item::add_type): New function.
23088         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
23089         order.
23091 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
23093         PR tree-optimization/65533
23094         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
23095         with swapped operands, call vect_free_slp_tree on
23096         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
23097         vector.
23099 2015-03-24  Richard Biener  <rguenther@suse.de>
23101         PR middle-end/65517
23102         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
23103         for fixup if necessary.
23105 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
23107         * doc/extend.texi (Function Attributes): Add @cindex entries
23108         for all attributes and regularize their format.  Delete text
23109         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
23110         information about "eightbit_data", "tiny_data", and "model"
23111         variable attributes to the Variable Attributes section.  Fix
23112         some obvious typos and copy-editing issues.
23113         (Variable Attributes, Type Attributes): Likewise add/fix
23114         @cindex entries for all attributes.
23116 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
23118         PR target/65523
23119         * tree-chkp.c (chkp_build_returned_bound): Ignore
23120         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
23122 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
23124         PR target/65505
23125         * config/sh/predicates.md (simple_mem_operand,
23126         displacement_mem_operand): Add test for reg.
23127         (short_displacement_mem_operand): Test for displacement_mem_operand
23128         before invoking sh_disp_addr_displacement.
23129         * config/sh/constraints.md (Sdd, Sra): Simplify.
23130         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
23131         Remove redundant displacement_mem_operand tests.
23133 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
23135         PR target/65296
23136         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
23137         the same -mmcu=MCU more than once.
23139 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
23141         PR bootstrap/65522
23142         * ipa-devirt.c: Remove duplicate demangle.h include.
23144         PR target/65504
23145         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
23146         on the pseudo.
23147         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
23148         REG_POINTER on *destptr after adjusting it for prologue size.
23150         PR ipa/65521
23151         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
23152         ultimate_alias_target ()->order ints instead of
23153         ultimate_alias_target () pointers.
23155 2015-03-23  Richard Biener  <rguenther@suse.de>
23157         PR tree-optimization/65518
23158         * tree-vect-stmts.c (vectorizable_load): Reject single-element
23159         interleaving cases we generate absymal code for.
23161 2015-03-23  Richard Biener  <rguenther@suse.de>
23163         PR tree-optimization/65494
23164         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
23165         matches here.
23166         (vect_analyze_slp_instance): But do that here, always and once.
23168 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23170         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
23171         adding T or multiplying by T+1 and subracting T.
23173 2015-03-22  Jeff Law  <law@redhat.com>
23175         PR rtl-optimization/64317
23176         * Makefile.in (OBJS): Add gcse-common.c
23177         * gcse.c: Include gcse-common.h
23178         (struct modify_pair_s): Move structure definition to gcse-common.h
23179         (compute_transp): Move function to gcse-common.c.
23180         (canon_list_insert): Similarly.
23181         (record_last_mem_set_info): Break out some code and put it into
23182         gcse-common.c.  Call into the new common code.
23183         (compute_local_properties): Pass additional arguments to compute_transp.
23184         * postreload-gcse.c: Include gcse-common.h and df.h
23185         (modify_mem_list_set, blocks_with_calls): New variables.
23186         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
23187         (get_bb_avail_insn): Pass in the expression index too.
23188         (alloc_mem): Allocate memory for the new bitmaps and lists.
23189         (free_mem): Free memory for the new bitmaps and lists.
23190         (insert_expr_in_table): Record a bitmap index for each entry we
23191         add to the table.
23192         (record_last_mem_set_info): Call into common code in gcse-common.c.
23193         (get_bb_avail_insn): If no available insn was found in the requested
23194         BB.  If BB has a single predecessor, see if the expression is
23195         transparent in BB and available in that single predecessor.
23196         (compute_expr_transp): New wrapper for compute_transp.
23197         (eliminate_partially_redundant_load): Pass expression's bitmap_index
23198         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
23199         (gcse_after_reload_main): If there are elements in the hash table,
23200         then compute transparency for all the elements in the hash table.
23201         * gcse-common.h: New file.
23202         * gcse-common.c: New file.
23204 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
23206         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
23207         as an adjective.
23208         (System Headers): Likewise.
23209         (Ifdef): Likewise.
23210         (Traditional macros): Likewise.
23211         (Invocation): Likewise.
23212         (Option Index): Likewise.
23213         * doc/cppopts.texi (-M): Likewise.
23214         (-finput-charset): Likewise.
23215         (--help): Likewise.
23216         * doc.invoke.texi (AVR Options): Likewise.
23217         (V850 Options): Likewise.
23219 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
23221         PR ipa/65475
23222         * ipa-devirt.c: Include demangle.h
23223         (odr_type_d): Add field rtti_broken.
23224         (odr_subtypes_equivalent_p): Do not require name to match.
23225         (compare_virtual_tables): Fix typo; if type already has ODR violation,
23226         bypass the tests; be ready for function referneces in vtables that are
23227         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
23228         (warn_odr): Give up for nameless types.
23229         (warn_types_mismatch): Report mismatch in mangled names;
23230         report mismatch in anonymous namespaces; look into component types to
23231         give useful error; report when mismatch is dragged in from other ODR
23232         type.
23233         (odr_types_equivalent_p): Match types for being polymorphic; avoid
23234         duplicated diagnostics.
23235         (add_type_duplicate): Reorder checks so more informative ones come
23236         first; fix typo; do not output "the extra base is defined here" when
23237         we did not warn.
23238         (BINFO_N_BASE_BINFOS): Relax sanity check.
23240 2015-03-22  Martin Liska  <mliska@suse.cz>
23241             Jakub Jelinek  <jakub@redhat.com>
23243         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
23244         masks that can potentially include a builtin.
23245         (ix86_add_new_builtins): Introduce fast filter for isa values
23246         that cannot trigger builtin inclusion.
23248 2015-03-22  Martin Liska  <mliska@suse.cz>
23250         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
23251         (sem_item::update_hash_by_local_refs): Likewise.
23252         (sem_variable::get_hash): Empty line is fixed.
23253         (sem_item_optimizer::execute): Include adding of hash references.
23254         (sem_item_optimizer::update_hash_by_addr_refs): New function.
23255         (sem_item_optimizer::build_hash_based_classes): Use local hash.
23256         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
23257         (sem_item::update_hash_by_local_refs): Likewise.
23259 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
23261         PR ipa/65502
23262         * ipa-comdats.c (enqueue_references): Walk through thunks.
23263         (ipa_comdats): Likewise.
23264         (set_comdat_group_1): New function.
23266 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
23268         PR ipa/65475
23269         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
23270         non-polymorphic
23272 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
23273             Gerald Pfeifer  <gerald@pfeifer.com>
23275         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
23277 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
23278             Sandra Loosemore  <sandra@codesourcery.com>
23280         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
23281         function parameter declaration.
23282         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
23283         Update arguments to nios2_adjust_call_address().
23284         (sibcall_internal): Rename from *sibcall.
23285         (sibcall_value_internal): Rename from *sibcall_value.
23286         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
23287         (nios2_large_got_address): Add target temp reg parameter.
23288         (nios2_got_address): Adjust call to nios2_large_got_address, add
23289         force_reg around it.
23290         (nios2_load_pic_address): Add target temp reg parameter, replace call
23291         to nios2_got_address with corresponding code.
23292         (nios2_legitimize_constant_address): Update call to
23293         nios2_load_pic_address.
23294         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
23295         to use temp reg for PIC loading purposes.
23296         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
23297         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23298         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
23300 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
23302         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
23303         usage of "the @option{...}".
23304         (-Wopenmp-simd): Likewise.
23305         (-fsanitize-recover): Likewise.
23306         (-fsanitize-undefined-trap-on-error): Likewise.
23307         (-flto): Likewise.
23308         (tracer-dynamic-coverage-feedback): Likewise.
23309         (reorder-block-duplicate-feedback): Likewise.
23310         (loop-unroll-jam-size): Likewise.
23311         (-B): Likewise.
23312         (-I-): Likewise.
23313         (-mabs=legacy): Likewise.
23314         (-mupper-regs-df): Likewise.
23315         (-mupper-regs-sf): Likewise.
23316         (-mpointers-to-nested-functions): Likewise.
23318 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
23320         * doc/extend.texi (Cilk Plus Builtins): Add markup.
23322 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
23324         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
23325         additional index entries and cross-references.
23326         (-fchkp-check-incomplete-type): Likewise.
23327         (-fchkp-first-field-has-own-bounds): Likewise.
23328         (-fchkp-narrow-to-innermost-array): Likewise.
23329         (-fchkp-use-fast-string-functions): Likewise.
23330         (-fchkp-use-nochk-string-functions): Likewise.
23331         (-fchkp-use-static-const-bounds): Likewise.
23332         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23333         (-fchkp-instrument-marked-only): Likewise.
23334         (-fchkp-use-wrappers): Likewise.
23335         (-static-libmpx): Likewise.
23336         (-static-libmpxwrappers): Likewise.
23337         * doc/extend.texi (bnd_legacy): Likewise.
23338         (bnd_instrument): Likewise.
23339         (bnd_variable_size): Likewise.
23340         (Pointer Bounds Checker builtins): Likewise.
23342 2015-03-21  Tom de Vries  <tom@codesourcery.com>
23344         PR tree-optimization/65458
23345         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
23346         * cgraph.h (cgraph_node): Add parallelized_function field.
23347         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
23348         (input_overwrite_node): Read parallelized_function field.
23349         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
23350         parallelized_function on cgraph_node for child_fn.
23351         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
23352         Remove include of gt-tree-parloops.h.
23353         (parallelized_functions): Remove static variable.
23354         (parallelized_function_p): Rewrite using parallelized_function field of
23355         cgraph_node.
23356         (create_loop_fn): Remove adding to parallelized_functions.
23357         * Makefile.in (GTFILES): Remove tree-parloops.c
23359 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
23361         PR rtl-optimization/64366
23362         * lra.c (lra_update_insn_regno_info): Consider regs in
23363         CALL_INSN_FUNCTION_USAGE memory.
23365 2015-03-20  Richard Biener  <rguenther@suse.de>
23367         PR middle-end/64715
23368         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
23369         for type comparison and gcc_checking_assert.
23370         (chrec_fold_plus_poly_poly): Likewise.
23371         (chrec_fold_multiply_poly_poly): Likewise.
23372         (chrec_convert_1): Likewise.
23373         * gimplify.c (gimplify_expr): Remove premature folding of
23374         &X + CST to &MEM[&X, CST].
23376 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
23378         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
23379         already is final.
23380         (ipa_inline): Recompute inline_failed codes.
23381         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23382         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
23383         CIF_FINAL_ERROR.
23385 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
23387         PR rtl-optimization/60851
23388         * recog.c (constrain_operands): Accept a pseudo register before reload
23389         for LRA enabled targets.
23391 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
23393         PR target/65240
23394         * config/rs6000/predicates.md (easy_fp_constant): Remove special
23395         -ffast-math handling that kept non-0 constants live in the RTL
23396         until reload.  Remove logic testing the number of instructions it
23397         took to create a constant in a GPR that was never used, due to a
23398         test for soft-float earlier.
23399         (memory_fp_constant): Delete, no longer used.
23401         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
23402         alternatives for loading non-0 constants into GPRs for hard
23403         floating point that is no longer needed due to changes in
23404         easy_fp_constant.  Add support for loading 0.0 into GPRs.
23405         (mov<mode>_hardfloat32): Likewise.
23406         (mov<mode>_hardfloat64): Likewise.
23407         (mov<mode>_64bit_dm): Likewise.
23408         (movtd_64bit_nodm): Likewise.
23409         (pre-reload move FP constant define_split): Delete define_split,
23410         since it is no longer used.
23411         (extenddftf2_internal): Remove GHF constraints that are not valid
23412         for extenddftf2.
23414 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
23416         PR rtl-optimization/63491
23417         * lra-constraints.c (check_and_process_move): Use src instead of
23418         sreg.  Remove some dead code.
23420 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
23422         PR ipa/65380
23423         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
23424         (sem_variable::merge): Likewise.
23426 2015-03-19  Martin Liska  <mliska@suse.cz>
23428         PR ipa/65465
23429         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
23430         all fields of cgraph_thunk_info.
23432 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
23434         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
23435         clone instrumented thunks.
23437 2015-03-19  Richard Biener  <rguenther@suse.de>
23439         Revert
23440         2015-03-10  Richard Biener  <rguenther@suse.de>
23442         PR middle-end/63155
23443         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23444         * tree-ssa-coalesce.c: Include timevar.h.
23445         (attempt_coalesce): Handle graph being NULL.
23446         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23447         Split out abnormal coalescing to ...
23448         (perform_abnormal_coalescing): ... this function.
23449         (coalesce_ssa_name): Perform abnormal coalescing without computing
23450         live/conflict.
23451         (verify_ssa_coalescing_worker): New function.
23452         (verify_ssa_coalescing): Likewise.
23454 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23455             Jakub Jelinek  <jakub@redhat.com>
23457         PR sanitizer/65400
23458         * tsan.c (instrument_gimple): Clear tail call flag on
23459         calls.
23461 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
23463         PR sanitizer/65400
23464         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
23465         call in the return bb.
23466         (find_split_points): Add RETURN_BB argument, don't call
23467         find_return_bb.
23468         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
23469         if true append TSAN_FUNC_EXIT internal call after the call to
23470         the split off function.
23471         (execute_split_functions): Call find_return_bb here.
23472         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
23473         Adjust find_split_points and split_function calls.
23475 2015-03-18  DJ Delorie  <dj@redhat.com>
23477         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
23478         (iorqi3_virt): Likewise.
23480 2015-03-18  Tom de Vries  <tom@codesourcery.com>
23482         * tree-parloops.c (parallelize_loops): Make static.
23483         * tree-parloops.h (parallelize_loops): Remove extern declaration.
23485 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
23487         PR middle-end/64491
23488         Revert:
23489         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
23491         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
23492         condition would be removed due to undefined behaviour.
23494 2015-03-18  Martin Liska  <mliska@suse.cz>
23496         PR ipa/65432
23497         * cgraph.c (cgraph_node::get_create): Remove unnecessary
23498         xstrdup_for_dump wrapper.
23499         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
23500         sem_item::name.
23501         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
23502         with xstrdup_for_dump.
23503         (sem_variable::equals): Likewise.
23504         (sem_item_optimizer::read_section): Use symtab_node::name instead of
23505         sem_item::name.
23506         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
23507         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
23508         symtab_node::asm_name with xstrdup_for_dump.
23509         (congruence_class::dump): Use symtab_node::name instead of
23510         sem_item::name.
23511         * ipa-icf.h (symtab_node::name): Remove.
23512         (symtab_node::asm_name): Likewise.
23514 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
23516         PR tree-optimization/65450
23517         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
23518         function.
23519         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
23520         it instead of duplicate_ssa_name_ptr_info.
23522         PR target/65222
23523         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
23525 2015-03-18  Richard Biener  <rguenther@suse.de>
23527         * tree-data-ref.h (struct access_matrix): Remove.
23528         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
23529         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
23530         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
23531         (am_vector_index_for_loop): Likewise.
23532         (struct data_reference): Remove access_matrix member.
23533         (DR_ACCESS_MATRIX): Remove.
23534         (lambda_vector_new): Add comment.
23535         (lambda_matrix_new): Use XOBNEWVEC.
23537 2015-03-18  Richard Biener  <rguenther@suse.de>
23539         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
23540         (pass_ch::execute): Cleanup the CFG only if we did sth.
23541         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
23543 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23545         * expmed.c (synth_mult): Use std::swap instead of manually
23546         swapping algorithms.
23548 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
23550         PR target/65078
23551         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
23553 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
23555         PR target/65296
23556         * config/avr/avr.opt (-nodevicelib): New option.
23557         * doc/invoke.texi (AVR Options): Document it.
23558         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
23559         libgcc.a, libc.a, libm.a.
23560         * config/avr/specs.h: Same.
23561         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
23562         which don't (directly) depend on the device.  Print more help.
23563         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
23564         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
23565         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
23566         case of an error.
23567         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
23568         for specs file name.
23569         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
23570         * config/avr/avr-mcus.def: Adjust initializers and comments.
23572 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
23574         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
23575         DECL_ONE_ONLY to check if decl is one only.
23576         * ipa-split.c (consider_split): Limit splitt of one only functions.
23578 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
23580         PR tree-optimization/65427
23581         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
23582         functions.
23583         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
23585 2015-03-16  Marek Polacek  <polacek@redhat.com>
23587         * cgraph.h (add_new_static_var): Remove declaration.
23588         * varpool.c (add_new_static_var): Remove function.
23590 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
23592         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
23593         instead of vec<tree> * with vec_alloc and release for args.
23594         Adjust all users.
23596         PR middle-end/65431
23597         * omp-low.c (delete_omp_context): Only splay_tree_delete
23598         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
23599         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
23601 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
23603         PR sanitizer/64820
23604         * cfgexpand.c (align_base): New function.
23605         (alloc_stack_frame_space): Call it.
23606         (expand_stack_vars): Align prev_frame to be sure
23607         data->asan_vec elements aligned properly.
23609 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
23611         PR middle-end/65409
23612         * expr.c (store_field): Do not do a direct block copy if the source is
23613         a PARALLEL with BLKmode.
23615 2015-03-16  Tom de Vries  <tom@codesourcery.com>
23617         PR middle-end/65414
23618         Revert:
23619         2015-03-12  Tom de Vries  <tom@codesourcery.com>
23621         PR rtl-optimization/64895
23622         * lra-lives.c (check_pseudos_live_through_calls): Use
23623         actual_call_used_reg_set instead of call_used_reg_set, if available.
23625 2015-03-16  Alan Modra  <amodra@gmail.com>
23627         PR target/63150
23628         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
23629         Modify Z->r bswapdi splitter to use dest in place of scratch.
23630         In r->Z and Z->r bswapdi splitter rename word_high, word_low
23631         to word1, word2 and rearrange logic to suit.
23632         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
23633         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
23634         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
23635         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
23636         early clobber.
23638 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
23640         PR tree-optimization/65369
23641         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
23642         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
23643         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
23645         PR tree-optimization/65418
23646         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
23647         are casts in the first PLUS_EXPR operand, ensure tbias and
23648         *totallowp are in the inner type.
23650         PR rtl-optimization/65401
23651         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
23652         argument.  If true, adjust_address_nv of x with big-endian
23653         correction for the mode widening to GET_MODE (y).
23654         (make_field_assignment): Don't do MEM mode widening here.
23655         Use MEM_P instead of GET_CODE == MEM.
23657 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
23659         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
23660         the external decls.
23662 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23664         PR target/64600
23665         * config/arm/arm.c (arm_gen_constant, AND case): Use
23666         ARM_SIGN_EXTEND when constructing AND mask.
23668 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23670         * graph.c (print_graph_cfg): Make function names visible and append
23671         parenthesis to it.  Also make groups of basic blocks belonging to the
23672         same function visible.
23674 2015-03-12  Richard Biener  <rguenther@suse.de>
23676         PR middle-end/44563
23677         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
23678         to avoid quadratic behavior with inline expansion splitting blocks.
23679         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
23680         with the successor if the predecessor will be merged with it.
23681         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
23682         entry block with its successor.
23684 2015-03-13  Richard Biener  <rguenther@suse.de>
23686         PR middle-end/44563
23687         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
23688         (cleanup_tree_cfg_1): Do not call it.
23689         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
23690         (fixup_noreturn_call): Mark the stmt as control altering.
23691         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
23692         here.
23693         (pass_data_fixup_cfg): Produce a dump file.
23694         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
23695         (need_noreturn_fixup): New global.
23696         (pass_dominator::execute): Fixup queued noreturn calls.
23697         (optimize_stmt): Queue calls that became noreturn for fixup.
23698         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
23699         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
23700         (el_to_fixup): New global.
23701         (eliminate_dom_walker::before_dom_childre): Queue calls that
23702         became noreturn for fixup.
23703         (eliminate): Fixup queued noreturn calls.
23704         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
23705         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23706         (substitute_and_fold_dom_walker::before_dom_children): Queue
23707         alls that became noreturn for fixup.
23708         (substitute_and_fold): Fixup queued noreturn calls.
23710 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
23712         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
23713         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
23714         are building; for methods check ODR type of class they belong to if
23715         they may lead to a polymorphic call.
23716         (sem_function::compare_polymorphic_p): Be bit smarter about testing
23717         when function may lead to a polymorphic call.
23718         (sem_function::compare_type_list): Remove.
23719         (sem_variable::equals): Update use of compatible_types_p.
23720         (sem_variable::parse_tree_refs): Remove.
23721         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
23722         cdtor.
23723         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
23724         matching here.
23725         (func_checker::compatible_polymorphic_types_p): Break out from ...
23726         (unc_checker::compatible_types_p): ... here.
23727         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
23728         Declare.
23729         (unc_checker::compatible_types_p): Update.
23730         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
23731         Remove.
23733 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23735         PR rtl-optimization/65235
23736         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
23737         When first element of vec_concat is const_int, calculate its size
23738         using second element.
23740 2015-03-12  Richard Biener  <rguenther@suse.de>
23742         PR middle-end/65270
23743         * fold-const.c (operand_equal_p): Fix ordering of resetting
23744         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
23746 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23748         * config/s390/s390.c (s390_reorg): Move code to output nops after label
23749         to s390_reorg ().
23750         (s390_asm_output_function_label): Likewise.
23751         * config/s390/s390.c (s390_asm_output_function_label):
23752         Fix function label alignment with -mhtopatch.
23753         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
23754         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
23755         ("nop_2_byte"): New define_insn.
23756         ("nop_4_byte"): Likewise.
23757         ("nop_6_byte"): Likewise.
23758         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
23759         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
23761 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
23763         PR target/65103
23764         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
23765         register.
23767 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
23769         PR target/65044
23770         * toplev.c (process_options): Restrict Pointer Bounds Checker
23771         usage with Address Sanitizer.
23773 2015-03-12  Richard Biener  <rguenther@suse.de>
23775         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
23776         to split on.
23777         * omp-low.c (expand_omp_taskreg): Split block before removing
23778         the stmt.
23779         (expand_omp_target): Likewise.
23780         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
23781         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
23782         stmt to split_block.
23784 2015-03-12  Tom de Vries  <tom@codesourcery.com>
23786         PR rtl-optimization/64895
23787         * lra-lives.c (check_pseudos_live_through_calls): Use
23788         actual_call_used_reg_set instead of call_used_reg_set, if available.
23790 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
23792         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
23793         (cgraph_node::remove): Likewise.
23794         (cgraph_node::get_untransformed_body): Likewise.
23795         * varpool.c (varpool_node::remove): Likewise.
23796         (varpool_node::get_constructor): Add sanity check.
23798 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
23800         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
23801         old GCC versions.
23802         (-fabi-compat-version): Likewise.
23803         (-ffriend-injection): Likewise.
23804         (-Wdeclaration-after-statement): Likewise.
23805         (-fomit-frame-pointer): Likewise.
23806         (-ftree-coalesce-inlined-vars): Likewise.
23807         (-fvisibility=): Likewise.
23808         * doc/extend.texi (Typeof): Likewise.
23809         (Zero Length): Likewise.
23810         (Escaped Newlines): Likewise.
23811         (Compound Literals): Likewise.
23812         (Function Attributes): Likewise.
23813         (Label Attributes): Likewise.
23814         (Type Attributes): Likewise.
23815         (Function Names): Likewise.
23816         (Other Builtins): Likewise.
23817         (Function Specific Option Pragmas): Likewise.
23818         (C++ Interface): Likewise.
23820 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
23822         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
23824 2015-03-11  Marek Polacek  <polacek@redhat.com>
23826         PR tree-optimization/65388
23827         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
23829 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
23831         PR target/65296
23832         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
23833         * configure: Regenerate.
23834         * config.in: Regenerate.
23835         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
23836         [-mn-flash]: Document it.
23837         [__AVR_ARCH__]: Document avrtiny.
23839         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
23840         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
23841         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
23843 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23845         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
23847 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23849         PR target/65242
23850         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
23851         allow reloads of PLUS in floating point/VSX registers.
23853 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
23855         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
23856         crypto_sha256_fast.
23857         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
23859 2015-03-11  Richard Biener  <rguenther@suse.de>
23861         PR tree-optimization/65310
23862         * tree-sra.c (build_ref_for_offset): Also preserve larger
23863         alignment.
23865 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
23867         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
23869 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
23871         PR target/65368
23872         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
23873         new define_expand.
23874         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
23876 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
23878         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
23879         (sem_function::equals_wpa): ... here.
23881 2015-03-10  Marek Polacek  <polacek@redhat.com>
23882             Jakub Jelinek  <jakub@redhat.com>
23884         PR sanitizer/65367
23885         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
23886         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
23887         separately.
23889 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
23891         PR target/65286
23892         * config/rs6000/t-linux: For powerpc64* target set
23893         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
23895 2015-03-10  Richard Biener  <rguenther@suse.de>
23897         PR middle-end/44563
23898         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
23899         for redirect_all_calls.
23901 2015-03-10  Marek Polacek  <polacek@redhat.com>
23903         * gdbinit.in (pcfun): Define and document.
23905 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
23907         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
23908         of libgomp-plugin.h.
23909         (find_target_compiler): Support a case when the path to gcc is
23910         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
23911         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
23912         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
23913         libgomp-plugin.h.
23914         (main): Use GCC_INSTALL_NAME as target_driver_name.
23915         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
23916         define.
23917         (mkoffload.o): Remove obsolete include path and defines.
23918         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
23920 2015-03-10  Richard Biener  <rguenther@suse.de>
23922         PR middle-end/63155
23923         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
23924         * tree-ssa-coalesce.c: Include timevar.h.
23925         (attempt_coalesce): Handle graph being NULL.
23926         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
23927         Split out abnormal coalescing to ...
23928         (perform_abnormal_coalescing): ... this function.
23929         (coalesce_ssa_name): Perform abnormal coalescing without computing
23930         live/conflict.
23931         (verify_ssa_coalescing_worker): New function.
23932         (verify_ssa_coalescing): Likewise.
23934 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
23936         PR target/65296
23937         * config.gcc (extra_options) [avr]: Remove.
23938         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
23939         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
23940         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
23942         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
23943         (-mmcu=): Add Var and MissingArgError properties.
23944         (-march=): Remove.
23945         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
23946         * config/avr/t-multilib: Regenerate.
23947         * config/avr/specs.h: New file.
23948         * config/avr/driver-avr.c: New file.
23949         * config/avr/genopt.sh: Remove file.
23950         * config/avr/avr-tables.opt: Remove file.
23951         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
23952         * config/avr/avr-c.c: Same.
23953         * avr-arch.h: Same.
23954         (avr_current_device): Remove proto.
23955         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
23956         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
23957         (EXTRA_SPEC_FUNCTIONS): Define.
23958         (avr_devicespecs_file): New specs function proto.
23959         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
23960         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
23961         (avr_current_device): Remove definition and usage.
23962         (avr_set_core_architecture): New static function.
23963         (avr_option_override): Use it.
23964         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
23965         (mcu_name): New static array.
23966         (comparator, avr_archs_str, avr_mcus_str): New static functions.
23967         (avr_inform_devices, avr_inform_core_architectures): New functions.
23968         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
23969         (avrlibc.h) [WITH_AVRLIBC]: Include.
23970         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
23971         (print_mcu): Rewrite from scratch.
23972         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
23973         Forward to avr-specific specs defined in device-specs file.
23974         * config/avr/t-avr (driver-avr.o): New rule.
23975         (avr-devices.o): Depend on avr-arch.h.
23976         (avr-mcus): No more depend on avr-tables.opt.
23977         (avr-tables.opt): Remove rule.
23978         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
23980 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
23982         * c-family/c.opt (fchkp-use-wrappers): New.
23983         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
23984         (chkp_wrap_function): New.
23985         (chkp_build_instrumented_fndecl): Support wrapped
23986         functions.
23987         * doc/invoke.texi (-fcheck-pointer-bounds): New.
23988         (-fchkp-check-incomplete-type): New.
23989         (-fchkp-first-field-has-own-bounds): New.
23990         (-fchkp-narrow-bounds): New.
23991         (-fchkp-narrow-to-innermost-array): New.
23992         (-fchkp-optimize): New.
23993         (-fchkp-use-fast-string-functions): New.
23994         (-fchkp-use-nochk-string-functions): New.
23995         (-fchkp-use-static-bounds): New.
23996         (-fchkp-use-static-const-bounds): New.
23997         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
23998         (-fchkp-check-read): New.
23999         (-fchkp-check-write): New.
24000         (-fchkp-store-bounds): New.
24001         (-fchkp-instrument-calls): New.
24002         (-fchkp-instrument-marked-only): New.
24003         (-fchkp-use-wrappers): New.
24004         (-static-libmpx): New.
24005         (-static-libmpxwrappers): New.
24007 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
24009         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
24010         (CHKP_SPEC): Add wrappers library.
24011         * c-family/c.opt (static-libmpxwrappers): New.
24013 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
24015         * config/i386/linux-common.h (LIBMPX_LIBS): New.
24016         (LIBMPX_SPEC): New.
24017         (CHKP_SPEC): New.
24018         * gcc.c (CHKP_SPEC): New.
24019         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
24020         * c-family/c.opt (static-libmpx): New.
24022 2015-03-10  Richard Biener  <rguenther@suse.de>
24024         PR middle-end/44563
24025         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
24026         for compare_type.
24027         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
24028         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
24029         (cgraph_add_edge_to_call_site_hash): Likewise.
24030         (cgraph_node::get_edge): Likewise.
24031         (cgraph_edge::set_call_stmt): Likewise.
24032         (cgraph_edge::remove_caller): Likewise.
24034 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
24036         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
24037         (callee_saved_gpr_regs_size): ... this.
24038         (callee_saved_regs_first_regno): Rename to ...
24039         (callee_saved_first_gpr_regno): ... this.
24040         (callee_saved_regs_last_regno) Rename to ...
24041         (callee_saved_last_gpr_regno): ... this.
24042         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
24043         variables.
24044         (nds32_initial_elimination_offset): Likewise.
24045         (nds32_expand_prologue): Likewise.
24046         (nds32_expand_epilogue): Likewise.
24047         (nds32_expand_prologue_v3push): Likewise.
24048         (nds32_expand_epilogue_v3pop): Likewise.
24049         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
24050         Adjust renamed variables.
24051         (nds32_output_stack_pop): Likewise.
24053 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24055         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
24056         code in comment.
24058 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
24060         PR rtl-optimization/65321
24061         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
24062         than shift mode.
24063         * var-tracking.c (use_narrower_mode): Likewise.
24065 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
24067         PR tree-optimization/65355
24068         * varasm.c (notice_global_symbol): Do not produce RTL.
24069         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
24070         anchor.
24071         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
24072         check for section anchors.
24074 2015-03-10  Alan Modra  <amodra@gmail.com>
24076         PR target/65286
24077         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
24078         to be single-arch by default.  Set cpu_is_64bit for powerpc64
24079         given --with-cpu=native.
24080         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
24081         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
24082         and powerpc64le.
24083         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
24084         rs6000_isa_flags rather than TARGET_64BIT.
24086 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
24087             Kaz Kojima  <kkojima@gcc.gnu.org>
24089         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
24091 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
24093         PR lto/65361
24094         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
24095         on a TREE_BINFO, instead use BINFO_TYPE.
24097 2015-03-09  Richard Biener  <rguenther@suse.de>
24099         PR middle-end/65270
24100         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
24101         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
24102         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
24103         of that.  When comparing dereferences compare alignment.
24104         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
24106 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
24108         * ipa-inline-analysis.c (check_callers): Check
24109         node->can_remove_if_no_direct_calls_and_refs_p.
24110         (growth_likely_positive): Reorganize to call
24111         can_remove_if_no_direct_calls_p later.
24112         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
24113         will_be_removed_from_program_if_no_direct_calls_p): Add
24114         will_inline parameter.
24115         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
24116         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24117         Handle inliner case correctly.
24119 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24121         PR tree-optimization/63743
24122         * cfgexpand.c (reorder_operands): Also reorder if only second operand
24123         had its definition forwarded by TER.
24125 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
24127         PR lto/65316
24128         * ipa-utils.h (types_odr_comparable): Add strict argument.
24129         * ipa-devirt.c: Fix whitespace;
24130         (odr_hasher): Remove.
24131         (odr_name_hasher, odr_vtable_hasher): New hashers.
24132         (can_be_name_hashed_p): New predicate.
24133         (hash_type_name): remove.
24134         (hash_odr_name): New.
24135         (odr_name_hasher::hash): new.
24136         (can_be_vtable_hashed_p): New.
24137         (hash_odr_vtable): New.
24138         (odr_vtable_hasher::hash): New.
24139         (types_same_for_odr): Add strict parameter.
24140         (types_odr_comparable): Likewise.
24141         (odr_name_hasher::equal): New.
24142         (odr_vtable_hasher::equal): New.
24143         (odr_name_hasher::remove): New.
24144         (odr_hash_type): Change to hash_table<odr_name_hasher>.
24145         (odr_vtable_hash_type): New.
24146         (odr_vtable_hash): New.
24147         (odr_subtypes_equivalent_p): Do strict comparsion.
24148         (add_type_duplicate): Merge type names; cleanup; avoid type
24149         duplicates.
24150         (register_odr_type): Initialize vtable hash.
24151         (build_type_inheritance_graph): Likewise
24152         (get_odr_type): Reorg to use two hashes.
24153         (dump_possible_polymorphic_call_targets): Move sanity check after debug
24154         output.
24155         (ipa_devirt): Dump type_inheritance_graph.
24156         (types_same_for_odr): Add strict mode.
24158 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
24160         PR ipa/65334
24161         * cgraph.h (symtab_node): Add definition_alignment,
24162         can_increase_alignment_p and increase_alignment.
24163         * symtab.c (symtab_node::can_increase_alignment_p,
24164         increase_alignment_1, symtab_node::increase_alignment,
24165         symtab_node::definition_alignment): New.
24166         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
24167         can_increase_alignment_p.
24168         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
24169         * tree-vect-stmts.c (ensure_base_align): Likewise.
24170         * varasm.c (function_section_1): Use definition_alignment.
24171         (assemble_start_function): Likewise.
24172         (emit_local): likewise.
24173         (build_constant_desc): Likewsie.
24174         (output_constant_def_contents): Likewise.
24175         (place_block_symbol): Likewise.
24176         (output_object_block): Likewise.
24178 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
24180         PR ipa/65316
24181         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
24182         when outputting debug.
24184 2015-03-07  Marek Polacek  <polacek@redhat.com>
24185             Martin Uecker  <uecker@eecs.berkeley.edu>
24187         PR sanitizer/65280
24188         * doc/invoke.texi: Update description of -fsanitize=bounds.
24190 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
24192         * tree-ssa-phiopt.c (neg_replacement): Remove.
24193         (tree_ssa_phiopt_worker): Remove negate optimization.
24195 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
24197         PR ipa/65302
24198         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
24200 2015-03-06  Richard Biener  <rguenther@suse.de>
24202         PR middle-end/64928
24203         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
24204         and liveout_obstack members.
24205         (calculate_live_on_exit): Remove.
24206         (calculate_live_ranges): Change declaration.
24207         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
24208         (new_tree_live_info): Adjust.
24209         (calculate_live_ranges): Delete livein when not wanted.
24210         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
24211         Deal with partly deleted live info.
24212         (loe_visit_block): Remove temporary bitmap by using
24213         bitmap_ior_and_compl_into.
24214         (live_worklist): Adjust accordingly.
24215         (calculate_live_on_exit): Make static.
24216         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
24217         we do not need livein.
24219 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
24221         * real.c (real_from_string): Fix typo in assertion.
24223 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
24225         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
24226         the patch.
24228 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
24230         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
24232 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
24234         PR target/64342
24235         * lra-assigns.c (find_hard_regno_for): Rename to
24236         find_hard_regno_for_1.  Add a new parameter.
24237         (find_hard_regno_for): New function using find_hard_regno_for_1.
24239 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24241         PR rtl-optimization/65067
24242         * expmed.c (store_bit_field, extract_bit_field): Reworked the
24243         strict volatile bitfield handling.
24245 2015-03-05  Martin Liska  <mliska@suse.cz>
24247         PR ipa/65318
24248         * ipa-icf.c (sem_variable::equals): Compare variables types.
24250 2015-03-05  Richard Henderson  <rth@redhat.com>
24252         PR target/65121
24253         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
24254         correctly check weak symbol binding.
24256 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
24258         PR middle-end/65315
24259         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
24260         needed alignment.
24262 2015-03-05  Martin Liska  <mliska@suse.cz>
24264         * ipa-inline.c (inline_small_functions): Set default value to
24265         prevent warning during bootstrap.
24266         * tree.h: Add pragma guard that ignores false positives during
24267         bootstrap.
24269 2015-03-05  Richard Biener  <rguenther@suse.de>
24271         PR tree-optimization/65310
24272         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24273         Properly preserve alignment of the base of the access.
24275 2015-03-05  Richard Biener  <rguenther@suse.de>
24277         PR ipa/65270
24278         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
24279         Compare dependence info.
24281 2015-03-05  Richard Biener  <rguenther@suse.de>
24283         PR middle-end/65233
24284         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
24285         tree-into-ssa.h.
24286         (walk_ssa_copies): Revert last chage.  Instead do not walk
24287         SSA names registered for SSA update.
24289 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
24291         PR ipa/65270
24292         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
24293         vtable references for their containing type.
24294         (sem_function::equals_wpa): Compare TYPE_RESTRICT
24295         and type attributes.
24297 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
24299         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
24300         before negating it.
24301         * stor-layout.c (finalize_record_size): Revert latest change.
24303 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
24305         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
24307 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
24309         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
24310         for correct comdat handling.
24311         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
24312         Likewise.
24313         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
24314         (used_from_object_file_p_worker): Remove.
24315         (cgraph_node::only_called_directly_or_alised): Add
24316         used_from_object_file_p.
24317         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
24318         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
24319         can_remove_if_no_direct_calls_and_refs_p.
24321 2015-03-04  Nick Clifton  <nickc@redhat.com>
24323         * config/rl78/rl78.h (enum reg_class): Remove real registers from
24324         General register class.
24325         * config/rl78/rl78-real.md: Replace general register constraints
24326         with real+virtual register constraints.
24328 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24330         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
24331         from checking for -mhtm option.
24333 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
24335         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
24336         (struct ipa_sra_check_caller_data): Add has_thunk field.
24337         (ipa_sra_check_caller): Check for thunk.
24338         (ipa_sra_preliminary_function_checks): Give up on function with
24339         thunks.
24340         (ipa_early_sra): Use call_for_symbol_and_aliases.
24342 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
24344         PR target/65249
24345         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
24346         called for __stack_chk_guard symbol.
24348 2015-03-03  DJ Delorie  <dj@redhat.com>
24350         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
24351         inc/dec.
24352         (*addhi3_real): Likewise.
24353         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
24354         pattern to match incrementing memory.
24355         * config/rl78/predicates.md (rl78_1_2_operand): New.
24356         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
24357         it's the same and only mem.
24358         (rl78_alloc_physical_registers_op2): If there's effectively only
24359         one MEM, transcode it into HL.
24360         (rl78_far_p): Reject addresses that aren't legitimate.
24362 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
24364         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
24365         negating it.
24367         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
24369 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
24371         Implement call0 ABI for xtensa
24372         * config/xtensa/constraints.md ("a" constraint): Include stack
24373         pointer in case of call0 ABI.
24374         ("q" constraint): Make empty in case of call0 ABI.
24375         ("D" constraint): Include stack pointer in case of call0 ABI.
24376         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
24377         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
24378         prototypes.
24379         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
24380         variable.
24381         (xtensa_regno_to_class): Make it a local variable in the
24382         function xtensa_regno_to_class.
24383         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
24384         macro, function prototype and implementation.
24385         (reg_nonleaf_alloc_order): Make it a local variable in the
24386         function order_regs_for_local_alloc.
24387         (xtensa_conditional_register_usage): New function.
24388         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
24389         (xtensa_valid_move): Allow direct moves to stack pointer
24390         register in call0 ABI.
24391         (xtensa_setup_frame_addresses): Only spill register windows in
24392         windowed ABI.
24393         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
24394         call0 ABI respectively.
24395         (xtensa_function_arg_1): Only mark a7 register for copying in
24396         windowed ABI.
24397         (xtensa_call_save_reg): New function.
24398         (compute_frame_size): Add space for callee saved register
24399         storage to the frame size in call0 ABI.
24400         (xtensa_expand_prologue): Generate code to set up stack frame
24401         and save callee-saved registers in call0 ABI.
24402         (xtensa_expand_epilogue): New function.
24403         (xtensa_set_return_address): New function.
24404         (xtensa_return_addr): Calculate return address in call0 ABI.
24405         (xtensa_builtin_saveregs): Only mark a7 register for copying and
24406         emit copying code in windowed ABI.
24407         (order_regs_for_local_alloc): Add preferred register allocation
24408         order for non-leaf function in call0 ABI.
24409         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
24410         (xtensa_asm_trampoline_template): Add trampoline generation for
24411         call0 ABI.
24412         (xtensa_trampoline_init): Add trampoline initialization for
24413         call0 ABI.
24414         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
24415         functions.
24416         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
24417         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
24418         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
24419         ABI call-used registers.
24420         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
24421         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
24422         call0 ABI.
24423         (REG_CLASS_CONTENTS): Include all registers into the preferred
24424         reload registers set, adjust the set in the
24425         xtensa_conditional_register_usage.
24426         (xtensa_regno_to_class): Drop variable declaration.
24427         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
24428         function.
24429         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
24430         respectively.
24431         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
24432         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
24433         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
24434         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
24435         location in call0 ABI.
24436         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
24437         stack adjustment size when handling exception.
24438         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
24439         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
24440         definitions.
24441         ("return" pattern): Generate ret.n/ret in call0 ABI.
24442         ("epilogue" pattern): Expand epilogue.
24443         ("nonlocal_goto" pattern): Use default in call0 ABI.
24444         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
24445         emit eh_set_a0_* depending on ABI.
24446         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
24447         ("eh_set_a0_call0", "blockage"): New patterns.
24449 2015-03-03  Martin Liska  <mliska@suse.cz>
24451         PR ipa/65287
24452         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
24454 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
24456         PR 65138/target
24457         * config/rs6000/rs6000-tables.opt: Regenerate table.
24459 2015-03-03  Renlin Li  <renlin.li@arm.com>
24461         * doc/md.texi (@item ^): Change ? into ^.
24463 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
24465         * doc/tm.texi: Regenerated.
24467 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
24469         * builtins.c (expand_builtin_return_addr): Add
24470         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
24471         surrounding #ifdef.
24472         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
24473         definition to 1.
24474         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
24475         Likewise.
24476         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
24477         undefined.
24478         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
24479         paragraph.
24481 2015-03-03  Martin Jambor  <mjambor@suse.cz>
24482             Eric Botcazou  <ebotcazou@adacore.com>
24484         * tree-sra.c (ipa_sra_check_caller_data): New type.
24485         (has_caller_p): Removed.
24486         (ipa_sra_check_caller): New function.
24487         (ipa_sra_preliminary_function_checks): Use it.
24489 2015-03-03  Martin Liska  <mliska@suse.cz>
24491         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
24492         instead of if branch.
24494 2015-03-03  Martin Liska  <mliska@suse.cz>
24496         PR ipa/65282
24497         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
24499 2015-03-23  Jeff Law  <law@redhat.com>
24501         PR tree-optimization/65241
24502         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
24503         hash table if INSERT is true.
24505 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
24507         PR target/65296
24508         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
24510 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
24512         PR target/64331
24513         * config/avr/avr.c (context.h, tree-pass.h): Include them.
24514         (avr_pass_data_recompute_notes): New static variable.
24515         (avr_pass_recompute_notes): New class.
24516         (avr_register_passes): New static function.
24517         (avr_option_override): Call it.
24519 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
24521         Fix various problems with specs file generation.
24523         PR target/65296
24524         * config.gcc (extra_gcc_objs) [avr]: Remove.
24525         * config/avr/driver-avr.c: Remove file.
24526         * config/avr/t-avr (driver-avr.o): Remove rule.
24527         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
24528         INCLUDES to build.  Depend on TM_H.
24529         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
24530         build warnings.  Fix non-matching types and non-existing %-codes.
24531         (tm.h): Include.
24532         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
24533         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
24534         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
24535         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
24536         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
24537         (LIBGCC_SPEC): Remove definitions.
24539 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
24541         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
24542         to create a register in testing mode.
24544 2015-03-03  Martin Liska  <mliska@suse.cz>
24545             Jan Hubicka  <hubicka@ucw.cz>
24547         PR ipa/65263
24548         * cgraph.c (cgraph_node::has_thunk_p): New function.
24549         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
24550         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
24551         (sem_function::merge): Assert is changed.
24553 2015-03-03  Martin Liska  <mliska@suse.cz>
24554             Martin Jambor  <mjambor@suse.cz>
24556         PR ipa/65087
24557         * ipa-icf.c (sem_item_optimizer::execute): Change function
24558         return value to boolean.
24559         (sem_item_optimizer::merge_classes): Likewise.
24560         (ipa_icf_driver): Return TODO_remove_functions in case there's
24561         a merge operation processed.
24562         * ipa-icf.h: Change function return value to boolean.
24564 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24566         PR 65138/target
24567         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
24568         processor type for 64-bit little endian PowerPC.
24570         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
24571         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
24572         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
24573         printing built-in mask so it does not pass NULL pointers.
24575         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
24576         -mcpu=powerpc64le.
24578 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
24580         PR target/58158
24581         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
24582         !ISA_HAS_FP_CONDMOVE.
24584 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
24586         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
24587         reload_completed.
24589 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
24591         * doc/invoke.texi (Options for Code Generation Conventions):
24592         Fix URL of DSO paper.
24594 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
24596         PR ipa/65130
24597         * ipa-inline.c (check_callers): Looks for recursion.
24598         (inline_to_all_callers): Give up on uninlinable or recursive edges.
24599         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
24600         summary of inline clones.
24601         (do_estimate_growth_1): Fix recursion check.
24603 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
24605         PR ipa/64988
24606         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
24607         comdat groups.
24609 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
24610             Aldy Hernandez  <aldyh@redhat.com>
24612         PR lto/65276
24613         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
24614         when checking TYPE_BINFO.
24616 2015-03-02  Richard Biener  <rguenther@suse.de>
24618         PR ipa/65270
24619         * ipa-icf-gimple.c: Include builtins.h.
24620         (func_checker::compare_memory_operand): Compare base alignment.
24622 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24624         PR target/65184
24625         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
24626         are never passed by reference.
24628 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
24630         PR target/65183
24631         * tree-chkp.c (chkp_check_lower): Don't check against
24632         zero bounds for already instrumented functions.
24633         (chkp_check_upper): Likewise.
24634         (chkp_fini): Clean pass local data to avoid wrong reusage.
24636 2015-02-28  Martin Liska  <mliska@suse.cz>
24637             Jan Hubicka  <hubicka@ucw.cz>
24639         * ipa-icf.c (sem_variable::equals): Improve debug output;
24640         get variable constructor.
24641         (sem_variable::parse): Do not filter out too early; give up on
24642         volatile and register vars.
24643         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
24644         variables.
24645         * ipa-icf.h (sem_variable::init): Do not set ctor.
24646         (sem_variable::ctor): Remove.
24648 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
24650         PR middle-end/65233
24651         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
24653 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24655         * ipa-icf.c: Include stor-layout.h
24656         (sem_function::compare_cgraph_references): Rename to ...
24657         (sem_item::compare_cgraph_references): ... this one.
24658         (sem_variable::equals_wpa): New function
24659         (sem_variable::equals): Do not check stuff already verified by
24660         equals_wpa.
24661         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
24662         * ipa-icf.h (sem_item): Add compare_cgraph_references.
24663         (sem_function): Remove compare_cgraph_references.
24664         (sem_variable): Turns equals_wpa into non-inline.
24666 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24668         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
24669         (sem_item::add_expr): New function.
24670         (sem_function::hash_stmt): Handle operands of most statements.
24671         (sem_variable::get_hash): Hash the actual constructor.
24672         * ipa-icf.h (sem_item): Add add_expr.
24673         (sem_function): Update prototype of hash_stmt
24675 2015-02-28  Martin Liska  <mliska@suse.cz>
24676             Jan Hubicka  <hubicka@ucw.cz>
24678         PR ipa/65245
24679         * ipa-icf-gimple.c (func_checker::compare_function_decl):
24680         Remove.
24681         (func_checker::compare_variable_decl): Skip symtab vars.
24682         (func_checker::compare_cst_or_decl): Update.
24683         * ipa-icf.c (sem_function::parse): Do not consider aliases.
24684         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
24685         use correct symtab predicates.
24686         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
24687         (sem_variable::parse):  Update comment.
24688         (sem_item_optimizer::build_graph): Consider ultimate aliases
24689         for references.
24691 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24693         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
24694         of OBJ_TYPE_REF.
24696 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24698         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
24699         (sem_variable::merge) Likewise.
24701 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24703         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
24704         target; also match flag_ipa_devirt.
24706 2015-03-01  Martin Liska  <mliska@suse.cz>
24707             Jan Hubicka  <hubicka@ucw.cz>
24709         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
24710         Validate variable alignment.
24711         * ipa-icf.c (sem_function::equals_private): Be more precise
24712         about non-common function attributes.
24713         (sem_variable::equals): Likewise.
24715 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24717         PR ipa/65237
24718         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
24719         across COMDAT group boundary.
24721 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24723         PR ipa/65232
24724         * ipa-icf.c (clear_decl_rtl): New function.
24725         (sem_function::merge): Clear RTL before forming alias.
24726         (sem_variable::merge): Clear RTL before forming alias.
24728 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
24730         PR ipa/65236
24731         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
24733 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
24735         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
24736         to neon_to_gp<q>.
24738 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24740         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
24741         a typo in the description.
24743 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24745         PR target/64317
24746         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24747         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
24748         * lra-constraints.c: Include "params.h".
24749         (EBB_PROBABILITY_CUTOFF): Use
24750         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
24751         (lra_inheritance): Use '<' instead of '<=' for
24752         EBB_PROBABILITY_CUTOFF.
24753         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
24754         Document change.
24756 2015-02-27  Martin Liska  <mliska@suse.cz>
24758         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
24759         vector length condition.
24761 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
24763         * doc/extend.texi (x86 transactional memory intrinsics):
24764         Reorganize discussion of _xbegin.  Clarify that the return
24765         value is a bit mask.  Expand example and move to end of section.
24767 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
24768             Aldy Hernandez  <aldyh@redhat.com>
24770         PR rtl-optimization/65220
24771         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
24773 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24775         PR target/65032
24776         * lra-remat.c (update_scratch_ops): New.
24777         (do_remat): Call it.
24778         * lra.c (lra_register_new_scratch_op): New. Take code from ...
24779         (remove_scratches): ... here.
24780         * lra-int.h (lra_register_new_scratch_op): New prototype.
24782 2015-02-27  Marek Polacek  <polacek@redhat.com>
24784         PR c/65040
24785         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
24786         -Wformat-signedness anymore.
24788 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24790         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
24791         function.
24792         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
24794 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24796         * config/s390/s390.c (enum s390_builtin):
24797         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
24798         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
24799         (s390_init_builtins): Generate new builtin functions.
24800         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
24801         (s390_sfpc, s390_efpc): New pattern definitions.
24803 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24805         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
24806         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
24807         (s390_builtin_decls): New array.
24808         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
24809         (s390_builtin_decl): New function.
24810         (TARGET_BUILTIN_DECL): Define macro.
24812 2015-02-27  Richard Biener  <rguenther@suse.de>
24814         PR middle-end/63175
24815         * builtins.c (get_object_alignment_2): Make sure to re-apply
24816         the ANDed mask after recursing to its operand gets us a new
24817         misalignment bit position.
24819 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
24820             Martin Liska  <mliska@suse.cz>
24822         PR bootstrap/65150
24823         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
24824         Use address_matters_p.
24825         (redirect_all_callers, set_addressable): New functions.
24826         (sem_function::merge): Reorganize and fix merging issues.
24827         (sem_variable::merge): Likewise.
24828         (sem_variable::compare_sections): Remove.
24829         * common.opt (fmerge-all-constants, fmerge-constants): Remove
24830         Optimization flag.
24831         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
24832         redirect them.
24833         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
24834         decl is used.
24835         (address_matters_1): New function.
24836         (symtab_node::address_matters_p): New function.
24837         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
24838         check for merged flag.
24839         * cgraph.h (address_matters_p): Declare.
24840         (symtab_node::address_taken_from_non_vtable_p): Remove.
24841         (symtab_node::address_can_be_compared_p): New method.
24842         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
24843         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
24844         Remove.
24845         (comdat_can_be_unshared_p_1) Use address_matters_p.
24846         (update_vtable_references): Fix formating.
24847         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
24848         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
24849         * cgraphclones.c: Preserve merged and icf_merged flags.
24851 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
24853         * doc/extend.texi (Function Attributes): Fix spelling and typos.
24854         (Label Attributes): Likewise.
24855         (Cilk Plus Builtins): Likewise.
24856         (ARC SIMD Built-in Functions): Likewise.
24857         (ARM C Language Extensions (ACLE)): Likewise.
24858         (PowerPC Built-in Functions): Likewise.
24859         (PowerPC Hardware Transactional Memory Built-in Functions):
24860         Likewise.
24862 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
24864         PR tree-optimization/65216
24865         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
24866         new stmt and new SSA_NAME for lhs whenever the arguments have
24867         changed and weren't just swapped.  Fix comment typo.
24869         PR tree-optimization/65215
24870         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
24871         for PDP endian targets.
24872         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
24873         Fix up formatting issues.
24874         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
24875         size is smaller than the original, adjust MEM_REF offset by the
24876         difference of sizes.  Use is_gimple_mem_ref_addr instead of
24877         is_gimple_min_invariant test to avoid adding address temporaries.
24879 2015-02-26  Martin Liska  <mliska@suse.cz>
24880             Jan Hubicka  <hubicka@ucw.cz>
24882         PR ipa/64693
24883         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
24884         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
24885         (sem_item_optimizer::process_cong_reduction): Include division by
24886         sensitive references.
24887         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
24888         * ipa-ref.c (ipa_ref::address_matters_p): New function.
24889         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
24891 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
24893         PR target/65192
24894         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
24895         Remove.
24896         * config/avr/avr.c: Same.
24897         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
24898         Refuse any constant address not in 0..0xbf.
24899         * config/avr/avr.md (*mov<mode>, *movsf): Remove
24900         tiny_valid_direct_memory_access_range from insn conditions.
24901         (mov<mode>): Don't special-case expansion of avrtiny addresses.
24903 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
24905         PR target/61142
24906         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
24907         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
24908         * config/sh/predicates.md (const_logical_operand): New predicate.
24909         * config/sh/sh.md: Add new peephole2 patterns.
24911 2015-02-26  Marek Polacek  <polacek@redhat.com>
24913         PR ipa/65008
24914         * ipa-inline.c (early_inliner): Recompute inline parameters.
24916 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24918         PR target/65171
24919         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
24920         instructions with TImode operands are included in the analysis.
24922 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
24924         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
24925         of an EDGE_FSM_THREAD.
24927 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24929         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
24931 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
24933         PR debug/46102
24934         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
24936 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
24938         PR tree-optimization/65048
24939         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
24940         (thread_through_all_blocks): Call valid_jump_thread_path.
24941         Remove invalid FSM jump-thread paths.
24943 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
24945         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
24946         (ipa_write_optimization_summaries): Likewise.
24947         * tree-streamer.h: Include data-streamer.h.
24948         (streamer_mode_table): Declare extern variable.
24949         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
24950         * lto-streamer-out.c (lto_output_init_mode_table,
24951         lto_write_mode_table): New functions.
24952         (produce_asm_for_decls): Call lto_write_mode_table when streaming
24953         offloading LTO.
24954         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
24955         (lto_create_simple_input_block): Add mode_table argument to the
24956         lto_input_block constructors.
24957         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
24958         Likewise.
24959         * data-streamer-in.c (string_for_index): Likewise.
24960         * ipa-inline-analysis.c (inline_read_section): Likewise.
24961         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
24962         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24963         * lto-streamer-in.c (lto_read_body_or_constructor,
24964         lto_input_toplevel_asms): Likewise.
24965         (lto_input_mode_table): New function.
24966         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
24967         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
24968         Use bp_pack_machine_mode.
24969         * real.h (struct real_format): Add name field.
24970         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
24971         (class lto_input_block): Add mode_table member.
24972         (lto_input_block::lto_input_block): Add mode_table_ argument,
24973         initialize mode_table.
24974         (struct lto_file_decl_data): Add mode_table field.
24975         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
24976         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
24977         unpack_ts_decl_common_value_fields,
24978         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
24979         * tree-streamer.c (streamer_mode_table): New variable.
24980         * real.c (ieee_single_format, mips_single_format,
24981         motorola_single_format, spu_single_format, ieee_double_format,
24982         mips_double_format, motorola_double_format,
24983         ieee_extended_motorola_format, ieee_extended_intel_96_format,
24984         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
24985         ibm_extended_format, mips_extended_format, ieee_quad_format,
24986         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
24987         decimal_single_format, decimal_double_format, decimal_quad_format,
24988         ieee_half_format, arm_half_format, real_internal_format): Add name
24989         field.
24990         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
24992 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
24994         PR target/65161
24995         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
24996         reordering for selective scheduling.
24998 2015-02-26  Terry Guo  <terry.guo@arm.com>
25000         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
25001         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
25002         (arm_arch_no_volatile_ce): Declare new global variable.
25003         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
25004         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
25005         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
25006         (TARGET_NO_VOLATILE_CE): New macro.
25007         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
25008         volatile memory access in IT block
25010 2015-02-25  Kai Tietz  <ktietz@redhat.com>
25012         PR tree-optimization/61917
25013         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
25014         that reduc_def_stmt is null.
25016 2015-02-25  Martin Liska  <mliska@suse.cz>
25018         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
25019         hard register variables.
25021 2015-02-25  Kai Tietz  <ktietz@redhat.com>
25023         PR target/64212
25024         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
25025         (symtab::noninterposable_alias): Likewise.
25027 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
25029         PR target/65167
25030         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
25031         bounds registers.
25032         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
25034 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
25036         PR target/64997
25037         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
25038         as split condition; force split via '#' in output pattern.
25040 2015-02-25  Richard Biener  <rguenther@suse.de>
25041             Kai Tietz  <ktietz@redhat.com>
25043         PR tree-optimization/61917
25044         * tree-vect-loop.c (vectorizable_reduction): Allow
25045         vect_internal_def without reduction to exit graceful.
25047 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
25049         PR target/65196
25050         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
25051         only with NONDEBUG_INSN_P.
25053 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
25055         Use variadic macros with avr-log.c.
25057         * config/avr/avr-protos.h (avr_vdump): New prototype.
25058         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
25059         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
25060         * config/avr/avr-log.c: Adjust comments.
25061         (avr_vdump): New function.
25062         (avr_vadump): Pass caller as 2nd argument instead of format string.
25063         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
25064         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
25066 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
25068         PR lto/64374
25069         * target.def (target_option_stream_in): New target hook.
25070         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
25071         targetm.target_option.post_stream_in if non-NULL.
25072         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
25073         * doc/tm.texi: Updated.
25074         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
25075         function.
25076         (TARGET_OPTION_POST_STREAM_IN): Redefine.
25078 2015-02-24  Jeff Law  <law@redhat.com>
25080         PR target/65117
25081         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
25082         of operand 0 and operand 2.
25083         (zero_cost_loop_end, loop_end): Similarly.
25085 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
25087         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
25088         CXX_MEM_STAT_INFO.
25090 2015-02-24  DJ Delorie  <dj@redhat.com>
25092         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
25093         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
25094         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
25095         instead of hardcoding SImode.
25097 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
25099         * omp-low.c (create_omp_child_function): Tag entrypoint
25100         functions with a special attribute.
25102 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25104         PR target/65058
25105         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
25107 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
25109         PR rtl-optimization/65123
25110         * lra-remat.c (operand_to_remat): Check hard regs in insn
25111         definition too.
25113 2015-02-24  Nick Clifton  <nickc@redhat.com>
25115         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
25116         to the assembler.
25118 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
25120         PR libgomp/64625
25121         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
25122         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
25123         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
25124         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
25125         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
25126         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
25127         (BUILT_IN_GOACC_PARALLEL): Specify as
25128         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
25129         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
25130         * builtin-types.def
25131         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25132         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25133         Remove function types.
25134         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
25135         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25136         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25137         New function types.
25139 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
25141         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
25143 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
25145         PR tree-optimization/65170
25146         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
25147         if val[1] < 0, clear also val[2] and return 3.
25149 2015-02-24  Alan Modra  <amodra@gmail.com>
25151         PR target/65172
25152         * config/rs6000/rs6000.c (get_memref_parts): Only return true
25153         when *base is a reg.  Handle nested plus addresses.  Simplify
25154         pre_modify test.
25156 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
25158         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
25159         use natural alignment when optimizing for size.
25161 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
25163         PR target/65153
25164         * config/sh/sh.md (movsicc_true+3): Remove peephole.
25165         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
25166         * config/sh/sh.c (replace_n_hard_rtx): Remove.
25168 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
25170         PR fortran/63427
25171         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
25172         too big for a wide_int.  Implement missing wrapping operation.
25174 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
25176         PR target/65163
25177         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
25178         instead of const_int 4294901760.
25180 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
25182         * config/avr/t-avr: Fix typo in comment.
25184 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
25186         * doc/rtl.texi (fma): Clarify documentation.
25188 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
25190         PR debug/58123
25191         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
25192         over input_location.
25194 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
25196         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
25197         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
25198         restrict alignments to absolute_biggest_alignment.
25199         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
25200         Define.
25201         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
25202         * doc/tm.texi: Regenerate.
25203         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
25205 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
25207         PR target/64172
25208         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
25210 2015-02-20  Richard Biener  <rguenther@suse.de>
25212         PR tree-optimization/65136
25213         * tree-ssa-propagate.c: Include cfgloop.h.
25214         (replace_phi_args_in): Avoid replacing loop latch edge PHI
25215         arguments with constants.
25217 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
25218             Martin Liska  <mliska@suse.cz>
25220         PR target/63892
25221         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
25222         don't try to create_thunk if stdarg_p.  If
25223         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
25224         redirect_callers if possible.
25225         (sem_item_optimizer::execute): Call unregister_hooks here...
25226         (ipa_icf_driver): ... instead of here.
25228 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25230         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
25231         Mark operand 0 as earlyclobber in 2nd alternative.
25232         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
25233         Write negated shift amount into QI lowpart operand 0 and use it
25234         in the shift step.
25235         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
25237 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
25239         * cgraph.h (clone_function_name_1): Declare.
25240         * cgraphclones.c (clone_function_name_1): New function.
25241         (clone_function_name): Use it.
25242         * lto-partition.c: Include "stringpool.h".
25243         (must_not_rename, maybe_rewrite_identifier)
25244         (validize_symbol_for_target): New static functions.
25245         (privatize_symbol_name): Use must_not_rename.
25246         (promote_symbol): Call validize_symbol_for_target.
25247         (lto_promote_cross_file_statics): Likewise.
25248         (lto_promote_statics_nonwpa): Likewise.
25250 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
25252         PR target/64452
25253         * config/avr/avr.md (pushhi_insn): New insn.
25254         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
25256 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
25257             Jakub Jelinek  <jakub@redhat.com>
25259         * tree-streamer.c (preload_common_nodes): Don't preload
25260         TI_VA_LIST* for offloading.
25261         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
25262         in_lto_p.
25264 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
25266         * config/pa/pa.c (pa_emit_move_sequence): Always force
25267         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
25268         note on insn.
25270         * config/pa/pa.c (pa_reloc_rw_mask): New function.
25271         (TARGET_ASM_RELOC_RW_MASK): Define.
25272         (pa_cannot_force_const_mem): Revert previous change.
25274 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
25275             Jan Hubicka  <hubicka@ucw.cz>
25277         PR ipa/65028
25278         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
25279         across jump functions.
25281 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
25283         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
25285 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
25287         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
25289 2015-02-19  Richard Henderson  <rth@redhat.com>
25291         PR middle-end/65074
25292         * varasm.c (default_binds_local_p_2): Don't test node->definition;
25293         test DECL_EXTERNAL independent of symtab_node.
25295 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
25297         PR lto/65012
25298         * varpool.c (varpool_node::get_constructor): Return early
25299         if this->lto_file_data is NULL.
25301 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25303         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
25304         (rank_for_schedule_debug): Update.
25305         (ready_sort): Make static.  Move sorting logic to ...
25306         (ready_sort_debug, ready_sort_real): New static functions.
25307         (schedule_block): Sort both debug insns and real insns in preparation
25308         for ready list trimming.  Improve debug output.
25309         * sched-int.h (ready_sort): Remove global declaration.
25311 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
25313         * ipa-icf.c (sem_function::equals_private): Adjust.
25314         (sem_function::bb_dict_test): Take a vec<int> * instead of
25315         auto_vec<int>.
25316         * ipa-icf.h (bb_dict_test): Likewise.
25318 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
25320         PR gcov-profile/64634
25321         * tree-eh.c (frob_into_branch_around): Fix up typos
25322         in function comment.
25323         (lower_catch): Put eh_seq resulting from EH lowering of
25324         the cleanup sequence after the cleanup rather than before it.
25326 2015-02-18  Tom de Vries  <tom@codesourcery.com>
25328         * common.opt (fstdarg-opt): New option.
25329         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
25330         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
25331         (@item -fstdarg-opt): New item.
25333 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
25335         PR target/65064
25336         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
25337         for common symbols.
25339 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
25341         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
25342         insn-modes.h.
25343         (ALL_HOST_OBJS): Add mkoffload.o.
25344         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
25346 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
25348         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
25349         (compare_virtual_tables): Be smarter about skipping typeinfos;
25350         do sane output on virtual table table mismatch.
25351         (warn_odr): Be ready for forward declarations of enums;
25352         output sane info on base mismatch and virtual table mismatch.
25353         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
25354         when only one type is polymorphic.
25355         (get_odr_type): Fix hashtable corruption.
25356         (dump_odr_type): Dump mangled names.
25358 2015-02-18  Richard Biener  <rguenther@suse.de>
25360         PR tree-optimization/65063
25361         * tree-predcom.c (determine_unroll_factor): Return 1 if we
25362         have replaced looparound PHIs.
25364 2015-02-18  Martin Liska  <mliska@suse.cz>
25366         * lto-streamer.c (lto_streamer_init): Encapsulate
25367         streamer_check_handled_ts_structures with checking macro.
25369 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
25371         PR ipa/65087
25372         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
25373         section if !implicit_section.
25374         (cgraph_node::create_version_clone_with_body): Likewise.
25375         * trans-mem.c (ipa_tm_create_version): Likewise.
25377 2015-02-18  Richard Biener  <rguenther@suse.de>
25379         PR tree-optimization/62217
25380         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
25381         into BIVs.
25383 2015-02-18  Marek Polacek  <polacek@redhat.com>
25385         PR sanitizer/65081
25386         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
25387         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
25388         is in range [-16K, -1].  Don't issue run-time error if
25389         (ptr > ptr + offset).
25391 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
25393         * doc/install.texi (nvptx-*-none): New section.
25394         * doc/invoke.texi (Nvidia PTX Options): Likewise.
25395         * config/nvptx/nvptx.opt: Update.
25397         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
25398         (access_check): New functions, copied from
25399         config/i386/intelmic-mkoffload.c.
25400         (main): For non-installed testing, look in all COMPILER_PATHs for
25401         GCC_INSTALL_NAME.
25403         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
25405 2015-02-18  Andrew Pinski  <apinski@cavium.com>
25406             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25408         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
25409         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
25411 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
25413         * ipa-visibility.c (function_and_variable_visibility): Only
25414         check locality if node is not already local.
25415         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25416         call_for_symbol_and_aliases instead of
25417         call_for_symbol_thunks_and_aliases.
25418         (ipa_inline): Likewise.
25419         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25420         first walk aliases.
25421         * ipa.c (symbol_table::remove_unreachable_nodes): Use
25422         call_for_symbol_and_aliases.
25423         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25424         (ipa_propagate_frequency_1): Use it; use opt_for_fn
25425         (ipa_propagate_frequency): Update.
25426         (ipa_profile): Add opt_for_fn gueards.
25428 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
25430         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
25431         * doc/invoke.texi (SH options): Document it.
25432         * config/sh/sh.c (sh_insn_length_adjustment): Check
25433         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
25435 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
25437         * common.opt (fipa-cp-alignment): New.
25438         * ipa-cp.c (ipcp_store_alignment_results): Check
25439         flag_ipa_cp_alignment.
25440         * opts.c (default_options_table): Enable -fipa-cp-alignment for
25441         -O2.
25442         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
25443         * doc/invoke.texi: Document -fipa-cp-alignment.
25445 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
25447         PR target/64793
25448         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
25449         to nil.  Adjust comments.
25451 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
25453         * ipa-visibility.c (function_and_variable_visibility): Only
25454         check locality if node is not already local.
25455         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
25456         call_for_symbol_and_aliases instead of
25457         call_for_symbol_thunks_and_aliases.
25458         (ipa_inline): Likewise.
25459         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25460         first walk aliases.
25461         * ipa.c (symbol_table::remove_unreachable_nodes): Use
25462         call_for_symbol_and_aliases.
25463         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
25464         (ipa_propagate_frequency_1): Use it; use opt_for_fn
25465         (ipa_propagate_frequency): Update.
25466         (ipa_profile): Add opt_for_fn guards.
25468 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
25470         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
25471         skipping of "strange" tokens.
25473 2015-02-17  Jeff Law  <law@redhat.com>
25475         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
25476         obsolete comment.
25478 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
25480         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
25481         as forcing a HARD_DEP between instructions, thereby
25482         disallowing rewriting to break dependencies.
25484 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
25486         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
25487         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
25488         variables in boundary that have no inlitalizer encoded and are
25489         not aliases.
25490         * varasm.c (default_binds_local_p_2): External definitions do not
25491         count as definitions here.
25493 2015-02-16  Jeff Law  <law@redhat.com>
25495         PR tree-optimization/64823
25496         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
25497         statements.
25498         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25499         threading through blocks with PHIs, but no statements.
25500         (thread_through_normal_block): Distinguish between blocks where
25501         we did not process all the statements and blocks with no statements.
25503 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
25504             James Greenhalgh  <james.greenhalgh@arm.com>
25506         PR ipa/64963
25507         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
25508         section if not linkonce.  Fix up formatting.
25509         (cgraph_node::create_version_clone_with_body): Copy section.
25510         * trans-mem.c (ipa_tm_create_version): Likewise.
25512 2015-02-16  Richard Biener  <rguenther@suse.de>
25514         PR tree-optimization/65077
25515         * tree-ssa-structalias.c (get_constraint_for_1): Handle
25516         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
25517         (find_func_aliases): Allow float values to carry pointers again.
25519 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
25521         * doc/install.texi (Specific): Reorder targets list to put
25522         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
25523         from the top menu.
25525 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
25526             David Edelsohn  <dje.gcc@gmail.com>
25528         PR target/65058
25529         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
25530         mapping class to external variable or function reference.
25531         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
25532         mapping class.
25534 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
25536         PR target/53348
25537         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
25538         ASM_WEAKEN_DECL if defined.
25540 2015-02-16  Richard Biener  <rguenther@suse.de>
25542         PR lto/65015
25543         * varasm.c (default_file_start): For LTO produced units
25544         emit <artificial> as file directive.
25546 2015-02-16  Richard Biener  <rguenther@suse.de>
25548         PR tree-optimization/63593
25549         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
25550         stmts and releasing SSA names until...
25551         (execute_pred_commoning): ... after processing all chains.
25553 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
25555         PR ipa/65059
25556         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
25557         external functions.
25559 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
25561         * doc/bugreport.texi: Adjust section titles throughout the file
25562         to use "Title Case".
25563         * doc/extend.texi: Likewise.
25564         * doc/gcov.texi: Likewise.
25565         * doc/implement-c.texi: Likewise.
25566         * doc/implement-cxx.texi: Likewise.
25567         * doc/invoke.texi: Likewise.
25568         * doc/objc.texi: Likewise.
25569         * doc/standards.texi: Likewise.
25570         * doc/trouble.texi: Likewise.
25572 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
25574         * cgraph.h (symtab_node::has_aliases_p): Simplify.
25575         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
25576         * tree.c (lookup_binfo_at_offset): Make static.
25577         (get_binfo_at_offset): Do not shadow offset; add explanatory
25578         comment.
25580 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
25582         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
25583         for all floading point loads and stores except those using a register
25584         index address.
25585         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
25586         to a register.
25588 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
25590         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
25591         (do_estimate_growth_1): Record if any uninlinable edge was seen.
25592         (estimate_growth): Handle uninlinable edges correctly.
25593         (check_callers): New.
25594         (growth_likely_positive): Handle aliases correctly.
25596 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
25598         * ipa-chkp.c: Use iterate_direct_aliases.
25599         * symtab.c (resolution_used_from_other_file_p): Move inline.
25600         (symtab_node::create_reference): Fix formating.
25601         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25602         (symtab_node::iterate_reference): Move inline.
25603         (symtab_node::iterate_referring): Move inline.
25604         (symtab_node::iterate_direct_aliases): Move inline.
25605         (symtab_node::used_from_object_file_p_worker): Inline into ...
25606         (symtab_node::used_from_object_file_p): ... this one; move inline.
25607         (symtab_node::call_for_symbol_and_aliases): Move inline;
25608         use iterate_direct_aliases.
25609         (symtab_node::call_for_symbol_and_aliases_1): New method.
25610         (cgraph_node::call_for_symbol_and_aliases): Move inline;
25611         use iterate_direct_aliases.
25612         (cgraph_node::call_for_symbol_and_aliases_1): New method.
25613         (varpool_node::call_for_node_and_aliases): Rename to ...
25614         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
25615         use iterate_direct_aliases.
25616         (varpool_node::call_for_symbol_and_aliases_1): New method.
25617         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
25618         (ipa_discover_readonly_nonaddressable_var): Update.
25619         * ipa-devirt.c: Fix formating.
25620         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
25621         Move inline.
25622         (cgraph_node::call_for_symbol_and_aliases): Move inline.
25623         (cgraph_node::call_for_symbol_and_aliases_1): New function..
25624         * cgraph.h (used_from_object_file_p_worker): Remove.
25625         (resolution_used_from_other_file_p): Move inline.
25626         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
25627         (symtab_node::iterate_reference): Move inline.
25628         (symtab_node::iterate_referring): Move inline.
25629         (symtab_node::iterate_direct_aliases): Move inline.
25630         (symtab_node::used_from_object_file_p_worker): Inline into ...
25631         (symtab_node::used_from_object_file_p): Move inline.
25632         * tree-emutls.c (ipa_lower_emutls): Update.
25633         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
25634         (varpool_node::call_for_node_and_aliases): Remove.
25636 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
25638         PR tree-optimization/62209
25639         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
25640         op == range->exp, insert seq and gimplified code after labels
25641         instead of after the phi.
25643 2015-02-13  Jeff Law  <law@redhat.com>
25645         PR bootstrap/65060
25646         Revert my change for tree-optimization/64823.
25648 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
25650         PR tree-optimization/65053
25651         * tree-ssa-phiopt.c (value_replacement): When moving assign before
25652         cond, either reset VR on lhs or set it to phi result VR.
25654 2015-02-13  Jeff Law  <law@redhat.com>
25656         PR tree-optimization/64823
25657         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
25658         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
25659         threading through blocks with PHIs, but no statements.
25660         (thread_through_normal_block): Distinguish between blocks where
25661         we did not process all the statements and blocks with no statements.
25663         PR rtl-optimization/47477
25664         * match.pd (convert (plus/minus (convert @0) (convert @1): New
25665         simplifier to narrow arithmetic.
25667 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
25669         PR ipa/65028
25670         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
25671         polymorphic call info when type is not known to be preserved.
25673 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
25675         PR ipa/65028
25676         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
25677         (inline_call): Use it.
25679 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
25681         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
25682         GOMP_DEVICE_NVIDIA_PTX.
25684 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
25686         PR ipa/65034
25687         * stmt.c (emit_case_nodes): Use void_type_node instead of
25688         NULL_TREE as LABEL_DECL type.
25690 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
25692         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
25693         constraints.
25694         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
25695         symbolic references to data to be forced to constant memory on the
25696         SOM target.
25698 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25700         PR tree-optimization/65002
25701         * tree-cfg.c (pass_data_fixup_cfg): Don't update
25702         SSA on start.
25703         * tree-sra.c (some_callers_have_no_vuse_p): New.
25704         (ipa_early_sra): Reject functions whose callers
25705         assume function is read only.
25707 2015-02-13  Richard Biener  <rguenther@suse.de>
25709         PR lto/65015
25710         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
25711         for LTO produced CUs.
25713 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
25715         PR tree-optimization/64705
25716         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
25717         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
25718         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
25719         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
25720         expand_simple_operations.
25722 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25723             Richard Henderson  <rth@redhat.com>
25725         PR rtl/32219
25726         * cgraphunit.c (cgraph_node::finalize_function): Set definition
25727         before notice_global_symbol.
25728         (varpool_node::finalize_decl): Likewise.
25729         * varasm.c (default_binds_local_p_2): Rename from
25730         default_binds_local_p_1, add weak_dominate argument.  Use direct
25731         returns instead of assigning to local variable.  Unify varpool and
25732         cgraph paths via symtab_node.  Reject undef weak variables before
25733         testing visibility.  Reorder tests for simplicity.
25734         (default_binds_local_p): Use default_binds_local_p_2.
25735         (default_binds_local_p_1): Likewise.
25736         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
25737         via symtab_node.
25738         (default_elf_asm_output_external): Emit visibility when specified.
25740 2015-02-13  Alan Modra  <amodra@gmail.com>
25742         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
25743         code setting up r11 for out-of-line fp restore.
25745 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
25747         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
25748         (muser-mode): Likewise.
25750 2015-02-13  Alan Modra  <amodra@gmail.com>
25752         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
25753         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
25755 2015-02-12  David Howells  <dhowells@redhat.com>
25757         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
25758         warning.
25759         * tree-ssa-uninit.c (dump_predicates): Likewise.
25760         * opts.c (print_filtered_help): Likewise.
25762 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
25764         * dwarf2out.c (output_die): Use "%s", name instead of name to
25765         avoid -Wformat-security warning.
25767         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
25768         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25769         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
25770         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
25772 2015-02-12  Jason Merrill  <jason@redhat.com>
25774         * common.opt (-flifetime-dse): New.
25776 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
25778         PR sanitizer/65019
25779         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
25781         PR tree-optimization/65014
25782         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
25783         use original second operand of arg0 or arg1 instead of
25784         that adjusted by STRIP_NOPS.
25786 2015-02-11  Jeff Law  <law@redhat.com>
25788         PR target/63347
25789         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
25790         that needs to be queued, just queue it for a single cycle.
25792 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
25794         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
25795         bodies of thunks; comment on why.
25796         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
25797         symbols are extern.
25799 2015-02-11  Richard Henderson  <rth@redhat.com>
25801         PR sanitize/65000
25802         * tree-eh.c (mark_reachable_handlers): Mark source and destination
25803         regions of __builtin_eh_copy_values.
25805 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
25807         PR middle-end/65003
25808         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
25809         ultimate alias is MEM with SYMBOL_REF satisfying
25810         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
25811         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
25813 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
25815         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
25816         "diagnostic-core.h".
25817         (main): Initialize progname, and call diagnostic_initialize.
25819         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
25820         instead of __OPENMP_TARGET__.
25822         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
25823         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
25824         hard-coding PTX_ID.
25826 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
25828         * doc/sourcebuild.texi (pie_enabled): Document.
25830 2015-02-11  Martin Liska  <mliska@suse.cz>
25832         PR ipa/64813
25833         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
25834         a return value for call to a function that is noreturn.
25836 2015-02-11  Richard Biener  <rguenther@suse.de>
25838         PR lto/65015
25839         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
25840         and -fresolution.
25842 2015-02-11  Andrew Pinski  <apinski@cavium.com>
25844         PR target/64893
25845         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
25846         Change the first argument type to size_type_node and add another
25847         size_type_node.
25848         (aarch64_simd_expand_builtin): Handle the new argument to
25849         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
25850         print an out when the first two arguments are not
25851         nonzero integer constants.
25852         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
25853         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
25855 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
25857         PR target/61925
25858         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
25859         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
25860         (ix86_set_current_function): Rewritten.
25861         (ix86_add_new_builtins): Temporarily clear current_target_pragma
25862         when creating builtin fndecls.
25864 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
25866         PR ipa/65005
25867         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
25868         function.
25869         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
25870         have no comdat group.
25871         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
25872         (lto_output_varpool_node): Always output alias info.
25873         (output_refs): Output refs of boundary aliases, too.
25874         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
25875         (output_symtab): Output call eges in thunks in boundary.
25876         (get_alias_symbol): Remove.
25877         (input_node, input_varpool_node): Do not special case weakrefs.
25878         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
25879         alias and thunks targets in the boundary; do not take removed symbols
25880         from their comdat groups.
25881         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
25882         (cgraph_node::global_info): Remove.
25883         (cgraph_node::rtl_info): Look through aliases and thunks.
25884         * cgrpah.h (global_info): Remove.
25885         (non_local_p): Remove.
25887 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
25888             Sandra Loosemore  <sandra@codesourcery.com>
25890         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
25891         to inline asm.  List dialects in proper order.
25893 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
25894             Sandra Loosemore  <sandra@codesourcery.com>
25896         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
25898 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
25900         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
25901         modified) reference to Solaris.
25903 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
25905         * doc/extend.texi (Extended Asm): Fix typos.
25907 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
25909         PR sanitizer/65004
25910         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
25912 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
25914         PR target/64661
25915         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
25916         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
25917         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
25918         * config/sh/constraints.md (Ara, Add): New constraints.
25919         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
25920         predicates.
25921         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
25922         atomic_mem_operand_0.  Don't use force_reg on the memory address.
25923         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
25924         Sra constraint.  Convert to insn_and_split.  Add workaround for
25925         PR 64974.
25926         (atomic_compare_and_swap<mode>_hard): Copy to
25927         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
25928         Use atomic_mem_operand_0 predicate.
25929         (atomic_compare_and_swap<mode>_soft_gusa,
25930         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
25931         AraAdd constraints.
25932         (atomic_compare_and_swap<mode>_soft_tcb,
25933         atomic_compare_and_swap<mode>_soft_imask,
25934         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
25935         atomic_mem_operand_0 predicate and SraSdd constraints.
25936         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
25937         constraint.
25938         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
25939         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
25940         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
25941         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
25942         force_reg on the memory address.
25943         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
25944         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
25945         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
25946         atomic_mem_operand_1 predicate and Sra constraint.
25947         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
25948         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
25949         Use atomic_mem_operand_1 predicate.
25950         (atomic_<fetchop_name><mode>_hard): Copy to
25951         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
25952         Use atomic_mem_operand_1 predicate.
25953         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
25954         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
25955         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
25956         insn_and_split.  Use atomic_mem_operand_1 predicate.
25957         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
25958         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
25959         Use atomic_mem_operand_1 predicate.
25960         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
25961         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
25962         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
25963         in generated insn with original mem operand before emitting the insn.
25964         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
25965         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
25966         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
25967         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
25968         Use atomic_mem_operand_1 predicate and AraAdd constraints.
25969         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
25970         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
25971         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
25972         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
25973         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
25974         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
25975         atomic_not_fetch<mode>_soft_tcb,
25976         atomic_<fetchop_name>_fetch<mode>_soft_imask,
25977         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
25978         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
25979         Use atomic_mem_operand_1 predicate and SraSdd constraints.
25981 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
25983         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
25984         and 3 earlyclobber operands.
25986 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
25988         * common.opt (fstack-reuse): Mark as optimization.
25990 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
25992         PR ipa/64982
25993         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
25995 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
25997         PR tree-optimization/64326
25998         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
26000 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
26002         PR gcov-profile/61889
26003         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
26005 2015-02-10  Richard Biener  <rguenther@suse.de>
26007         PR tree-optimization/64995
26008         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
26009         value we use is final.
26010         (visit_reference_op_store): Always valueize op.
26011         (visit_use): Properly valueize vuses.
26013 2015-02-10  Richard Biener  <rguenther@suse.de>
26015         PR tree-optimization/64909
26016         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
26017         pass a scalar-stmt count estimate to the cost model.
26018         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
26020 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
26022         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
26023         enabled by default together with var-tracking.
26025 2015-02-10  Nick Clifton  <nickc@redhat.com>
26027         * config/rl78/rl78.c: Remove DIV attribute code accidentally
26028         included in previous rl78 commit.
26030 2015-02-10  Richard Biener  <rguenther@suse.de>
26032         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
26033         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
26034         return the bitpack.
26036 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
26038         PR gcov-profile/61889
26039         * config.in: regenerate.
26040         * configure.in: Likewise.
26041         * configure.ac: Check for ftw.h.
26042         * gcov-tool.c: Check for ftw.h before using nftw.
26044 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
26046         PR lto/64076
26047         * ipa-visibility.c (update_visibility_by_resolution_info): Only
26048         assert when not in lto mode.
26050 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
26052         * ira-color.c (setup_left_conflict_sizes_p): Simplify
26053         initialization/assignment of conflict_size.
26055 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
26057         PR ipa/64978
26058         * ipa-cp.c (gather_caller_stats): Skip thunks.
26059         (propagate_constants_topo): Skip aliases.
26061 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
26063         PR target/64761
26064         * config/sh/sh.c (sh_option_override): Don't change
26065         -freorder-blocks-and-partition to -freorder-blocks even when
26066         unwinding is enabled.
26067         (sh_can_follow_jump): Return false if the followee jump is
26068         a crossing jump when -freorder-blocks-and-partition is specified.
26069         * config/sh/sh.md (*jump_compact_crossing): New insn.
26071 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26072             Kaz Kojima  <kkojima@gcc.gnu.org>
26074         PR target/64761
26075         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
26076         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
26077         (sh_can_redirect_branch): Rename to ...
26078         (sh_can_follow_jump): ... this.  Constify argument types.
26079         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
26080         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
26081         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
26082         * doc/tm.texi: Regenerate.
26084 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
26086         PR sanitizer/64981
26087         * builtins.c (expand_builtin): Call targetm.expand_builtin
26088         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
26090 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26092         PR ipa/61548
26093         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
26095 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26097         PR ipa/63566
26098         * ipa-icf.c (set_local): New function.
26099         (sem_function::merge): Use it.
26101 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26103         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
26104         (add_type_duplicate): Fix comparison of BINFOs.
26106 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26108         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
26109         on getting VOID pointer.
26111 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
26113         PR target/64979
26114         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
26115         va_list escapes.
26117 2015-02-09  Richard Biener  <rguenther@suse.de>
26119         * genmatch.c (replace_id): Copy expr_type.
26121 2015-02-09  Richard Biener  <rguenther@suse.de>
26123         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
26124         (streamer_write_tree_bitfields): Declare.
26125         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
26126         properly unpack padding.
26127         (unpack_value_fields): Inline ...
26128         (streamer_read_tree_bitfields): ... here.
26129         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
26130         and properly add padding bits.
26131         (streamer_pack_tree_bitfields): Fold into ...
26132         (streamer_write_tree_bitfields): ... this new function,
26133         exposing the bitpack object.
26134         * lto-streamer-out.c (lto_write_tree_1): Call
26135         streamer_write_tree_bitfields.
26137 2015-02-09  Richard Biener  <rguenther@suse.de>
26139         PR tree-optimization/54000
26140         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
26141         (struct ivopts_data): Add loop_loc member.
26142         (tree_ssa_iv_optimize_loop): Dump loop location.
26143         (create_new_ivs): Likewise, also dump number of IVs generated.
26145 2015-02-09  Martin Liska  <mliska@suse.cz>
26147         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
26148         just if not yet registered.
26149         (ipa_icf_generate_summary): Register callgraph hooks.
26151 2015-02-08  Andrew Pinski  <apinski@cavium.com>
26153         * config/aarch64/aarch64.c (gty_dummy): Delete.
26155 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26157         PR ipa/63566
26158         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
26159         (cgraph_node::local_p): Remove thunk related FIXME.
26161 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26163         PR ipa/63566
26164         * i386.c (ix86_function_regparm): Look through aliases to see if callee
26165         is local and optimized.
26166         (ix86_function_sseregparm): Likewise; also use target's SSE math
26167         settings; error out instead of silently generating wrong code
26168         on mismatches.
26169         (init_cumulative_args): Look through aliases.
26171 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26173         PR ipa/63566
26174         * ipa-split.c (execute_split_functions): Split if function has aliases.
26176 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
26178         PR ipa/63566
26179         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
26180         aliases before trying to expand it.
26181         (cgraph_node::expand_thunk): Fix formating.
26183 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
26185         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
26186         (Using Assembly Language with C): Expand introduction.
26187         (Basic Asm): Copy-edit.  Add more information about uses of
26188         basic asm.
26189         (Extended Asm): Copy-edit.  Document new escape syntax and
26190         %l[label] syntax.
26191         (Global Reg Vars): Copy-edit.
26192         (Local Reg Vars): Likewise.
26194 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
26196         PR debug/2714
26197         PR bootstrap/64256
26198         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
26199         (DBX_CONTIN_CHAR): Define.
26201 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
26202             Brian Rzycki  <b.rzycki@samsung.com>
26204         PR tree-optimization/64878
26205         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
26206         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
26207         Stop recursion at loop phi nodes after having visited a loop phi node.
26209 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
26211         * toplev.c (process_options): Change flag_ipa_ra before creating
26212         optimization_{default,current}_node.
26214         PR ipa/64896
26215         * cgraphunit.c (cgraph_node::expand_thunk): If
26216         restype is not is_gimple_reg_type nor the thunk_fndecl
26217         returns aggregate_value_p, set restmp to a temporary variable
26218         instead of resdecl.
26220 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
26222         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
26224 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26226         PR target/64205
26227         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
26228         add a general secondary reload handler for SDmode, unless we have
26229         both read/write support for SDmode.
26231 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
26233         PR middle-end/64937
26234         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
26235         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
26236         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
26237         1 before, push it to abstract_vec.
26238         (dwarf2out_abstract_function): Adjust caller.  Don't call
26239         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
26240         DECL_ABSTRACT_P flags for all abstract_vec elts.
26242 2015-02-06  Renlin Li  <renlin.li@arm.com>
26244         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
26245         complex gimple.
26246         * tree-ssa.c (execute_update_addresses_taken): Likewise.
26248 2015-02-06  Jeff Law  <law@redhat.com>
26250         PR target/64889
26251         * config/h8300/h8300.c (push): New argument "in_prologue".
26252         Pass "in_prologue" along to "F".
26253         (h8300_push_pop): Corresponding changes.
26254         (h8300_expand_prologue): Likewise.
26255         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
26257 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
26259         PR rtl-optimization/64957
26260         PR debug/64817
26261         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
26262         IOR rather than for AND.
26264 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
26266         PR target/62631
26267         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
26268         of shift-add and (add + shift) operations.  Rename local variable.
26270 2015-02-05  Jeff Law  <law@redhat.com>
26272         PR target/17306
26273         * config/h8300/constraints.md (U): Correctly dectect
26274         "eightbit_data" memory addresses.
26275         * config/h8300/h8300.c (eightbit_constant_address_p): Also
26276         handle (const (plus (symbol_ref (x)))) where x is declared
26277         as an 8-bit data memory address.
26278         * config/h8300/h8300.md (call, call_value): Correctly detect
26279         "funcvec" functions.
26281         PR target/43264
26282         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
26283         24 to 28 bits for the H8/300.
26285 2015-02-06  Alan Modra  <amodra@gmail.com>
26287         PR target/64876
26288         * config/rs6000/rs6000.c (chain_already_loaded): New function.
26289         (rs6000_call_aix): Use it.
26291 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
26293         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
26294         check.
26296 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
26298         * config/h8300/constraints.md ("U" constraint): Use strict
26299         variant of REG_OK_FOR_BASE_P after reload has started.
26301 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
26303         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
26304         define to zero if !TARGET_NEON.
26305         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
26307 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26308             Trevor Saunders  <tsaunders@mozilla.com>
26310         PR ipa/61548
26311         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
26313 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26315         PR ipa/61548
26316         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
26317         when removing varpool nodes.
26319 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26321         PR ipa/61548
26322         * varpool.c (varpool_node::remove): Fix order of variables.
26324 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26326         PR ipa/64686
26327         * ipa-inline.c (inline_small_functions): Fix ordering issue between
26328         speculation resolution and key updates.
26330 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26332         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
26333         about not letting any speculative edges unupdated.
26335 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26337         PR gcov/64123
26338         * gcov-io.c (gcov_var): Export.
26340 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26342         PR middle-end/64922
26343         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
26344         edges that become speculative.
26346 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
26348         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
26349         or DW_LANG_Fortran08.
26350         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
26351         DW_LANG_Fortran08.
26352         (gen_compile_unit_die): Handle "GNU Fortran2003" and
26353         "GNU Fortran2008" language strings.
26354         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
26355         * langhooks.h (lang_GNU_Fortran): New prototype.
26356         * langhooks.c (lang_GNU_Fortran): New function.
26357         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
26358         lang_GNU_Fortran.
26360 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
26362         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
26363         (RTX_OK_FOR_OLO10_P): Likewise.
26365 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
26367         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
26369 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
26371         PR middle-end/64922
26372         * gimple.c: Include gimple-ssa.h.
26373         (maybe_remove_unused_call_args): New function.
26374         * gimple.h (maybe_remove_unused_call_args): Declare.
26375         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
26376         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
26377         * gimple-fold.c (gimple_fold_call): Likewise.
26379 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
26381         PR rtl-optimization/64905
26382         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
26383         pointer alignment if it isn't needed.
26385 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
26387         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
26388         cortex-a72.cortex-a53.
26389         * config/aarch64/aarch64-tune.md: Regenerate.
26390         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
26392 2015-02-04  Nick Clifton  <nickc@redhat.com>
26394         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
26395         inside a MEM.
26397 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
26399         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
26400         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
26401         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
26402         of DEF_BUILTIN.
26403         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
26404         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
26405         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
26406         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
26407         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
26408         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
26409         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
26410         * tree-core.h (enum built_in_function): In between
26411         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
26412         for builtins that use DEF_BUILTIN_CHKP macro.
26414 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
26416         PR debug/64817
26417         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
26418         operands for tcc_comparison exprs.  Fix typos.
26420         PR debug/64817
26421         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
26422         of two XORs that have an intervening AND or IOR.
26424         PR debug/64817
26425         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
26426         simplification of XOR of AND to not allocate new rtx before
26427         committing to a simplification.
26429 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26431         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
26432         manual swaps in all peepholes.
26434 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26436         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
26437         of manual swapping implementation.
26438         (aarch64_expand_vec_perm_const_1): Likewise.
26440 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
26442         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
26443         (generic_addrcost_table): Remove NAMED_PARAM.
26444         (cortexa57_addrcost_table): Likewise.
26445         (xgene1_addrcost_table): Likewise.
26446         (generic_regmove_table): Likewise.
26447         (cortexa53_regmove_table): Likewise.
26448         (xgene1_regmove_table): Likewise.
26449         (generic_vector_table): Likewise.
26450         (cortexa57_vector_table): Likewise.
26451         (xgene1_vector_table): Likewise.
26452         (generic_tunings): Likewise.
26453         (cortexa53_tunings): Likewise.
26454         (cortexa57_tunings): Likewise.
26455         (xgene1_tunings): Likewise.
26457 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
26459         * config/arm/arm-cores.def: Add cortex-a72 and
26460         cortex-a72.cortex-a53.
26461         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
26462         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
26463         * config/arm/arm-tune.md: Regenerate.
26464         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
26465         "cortex-a72.cortex-a53".
26466         * doc/invoke.texi (ARM Options/-mtune): Likewise.
26468 2015-02-04  Nick Clifton  <nickc@redhat.com>
26470         PR target/64408
26471         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
26472         of accepted codes.
26473         (nonimmediate_di_operand): Likewise.
26475         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
26476         prefixes of known F5 using MSP430 MCUs.
26478 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26480         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
26481         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26482         instead of __builtin_sqrt.
26484 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
26486         * varasm.c (do_assemble_alias): Follow transparent alias
26487         chain for target.
26488         (default_assemble_visibility): Follow transparent alias
26489         chain for decl name.
26491 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26493         PR middle-end/62103
26494         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
26495         to compute size of referenced value in the constant case.
26497 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
26499         PR rtl-optimization/64756
26500         * cse.c (invalidate_dest): New function.
26501         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
26502         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
26503         invalidate and do not record it.
26505 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
26507         PR target/64660
26508         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
26509         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
26510         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
26511         atomic_nand<mode>_soft_tcb): New insns.
26512         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
26513         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
26514         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
26515         Split into atomic_not_fetchsi_hard if operands[0] is unused.
26516         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
26517         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26518         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
26519         atomic_not<mode>_hard if operands[0] is unused.
26520         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
26521         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
26522         if operands[0] is unused.
26523         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
26524         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
26525         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
26526         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26527         unused.
26528         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
26529         into atomic_not<mode>_soft_tcb if operands[0] is unused.
26530         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
26531         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
26532         if operands[0] is unused.
26533         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
26534         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
26535         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
26536         atomic_nand_fetchsi_hard if operands[0] is unused.
26537         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
26538         atomic_nand<mode>_hard if operands[0] is unused.
26539         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
26540         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
26541         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
26542         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26543         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
26544         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
26545         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
26546         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
26547         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
26548         atomic_not<mode>_hard if operands[0] is unused.
26549         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
26550         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
26551         unused.
26552         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
26553         into atomic_not<mode>_soft_tcb if operands[0] is unused.
26554         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
26555         atomic_nand<mode>_hard if operands[0] is unused.
26556         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
26557         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
26559 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
26561         PR jit/64810
26562         * Makefile.in (GCC_OBJS): Add gcc-main.o.
26563         * gcc-main.c: New file, containing "main" taken from gcc.c.
26564         * gcc.c (do_self_spec): Free decoded_options.
26565         (class driver): Move declaration to gcc.h.
26566         (main): Move declaration and implementation to new file
26567         gcc-main.c.
26568         (driver_get_configure_time_options): New function.
26569         * gcc.h (class driver): Move this declaration here, from
26570         gcc.c.
26571         (driver_get_configure_time_options): New declaration.
26573 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
26575         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
26576         cross-module inlining.
26577         * cgraph.h (cgraph_node): Add flag merged.
26578         * ipa-icf.c (sem_function::merge): Maintain it.
26580 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
26582         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
26583         instead of OBJECT_P.
26585 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
26587         PR target/62631
26588         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
26589         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
26590         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
26591         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
26593 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
26595         PR other/63504
26596         * combine.c (reg_n_sets_max): New variable.
26597         (can_change_dest_mode, reg_nonzero_bits_for_combine,
26598         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
26599         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
26600         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
26601         (rest_of_handle_combine): Initialize reg_n_sets_max.
26603 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
26605         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
26606         if some always_inline was inlined, apply changes before inlining
26607         heuristically.
26609 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
26611         PR jit/64810
26612         * config/arm/arm.c (arm_option_override): Set
26613         arm_selected_arch/cpu/tune to NULL on entry.
26615 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
26616             Andrew Pinski  <pinskia@gcc.gnu.org>
26617             Jakub Jelinek  <jakub@gcc.gnu.org>
26619         PR target/64231
26620         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
26621         integer typing for small model. Use IN_RANGE.
26623 2015-02-02  Richard Biener  <rguenther@suse.de>
26625         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
26626         * tree-vrp.c (vrp_valueize_1): Likewise.
26628 2015-02-02  Alan Modra  <amodra@gmail.com>
26630         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
26631         than mem for toc_restore.
26632         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
26633         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
26634         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
26636 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
26638         PR target/64047
26639         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
26640         explicit default options.
26642 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
26644         PR ipa/64872
26645         * ipa-utils.c (ipa_merge_profiles): Add release argument.
26646         * ipa-icf.c (sem_function::merge): Do not release body when merging.
26647         * ipa-utils.h (ipa_merge_profiles): Update prototype.
26649 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
26651         PR debug/64817
26652         * cfgexpand.c (deep_ter_debug_map): New variable.
26653         (avoid_deep_ter_for_debug): New function.
26654         (expand_debug_expr): If TERed SSA_NAME is in
26655         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
26656         instead of trying to expand SSA_NAME's def stmt.
26657         (expand_debug_locations): When expanding debug bind
26658         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
26659         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
26660         value.
26661         (pass_expand::execute): Call avoid_deep_ter_for_debug on
26662         all debug bind stmts.  Delete deep_ter_debug_map after
26663         expand_debug_location if non-NULL and clear it.
26665 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
26667         PR target/64851
26668         * config/sh/sync.md (atomic_fetch_notsi_hard,
26669         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
26670         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
26671         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
26672         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
26673         atomic_not_fetch<mode>_soft_imask): New insns.
26675 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26677         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
26678         (rank_for_schedule_debug): Split from ...
26679         (rank_for_schedule): ... this.
26680         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
26681         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
26683 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
26685         * doc/md.texi (Machine Constraints): Alphabetize table by target.
26686         * doc/extend.texi (x86 Variable Attributes): Move section to
26687         correct alphabetization after renaming.
26688         (x86 Type Attributes): Likewise.
26689         (Target Builtins): Re-alphabetize menu.
26690         (x86 Built-in Functions): Move section to correct alphabetization
26691         after renaming.
26692         (x86 transactional memory intrinsics): Likewise.
26693         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
26694         and x86 Windows Options in table and menu.
26695         (x86 Options): Move section to correct alphabetization after
26696         renaming.
26697         (x86 Windows Options): Likewise.
26699 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
26701         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
26702         preferred names of the architecture and its 32- and 64-bit
26703         variants.
26704         * doc/invoke.texi: Likewise.
26705         * doc/md.texi: Likewise.
26707 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
26709         PR target/64882
26710         * config/i386/predicates.md (address_no_seg_operand): Reject
26711         non-CONST_INT_P operands in invalid mode.
26713 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
26715         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
26716         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
26717         * config/i386/predicates.md (address_no_seg_operand): Call
26718         address_operand with VOIDmode.
26719         (vsib_address_operand): Ditto.
26720         (address_mpx_no_base_operand): Ditto.
26721         (address_mpx_no_index_operand): Ditto.
26723 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26725         PR target/64688
26726         * lra-constraints.c (original_subreg_reg_mode): New.
26727         (simplify_operand_subreg): Try to simplify subreg of const.  Use
26728         original_subreg_reg_mode for it.
26729         (swap_operands): Update original_subreg_reg_mode.
26730         (curr_insn_transform): Set up original_subreg_reg_mode.
26732 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26734         PR target/64617
26735         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
26736         function.
26737         (process_alt_operands): Use it.
26738         (curr_insn_transform): Check the optional reload pseudo class is
26739         ok for the mode.
26741 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
26743         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
26744         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
26745         prototype.
26746         * toplev.h (init_asm_output): Update comment on use of
26747         UNKNOWN_LOCATION with fatal_error.
26748         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
26749         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
26750         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
26751         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
26752         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
26753         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
26754         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
26755         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
26756         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
26757         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
26758         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
26759         fatal_error changed to pass input_location as first argument.
26761 2015-01-30  Martin Liska  <mliska@suse.cz>
26763         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
26764         in #pragma GCC diagnostic guards.
26766 2015-01-30  Richard Biener  <rguenther@suse.de>
26768         PR tree-optimization/64829
26769         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
26770         not add a widening conversion pattern but hand off extra
26771         widenings to callers.
26772         (vect_recog_widen_mult_pattern): Handle extra widening produced
26773         by vect_handle_widen_op_by_const.
26774         (vect_recog_widen_shift_pattern): Likewise.
26775         (vect_pattern_recog_1): Remove excess vertical space in dumping.
26776         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
26777         (vect_init_vector_1): Likewise.
26778         (vect_get_vec_def_for_operand): Likewise.
26779         (vect_finish_stmt_generation): Likewise.
26780         (vectorizable_load): Likewise.
26781         (vect_analyze_stmt): Likewise.
26782         (vect_is_simple_use): Likewise.
26784 2015-01-29  Jeff Law  <law@redhat.com>
26786         * combine.c (try_combine): Fix typo in comment.
26788 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
26790         PR target/64580
26791         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
26792         (rs6000_stack_info): Add assert.
26793         (rs6000_output_savres_externs): New function, split off from...
26794         (rs6000_output_function_prologue): ... here.  Do not call it for
26795         thunks.
26797 2015-01-29  Jeff Law  <law@redhat.com>
26799         PR target/15184
26800         * combine.c (try_combine): If I0 is a memory load and I3 a store
26801         to a related address, increase the "goodness" of doing a 4-insn
26802         combination with I0-I3.
26803         (make_field_assignment): Handle SUBREGs in the ior+and case.
26805 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
26807         PR tree-optimization/64746
26808         * tree-if-conv.c (mask_exists): New function.
26809         (predicate_mem_writes): Save created mask with given size for further
26810         use.
26811         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
26812         (ifcvt_repair_bool_pattern): Collect all statements that are root
26813         of bool pattern and use iterative algorithm to remove multiple uses
26814         of predicates, display number of required iterations.
26816 2015-01-29  Richard Biener  <rguenther@suse.de>
26818         PR tree-optimization/64853
26819         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
26820         stmt will get simulated again.
26821         * tree-ssa-ccp.c (valueize_op_1): Likewise.
26823 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26825         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
26826         return_in_pc.  Remove redundant assignments.
26827         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
26828         (arm_expand_epilogue): Don't compare boolean with true in if condition.
26830 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
26832         * config/i386/i386.c (ix86_mode_after): Make static.
26834 2015-01-29  Richard Biener  <rguenther@suse.de>
26836         PR tree-optimization/64844
26837         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
26838         dump cost model analysis.
26839         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26840         Do not register adjusted load/store costs here.
26842 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
26843             Uros Bizjak  <ubizjak@gmail.com>
26845         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
26846         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
26847         using x86_use_pseudo_pic_reg.
26848         * config/i386/i386.c (ix86_conditional_register_usage): Remove
26849         support for fixed PIC register.
26850         (ix86_use_pseudo_pic_reg): Not static any more.
26852 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
26854         PR middle-end/64805
26855         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
26856         to avoid error in cgraph node verification.
26858 2015-01-29  Marek Polacek  <polacek@redhat.com>
26860         * doc/standards.texi: Reflect that the default for C is gnu11.
26862 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
26864         PR target/64761
26865         * reorg.c (switch_text_sections_between_p): New function.
26866         (relax_delay_slots): Call it when testing if the jump insn
26867         is removable.  Use targetm.can_follow_jump when testing if
26868         the conditional branch can follow an unconditional jump.
26870 2015-01-27  Caroline Tice  <cmtice@google.com>
26872         Committing VTV Cywin/Ming patch for Patrick Wollgast
26873         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
26874         if -fvtable-verify=preinit/std is used.
26875         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
26876         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
26877         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
26878         if -fvtable-verify=preinit/std is used.
26879         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26880         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
26881         if -fvtable-verify=preinit/std is used.
26882         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
26883         * config/i386/mingw32.h (LIB_SPEC): Likewise.
26884         * varasm.c (assemble_variable): Add code to properly set the comdat
26885         section and name for the .vtable_map_vars section in case the
26886         target is PE or COFF.
26888 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
26890         PR ipa/64801
26891         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
26892         make sane BB profile.
26893         (cgraph_node::expand_thunk): Make sane BB profile.
26894         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
26895         * cgraph.h (init_lowered_empty_function): Update prototype.
26896         * config/i386/i386.c (make_resolver_func): Update call.
26897         * predict.c (gate): Disable branch prediction pass if
26898         profile is already there.
26900 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
26902         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
26903         * opth-gen.awk: Likewise.
26904         * common.opt: Mark flag_fp_contract_mode as Optimization.
26906 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26908         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
26909         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
26911 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
26913         PR target/64659
26914         * config/sh/predicates.md (atomic_arith_operand,
26915         atomic_logical_operand): Remove.
26916         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
26917         (atomic_arith_operand_0): New predicate.
26918         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
26919         Use atomic_arith_operand_0 for input values.
26920         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
26921         atomic_compare_and_swap<mode>_soft_gusa,
26922         atomic_compare_and_swap<mode>_soft_tcb,
26923         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
26924         arith_reg_operand instead of register_operand.
26925         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
26926         atomic_arith_operand_0 for newval input.
26927         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
26928         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
26929         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
26930         arith_reg_operand instead of register_operand.
26931         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
26932         fetchop_predicate_1, fetchop_constraint_1_llcs,
26933         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
26934         fetchop_constraint_1_imask): New code iterator attributes.
26935         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
26936         register_operand.  Use fetchop_predicate_1.
26937         (atomic_fetch_<fetchop_name>si_hard,
26938         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
26939         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
26940         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
26941         and arith_reg_operand instead of register_operand.  Use
26942         fetchop_predicate_1, fetchop_constraint_1_gusa.
26943         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
26944         and arith_reg_operand instead of register_operand.  Use
26945         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
26946         to allow R0 usage.
26947         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
26948         and arith_reg_operand instead of register_operand.  Use
26949         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
26950         to allow R0 usage.
26951         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
26952         register_operand.  Use atomic_logical_operand_1.
26953         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
26954         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
26955         arith_reg_operand instead of register_operand.
26956         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
26957         Use arith_reg_dest and arith_reg_operand instead of register_operand.
26958         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
26959         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
26960         register_operand.  Use fetchop_predicate_1.
26961         (atomic_<fetchop_name>_fetchsi_hard,
26962         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
26963         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26964         fetchop_constraint_1_llcs.
26965         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
26966         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26967         fetchop_constraint_1_gusa.
26968         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
26969         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26970         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
26971         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
26972         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
26973         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
26974         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
26975         register_operand.  Use atomic_logical_operand_1.
26976         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
26977         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
26978         arith_reg_operand instead of register_operand.
26979         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
26980         arith_reg_operand instead of register_operand.  Use logical_operand
26981         and K08.  Adjust asm sequence to allow R0 usage.
26982         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
26983         arith_reg_operand instead of register_operand.  Use logical_operand
26984         and K08.
26986 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
26988         PR other/63504
26989         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
26990         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
26991         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
26992         only get_full_len HOST_WIDE_INTs from get_val () array rather than
26993         all bits in *val_wide.
26995 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
26997         * varpool.c (tls_model_names): Fix names.
26998         (varpool_node::dump): Dump tls- prefix for tls models.
27000 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
27001             Bernd Schmidt  <bernds@codesourcery.com>
27002             Nathan Sidwell  <nathan@codesourcery.com>
27004         * config/nvptx/mkoffload.c: New file.
27005         * config/nvptx/t-nvptx: Add build rules for it.
27006         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
27007         (extra_programs): Add mkoffload.
27008         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
27009         function.
27010         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
27012 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
27014         PR middle-end/64809
27015         * cfgexpand.c (reorder_operands): Skip debug gimples.
27017 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
27019         PR tree-optimization/64277
27020         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
27021         range info when possible to refine estimation.
27023 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27025         PR tree-optimization/64718
27026         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
27027         be a 16bit unsigned integer when n->range is 16.
27028         (bswap_replace): Convert src to that type if necessary for all bswap
27029         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
27030         set in pass_optimize_bswap::execute ().
27032 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
27034         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
27035         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
27036         integer and floating point variants.
27037         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
27039 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
27041         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
27042         for all vector modes.
27044 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
27046         PR bootstrap/64612
27047         * doc/sourcebuild.texi (comdat_group): Document.
27049 2015-01-28  Terry Guo  <terry.guo@arm.com>
27051         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
27053 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
27055         * toplev.c (print_version): Add param "show_global_state", and
27056         only print GGC and plugin information if it is true.
27057         (init_asm_output): Pass in "true" for the new param when calling
27058         print_version.
27059         (process_options): Likewise.
27060         (toplev::main): Likewise.
27061         * toplev.h (print_version): Add new param to decl.
27063 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
27065         PR ipa/60871
27066         PR ipa/64139
27067         * tree.c (lookup_binfo_at_offset): New function.
27068         (get_binfo_at_offset): Use it.
27070 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
27072         PR ipa/64282
27073         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
27074         on vtable being vtable.
27076 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27078         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
27079         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
27080         -mhotpatch= option.
27081         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
27082         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
27083         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
27084         Renamed.
27085         (s390_hotpatch_trampoline_halfwords_max): Renamed.
27086         (s390_hotpatch_hw_max): New name.
27087         (s390_hotpatch_trampoline_halfwords): Renamed.
27088         (s390_hotpatch_hw_before_label): New name.
27089         (get_hotpatch_attribute): Removed.
27090         (s390_hotpatch_hw_after_label): New name.
27091         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
27092         attribute.
27093         (s390_attribute_table): Ditto.
27094         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
27095         (s390_function_num_hotpatch_hw): New name.
27096         Remove special handling of inline functions and hotpatching.
27097         Return number of nops before and after the function label.
27098         (s390_can_inline_p): Removed.
27099         (s390_asm_output_function_label): Emit a configurable number of nops
27100         after the function label.
27101         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
27102         (TARGET_CAN_INLINE_P) Removed.
27103         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
27105 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27106             Jiong Wang  <jiong.wang@arm.com>
27108         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
27109         of scratch reg.
27110         (cb<optab><mode>1): Likewise.
27111         * config/aarch64/iterators.md (bcond): New define_code_attr.
27113 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27115         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
27116         memory accesses.
27118 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27120         * config/s390/s390.c (s390_register_move_cost): Increase costs for
27121         FPR->GPR moves.
27123 2015-01-27  Richard Biener  <rguenther@suse.de>
27125         * tree-vrp.c (update_value_range): Intersect the range with
27126         old recorded SSA name range information.
27128 2015-01-27  Nick Clifton  <nickc@redhat.com>
27130         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
27131         BC, DE and HL registers directly, not via AX.
27132         When decrementing the stack pointer by a large amount, transfer SP
27133         into AX and perform the subtraction there.
27134         (rl78_expand_epilogue): Perform the inverse of the above
27135         enhancements.
27137 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27139         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
27141 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
27142             Yury Gribov  <y.gribov@samsung.com>
27144         PR ubsan/64741
27145         * ubsan.c (ubsan_source_location): Refactor code.
27146         (ubsan_type_descriptor): Update type size. Refactor code.
27148 2015-01-27  Richard Biener  <rguenther@suse.de>
27150         PR tree-optimization/56273
27151         PR tree-optimization/59124
27152         PR tree-optimization/64277
27153         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
27154         from the first VRP pass.
27156 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
27158         PR ipa/64776
27159         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
27160         handle the first argument in the same loop as all the other arguments.
27162         PR rtl-optimization/61058
27163         * jump.c (cleanup_barriers): Update basic block boundaries
27164         if BLOCK_FOR_INSN is non-NULL on PREV.
27166 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
27168         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
27169         bounds narrowing, already instrumented calls and calls to
27170         not instrumentable functions.
27172 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
27174         PR tree-optimization/64807
27175         * wide-int.cc (wi::divmod_internal): Clear
27176         b_dividend[dividend_blocks_needed].
27178 2015-01-26  DJ Delorie  <dj@redhat.com>
27180         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
27181         volatile memory references.
27183 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
27185         PR target/49263
27186         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
27187         remove_insn.
27188         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
27189         shifts if it already fits into K08.
27191 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
27193         PR ipa/64730
27194         * ipa-inline.c (inline_small_functions): Print "unknown" even
27195         if edge->call_stmt is non-NULL, but has builtins or unknown
27196         location.
27198         PR middle-end/64421
27199         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
27200         with asterisk, skip the first character.
27202 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
27204         PR target/64806
27205         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
27206         order change.
27208 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
27210         PR target/64795
27211         * config/i386/i386.md (*movdi_internal): Also check operand 0
27212         to determine TYPE_LEA operand.
27213         (*movsi_internal): Ditto.
27215 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
27217         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
27218         OPTION_MASK_QUAD_MEMORY_ATOMIC.
27220 2015-01-26  Renlin Li  <renlin.li@arm.com>
27222         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
27223         the comment.
27224         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
27225         for higher part.
27227 2015-01-26  Richard Biener  <rguenther@suse.de>
27229         PR middle-end/64764
27230         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
27231         combining two BIT_AND_EXPR predicates.
27233 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
27235         PR bootstrap/64754
27236         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
27238 2015-01-26  Terry Guo  <terry.guo@arm.com>
27240         * config/arm/arm.c (arm_file_start): Update the assignment of
27241         Tag_ABI_HardFP_use.
27243 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
27245         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
27246         pipeline model.
27247         config/arm/arm.md: Include the new Cortex-A57 model.
27248         (generic_sched): Don't use generic_sched when tuning for
27249         Cortex-A57.
27251 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
27252             Uros Bizjak  <ubizjak@gmail.com>
27254         * config/i386/i386.c (get_builtin_code_for_version): Add
27255         support for BMI and BMI2 multiversion functions.
27257 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27259         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
27260         (extract_bit_field): Likewise.
27261         (extract_low_bits): Likewise.
27262         (expand_mult): Likewise.
27263         (expand_mult_highpart_adjust): Likewise.
27265 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27267         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
27268         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
27269         * config/i386/i386.c (processor_model): Add
27270         M_INTEL_COREI7_BROADWELL.
27271         (arch_names_table): Add "broadwell".
27273 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
27275         PR target/49263
27276         PR target/53987
27277         PR target/64345
27278         PR target/59533
27279         PR target/52933
27280         PR target/54236
27281         PR target/51244
27282         * config/sh/sh-protos.h
27283         (sh_extending_set_of_reg::can_use_as_unextended_reg,
27284         sh_extending_set_of_reg::use_as_unextended_reg,
27285         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
27286         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
27287         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
27288         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
27289         (sh_treg_insns): New class.
27290         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
27291         (scope_counter): New class.
27292         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
27293         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
27294         sh_extending_set_of_reg::can_use_as_unextended_reg,
27295         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
27296         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
27297         sh_split_treg_set_expr): New functions.
27298         (addsubcosts): Handle treg_set_expr.
27299         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
27300         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
27301         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
27302         (sh_insn_operands_modified_between_p): Make non-static.
27303         * config/sh/predicates.md (zero_extend_movu_operand): Allow
27304         simple_mem_operand in addition to displacement_mem_operand.
27305         (zero_extend_operand): Don't allow zero_extend_movu_operand.
27306         (treg_set_expr, treg_set_expr_not_const01,
27307         arith_reg_or_treg_set_expr): New predicates.
27308         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
27309         arith_or_int_operand instead of logical_operand.  Convert to
27310         insn_and_split.  Try to optimize constant operand in splitter.
27311         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
27312         (*tstqi_t_zero): Delete.
27313         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
27314         (tstsi_t_and_not): Delete.
27315         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
27316         Convert to insn_and_split.
27317         (unnamed split, tstsi_t_zero_extract_xor,
27318         tstsi_t_zero_extract_subreg_xor_little,
27319         tstsi_t_zero_extract_subreg_xor_big): Delete.
27320         (*tstsi_t_shift_mask): New insn_and_split.
27321         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
27322         to recombine with surrounding insns when splitting.
27323         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
27324         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
27325         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
27326         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
27327         (*cbranch_div0s: Delete.
27328         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
27329         Try to recombine with surrounding insns when splitting.  Add operand
27330         order variants.
27331         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
27332         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
27333         *addc_r_r_msb, *addc_2r_msb): Delete.
27334         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
27335         order variant.
27336         (*addc_negreg_t): New insn_and_split.
27337         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
27338         Try to recombine with surrounding insns when splitting.
27339         Add operand order variants.
27340         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
27341         insn_and_split patterns.
27342         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
27343         surrounding insns when splitting.
27344         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
27345         (*rotcl): Likewise.  Add zero_extract variant.
27346         (*ashrsi2_31): New insn_and_split.
27347         (*negc): Convert to insn_and_split.  Use treg_set_expr.
27348         (*zero_extend<mode>si2_disp_mem): Update comment.
27349         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
27350         condition.
27351         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
27352         with surrounding insns when splitting.
27353         (any_treg_expr_to_reg): New insn_and_split.
27354         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
27355         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
27356         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
27357         *zero_extract_2): New single bit zero extract patterns.
27358         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
27359         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
27360         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
27361         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
27362         set destination.
27363         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
27364         register_operand for set source.
27366 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
27368         * i386.opt (prefetch_sse): New targetsave.
27369         * i386.c (ix86_function_specific_save): Save prefetch_sse.
27370         (ix86_function_specific_restore): Restore prefetch_sse and initialize
27371         ix86_cost/ix86_tune_cost.
27373 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
27375         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
27376         Support the JIT by using 0 as the language type.
27378 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
27380         PR target/64317
27381         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
27382         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
27383         (mark_regno_live, process_bb_lives): Pass new parameter value to
27384         make_hard_regno_born.
27386 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
27388         PR rtl-optimization/63637
27389         PR rtl-optimization/60663
27390         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
27391         if elt->cost is MAX_COST for ASM_OPERANDS.
27392         (find_sets_in_insn): Fix up comment typo.
27393         (cse_insn): Don't set src_volatile for all non-volatile
27394         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
27395         or with "memory" clobber.  Set elt->cost to MAX_COST
27396         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
27397         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
27399 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
27401         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
27402         alternative 1.
27404 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
27406         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
27407         libgcc/config/i386/elf-lib.h.
27409 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
27411         PR driver/64737
27412         * gcc.c (print_configuration): Don't print a blank line at the end
27413         here...
27414         (run_attempt): ... but here unstead.
27416         PR middle-end/64734
27417         * omp-low.c (scan_sharing_clauses): Don't ignore
27418         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
27419         on target data/update constructs.
27421 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27423         PR target/50928
27424         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
27425         (DEBUG_RELOAD): Removed define.
27426         (m32c_limit_reload_class): Enable traces with if DEBUG0.
27427         (m32c_function_arg): Added a type cast.
27428         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
27429         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
27430         * config/m32c/bitops.md (andqi3_16): Likewise.
27431         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
27432         (push_a01_l): Likewise.
27434 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
27436         PR jit/64721
27437         * main.c (main): Construct toplev instances with init_signals=true.
27438         * toplev.c (general_init): Add param "init_signals", and use it to
27439         conditionalize the calls to signal and host_hooks.extra_signals.
27440         (toplev::toplev): Add param "init_signals".
27441         (toplev::main): When invoking general_init, pass m_init_signals
27442         to control whether signal-handlers are installed.
27443         * toplev.h (toplev::toplev): Add param "init_signals".
27444         (toplev::m_init_signals): New field.
27446 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
27448         PR jit/64722
27449         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
27450         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
27451         latter may be affected by the former (e.g. on i686).
27453 2015-01-23  Martin Liska  <mliska@suse.cz>
27455         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
27456         false positive during profiledbootstrap.
27458 2015-01-23  Tom de Vries  <tom@codesourcery.com>
27460         PR libgomp/64672
27461         * lto-opts.c (lto_write_options): Output non-explicit conservative
27462         -fno-openacc.
27463         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
27464         (append_compiler_options): Pass -fopenacc through.
27466 2015-01-23  Tom de Vries  <tom@codesourcery.com>
27468         PR libgomp/64707
27469         * lto-opts.c (lto_write_options): Output non-explicit conservative
27470         -fno-openmp.
27471         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
27472         (append_compiler_options): Pass -fopenmp through.
27474 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
27476         PR debug/64511
27477         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
27478         GTY markup.
27480         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
27481         * diagnostic.def (DK_ICE_NOBT): New kind.
27482         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
27483         like DK_ICE, but never print backtrace.
27484         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
27485         (internal_error_no_backtrace): New function.
27486         * gcc.c (execute): Use internal_error_no_backtrace instead of
27487         internal_error.
27489 2015-01-22  Jeff Law  <law@redhat.com>
27491         PR target/52076
27492         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
27493         improve code density for small immediate to memory case.
27494         (insv): Better handle bitfield assignments when the field is
27495         being set to all ones.
27496         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
27497         operand predicate.
27499 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27500             Jakub Jelinek  <jakub@redhat.com>
27502         PR middle-end/64729
27503         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
27504         for !TARGET_LIBC_PROVIDES_SSP version and
27505         -fstack-protector-{all,strong,explicit} otherwise.
27506         * config/freebsd.h (LINK_SSP_SPEC): Handle
27507         -fstack-protector-{strong,explicit}.
27509 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
27510             H.J. Lu  <hongjiu.lu@intel.com>
27512         PR ipa/64694
27513         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
27514         heap.
27516 2015-01-22  Wei Mi  <wmi@google.com>
27518         PR rtl-optimization/64557
27519         * dse.c (record_store): Call get_addr for mem_addr.
27520         (check_mem_read_rtx): Likewise.
27522 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
27524         * fold-const.c (const_binop): Add early return for non-tcc_binary.
27526 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
27528         * toplev.c (init_local_tick): Process the failure when read
27529         fails for random_seed.
27531         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
27532         'pretty_name' to avoid memory overflow.
27534 2015-01-22  Richard Biener  <rguenther@suse.de>
27536         PR middle-end/64728
27537         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
27538         abnormal coalescing on undefined SSA names.
27540 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
27542         PR target/64688
27543         PR target/64477
27544         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
27545         for alternative 3.
27546         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
27548 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
27550         PR middle-end/63325
27551         * fold-const.c (fold_checksum_tree): Don't include value of
27552         expr->decl_with_vis.symtab_node in the checksum.
27554 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27556         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
27558 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
27560         PR driver/64690
27561         * gcc.c (insert_comments): New function.
27562         (try_generate_repro): Call it.
27563         (append_text): Removed.
27565 2015-01-22  Richard Biener  <rguenther@suse.de>
27567         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
27568         with IL incompatible options.  Properly honor user optimize
27569         attributes.
27571 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
27573         PR rtl-optimization/64682
27574         * combine.c (distribute_notes): When moving a death note for
27575         a register that is set in the new I2, make sure to put it
27576         before that new I2.
27578 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
27580         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
27581         not TARGET_DEFAULT.
27583 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
27585         PR debug/64511
27586         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
27587         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
27588         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
27590         PR sanitizer/64706
27591         * doc/invoke.texi (-fsanitize=vptr): Document.
27593         PR rtl-optimization/62078
27594         * dse.c: Include cfgcleanup.h.
27595         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
27596         anything call purge_all_dead_edges and cleanup_cfg at the end
27597         of the pass.
27599 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
27601         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
27602         edges.
27604 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27606         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
27607         decl attribute.
27609 2015-01-21  David Sherwood  <david.sherwood@arm.com>
27610             Tejas Belagod <Tejas.Belagod@arm.com>
27612         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
27613         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
27614         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
27615         Removed.
27617 2015-01-21  David Sherwood  <david.sherwood@arm.com>
27618             Tejas Belagod <Tejas.Belagod@arm.com>
27620         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
27621         (aarch64_reverse_mask): New decls.
27622         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
27623         (insn_count): New mode_attr.
27624         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
27625         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
27626         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
27627         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
27628         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
27629         (aarch64_simd_st4): New patterns.
27630         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
27631         (aarch64_reverse_mask): New functions.
27633 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
27635         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
27636         Declare.
27637         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
27638         addressing modes for BE.
27639         (aarch64_print_operand): Add 'R' specifier.
27640         (aarch64_simd_disambiguate_copy): Delete.
27641         (aarch64_simd_emit_reg_reg_move): New function.
27642         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
27643         in define_splits for structural moves.
27644         (mov<mode>): Use less restrictive predicates.
27645         (*aarch64_mov<mode>): Simplify and only allow for LE.
27646         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
27648 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
27650         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
27652 2015-01-21  Richard Henderson  <rth@redhat.com>
27654         PR target/64669
27655         * ccmp.c (used_in_cond_stmt_p): Remove.
27656         (expand_ccmp_expr): Don't use it.
27658 2015-01-21  Nick Clifton  <nickc@redhat.com>
27660         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
27661         PARALLELs.
27663 2015-01-21  Richard Biener  <rguenther@suse.de>
27665         PR middle-end/64313
27666         * tree-core.h (builtin_info, builtin_info_type): Turn from
27667         an object with two arrays into an array of an object with
27668         decl and two flags, implicit_p and declared_p.
27669         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
27670         set_builtin_decl, set_builtin_decl_implicit_p,
27671         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
27672         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
27673         * builtins.c (builtin_info): Adjust.
27674         * gimplify.c (gimplify_addr_expr): References to builtins
27675         that have been declared by the user makes them eligible for
27676         use by the compiler.  Call set_builtin_decl_implicit_p on them.
27678 2015-01-20  Jeff Law  <law@redhat.com>
27680         PR target/59946
27681         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
27682         allow pc-relative addresses in operand predicates or constraints.
27684 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
27686         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
27687         neon on aarch32 processors for stringops.
27689 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27691         PR ipa/63576
27692         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
27694 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27696         PR lto/45375
27697         * ipa-inline.c: Include lto-streamer.h
27698         (report_inline_failed_reason): Output source file differences and
27699         flags on optimization/target node mismatch.
27700         (can_inline_edge_p): Consider caller to be the outer inline function;
27701         be less restrictive about matching opimize and optimize_size attributes.
27702         (inline_account_function_p): Break out from ...
27703         (inline_small_functions): ... here.
27704         * ipa-inline-transform.c (clone_inlined_nodes): Use
27705         inline_account_function_p.
27706         (inline_call): Use optimize attribution; use inline_account_function_p.
27707         (inline_transform): Use opt_for_fn.
27708         * ipa-inline.h (inline_account_function_p): Declare.
27710 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
27712         PR debug/64663
27713         * dwarf2out.c (decl_piece_node): Don't put bitsize into
27714         mode if bitsize <= 0.
27715         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
27716         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
27717         sizes and positions.
27719 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
27721         * config/nios2/nios2.c (nios2_asm_file_end): Implement
27722         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
27723         needed.
27724         (TARGET_ASM_FILE_END): Define.
27726 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27728         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
27729         (struct tune_params): Use the enum.
27730         * arm.c (arm_*_tune): Update.
27731         (arm_option_override): Update.
27733 2015-01-20  Richard Biener  <rguenther@suse.de>
27735         PR ipa/64684
27736         * ipa-reference.c (add_static_var): Inline ...
27737         (analyze_function): ... here after splitting out from ...
27738         (is_proper_for_analysis): ... this.
27740 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
27742         PR target/64149
27743         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
27744         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
27745         replace the conditional with it's true branch.
27746         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
27747         (arm_lra_p): Remove.
27749 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
27751         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
27753 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27755         * config/tilegx/mul-tables.c: Move symtab.h include after
27756         coretypes.h include.
27757         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
27758         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
27759         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
27760         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
27761         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27763 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
27765         PR bootstrap/64676
27766         Revert:
27767         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
27769         PR rtl-optimization/64081
27770         * loop-iv.c (def_pred_latch_p): New function.
27771         (latch_dominating_def): Allow specific cases with non-single
27772         definitions.
27773         (iv_get_reaching_def): Likewise.
27774         (check_complex_exit_p): New function.
27775         (check_simple_exit): Use check_complex_exit_p to allow certain cases
27776         with exits not executing on any iteration.
27778 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27780         PR lto/45375
27781         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
27782         to set branch cost.
27784 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27786         PR lto/45375
27787         * i386.c (gate): Check flag_expensive_optimizations and
27788         optimize_size.
27789         (ix86_option_override_internal): Drop optimize_size condition
27790         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
27791         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
27792         MASK_PREFER_AVX128.
27793         (ix86_avx256_split_vector_move_misalign,
27794         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
27795         * sse.md (all uses of TARGET_PREFER_AVX128): Add
27796         optimize_insn_for_speed_p check.
27798 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
27800         * config/mips/mips.h (FP_ASM_SPEC): New define.
27801         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
27802         instead.
27804 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
27806         PR target/53988
27807         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
27808         nullptr for insn when reaching the first insn.
27809         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
27810         (sh_insn_operands_modified_between_p): Add nullptr check.
27811         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
27812         sign extending mem load if the insn contains any UNSPEC or
27813         UNSPEC_VOLATILE.
27815 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27817         * params.def (inline-unit-growth): Drop to 15%.
27818         * invoke.texi (inline-unit-growth): Document change.
27820 2015-01-19  Martin Liska  <mliska@suse.cz>
27822         PR ipa/64668
27823         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
27824         function for second argument of OBJ_TYPE_REF.
27826 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27828         PR ipa/64218
27829         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
27830         whether function is an alias.
27832 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
27834         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
27835         cases.
27837 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
27839         PR rtl-optimization/64671
27840         * lra-remat.c (operand_to_remat): Don't consider jump and call
27841         insns.
27843 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
27845         PR target/59828
27846         * config/rs6000/default64.h: Include rs6000-cpus.def.
27847         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
27848         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
27849         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
27850         and POWER8.
27851         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
27852         POWER8.
27853         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
27854         pseudo-op to specify assembler dialect.
27856 2015-01-19  Martin Liska  <mliska@suse.cz>
27858         PR ipa/64664
27859         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
27860         Handle safe potentially removed nodes during filtering.
27862 2015-01-19  Martin Liska  <mliska@suse.cz>
27864         * doc/extend.texi (no_icf): Add new attribute description.
27865         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
27866         where the pass attempts to merge a function with no_icf attribute.
27868 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27870         PR target/64532
27871         * doc/md.texi (ARM Options): Document register constraints.
27873 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
27874             Andrew Pinski  <apinski@cavium.com>
27876         PR target/64304
27877         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
27878         (ashl<mode>3): Don't expand if operands[2] is not constant.
27880 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27882         PR target/64448
27883         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
27884         Match xor-and-xor RTL pattern.
27886 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
27888         PR rtl-optimization/64081
27889         * loop-iv.c (def_pred_latch_p): New function.
27890         (latch_dominating_def): Allow specific cases with non-single
27891         definitions.
27892         (iv_get_reaching_def): Likewise.
27893         (check_complex_exit_p): New function.
27894         (check_simple_exit): Use check_complex_exit_p to allow certain cases
27895         with exits not executing on any iteration.
27897 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
27899         * common.opt (fgraphite): Fix a typo.
27901 2015-01-19  Felix Yang  <felix.yang@huawei.com>
27903         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
27904         pattern.
27905         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
27906         uminp, smax_nanp, smin_nanp): New builtins.
27907         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
27908         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
27909         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
27910         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
27911         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
27912         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
27913         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
27914         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
27915         vpminnms_f32): Rewrite using builtin functions.
27917 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
27919         PR libgomp/64625
27920         * omp-low.c (offload_symbol_decl): Remove variable.
27921         (get_offload_symbol_decl): Remove function.
27922         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
27923         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
27924         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
27925         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
27926         BUILT_IN_GOACC_UPDATE don't pass it at all.
27928 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
27930         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
27931         callers.
27933 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
27935         * ipa-chkp.c (chkp_produce_thunks): Add early param
27936         to split thunks production into two passes.  Keep
27937         'always_inline' function bodies after the first pass.
27938         (pass_data_ipa_chkp_early_produce_thunks): New.
27939         (pass_ipa_chkp_early_produce_thunks): New.
27940         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
27941         chkp_produce_thunks signature.
27942         (make_pass_ipa_chkp_early_produce_thunks): New.
27943         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
27944         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
27945         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
27947 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27949         * cgraph.c (cgraph_node::dump): Dump profile flags.
27951 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
27953         PR target/64652
27954         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
27955         reg appear first in the parallel.
27957 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27959         * ipa-reference.c (set_reference_optimization_summary,
27960         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
27961         disabled.
27962         (ignore_module_statics): New static var.
27963         (propagate_bits): If ipa-reference is disabled, do not look into local
27964         properties.
27965         (analyze_function): Disable analysis when ipa_reference is disabled.
27966         (generate_summary): Do not dump when reference is disabled;
27967         collect vars accessed from functions with ipa-reference disabled.
27968         (get_read_write_all_from_node): When ipa-reference is disabled, use the
27969         node flags.
27970         (gate): Enable for LTO.
27971         (ignore_edge_p): New function.
27972         (propagate): Skip functions w/o ipa-reference analysis.
27973         * optc-save-gen.awk: Handle optimize_debug correctly.
27974         * opth-gen.awk: Likewise.
27975         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
27976         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
27977         fira-share-save-slots, fira-share-spill-slots,
27978         fmodulo-sched-allow-regmoves, fpartial-inlining,
27979         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
27980         ftracer, ftree-parallelize-loops, fassociative-math,
27981         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
27982         Optimization
27983         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
27984         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
27985         Optimization.
27986         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
27987         Fix for IPA.
27989 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
27991         PR ipa/64378
27992         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
27993         flag correctly.
27994         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
27996 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
27998         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
27999         Remove duplicate option listings.
28001 2015-01-18  Felix Yang  <felix.yang@huawei.com>
28003         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
28004         (autofdo_source_profile::get_callsite_total_count,
28005         function_instance::get_function_instance_by_decl,
28006         string_table::get_index, string_table::get_index_by_decl,
28007         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
28008         Fix comment typos. Reformatting and minor code rearrangement.
28010 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
28012         * config/rs6000/rs6000.md (probe_stack): Delete.
28013         (probe_stack_address): New.
28015 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
28017         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
28018         to test for 32-bit ABIs, not !TARGET_POWERPC64.
28020 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
28022         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
28023         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
28024         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
28025         snafu.
28026         (rs6000_libcall_value): Use the new function.
28028 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
28030         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
28032 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
28034         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
28035         implement a more precise life analysis for it during backward scan.
28037 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
28039         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
28041 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
28043         PR rtl-optimization/52773
28044         * calls.c (emit_library_call_value): When pushing arguments use
28045         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
28046         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
28047         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
28049 2015-01-17  Jeff Law  <law@redhat.com>
28051         PR rtl-optimization/32790
28052         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
28053         not ZERO_EXTEND in SET_DESTs.
28055 2015-01-17  Alan Modra  <amodra@gmail.com>
28057         * cprop.c (do_local_cprop): Revert last change.
28059 2015-01-16  DJ Delorie  <dj@redhat.com>
28060             Nick Clifton  <nickc@redhat.com>
28062         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
28063         (addhi3_real): Likewise.  Fix [HL+0] syntax.
28064         (subqi3_real): Likewise.
28065         (subhi3_real): Likewise.
28066         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
28067         (cbranchhi4_real): Likewise.
28068         (cbranchhi4_real_inverted): Likewise.
28069         (cbranchsi4_real_lt): Likewise.
28070         (cbranchsi4_real_ge): Likewise.
28071         (cbranchsi4_real_ge): Likewise.
28072         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
28073         (sub<mode>3_virt): Likewise.
28074         (cbranchqi4_virt): Likewise.
28075         (cbranchhi4_virt): Likewise.
28076         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
28077         always use '[reg+imm]' even when imm is zero.
28078         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
28079         (rl78_general_operand): New.
28080         (rl78_nonimmediate_operand): New.
28081         (rl78_nonfar_operand): Use them.
28082         (rl78_nonfar_nonimm_operand): Likewise.
28083         (rl78_stack_based_mem): Fix.
28084         * config/rl78/constraints.md (Ibqi): New.
28085         (IBqi): New.
28086         (Wsa): New.
28087         (Wsf): New.
28088         (Cs1): Fix.
28089         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
28090         (iorqi3): Likewise.
28091         (xorqi3): Likewise.
28092         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
28094         * config/rl78/constrains (Qs8): New constraint.
28095         * config/rl78/rl78.c (rl78_flags_already_set): New function.
28096         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
28097         * config/rl78/rl78-real.md (update_Z): New attribute.
28098         Update patterns to set it.
28099         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
28100         shorter compare and branch sequence can be used.
28101         (cbranchhi4_real): Likewise.
28102         (cbranchhi4_real_inverted): Likewise.
28104         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
28105         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
28106         address space.
28107         * config/rl78/rl78.c (rl78_get_name_encoding): New.
28108         (rl78_option_override): Allow -mes0 only if C.
28109         (characterize_address): Support subregs of symbol_refs.
28110         (rl78_addr_space_address_mode): Move.  Add __near.
28111         (rl78_far_p): Likewise.
28112         (rl78_addr_space_pointer_mode): Likewise.
28113         (rl78_as_legitimate_address): Likewise.
28114         (rl78_addr_space_subset_p): Likewise.
28115         (rl78_addr_space_convert): Likewise.
28116         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
28117         symbols with -mes0.
28118         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
28119         addressing.
28120         (rl78_alloc_physical_registers_op1): Change logic to prefer
28121         symbol[BC] addressing.
28122         (frodata_section): New.
28123         (rl78_asm_init_sections): Initialize it.
28124         (rl78_select_section): Put __far readonly symbols in .frodata.
28125         (rl78_make_type_far): New.
28126         (rl78_insert_attributes): Force all readonly symbols to be
28127         __far when -mes0.
28128         (rl78_asm_out_integer): New.
28129         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
28130         * config/rl78/rl78.opt (-mes0): New.
28132         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
28133         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
28134         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28135         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
28136         (rl78_saddr_p): New.
28137         (rl78_output_aligned_common): New.
28138         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
28139         (rl78_handle_saddr_attribute): New.
28140         (rl78_handle_naked_attribute): New.
28141         (rl78_attribute_table): Add saddr.
28142         (rl78_print_operand_1): Don't print '!' on saddr operands.
28143         (rl78_print_operand_1): Strip encodings.
28144         (rl78_sfr_p): New.
28145         (rl78_strip_name_encoding): New.
28146         (rl78_attrlist_to_encoding): New.
28147         (rl78_encode_section_info): New.
28148         (rl78_asm_init_sections): New.
28149         (rl78_select_section): New.
28150         (rl78_output_labelref): New.
28151         (rl78_output_aligned_common): New.
28152         (rl78_asm_out_integer): New.
28153         (rl78_asm_ctor_dtor): New.
28154         (rl78_asm_constructor): New.
28155         (rl78_asm_destructor): New.
28157         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
28158         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
28159         (transcode_memory_rtx): Update.
28160         (rl78_expand_epilogue): Use A_REG instead of 0.
28162 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28164         * config/arm/arm-protos.h (struct tune_params): New field
28165         sched_autopref_queue_depth.
28166         * config/arm/arm.c (sched-int.h): Include header.
28167         (arm_first_cycle_multipass_dfa_lookahead_guard,)
28168         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
28169         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
28170         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
28171         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
28172         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
28173         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
28174         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
28175         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
28176         * config/arm/t-arm (arm.o): Update.
28177         * haifa-sched.c (update_insn_after_change): Update.
28178         (rank_for_schedule): Use auto-prefetcher model, if requested.
28179         (autopref_multipass_init): New static function.
28180         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
28181         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
28182         variable for debug dumps.
28183         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
28184         (autopref_multipass_dfa_lookahead_guard): New global function that
28185         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
28186         (init_h_i_d): Update.
28187         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
28188         * sched-int.h (enum autopref_multipass_data_status): New const enum.
28189         (autopref_multipass_data_): Structure for auto-prefetcher data.
28190         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
28191         (struct _haifa_insn_data:autopref_multipass_data): New field.
28192         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
28193         (autopref_multipass_dfa_lookahead_guard): Declare.
28195 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28197         * rtlanal.c (get_base_term): Handle SCRATCH.
28199 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28201         * config/aarch64/aarch64.c
28202         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
28203         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28204         * config/arm/arm.c
28205         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
28206         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
28208 2015-01-17  Alan Modra  <amodra@gmail.com>
28210         * cprop.c (do_local_cprop): Disallow replacement of fixed
28211         hard registers.
28213 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28215         PR target/62066
28216         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
28217         early return 0.
28219 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28221         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
28222         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
28224 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28226         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
28227         * config/arm/thumb1.md: ... Here.
28229 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
28231         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
28232         TImode for TARGET_32BIT.
28234 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
28236         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
28237         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
28238         as ...
28239         (rs6000_abi_word_mode): New function.
28241 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
28243         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
28244         instead of UNITS_PER_WORD to describe the size of stack slots.
28246 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
28248         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
28249         as rs6000_promote_function_mode.  Move comment to there.
28250         (rs6000_promote_function_mode): New function.
28252 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
28254         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
28255         -mpowerpc64 is active.
28257 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
28259         PR middle-end/64353
28260         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
28261         virtuals on start.
28263 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
28265         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
28266         introduced in revision 219724.
28268 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28269             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28271         PR target/64263
28272         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
28273         destination is not a GP reg.
28274         (*movdi_aarch64): Likewise.
28276 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
28278         PR target/64623
28279         * config/rs6000/default64.h: Revert ISA change.
28281 2015-01-16  Richard Biener  <rguenther@suse.de>
28283         PR middle-end/64614
28284         * tree-ssa-uninit.c: Include tree-cfg.h.
28285         (MAX_SWITCH_CASES): New define.
28286         (convert_control_dep_chain_into_preds): Handle switch statements.
28287         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
28288         (normalize_one_pred_1): Do not split bit-manipulations.
28289         Record (x & CST).
28291 2015-01-16  Richard Biener  <rguenther@suse.de>
28293         PR tree-optimization/64568
28294         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
28295         complex load rewriting for TARGET_MEM_REFs.
28297 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
28299         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
28301 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
28303         PR target/64149
28304         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
28305         variable.
28306         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
28307         (aarch64_lra_p): Remove.
28309 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
28311         PR target/64363
28312         * ipa-chkp.h (chkp_instrumentable_p): New.
28313         * ipa-chkp.c: Include tree-inline.h.
28314         (chkp_instrumentable_p): New.
28315         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
28316         Fix processing of not instrumentable functions.
28317         (chkp_versioning): Use chkp_instrumentable_p. Warn about
28318         not instrumentable functions.
28319         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
28320         chkp_instrumentable_p.
28321         * tree-inline.h (copy_forbidden): New.
28322         * tree-inline.c (copy_forbidden): Not static anymore.
28324 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28326         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
28327         ptr1, ptr2 unused.
28329 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
28331         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
28332         type OP_OUT to OP_INOUT.
28334 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
28336         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
28337         (high x) y) to y if x and y have the same base.
28339 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
28341         * config/arm/cortex-a57.md: New.
28342         * config/aarch64/aarch64.md: Include it.
28343         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
28344         * config/aarch64/aarch64-tune.md: Regenerate.
28346 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28348         PR target/64015
28349         * ccmp.c (expand_ccmp_next): New function.
28350         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
28351         and compare insn sequence.
28352         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
28353         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
28354         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
28355         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
28356         (*ccmp_ior): Changed to ccmp_ior<mode>.
28357         (cmp<mode>): New pattern.
28358         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
28359         parameters.
28360         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
28362 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
28364         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
28365         _mm256_bsrli_epi128): New.
28366         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
28368 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
28370         * expmed.c (store_bit_field_using_insv): Improve warning message.
28371         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
28373 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
28375         PR rtl-optimization/64011
28376         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
28377         there is partial overflow.
28379 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28381         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
28382         prototype.
28383         (nds32_expand_epilogue_v3pop): Likewise.
28384         * config/nds32/nds32.md (sibcall): Define this for sibling call
28385         optimization.
28386         (sibcall_register): Likewise.
28387         (sibcall_immediate): Likewise.
28388         (sibcall_value): Likewise.
28389         (sibcall_value_register): Likewise.
28390         (sibcall_value_immediate): Likewise.
28391         (sibcall_epilogue): Likewise.
28392         (epilogue): Pass false to indicate this is not a sibcall epilogue.
28393         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
28394         (nds32_expand_epilogue_v3pop): Likewise.
28396 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28398         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
28399         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
28400         (return_internal): New.
28401         (return): Define this named pattern.
28402         (simple_return): Define this named pattern.
28403         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
28404         pattern instead of unspec_volatile_func_return.
28405         (nds32_expand_epilogue_v3pop): Likewise.
28406         (nds32_can_use_return_insn): New function.
28408 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28410         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
28411         * config/nds32/nds32.md (pop25return): New.
28412         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
28413         pop25return pattern.
28415 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28417         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
28418         -mforbid-fp-as-gp, and -mex9 options.
28420 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
28422         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
28423         remove -mgp-direct option.
28425 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
28427         * doc/invoke.texi (--param early-inlining-insns): Update default value.
28428         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
28430 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
28432         * ipa-inline.c (inline_small_functions): Work around hints
28433         cache issue.
28435 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
28437         PR target/59710
28438         * doc/invoke.texi (Option Summary): Document new Nios II
28439         -mgpopt= syntax.
28440         (Nios II Options): Likewise.
28441         * config/nios2/nios2.opt: Add -mgpopt= option support.
28442         Modify existing -mgpopt and -mno-gpopt options to be aliases.
28443         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
28444         * config/nios2/nios2.c (nios2_option_override): Adjust
28445         -mgpopt defaulting.
28446         (nios2_in_small_data_p): Return true for explicit small data
28447         sections even with -G0.
28448         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
28449         option choices.
28451 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
28453         PR ipa/64612
28454         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
28455         of comdat locals.
28456         (inline_call): Fix removal of aliases.
28458 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
28460         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
28461         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
28462         * opts.c (common_handle_option): Add -fsanitize=vptr.
28463         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
28464         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
28465         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
28466         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
28467         (ubsan_expand_vptr_ifn): New prototype.
28468         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
28469         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
28470         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
28471         expand_LOOP_VECTORIZED): Make argument nameless, remove
28472         ATTRIBUTE_UNUSED.
28473         (expand_UBSAN_VPTR): New function.
28474         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
28475         in fn spec.
28476         (UBSAN_VPTR): New internal function.
28477         * sanopt.c (tree_map_traits): Renamed to ...
28478         (sanopt_tree_map_traits): ... this.
28479         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
28480         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
28481         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
28482         (maybe_optimize_ubsan_vptr_ifn): New function.
28483         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
28484         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
28485         -fsanitize=vptr.
28486         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
28487         internal calls like pure functions for aliasing, even when they
28488         have other side-effects that prevent making them ECF_PURE.
28489         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
28490         (ubsan_expand_vptr_ifn): New function.
28492 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
28494         PR rtl-optimization/64110
28495         * stmt.c (parse_output_constraint): Process '^' and '$'.
28496         (parse_input_constraint): Ditto.
28497         * lra-constraints.c (process_alt_operands): Process the new
28498         constraints.
28499         * ira-costs.c (record_reg_classes): Process the new constraint
28500         '^'.
28501         * genoutput.c (indep_constraints): Add '^' and '$'.
28502         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
28503         * doc/md.texi: Add description of the new constraints.
28505 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
28506             Bernd Schmidt  <bernds@codesourcery.com>
28507             Cesar Philippidis  <cesar@codesourcery.com>
28508             James Norris  <jnorris@codesourcery.com>
28509             Tom de Vries  <tom@codesourcery.com>
28510             Ilmir Usmanov  <i.usmanov@samsung.com>
28511             Dmitry Bocharnikov  <dmitry.b@samsung.com>
28512             Evgeny Gavrin  <e.gavrin@samsung.com>
28513             Jakub Jelinek  <jakub@redhat.com>
28515         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
28516         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28517         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28518         New function types.
28519         * builtins.c: Include "gomp-constants.h".
28520         (expand_builtin_acc_on_device): New function.
28521         (expand_builtin, is_inexpensive_builtin): Handle
28522         BUILT_IN_ACC_ON_DEVICE.
28523         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
28524         New macros.
28525         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
28526         flag_openmp.
28527         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
28528         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
28529         i386/intelmic-offload.h.
28530         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
28531         to libgomp and its dependencies.
28532         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
28533         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28534         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28535         * config/ia64/hpux.h (LIB_SPEC): Likewise.
28536         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28537         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28538         * doc/generic.texi: Update for OpenACC changes.
28539         * doc/gimple.texi: Likewise.
28540         * doc/invoke.texi: Likewise.
28541         * doc/sourcebuild.texi: Likewise.
28542         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
28543         GF_OMP_FOR_KIND_OACC_LOOP.
28544         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
28545         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
28546         GF_OMP_TARGET_KIND_OACC_UPDATE,
28547         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28548         Dump more data.
28549         * gimple.c: Update comments for OpenACC changes.
28550         * gimple.def: Likewise.
28551         * gimple.h: Likewise.
28552         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
28553         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28554         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
28555         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
28556         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
28557         appropriate place.
28558         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
28559         * gimplify.c: Include "gomp-constants.h".
28560         Update comments for OpenACC changes.
28561         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
28562         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
28563         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28564         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
28565         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28566         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28567         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
28568         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28569         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
28570         OMP_CLAUSE_SEQ.
28571         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
28572         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
28573         OMP_CLAUSE_SET_MAP_KIND.
28574         (gimplify_oacc_cache): New function.
28575         (gimplify_omp_for): Handle OACC_LOOP.
28576         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
28577         OACC_DATA.
28578         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
28579         OACC_EXIT_DATA, OACC_UPDATE.
28580         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
28581         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
28582         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
28583         (gimplify_body): Consider flag_openacc next to flag_openmp.
28584         * lto-streamer-out.c: Include "gomp-constants.h".
28585         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
28586         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
28587         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
28588         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
28589         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
28590         (BUILT_IN_ACC_ON_DEVICE): New builtins.
28591         * omp-low.c: Include "gomp-constants.h".
28592         Update comments for OpenACC changes.
28593         (struct omp_context): Add reduction_map, gwv_below, gwv_this
28594         members.
28595         (extract_omp_for_data, use_pointer_for_field, install_var_field)
28596         (new_omp_context, delete_omp_context, scan_sharing_clauses)
28597         (create_omp_child_function, scan_omp_for, scan_omp_target)
28598         (check_omp_nesting_restrictions, lower_reduction_clauses)
28599         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
28600         Update for OpenACC changes.
28601         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
28602         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
28603         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
28604         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
28605         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
28606         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
28607         OMP_CLAUSE_MAP_*.
28608         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
28609         Handle GF_OMP_FOR_KIND_OACC_LOOP.
28610         (expand_omp_target, lower_omp_target): Handle
28611         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
28612         GF_OMP_TARGET_KIND_OACC_UPDATE,
28613         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
28614         GF_OMP_TARGET_KIND_OACC_DATA.
28615         (pass_expand_omp::execute, execute_lower_omp)
28616         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
28617         flag_openmp.
28618         (offload_symbol_decl): New variable.
28619         (oacc_get_reduction_array_id, oacc_max_threads)
28620         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
28621         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
28622         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
28623         (oacc_gimple_assign, oacc_initialize_reduction_data)
28624         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
28625         functions.
28626         (is_targetreg_ctx): Remove function.
28627         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
28628         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
28629         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
28630         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
28631         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
28632         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
28633         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
28634         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
28635         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
28636         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
28637         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
28638         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
28639         * tree-core.h: Update comments for OpenACC changes.
28640         (enum omp_clause_map_kind): Remove.
28641         (struct tree_omp_clause): Change type of map_kind member from enum
28642         omp_clause_map_kind to unsigned char.
28643         * tree-inline.c: Update comments for OpenACC changes.
28644         * tree-nested.c: Likewise.  Include "gomp-constants.h".
28645         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
28646         (convert_tramp_reference_stmt, convert_gimple_call): Update for
28647         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
28648         OMP_CLAUSE_SET_MAP_KIND.
28649         * tree-pretty-print.c: Include "gomp-constants.h".
28650         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
28651         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
28652         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
28653         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
28654         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
28655         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
28656         instead of OMP_CLAUSE_MAP_*.
28657         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
28658         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
28659         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
28660         * tree-streamer-in.c: Include "gomp-constants.h".
28661         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
28662         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
28663         * tree-streamer-out.c: Include "gomp-constants.h".
28664         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
28665         OMP_CLAUSE_MAP_*.
28666         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
28667         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
28668         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
28669         * tree.c (omp_clause_num_ops): Update accordingly.
28670         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
28671         Likewise.
28672         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
28673         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
28674         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
28675         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
28676         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
28677         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
28678         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
28679         (OMP_CLAUSE_SET_MAP_KIND): New macro.
28680         * varpool.c (varpool_node::get_create): Consider flag_openacc next
28681         to flag_openmp.
28682         * config/i386/intelmic-offload.h: New file.
28683         * config/nvptx/offload.h: Likewise.
28685 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28687         * explow.h: Remove duplicate contents.
28688         * dojump.h: Likewise.
28690 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
28692         * arm.c (arm_xgene_tune): Add default initializer for instruction
28693         fusion.
28695 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
28697         PR ipa/64068
28698         PR ipa/64559
28699         * ipa.c (symbol_table::remove_unreachable_nodes):
28700         Do not put abstract origins into boundary.
28702 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
28704         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
28705         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
28707 2015-01-15  Steve Ellcey  <sellcey@mips.com>
28709         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
28710         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
28711         builtins.def, and chkp-builtins.def.
28713 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
28715         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
28716         ISA 2.7 (POWER8).
28718 2015-01-15  Richard Biener  <rguenther@suse.de>
28720         PR tree-optimization/61743
28721         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
28722         information on PHIs for some simple cases.
28724 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28726         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
28727         Include xgene1.md.
28728         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
28729         * config/arm/arm-cores.def (xgene1): New entry.
28730         * config/arm/arm-tables.opt: Regenerate.
28731         * config/arm/arm-tune.md: Regenerate.
28732         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
28734 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
28736         * tree-if-conv.c: Include hash-map.h.
28737         (aggressive_if_conv): New variable.
28738         (fold_build_cond_expr): Add simplification of non-zero condition.
28739         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
28740         destination block is not always executed.
28741         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
28742         than two predecessors if AGGRESSIVE_IF_CONV is true.
28743         (if_convertible_stmt_p): Fix commentary.
28744         (all_preds_critical_p): New function.
28745         (has_pred_critical_p): New function.
28746         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
28747         BB can have more than two predecessors and all incoming edges can be
28748         critical.
28749         (predicate_bbs): Skip predication for loop exit block, use build2_loc
28750         to compute predicate for true edge.
28751         (find_phi_replacement_condition): Delete this function.
28752         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
28753         Allow interchange PHI arguments if EXTENDED is false.
28754         Change check that block containing reduction statement candidate
28755         is predecessor of phi-block since phi may have more than two arguments.
28756         (phi_args_hash_traits): New helper structure.
28757         (struct phi_args_hash_traits): New type.
28758         (phi_args_hash_traits::hash): New function.
28759         (phi_args_hash_traits::equal_keys): New function.
28760         (gen_phi_arg_condition): New function.
28761         (predicate_scalar_phi): Add handling of phi nodes with more than two
28762         arguments, delete COND and TRUE_BB arguments, insert body of
28763         find_phi_replacement_condition to predicate ordinary phi nodes.
28764         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
28765         delete call of find_phi_replacement_condition and invoke
28766         predicate_scalar_phi with two arguments.
28767         (insert_gimplified_predicates): Add assert that non-predicated block
28768         don't have statements to insert.
28769         (ifcvt_split_critical_edges): New function.
28770         (ifcvt_split_def_stmt): Likewise.
28771         (ifcvt_walk_pattern_tree): Likewise.
28772         (stmt_is_root_of_bool_pattern): Likewise.
28773         (ifcvt_repair_bool_pattern): Likewise.
28774         (ifcvt_local_dce): Likewise.
28775         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
28776         is copy of inner or outer loop force_vectorize field, invoke
28777         ifcvt_split_critical_edges, ifcvt_local_dce and
28778         ifcvt_repair_bool_pattern for aggressive if-conversion.
28780 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
28782         * config/aarch64/aarch64.md: Include xgene1.md.
28783         * config/aarch64/xgene1.md: New file.
28785 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28787         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
28788         xgene1 (APM XGene-1) core definition.
28789         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
28790         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
28791         * doc/invoke.texi: Document -mcpu=xgene1.
28793 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28795         * dojump.h: New header file.
28796         * explow.h: Likewise.
28797         * expr.h: Remove includes.
28798         Move expmed.c prototypes to expmed.h.
28799         Move dojump.c prototypes to dojump.h.
28800         Move alias.c prototypes to alias.h.
28801         Move explow.c prototypes to explow.h.
28802         Move calls.c prototypes to calls.h.
28803         Move emit-rtl.c prototypes to emit-rtl.h.
28804         Move varasm.c prototypes to varasm.h.
28805         Move stmt.c prototypes to stmt.h.
28806         (saved_pending_stack_adjust): Move to dojump.h.
28807         (adjust_address): Move to explow.h.
28808         (adjust_address_nv): Move to emit-rtl.h.
28809         (adjust_bitfield_address): Likewise.
28810         (adjust_bitfield_address_size): Likewise.
28811         (adjust_bitfield_address_nv): Likewise.
28812         (adjust_automodify_address_nv): Likewise.
28813         * explow.c (expr_size): Move to expr.c.
28814         (int_expr_size): Likewise.
28815         (tree_expr_size): Likewise.
28816         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28817         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
28818         * genemit.c (main): Generate includes statistics.h, real.h,
28819         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
28820         stmt.h.
28821         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
28822         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
28823         explow.h, emit-rtl.h, stmt.h.
28824         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
28825         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
28826         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
28827         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
28828         emit-rtl.h, varasm.h, stmt.h.
28829         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
28830         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
28831         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
28832         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
28833         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28834         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
28835         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
28836         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
28837         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
28838         tm.h tree.h varasm.h vec.h wide-int.h.
28839         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28840         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28841         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
28842         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
28843         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
28844         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
28845         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
28846         * loop-iv.c: Likewise.
28847         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
28848         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
28849         statistics.h stmt.h tree.h varasm.h wide-int.h.
28850         * lra-constraints.c: Likewise.
28851         * lra-eliminations.c: Likewise.
28852         * lra-lives.c: Likewise.
28853         * lra-remat.c: Likewise.
28854         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28855         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
28856         statistics.h stmt.h tree.h varasm.h wide-int.h.
28857         * hw-doloop.c: Likewise.
28858         * ira-color.c: Likewise.
28859         * ira-emit.c: Likewise.
28860         * loop-doloop.c: Likewise.
28861         * loop-invariant.c: Likewise.
28862         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28863         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
28864         statistics.h stmt.h tree.h varasm.h wide-int.h.
28865         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
28866         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
28867         statistics.h stmt.h tree.h varasm.h wide-int.h.
28868         * combine-stack-adj.c: Likewise.
28869         * cse.c: Likewise.
28870         * ddg.c: Likewise.
28871         * ifcvt.c: Likewise.
28872         * ira-costs.c: Likewise.
28873         * jump.c: Likewise.
28874         * lra-coalesce.c: Likewise.
28875         * lra-spills.c: Likewise.
28876         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28877         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
28878         stmt.h varasm.h wide-int.h.
28879         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
28880         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28881         varasm.h.
28882         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
28883         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
28884         statistics.h stmt.h varasm.h wide-int.h.
28885         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
28886         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
28887         varasm.h wide-int.h.
28888         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
28889         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
28890         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
28891         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
28892         statistics.h stmt.h.
28893         * config/tilepro/tilepro.c: Likewise.
28894         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
28895         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
28896         * config/pdp11/pdp11.c: Likewise.
28897         * config/xtensa/xtensa.c: Likewise.
28898         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
28899         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
28900         varasm.h.
28901         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28902         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28903         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
28904         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28905         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
28906         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
28907         * rtl-chkp.c: Likewise.
28908         * tree-chkp-opt.c: Likewise.
28909         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
28910         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
28911         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
28912         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28913         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
28914         statistics.h stmt.h.
28915         * tree-vect-data-refs.c: Likewise.
28916         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
28917         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28918         rtl.h statistics.h stmt.h varasm.h.
28919         * internal-fn.c: Likewise.
28920         * ipa-icf-gimple.c: Likewise.
28921         * lto-section-out.c: Likewise.
28922         * tree-data-ref.c: Likewise.
28923         * tree-nested.c: Likewise.
28924         * tree-outof-ssa.c: Likewise.
28925         * tree-predcom.c: Likewise.
28926         * tree-pretty-print.c: Likewise.
28927         * tree-scalar-evolution.c: Likewise.
28928         * tree-ssa-strlen.c: Likewise.
28929         * tree-vect-loop.c: Likewise.
28930         * tree-vect-patterns.c: Likewise.
28931         * tree-vect-slp.c: Likewise.
28932         * tree-vect-stmts.c: Likewise.
28933         * tsan.c: Likewise.
28934         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28935         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
28936         stmt.h.
28937         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
28938         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
28939         statistics.h stmt.h varasm.h.
28940         * loop-unroll.c: Likewise.
28941         * ubsan.c: Likewise.
28942         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
28943         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
28944         stmt.h varasm.h.
28945         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28946         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
28947         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
28948         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28949         statistics.h stmt.h.
28950         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
28951         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
28952         statistics.h stmt.h varasm.h.
28953         * gimple-match-head.c: Likewise.
28954         * lto-cgraph.c: Likewise.
28955         * lto-section-in.c: Likewise.
28956         * lto-streamer-in.c: Likewise.
28957         * lto-streamer-out.c: Likewise.
28958         * tree-affine.c: Likewise.
28959         * tree-cfg.c: Likewise.
28960         * tree-cfgcleanup.c: Likewise.
28961         * tree-if-conv.c: Likewise.
28962         * tree-into-ssa.c: Likewise.
28963         * tree-ssa-alias.c: Likewise.
28964         * tree-ssa-copyrename.c: Likewise.
28965         * tree-ssa-dse.c: Likewise.
28966         * tree-ssa-forwprop.c: Likewise.
28967         * tree-ssa-live.c: Likewise.
28968         * tree-ssa-math-opts.c: Likewise.
28969         * tree-ssa-pre.c: Likewise.
28970         * tree-ssa-sccvn.c: Likewise.
28971         * tree-tailcall.c: Likewise.
28972         * tree-vect-generic.c: Likewise.
28973         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28974         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
28975         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28976         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
28977         * varasm.c: Likewise.
28978         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28979         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
28980         varasm.h.
28981         * init-regs.c: Likewise.
28982         * ira.c: Likewise.
28983         * omp-low.c: Likewise.
28984         * stack-ptr-mod.c: Likewise.
28985         * tree-ssa-reassoc.c: Likewise.
28986         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28987         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
28988         varasm.h.
28989         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28990         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
28991         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28992         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
28993         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28994         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
28995         * tree-ssa-phiopt.c: Likewise.
28996         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
28997         fixed-value.h hashtab.h real.h statistics.h stmt.h.
28998         * config/fr30/fr30.c: Likewise.
28999         * config/frv/frv.c: Likewise.
29000         * expr.c: Likewise.
29001         * final.c: Likewise.
29002         * optabs.c: Likewise.
29003         * passes.c: Likewise.
29004         * simplify-rtx.c: Likewise.
29005         * stmt.c: Likewise.
29006         * toplev.c: Likewise.
29007         * var-tracking.c: Likewise.
29008         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29009         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29010         * lower-subreg.c: Likewise.
29011         * postreload-gcse.c: Likewise.
29012         * ree.c: Likewise.
29013         * reginfo.c: Likewise.
29014         * store-motion.c: Likewise.
29015         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29016         fixed-value.h hashtab.h real.h stmt.h varasm.h.
29017         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29018         fixed-value.h hashtab.h statistics.h stmt.h.
29019         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29020         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
29021         * except.c: Likewise.
29022         * explow.c: Likewise.
29023         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29024         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
29025         varasm.h.
29026         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29027         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
29028         * tree-ssa-structalias.c: Likewise.
29029         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29030         fixed-value.h insn-config.h real.h statistics.h.
29031         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29032         fixed-value.h insn-config.h real.h statistics.h stmt.h.
29033         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29034         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29035         * cfgbuild.c: Likewise.
29036         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29037         fixed-value.h real.h rtl.h statistics.h stmt.h.
29038         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29039         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29040         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29041         fixed-value.h real.h statistics.h stmt.h.
29042         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29043         fixed-value.h real.h statistics.h stmt.h varasm.h.
29044         * cprop.c: Likewise.
29045         * modulo-sched.c: Likewise.
29046         * postreload.c: Likewise.
29047         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
29048         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
29049         statistics.h stmt.h varasm.h.
29050         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
29051         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29052         rtl.h statistics.h stmt.h varasm.h.
29053         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
29054         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
29055         varasm.h.
29056         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
29057         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
29058         varasm.h.
29059         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
29060         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
29061         varasm.h.
29062         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
29063         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29064         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29065         function.h real.h statistics.h stmt.h varasm.h.
29066         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29067         insn-config.h real.h statistics.h stmt.h.
29068         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
29069         statistics.h stmt.h.
29070         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
29071         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
29072         statistics.h stmt.h varasm.h.
29073         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
29074         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
29075         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29076         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
29077         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
29078         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
29079         statistics.h stmt.h varasm.h.
29080         * ipa-polymorphic-call.c: Likewise.
29081         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
29082         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29083         statistics.h stmt.h.
29084         * config/c6x/c6x.c: Likewise.
29085         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
29086         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29087         statistics.h stmt.h varasm.h.
29088         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
29089         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
29090         stmt.h varasm.h.
29091         * ipa-split.c: Likewise.
29092         * tree-eh.c: Likewise.
29093         * tree-ssa-dce.c: Likewise.
29094         * tree-ssa-loop-niter.c: Likewise.
29095         * tree-vrp.c: Likewise.
29096         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
29097         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
29098         stmt.h.
29099         * config/nds32/nds32-fp-as-gp.c: Likewise.
29100         * config/nds32/nds32-intrinsic.c: Likewise.
29101         * config/nds32/nds32-isr.c: Likewise.
29102         * config/nds32/nds32-md-auxiliary.c: Likewise.
29103         * config/nds32/nds32-memory-manipulation.c: Likewise.
29104         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29105         * config/nds32/nds32-predicates.c: Likewise.
29106         * config/nds32/nds32.c: Likewise.
29107         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
29108         fixed-value.h hashtab.h real.h statistics.h.
29109         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
29110         fixed-value.h hashtab.h real.h statistics.h stmt.h.
29111         * config/arm/arm.c: Likewise.
29112         * config/avr/avr.c: Likewise.
29113         * config/bfin/bfin.c: Likewise.
29114         * config/h8300/h8300.c: Likewise.
29115         * config/i386/i386.c: Likewise.
29116         * config/ia64/ia64.c: Likewise.
29117         * config/iq2000/iq2000.c: Likewise.
29118         * config/m32c/m32c.c: Likewise.
29119         * config/m32r/m32r.c: Likewise.
29120         * config/m68k/m68k.c: Likewise.
29121         * config/mcore/mcore.c: Likewise.
29122         * config/mep/mep.c: Likewise.
29123         * config/mips/mips.c: Likewise.
29124         * config/mn10300/mn10300.c: Likewise.
29125         * config/moxie/moxie.c: Likewise.
29126         * config/pa/pa.c: Likewise.
29127         * config/rl78/rl78.c: Likewise.
29128         * config/rx/rx.c: Likewise.
29129         * config/s390/s390.c: Likewise.
29130         * config/sh/sh.c: Likewise.
29131         * config/sparc/sparc.c: Likewise.
29132         * config/spu/spu.c: Likewise.
29133         * config/stormy16/stormy16.c: Likewise.
29134         * config/v850/v850.c: Likewise.
29135         * config/vax/vax.c: Likewise.
29136         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
29137         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
29138         * config/msp430/msp430.c: Likewise.
29139         * predict.c: Likewise.
29140         * value-prof.c: Likewise.
29141         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
29142         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
29143         * config/microblaze/microblaze.c: Likewise.
29144         * config/nios2/nios2.c: Likewise.
29145         * config/rs6000/rs6000.c: Likewise.
29146         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29147         insn-config.h real.h rtl.h statistics.h stmt.h.
29148         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
29149         insn-config.h real.h statistics.h stmt.h.
29150         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
29151         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
29152         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
29153         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29154         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
29155         fixed-value.h real.h statistics.h stmt.h.
29156         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
29157         fixed-value.h statistics.h stmt.h.
29158         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
29159         stmt.h.
29161 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
29163         * gengtype.c (create_user_defined_type): Workaround
29164         -Wmaybe-uninitialized false positives.
29165         * cse.c (fold_rtx): Likewise.
29166         * loop-invariant.c (gain_for_invariant): Likewise.
29168 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29170         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
29171         set the memory attributes in all cases but clear MEM_EXPR if need be.
29173 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
29175         PR tree-optimization/64434
29176         * cfgexpand.c (reorder_operands): New function.
29177         (expand_gimple_basic_block): Insert call of reorder_operands if
29178         optimized is true.
29180 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
29182         * config/mips/micromips.md (*swp): Remove explicit parallel.
29183         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
29184         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
29185         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
29186         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
29187         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
29188         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
29189         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
29190         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
29191         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
29192         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
29193         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
29194         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
29195         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
29196         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
29197         (mips_wrdsp): Likewise.
29198         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
29199         parallel.
29200         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
29201         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
29202         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
29203         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
29204         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
29205         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
29206         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
29207         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
29208         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
29210 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
29212         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
29213         (mips_print_operand): Support 'y' to print exact log2 in decimal
29214         of a const_int.
29215         * config/mips/mips.h (ISA_HAS_LSA): New define.
29216         (ISA_HAS_DLSA): Likewise.
29217         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
29218         * config/mips/predicates.md (const_immlsa_operand): New predicate.
29220 2015-01-15  Martin Liska  <mliska@suse.cz>
29222         PR target/64377
29223         * optc-save-gen.awk: Add support for array types.
29225 2015-01-15  Richard Biener  <rguenther@suse.de>
29227         PR middle-end/64365
29228         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
29229         for MEM_REF access functions with the same base can never partially
29230         overlap.
29232 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
29234         * common.opt: New option -fstack-protector-explicit.
29235         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
29236         (stack_protect_decl_phase): Handle stack_protect attribute for
29237         explicit stack protection requests.
29238         (expand_used_vars): Similarly.
29239         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
29240         * doc/extend.texi: Add documentation for "stack_protect" attribute.
29241         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
29243 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
29245         PR target/53988
29246         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
29247         reg-reg copies.
29248         (sh_extending_set_of_reg): New struct.
29249         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
29250         sh_remove_reg_dead_or_unused_notes): New Declarations.
29251         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
29252         sh_find_extending_set_of_reg, sh_split_tst_subregs,
29253         sh_extending_set_of_reg::use_as_extended_reg): New functions.
29254         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
29255         convert to insn_and_split and use new function sh_split_tst_subregs.
29257 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
29259         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
29260         option.
29261         (Optimization Options): Move -fuse-ld documentation to...
29262         (Link Options): ...here.
29264 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
29266         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
29267         offsets.
29268         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
29269         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
29270         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
29271         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
29272         instead of ZR for the memory operand of LL/SC.
29273         (compare_and_swap_12, sync_add<mode>): Likewise.
29274         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
29275         (sync_new_<optab>_12, sync_nand_12): Likewise.
29276         (sync_old_nand_12, sync_new_nand_12): Likewise.
29277         (sync_sub<mode>, sync_old_add<mode>): Likewise.
29278         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
29279         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
29280         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
29281         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
29282         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
29283         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
29284         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
29285         * doc/md.texi (ZC): Update description.
29287 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
29289         * builtins.c (expand_builtin_atomic_exchange): Remove error when
29290         memory model is CONSUME.
29291         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
29292         expand_builtin_atomic_store): Change invalid memory model errors to
29293         warnings.
29294         (expand_builtin_atomic_clear): Change invalid model errors to warnings
29295         and issue warning for CONSUME.
29297 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
29299         * lto-cgraph: Update function comments for
29300         lto_symtab_encoder_encode_*.
29302 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
29304         * Makefile.in (site.exp): Do not set ENABLE_LTO.
29306 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
29308         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
29309         * lto-cgraph.c (select_what_to_stream): Remove argument, use
29310         lto_stream_offload_p instead.
29311         * lto-streamer.h (select_what_to_stream): Remove argument.
29312         * passes.c (ipa_write_summaries): Likewise.
29313         * tree-pass.h (ipa_write_summaries): Likewise.
29315 2015-01-14  Richard Biener  <rguenther@suse.de>
29317         PR tree-optimization/59354
29318         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
29319         groups larger than the slp group size as having gaps.
29321 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
29323         PR middle-end/59448
29324         * builtins.c (get_memmodel): Promote consume to acquire always.
29326 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
29328         PR target/64386
29329         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
29330         V32HImode.
29332 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
29334         PR target/64393
29335         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
29336         Enable AVX512BW.
29337         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
29338         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
29339         AVX512VBMI, as it implies AVX512BW.
29341 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
29343         PR target/64387
29344         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
29345         (vec_unpacks_hi_v16sf): Ditto.
29347 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29349         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
29350         is not available.
29352 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29354         * doc/invoke.texi (mapcs): Mention deprecation.
29355         (mapcs-frame): Likewise.
29357 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29359         PR target/64453
29360         * config/arm/arm.c (callee_saved_reg_p): Define.
29361         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
29362         register is callee saved instead of !call_used_regs[reg].
29363         (thumb1_compute_save_reg_mask): Likewise.
29365 2015-01-14  Hale Wang  <hale.wang@arm.com>
29367         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
29368         Cortex-M7.
29370 2015-01-14  Richard Biener  <rguenther@suse.de>
29372         PR lto/64415
29373         * tree-inline.c (insert_debug_decl_map): Check destination
29374         function MAY_HAVE_DEBUG_STMTS.
29375         (insert_init_debug_bind): Likewise.
29376         (insert_init_stmt): Remove redundant check.
29377         (remap_gimple_stmt): Drop debug stmts if the destination
29378         function has var-tracking assignments disabled.
29380 2015-01-14  Martin Liska  <mliska@suse.cz>
29382         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
29383         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
29385 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29387         PR target/64460
29388         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
29389         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
29391 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
29393         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
29394         level from an ARCH; do not inject the default.
29395         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
29396         MIPS_ISA_LEVEL_SPEC.
29397         (MIPS_ISA_NAN2008_SPEC): Update comment.
29398         (BASE_DRIVER_SELF_SPECS): Likewise.
29399         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
29400         MIPS_DEFAULT_ISA_LEVEL_SPEC.
29401         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
29402         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
29403         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
29405 2015-01-14  Richard Biener  <rguenther@suse.de>
29407         PR tree-optimization/64493
29408         PR tree-optimization/64495
29409         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
29410         assign the proper vectorized PHI to the inner loop exit PHIs.
29412 2015-01-14  Joey Ye  <joey.ye@arm.com>
29414         * config/arm/arm.c (arm_compute_save_reg_mask):
29415         Do not save lr in case of tail call.
29416         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
29418 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
29420         * tree-vrp.c (check_array_ref): Emit more warnings
29421         for warn_array_bounds >= 2.
29422         * common.opt: New option -Warray-bounds=.
29423         * doc/invoke.texi: Document -Warray-bounds=.
29425 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29427         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
29428         (mforbid-fp-as-gp): Remove.
29429         (mex9): Remove.
29430         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
29431         (nds32_symbol_load_store_p): Remove.
29432         (nds32_fp_as_gp_check_available): Clean up implementation.
29433         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
29434         cases.
29435         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
29436         fp-as-gp and ex9 cases.
29438 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
29440         * tree-profile.c (init_ic_make_global_vars): Drop workaround
29441         for bintuils bug 14342.
29442         (init_ic_make_global_vars): Likewise.
29443         (gimple_init_edge_profiler): Likewise.
29444         (gimple_gen_ic_func_profiler): Likewise.
29446 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29448         * ipa-inline.c (inline_small_functions): Swap the operands in
29449         enum.
29451 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
29453         PR ipa/64481
29454         * ipa-inline-analysis.c (node_growth_cache): Remove.
29455         (initialize_growth_caches): Do not initialize it.
29456         (free_growth_caches): Do not free it.
29457         (do_estimate_growth): Rename to ...
29458         (estimate_growth): ... this one; drop growth cache code.
29459         (growth_likely_positive): Always go the heuristics way.
29460         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
29461         (reset_edge_caches): Do not reset node growth.
29462         (heap_edge_removal_hook): Do not maintain cache.
29463         (inline_small_functions): Likewise; strenghten sanity check.
29464         (ipa_inline): Do not maintain caches.
29465         * ipa-inline.h (node_growth_cache): Remove.
29466         (do_estimate_growth): Remove to ...
29467         (estimate_growth): this one; remove inline version.
29468         (reset_node_growth_cache): Remove.
29470 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
29472         PR ipa/64565
29473         * ipa-inline.c (inline_small_functions): Update callee keys after
29474         resolving speculation
29475         (inline_small_functions): Always check monotonicity of the queue.
29477 2015-01-13  Marek Polacek  <polacek@redhat.com>
29479         PR middle-end/64391
29480         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
29482 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
29484         PR rtl-optimization/64286
29485         * ree.c (combine_reaching_defs): Move part of comment earlier,
29486         remove !SCALAR_INT_MODE_P check.
29487         (add_removable_extension): Don't add vector mode
29488         extensions if all uses of the source register aren't the same
29489         vector extensions.
29491 2015-01-13  Renlin Li  <renlin.li@arm.com>
29493         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
29494         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
29496 2015-01-13  Martin Liska  <mliska@suse.cz>
29498         * ipa-icf.c (sem_function::equals_private): Call new functions
29499         cl_target_option_print_diff and cl_optimization_print_diff.
29500         * optc-save-gen.awk (cl_target_option_print_diff): New function.
29501         (cl_optimization_print_diff): Likewise.
29502         * opth-gen.awk: Likewise.
29504 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
29506         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
29507         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
29508         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
29509         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
29510         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
29511         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
29513 2015-01-13  Andrew Pinski  <apinski@cavium.com>
29515         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
29516         instead of src mode.
29518 2015-01-13  Richard Biener  <rguenther@suse.de>
29520         PR lto/64373
29521         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
29522         DECL_CONTEXT.
29524 2015-01-13  Andrew Pinski  <apinski@cavium.com>
29526         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
29527         volatile mems.
29528         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
29530 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
29532         PR middle-end/63974
29533         * cfgexpand.c (expand_computed_goto): Don't call
29534         convert_memory_address here.
29536 2015-01-13  Richard Biener  <rguenther@suse.de>
29538         PR tree-optimization/64406
29539         * tree-loop-distibution.c (pass_loop_distribution::execute):
29540         Reset the SCEV hashtable if we distributed anything.
29542 2015-01-13  Richard Biener  <rguenther@suse.de>
29544         PR tree-optimization/64404
29545         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
29546         SLP types for CSEd loads.
29548 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29550         PR tree-optimization/64436
29551         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
29552         merge of two symbolic numbers for a bitwise OR to ...
29553         (perform_symbolic_merge): This. Also fix computation of the range and
29554         end of the symbolic number corresponding to the result of a bitwise OR.
29556 2015-01-13  Richard Biener  <rguenther@suse.de>
29558         PR tree-optimization/64568
29559         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
29560         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
29562 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29564         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
29565         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
29567 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29569         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
29570         target-specific symbol_ref flag.
29571         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
29572         resides in rodata section.
29573         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
29574         (nds32_encode_section_info): New function.
29576 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29578         * config/nds32/nds32.md (call): Use pseudo instruction bal which
29579         clobbers TA_REGNUM if large code model is specified.
29580         (call_register): Likewise.
29581         (call_immediate): Likewise.
29582         (call_value): Likewise.
29583         (call_value_register): Likewise.
29584         (call_value_immediate): Likewise.
29586 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29588         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
29589         (TARGET_CMODEL_MEDIUM): New macro.
29590         (TARGET_CMODEL_LARGE): New macro.
29591         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
29592         code model setting in assembly code.
29594 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29596         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29597         Remove MASK_GP_DIRECT flag.
29598         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
29599         one of the multilib default options.
29600         * config/nds32/nds32.opt (mgp-direct): Remove.
29601         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
29602         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
29604 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
29606         * config/nds32/nds32.opt (mcmodel): Add new option.
29607         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
29608         to describe code model.
29610 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
29612         PR target/64479
29613         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
29615 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
29617         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
29618         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
29619         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
29620         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
29621         __builtin_sh_set_fpscr.
29623 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
29625         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
29626         after a funtion name just to indicate it is a function.
29627         ([-fsanitize-undefined-trap-on-error]): Likewise.
29628         ([-fdbg-cnt=]): Likewise.
29629         ([-mmemcpy]): Likewise.
29630         ([-mflush-func]): Likewise.
29631         ([-msynci]): Likewise.
29633 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
29635         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
29636         example.
29638 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
29640         PR tree-optimization/64563
29641         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
29642         instead of != VR_VARYING.
29644         PR target/64513
29645         * config/i386/i386.c (ix86_expand_prologue): Add
29646         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
29648         PR tree-optimization/64454
29649         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
29650         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
29651         for signed or [0, op1 - 1] for unsigned modulo.
29652         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
29653         even if op1 does not satisfy integer_pow2p.
29655         PR other/64370
29656         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
29658 2015-01-12  Jeff Law  <law@redhat.com>
29660         PR target/64461
29661         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
29662         (trunchiqi2, truncsihi2): Similarly.
29664         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
29665         rather than calling F.
29667 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29669         * tsan.c (instrument_expr): Use force_gimple_operand.
29670         Use may_be_nonaddressable_p instead of is_gimple_addressable.
29672 2015-01-12  Richard Biener  <rguenther@suse.de>
29674         PR tree-optimization/64530
29675         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
29676         back dr1.
29678 2015-01-12  Richard Biener  <rguenther@suse.de>
29680         PR middle-end/64357
29681         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
29682         latches properly.
29684 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29686         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
29687         Cortex-A17 tuning parameters.
29688         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
29690 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29692         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
29693         * config/arm/arm.c (arm_macro_fusion_p): New function.
29694         (arm_macro_fusion_pair_p): Likewise.
29695         (TARGET_SCHED_MACRO_FUSION_P): Define.
29696         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
29697         (ARM_FUSE_NOTHING): Likewise.
29698         (ARM_FUSE_MOVW_MOVT): Likewise.
29699         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
29700         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
29701         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
29702         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
29703         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
29704         arm_cortex_a5_tune): Specify fuseable_ops value.
29706 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
29708         PR bootstrap/64561
29709         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
29710         test for PIE with copy reloc.
29711         * configure: Regenerated.
29713 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29715         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
29716         in gen_rtx_REG.
29717         (arm_tls_descseq_addr): Likewise.
29718         (arm_gen_movmemqi): Likewise.
29719         (arm_expand_epilogue_apcs_frame): Likewise.
29720         (arm_expand_epilogue): Likewise.
29721         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
29722         in gen_rtx_REG.
29724 2015-01-12  Martin Liska  <mliska@suse.cz>
29726         PR ipa/64550
29727         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
29728         volatility for correct operands.
29730 2015-01-12  Martin Liska  <mliska@suse.cz>
29732         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
29733         indication that a function is not leaf.
29734         (sem_function::compare_polymorphic_p): Likewise.
29736 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29738         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
29739         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
29740         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
29741         fold-const.h, tree-check.h.
29743 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
29745         PR ipa/63967
29746         PR ipa/64425
29747         * ipa-inline.c (compute_uninlined_call_time,
29748         compute_inlined_call_time): Use counts for extra precision when
29749         needed possible.
29750         (big_speedup_p): Fix formating.
29751         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
29752         (relative_time_benefit): Remove.
29753         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
29754         merge guessed and read profile paths.
29755         (inline_small_functions): Count only !optimize_size functions into
29756         initial size; be more lax about sanity check when profile is used;
29757         be sure to update inlined function profile when profile is read.
29759 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
29761         PR ipa/63470
29762         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
29763         cost when edge becomes direct.
29764         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
29765         is resolved or when introducing new speculation.
29767 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
29769         PR ipa/64551
29770         PR ipa/64552
29771         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
29772         '||' to fix typo issue.
29774         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
29775         accept and return NULL.
29777 2015-01-12  Martin Liska  <mliska@suse.cz>
29779         * cgraph.c (cgraph_edge::remove_callee): Move function to header
29780         file for being inlined.
29781         (cgraph_set_edge_callee): Delete.
29782         (cgraph_edge::redirect_callee): Move function to header file
29783         for being inlined.
29784         (cgraph_edge::make_direct): Use new function.
29785         (cgraph_edge::dump_edge_flags): New function created from
29786         static dump_edge_flags function.
29787         (cgraph_node::dump): Use new function.
29788         (cgraph_edge::verify_count_and_frequency): New function created
29789         from verify_edge_count_and_frequency.
29790         (cgraph_edge::verify_corresponds_to_fndecl): New function created
29791         from verify_edge_corresponds_to_fndecl.
29792         (verify_edge_corresponds_to_fndecl): Delete.
29793         (cgraph_node::verify_node): Use new function.
29794         * cgraph.h (cgraph_edge::set_callee): New function.
29795         (cgraph_edge::dump_edge_flags): Likewise.
29796         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
29798 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
29800         * ipa-utils.c (estimate_function_body_sizes): Do not
29801         free node params when called late with early=true.
29803 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
29805         * doc/md.texi (Instruction Patterns): Rewrite text for
29806         clarity.
29807         (Example): Likewise.
29809 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
29811         * doc/invoke.texi (Option Summary): Break long lines.
29812         [(-fdiagnostics-color)]: Put long literal in @smallexample
29813         instead of inline.
29814         [(-fsanitize-recover)]: Likewise.
29815         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
29816         [(-ffast-math)]: Likewise.
29817         [(--param max-inline-insns-recursive)]: Likewise.
29818         [(--param max-inline-recursive-depth)]: Likewise.
29819         [(-mno-text-section-literals)]: Likewise.
29821 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
29823         * doc/install.texi: Update for libgomp being renamed from "GNU
29824         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
29825         Runtime Library".
29826         * doc/sourcebuild.texi: Likewise.
29828 2015-01-10  Anthony Green  <green@moxielogic.com>
29830         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
29831         mul.x availability for moxiebox configuration.
29833 2015-01-09  Anthony Green  <green@moxielogic.com>
29835         * config/moxie/moxie.md: Tabify assembly output.
29837 2015-01-09  Anthony Green  <green@moxielogic.com>
29839         * config/moxie/moxie.md (CC_REG): Correct register definition.
29841 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
29843         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
29844         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
29845         of log files.
29847 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
29849         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
29851 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
29852             Jakub Jelinek  <jakub@redhat.com>
29854         PR middle-end/64412
29855         * lto-streamer.h (lto_stream_offload_p): New declaration.
29856         * lto-streamer.c (lto_stream_offload_p): New variable.
29857         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
29858         at the same time as section_name_prefix.
29859         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
29860         if lto_stream_offload_p.
29861         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
29862         stream TREE_TARGET_OPTION if lto_stream_offload_p.
29863         (write_ts_function_decl_tree_pointers): Don't
29864         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
29865         * tree-streamer-in.c (unpack_value_fields): Don't stream
29866         TREE_TARGET_OPTION in if ACCEL_COMPILER.
29867         (lto_input_ts_function_decl_tree_pointers): Don't stream
29868         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
29869         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
29870         instead of section_name_prefix string comparisons.
29872 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
29874         PR rtl-optimization/64536
29875         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
29876         tablejumps.
29878 2015-01-09  Michael Collison  <michael.collison@linaro.org>
29880         PR tree-optimization/64322
29881         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
29882         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
29884 2015-01-09  Tom de Vries  <tom@codesourcery.com>
29886         PR rtl-optimization/64539
29887         * regcprop.c (kill_clobbered_values): Factor out of ...
29888         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
29889         instead of note_stores with kill_clobbered_value.
29891 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
29893          * ginclude/unwind-arm-common.h: Revert previous commit.
29895 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
29897         * config.gcc (arm*-*-freebsd*): New configuration.
29898         * config/arm/freebsd.h: New file.
29899         * config.host: Add extra components for arm*-*-freebsd*.
29900         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
29901         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
29903 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29905         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
29906         for -mcpu=e6500.
29907         * config/rs6000/t-rtems: Add e6500 multilibs.
29909 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29911         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
29912         MPC8540.
29914 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29916         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
29917         MULTILIB_EXCEPTIONS.
29919 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29921         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
29922         MULTILIB_EXCEPTIONS.
29924 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29926         * config/arm/t-rtems-eabi: Rename to...
29927         * config/arm/t-rtems: ...this.
29928         * config/arm/rtems-eabi.h: Rename to...
29929         * config/arm/rtems.h: ...this.
29930         * config.gcc (arm*-*-rtems*): Reflect changes above.
29932 2015-01-09  Richard Biener  <rguenther@suse.de>
29934         PR tree-optimization/64410
29935         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
29936         on the LHS.
29937         (execute_update_addresses_taken): Deal with that.
29938         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
29939         loads/stores for complex variables.
29941 2015-01-09  Martin Liska  <mliska@suse.cz>
29943         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
29944         name comparison.
29945         (func_checker::compare_memory_operand): New function.
29946         (func_checker::compare_operand): Split case to newly
29947         added functions.
29948         (func_checker::compare_cst_or_decl): New function.
29949         (func_checker::compare_gimple_call): Identify
29950         memory operands.
29951         (func_checker::compare_gimple_assign): Likewise.
29952         * ipa-icf-gimple.h: New function.
29954 2015-01-09  Martin Liska  <mliska@suse.cz>
29956         PR ipa/64503
29957         * sreal.c (sreal::dump): Change unsigned format to signed for
29958         m_exp value.
29959         (sreal::to_double): Replace exp2 with scalbln.
29961 2015-01-09  Martin Liska  <mliska@suse.cz>
29963         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
29964         * ipa-icf.c (sem_function::equals_private): Add support for target and
29965         (sem_item_optimizer::merge_classes): Remove redundant function
29966         optimization flags comparison.
29967         * tree.h (target_opts_for_fn): New function.
29969 2015-01-09  Tom de Vries  <tom@codesourcery.com>
29971         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
29973 2015-01-09  Kito Cheng  <kito@0xlab.org>
29975         PR rtl-optimization/64348
29976         * lra-constraints.c (split_reg): Fix caller-save store/restore
29977         instruction generation.
29979 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
29981         PR gcov-profile/61790
29982         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
29983         long long.  Fallback to int64_t if host doesn't have long long and
29984         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
29986 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
29988         PR tree-optimization/63989
29989         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
29990         from 1000 to 10000.
29991         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
29992         (get_stridx): If we don't have a record for certain SSA_NAME,
29993         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
29994         constant offset, call get_stridx_plus_constant.
29995         (get_stridx_plus_constant): New function.
29996         (zero_length_string): Don't use get_stridx here.
29998         PR target/55023
29999         PR middle-end/64388
30000         * dse.c (struct insn_info): Mention frame_read set also
30001         before reload for tail calls on some targets.
30002         (scan_insn): Revert 2014-12-22 change.  Set frame_read
30003         also before reload for tail calls if
30004         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
30005         instead of add_non_frame_wild_read for non-const/memset
30006         tail calls after reload.
30008 2015-01-08  Jason Merrill  <jason@redhat.com>
30010         * ubsan.c (do_ubsan_in_current_function): New.
30011         (pass_ubsan::gate): Use it.
30012         * ubsan.h: Declare it.
30013         * convert.c (convert_to_integer): Use it.
30015 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
30017         PR target/64338
30018         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
30019         compare_code when it is unconditionally overwritten afterwards.
30020         Use ix86_reverse_condition instead of reverse_condition.  Don't
30021         change code if *reverse_condition* returned UNKNOWN and don't
30022         swap ct/cf and negate diff in that case.
30024 2015-01-08  Mike Stump  <mikestump@comcast.net>
30026         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
30027         (pass_tsan_O0::gate): Likewise.
30028         * extend.texi (Function Attributes): Add no_sanitize_thread
30029         documentation.
30031 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
30033         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
30034         for registering builtins.
30035         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
30036         add -fopenmp to the argv_obstack used when invoking
30037         compile_for_target.
30039         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
30040         add "-m32" or "-m64" to argv_obstack.
30041         (generate_host_descr_file): Likewise, when invoking host_compiler.
30042         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
30043         ld.
30045 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
30047         * config/sh/sh-mem.cc: Use constant as second operand when emitting
30048         tstsi_t insns.
30050 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
30052         PR target/55212
30053         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
30054         constant load if constant operand fits into I08.
30056 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
30058         PR sanitizer/64336
30059         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
30060         and TREE_THIS_VOLATILE for MEM_REFs.
30061         (build5_stat): Fix up initialization of TREE_READONLY and
30062         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
30064 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
30066         PR target/64533
30067         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
30068         of r for the second alternative of the destination operand.
30070 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
30072         PR target/36557
30073         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
30075 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
30077         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
30078         keywords.
30079         ([-fivar-visibility], [-fvisibility]): Likewise.
30081 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
30083         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
30084         the file where @code, @command, etc is more appropriate.
30086 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
30088         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
30089         of -mrecip= documentation.
30091 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
30093         PR target/64505
30094         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
30095         correct reload handler if -m32 -mpowerpc64 is used.
30097 2015-01-06  Tom de Vries  <tom@codesourcery.com>
30099         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
30101 2015-01-08  Christian Bruel  <christian.bruel@st.com>
30103         PR target/64507
30104         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
30106 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30108         PR tree-optimization/63259
30109         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
30110         if optab exists for 16bit byteswap.
30112 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
30114         * opts.c (common_handle_option): Add support for
30115         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
30116         * doc/invoke.texi: Document -fno-sanitize=all,
30117         -f{,no-}sanitize-recover=all.  Document that
30118         -fsanitize=float-cast-overflow is not enabled
30119         by -fsanitize=undefined.  Fix up documentation
30120         of -f{,no-}sanitize-recover.
30122 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30124         * config.gcc: Add Visium support.
30125         * configure.ac: Likewise.
30126         * configure: Regenerate.
30127         * doc/extend.texi (interrupt attribute): Add Visium.
30128         * doc/invoke.texi: Document Visium options.
30129         * doc/install.texi: Document Visium target.
30130         * doc/md.texi: Document Visium constraints.
30131         * common/config/visium: New directory.
30132         * config/visium: Likewise.
30134 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
30136         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
30137         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
30139 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
30141         * combine.c (combine_validate_cost): Do not count the cost of a
30142         split I2 twice.  Do not display it twice in the dump, either.
30144 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
30146         Revert parts of r219199.
30147         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
30148         <inttypes.h>.
30149         ([-Wtraditional]): Restore markup on <limits.h>.
30151 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
30153         PR c++/31397
30154         * doc/invoke.texi: Document -Wsuggest-override.
30156 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
30158         PR rtl-optimization/64287
30159         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
30160         (process_options): Disable flag_ipa_ra if profiling.
30162 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
30164         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
30166 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
30168         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
30169         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
30170         put under #if TARGET_LOOPS guard.
30172 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
30174         * config/i386/i386.c (output_387_binary_op): Use std::swap.
30176 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
30178         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
30179         * rtl.h (refers_to_regno_p): Add overload.
30180         * cse.c: Use it.
30181         * bt-load.c: Likewise.
30182         * combine.c: Likewise.
30183         * df-scan.c: Likewise.
30184         * sched-deps.c: Likewise.
30185         * config/s390/s390.c: Likewise.
30186         * config/m32r/m32r.c: Likewise.
30187         * config/rs6000/spe.md: Likewise.
30188         * config/rs6000/rs6000.c: Likewise.
30189         * config/pa/pa.c: Likewise.
30190         * config/stormy16/stormy16.c: Likewise.
30191         * config/cris/cris.c: Likewise.
30192         * config/arc/arc.md: Likewise.
30193         * config/arc/arc.c: Likewise.
30194         * config/sh/sh.md: Likewise.
30195         * config/sh/sh.c: Likewise.
30196         * config/frv/frv.c: Likewise.
30198 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
30200         PR sanitizer/64265
30201         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
30202         call as cleanup of the whole body.
30203         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
30204         * tsan.c (replace_func_exit): New function.
30205         (instrument_func_exit): Moved earlier.
30206         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
30207         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
30208         been found.
30209         (tsan_pass): Don't call instrument_func_exit.
30210         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
30211         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
30212         inlining.
30214         PR sanitizer/64344
30215         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
30216         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
30217         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
30218         if the result is integer_zerop, return NULL_TREE.
30219         * convert.c (convert_to_integer): Pass expr as ARG.
30221         PR tree-optimization/64465
30222         * tree-inline.c (redirect_all_calls): During inlining
30223         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
30224         changed the stmt to a non-throwing call.
30226 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
30228         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
30229         etc markup throughout the file.
30231 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30233         Enable experimental TSAN support for Ada.
30234         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
30236 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
30238         PR tree-optimization/64494
30239         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
30240         clear SSA_NAME_ANTI_RANGE_P flag.
30242 2015-01-05  Marek Polacek  <polacek@redhat.com>
30244         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
30246 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
30248         Update copyright years.
30250         * gcc.c (process_command): Update copyright notice dates.
30251         * gcov-dump.c: Ditto.
30252         * gcov.c: Ditto.
30253         * doc/cpp.texi: Bump @copying's copyright year.
30254         * doc/cppinternals.texi: Ditto.
30255         * doc/gcc.texi: Ditto.
30256         * doc/gccint.texi: Ditto.
30257         * doc/gcov.texi: Ditto.
30258         * doc/install.texi: Ditto.
30259         * doc/invoke.texi: Ditto.
30261         * auto-profile.c, auto-profile.h: Fix up Copyright line.
30263 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
30265         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
30266         verb tense, etc.
30267         ([-fvtable-verify], [-fvtv-debug]): Likewise.
30268         ([-Wabi]): Likewise.
30269         ([-fmessage-length]): Likewise.
30270         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
30271         ([-Wno-discarded-qualifiers]): Likewise.
30272         ([-Wnodiscarded-array-qualifiers]): Likewise.
30273         ([-Wno-virtual-move-assign]): Likewise.
30274         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
30275         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
30276         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
30277         ([-fsanitize-undefined-trap-on-error]): Likewise.
30278         ([-floop-interchange]): Likewise.
30279         ([-ftree-coalesce-inlined-vars]): Likewise.
30280         ([-fvect-cost-model]): Likewise.
30281         ([-flto]): Likewise.
30282         ([--param]): Likewise.
30283         (Spec Files): Likewise.
30284         ([-mstrict-align]): Likewise.
30285         ([-mfix-cortex-a53-835769]): Likewise.
30286         ([-march], [-mtune]): Likewise.
30287         ([-mpic-register]): Likewise.
30288         ([-munaligned-access]): Likewise.
30289         ([-msp8]): Likewise.
30290         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
30291         (AVR Built-in Macros): Likewise.
30292         ([-mpreferred-stack-boundary]): Likewise.
30293         ([-mtune-crtl]): Likewise.
30294         ([-mashf]): Likewise.
30295         ([-mmcu=]): Likewise.
30296         ([-minrt]): Likewise.
30297         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
30298         ([-mupper-regs]): Likewise.
30299         ([-matomic-model]): Likewise.
30300         ([-mdiv]): Likewise.
30301         ([-mzdcbranch]): Likewise.
30302         ([-mdisable-callt]): Likewise.
30303         ([-msoft-float]): Likewise.
30304         ([-m8byte-align]): Likewise.
30305         ([-fstack-reuse]): Likewise.
30307 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
30309         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
30310         Fix markup, light copy-editing.
30311         ([-fauto-profile]): Rewrite to fix formatting and content
30312         problems.
30314 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
30316         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
30317         Copy-edit description.
30318         ([-fisolate-erroneous-paths-attribute]): Likewise.
30319         * common.opt (fisolate-erroneous-paths-dereference):
30320         Copy-edit description.
30321         (fisolate-erroneous-paths-attribute): Likewise.
30323 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
30325         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
30326         tidy grammar.
30328 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
30330         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
30331         ([-fvtv-debug]): Likewise.
30332         ([-Wc++-compat]): Likewise.
30333         ([-Wc++11-compat]): Likewise.
30334         ([-Wc++14-compat]): Likewise.
30335         ([-Wno-sized-deallocation]): Likewise.
30336         ([-femit-class-debug-always]): Likewise.
30337         ([-femit-struct-debug-detailed]): Likewise.
30338         ([-fno-keep-inline-dllexport]): Likewise.
30339         ([-fira-algorithm]): Likewise.
30340         ([-fira-region]): Likewise.
30341         ([-flra-remat]): Likewise.
30342         ([-fipa-ra]): Likewise.
30343         ([-fhoist-adjacent-loads]): Likewise.
30344         ([-fisolate-erroneous-paths-dereference]): Likewise.
30345         ([-fisolate-erroneous-paths-attribute]): Likewise.
30346         ([-ftree-switch-conversion]): Likewise.
30347         ([-ftree-tail-merge]): Likewise.
30348         ([-ftree-loop-if-convert]): Likewise.
30349         ([-ftree-loop-if-convert-stores]): Likewise.
30350         ([-ftree-loop-distribution]): Likewise.
30351         ([-ftree-loop-distribute-patterns]): Likewise.
30352         ([-flto-compression-level]): Likewise.
30353         ([-flto-report]): Likewise.
30354         ([-flto-report-wpa]): Likewise.
30355         ([-fuse-linker-plugin]): Likewise.
30356         ([-mfix-cortex-a53-835769]): Likewise.
30357         ([-mno-fix-cortex-a53-835769]): Likewise.
30358         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
30359         explicit listing; add a note to the discussion indicating they
30360         exist.  Reorder table to group similar options.  Add missing
30361         @opindex entries.  Add @need commands throughout the table to
30362         allow it to be split across multiple pages.
30363         ([-m8bit-idiv]): Fix @opindex.
30364         ([-mavx256-split-unaligned-load]): Likewise.
30365         ([-mavx256-split-unaligned-store]): Likewise.
30366         ([-mstack-protector-guard]): Likewise.
30367         ([-mcpu=]): Likewise.
30368         ([-mcpu]): Likewise.
30369         ([-mpointer-size=]): Likewise.
30371 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
30373         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
30374         instead of `m' constraint.  Likewise for unnamed movb comparison
30375         patterns using reg_before_reload_operand predicate.
30376         * config/pa/predicates.md (reg_before_reload_operand): Tighten
30377         predicate to reject register index and LO_SUM DLT memory forms
30378         after reload.
30380 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
30382         * doc/invoke.texi (Option Summary): Fix spelling of
30383         -fdevirtualize-at-ltrans.
30384         ([-fdevirtualize]): Fix markup.
30385         ([-fdevirtualize-speculatively]): Fix typo.
30386         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
30387         implementor-speaky.
30388         * common.opt (fdevirtualize-at-ltrans): Likewise.
30389         * ipa-devirt.c: Fix typos in comments throughout the file.
30390         (ipa_devirt): Fix typos in format strings for dump output.
30392 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
30394         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
30395         discussion of defaults, light copy-editing.
30397 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30399         * tsan.c (instrument_expr): corrected previous checkin.
30401 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30403         Instrument bit field and unaligned accesses for TSAN.
30404         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
30405         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
30406         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
30407         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
30408         unaligned memory regions.
30410 2015-01-01  Anthony Green  <green@moxielogic.com>
30412         * config/moxie/predicates.md (moxie_general_movsrc_operand):
30413         Restrict move source register offsets to 16 bits.
30415 Copyright (C) 2015 Free Software Foundation, Inc.
30417 Copying and distribution of this file, with or without modification,
30418 are permitted in any medium without royalty provided the copyright
30419 notice and this notice are preserved.