Handle exit phi without header phi in create_parallel_loop
[official-gcc.git] / gcc / ChangeLog
blob764e8bc874eb0a0320607d5b8e4b4bb997a603ad
1 2015-07-16  Tom de Vries  <tom@codesourcery.com>
3         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
4         not have a corresponding loop header phi.
6 2015-07-16  Tom de Vries  <tom@codesourcery.com>
8         * tree-parloops.c (create_loads_for_reductions): Handle case that
9         reduction is unused.
11 2015-07-16  Richard Biener  <rguenther@suse.de>
13         PR tree-optimization/66894
14         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15         about deriving NE_EXPR from truncated values.
17 2015-07-16  Martin Liska  <mliska@suse.cz>
19         * alloc-pool.h
20         (object_allocator): Add new class.
21         (pool_allocator::initialize): Use the underlying class.
22         (pool_allocator::allocate): Likewise.
23         (pool_allocator::remove): Likewise.
24         (operator new): A new generic allocator.
25         * asan.c (struct asan_mem_ref): Remove unused members.
26         (asan_mem_ref_new): Replace new operator with
27         object_allocator::allocate.
28         (free_mem_ref_resources): Change deallocation.
29         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
30         with object_allocator.
31         * config/sh/sh.c (add_constant): Replace new operator with
32         object_allocator::allocate.
33         (sh_reorg): Change call to a release method.
34         * cselib.c (struct elt_list): Remove unused members.
35         (new_elt_list): Replace new operator with
36         object_allocator::allocate.
37         (new_elt_loc_list): Likewise.
38         (new_cselib_val): Likewise.
39         (unchain_one_elt_list): Change delete operator with remove method.
40         (unchain_one_elt_loc_list): Likewise.
41         (unchain_one_value): Likewise.
42         (cselib_finish): Release newly added static allocators.
43         * cselib.h (struct cselib_val): Remove unused members.
44         (struct elt_loc_list): Likewise.
45         * df-problems.c (df_chain_alloc): Replace pool_allocator with
46         object_allocator.
47         * df-scan.c (struct df_scan_problem_data): Likewise.
48         (df_scan_alloc): Likewise.
49         * df.h (struct dataflow): Likewise.
50         * dse.c (struct read_info_type): Likewise.
51         (struct insn_info_type): Likewise.
52         (struct dse_bb_info_type): Likewise.
53         (struct group_info): Likewise.
54         (struct deferred_change): Likewise.
55         (get_group_info): Likewise.
56         (delete_dead_store_insn): Likewise.
57         (free_read_records): Likewise.
58         (replace_read): Likewise.
59         (check_mem_read_rtx): Likewise.
60         (scan_insn): Likewise.
61         (dse_step1): Likewise.
62         (dse_step7): Likewise.
63         * et-forest.c (struct et_occ): Remove unused members.
64         (et_new_occ): Use allocate instead of new operator.
65         (et_new_tree): Likewise.
66         (et_free_tree): Call release method explicitly.
67         (et_free_tree_force): Likewise.
68         (et_free_pools): Likewise.
69         (et_split): Use remove instead of delete operator.
70         * et-forest.h (struct et_node): Remove unused members.
71         * ipa-cp.c: Change pool_allocator to object_allocator.
72         * ipa-inline-analysis.c: Likewise.
73         * ipa-profile.c: Likewise.
74         * ipa-prop.c: Likewise.
75         * ipa-prop.h: Likewise.
76         * ira-build.c (initiate_cost_vectors): Cast return value.
77         (ira_allocate_cost_vector): Likewise.
78         * ira-color.c (struct update_cost_record): Remove unused members.
79         * lra-int.h (struct lra_live_range): Likewise.
80         (struct lra_copy): Likewise.
81         (struct lra_insn_reg): Likewise.
82         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
83         * lra.c (new_insn_reg): Replace new operator with allocate method.
84         (free_insn_regs): Same for operator delete.
85         (finish_insn_regs): Release new static allocator.
86         (finish_insn_recog_data): Likewise.
87         (lra_free_copies): Replace delete operator with remove method.
88         (lra_create_copy): Replace operator new with allocate method.
89         (invalidate_insn_data_regno_info): Same for remove method.
90         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
91         (free_debug_insn_changes): Replace delete operator with remove method.
92         (replace_oldest_value_reg): Replace operator new with allocate method.
93         (pass_cprop_hardreg::execute): Release new static variable.
94         * sched-deps.c (sched_deps_init): Change pool_allocator to
95         object_allocator.
96         * sel-sched-ir.c: Likewise.
97         * sel-sched-ir.h: Likewise.
98         * stmt.c (expand_case): Likewise.
99         (expand_sjlj_dispatch_table): Likewise.
100         * tree-sra.c (struct access): Remove unused members.
101         (struct assign_link): Likewise.
102         (sra_deinitialize): Release newly added static pools.
103         (create_access_1):Replace operator new with allocate method.
104         (build_accesses_from_assign): Likewise.
105         (create_artificial_child_access): Likewise.
106         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
107         pool_allocator to object_allocator.
108         * tree-ssa-pre.c: Likewise.
109         * tree-ssa-reassoc.c: Likewise.
110         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
111         * tree-ssa-strlen.c: Likewise.
112         * tree-ssa-structalias.c: Likewise.
113         * var-tracking.c (onepart_pool_allocate): New function.
114         (unshare_variable): Use the newly added function.
115         (variable_merge_over_cur): Likewise.
116         (variable_from_dropped): Likewise.
117         (variable_was_changed): Likewise.
118         (set_slot_part): Likewise.
119         (emit_notes_for_differences_1): Likewise.
120         (vt_finalize): Release newly added static pools.
122 2015-07-16  Martin Jambor  <mjambor@suse.cz>
124         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
125         all uses.  Fix two typos in its general comment.
126         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
128 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
130         * config/i386/linux-common.h (LINK_MPX): New.
131         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
132         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
133         indicating '-z bndplt' support by linker.
134         * configure: Regenerate.
135         * config.in: Regenerate.
137 2015-07-16  Richard Biener  <rguenther@suse.de>
139         * fold-const.c (fold_widened_comparison): Remove.
140         (fold_sign_changed_comparison): Likewise.
141         (fold_comparison): Move widened and sign-changed comparison
142         simplification ...
143         * match.pd: ... to patterns here.
144         * generic-match-head.c: Include target.h.
145         * gimple-match-head.c: Likewise.
147 2015-07-16  Richard Biener  <rguenther@suse.de>
149         * tree-ssa-dom.c (dom_valueize): New function.
150         (record_temporary_equivalences): Also record equivalences
151         for dominating stmts that have uses of equivalences we are
152         about to record.
154 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
156         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
157         add_autoinc_candidates.
158         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
159         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
160         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
161         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
162         Call new function.
163         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
164         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
165         Remove parameter struct iv*.  Call add_autoinc_candidates here.
166         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
167         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
168         Call new function.
169         (find_iv_candidates): Call new functions.
171 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
173         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
174         uninitialized-variable warning.
176 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
178         PR target/65249
179         * config/sh/sh.md (movdi): Split simple reg move to two movsi
180         when the destination is R0.
182 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
184         PR target/66866
185         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
186         * config/i386/i386.c (ix86_expand_pextr): New function.
187         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
188         for non-lowpart subregs.
189         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
190         (insv<mode>): Use SWI248 mode iterator.
191         (insv<mode>_1): Ditto.
193 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
194             Sebastian Pop  <s.pop@samsung.com>
196         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
197         iterator to use_stmt.
199 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
200             Sebastian Pop <s.pop@samsung.com>
202         * graphite-scop-detection.c (build_scops_1): Discard scops for
203         which entry==exit.
205 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
206             Sebastian Pop <s.pop@samsung.com>
208         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
209         case of a return statement in scop.
211 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
212             Sebastian Pop <s.pop@samsung.com>
214         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
215         INTEGER_TYPE parameters.
216         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
217         VECTOR_CST in scan_tree_for_params.
218         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
220 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
222         * gimple-pretty-print.h: Don't include pretty-print.h.
223         * tree-streamer.h: Don't include lto-streamer.h.
224         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
225         * gimple-streamer-in.c: Remove redundant includes.
226         * gimple-streamer-out.c: Likewise.
227         * ipa-devirt.c: Likewise.
228         * ipa-icf.c: Likewise.
229         * ipa-inline-analysis.c: Likewise.
230         * ipa-polymorphic-call.c: Likewise.
231         * ipa-profile.c: Likewise.
232         * ipa-prop.c: Likewise.
233         * ipa-pure-const.c: Likewise.
234         * lto-cgraph.c: Likewise.
235         * lto-streamer-in.c: Likewise.
236         * lto-streamer-out.c: Likewise.
237         * lto-streamer.c: Likewise.
238         * tree-streamer-in.c: Likewise.
239         * tree-streamer-out.c: Likewise.
240         * tree-streamer.c: Likewise.
242 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
244         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
245         include input.h.
246         * opts.c: Remove multiline #include comment.
248 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
250         * config/nvptx/mkoffload.c (process): Add C++ protection to
251         emitted code.
253 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
255         PR target/66854
256         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
257         null before IEEE 128-bit floating point support patch.
259 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
261         * simplify-rtx.c (simplify_ternary_operation): Add simplification
262         for (!c) != {0,...,0} ? a : b for vector modes.
264 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
265             Martin Jambor  <mjambor@suse.cz>
267         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
268         struct func_body_info* instead of struct ipa_node_params*, expecting
269         fbi->info to be filled in.  Replace throughout.  Adjust call to
270         ipa_load_from_parm_agg.
271         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
272         instead of struct ipa_node_params*.  Adjust calls to other functions
273         so that they pass either fbi or fbi->info.
274         (set_switch_stmt_execution_predicate): Likewise.
275         (will_be_nonconstant_predicate): Likewise.
276         (compute_bb_predicates): Likewise.
277         (estimate_function_body_sizes): Move asserts earlier.  Fill in
278         struct func_body_info, replace parms_info with fbi.info.  Adjust
279         calls to functions that now accept struct func_body_info.
280         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
281         (struct func_body_info): Likewise.
282         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
283         remove static.  Adjust callers.
284         (ipa_load_from_parm_agg): Remove.
285         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
286         (func_body_info): Likewise.
287         (ipa_load_from_parm_agg): Adjust prototype.
289 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
291         * gensupport.c (rtx_handle_directive): Adjust.
292         * read-rtl.c (apply_iterators): Take vector to add rtxs to
293         instead of expr list rtx.
294         (add_define_attr_for_define_subst): Likewise.
295         (add_define_subst_attr): Likewise.
296         (read_subst_mapping): Likewise.
297         (read_rtx): Likewise.
298         * rtl.h (read_rtx): Adjust.
300 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
302         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
304 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
306         PR target/58066
307         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
308         (*tls_local_dynamic_base_64_<mode>): Ditto.
309         (*tls_local_dynamic_base_64_largepic): Ditto.
310         (tls_global_dynamic_64_<mode>): Update expander pattern.
311         (tls_local_dynamic_base_64_<mode>): Ditto.
313 2015-07-15  Richard Biener  <rguenther@suse.de>
315         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
316         and bool_var == 1 -> bool_var simplifications ...
317         * match.pd: ... to patterns here.  Factor out negate_expr_p
318         cases from the A - B -> A + (-B) patterns as negate_expr_p
319         predicate and add a -(A + B) -> (-B) - A pattern.
321 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
323         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
325 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
326             Robert Suchanek  <robert.suchanek@imgtec.com>
328         * config/mips/mips.c (mips_int_mask): New enum.
329         (mips_shadow_set): Likewise.
330         (int_mask): New variable.
331         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
332         (machine_function): Add int_mask and use_shadow_register_set.
333         (mips_attribute_table): Add attribute handlers for interrupt and
334         use_shadow_register_set.
335         (mips_interrupt_mask): New static function.
336         (mips_handle_interrupt_attr): Likewise.
337         (mips_handle_use_shadow_register_set_attr): Likewise.
338         (mips_use_shadow_register_set): Change return type to enum
339         mips_shadow_set.  Add argument handling for use_shadow_register_set
340         attribute.
341         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
342         compare with mips_shadow_set enum.
343         (mips_compute_frame_info): Add interrupt mask and
344         use_shadow_register_set to per-function information structure.
345         Add a stack slot for EPC unconditionally.
346         (mips_expand_prologue): Compare use_shadow_register_set value
347         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
348         masked interrupt register but in EIC mode use K0 and save Cause in K0.
349         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
350         copying the stack pointer from the shadow register set.
351         * config/mips/mips.h (SR_IM0): New define.
352         * config/mips/mips.md (mips_rdpgpr): Rename to...
353         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
354         * doc/extend.texi (Declaring Attributes of Functions): Document
355         optional arguments for interrupt and use_shadow_register_set
356         attributes.
358 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
360         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
361         interrupt attribute.
362         (mips_expand_prologue): Disable the floating point unit in an ISR.
363         * config/mips/mips.h (SR_COP1): New define.
365 2015-07-15  Richard Biener  <rguenther@suse.de>
367         * genmatch.c (parser::peek, parser::peek_ident): Add argument
368         to tell how many tokens to peek ahead (default 1).
369         (parser::eat_token, parser::eat_ident): Return token consumed.
370         (parser::parse_result): Parse new switch statement.
371         * match.pd: Use case statements where appropriate.
373 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
375         PR rtl-optimization/58066
376         * calls.c (expand_call): Precompute register parameters before stack
377         alignment is performed.
379 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
381         PR rtl-optimization/66838
382         * postreload.c (reload_cse_move2add): Also process
383         CALL_INSN_FUNCTION_USAGE when resetting information of
384         call-clobbered registers.
386 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
387             Cesar Philippidis  <cesar@codesourcery.com>
388             Chung-Lin Tang  <cltang@codesourcery.com>
390         * config/nios2/constraints.md (U, v): New constraints.
391         * config/nios2/predicates.md (rdprs_dcache_operand): New.
392         (ldstex_memory_operand): New.
393         * config/nios2/sync.md: New file.
394         * config/nios2/nios2.md (unspecv): Add new builtin function
395         UNSPECV codes.
396         (rdprs, flushd, flushda, wrpie, eni): New patterns.
397         (top-level): Include sync.md.
398         * config/nios2/nios2.c (N2_FTYPES): Add function types for
399         new builtins.
400         (N2_BUILTINS): Add arch field setting, add new builtins.
401         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
402         for arch field.
403         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
404         Also handle ldex/stex/ldsex/stsex builtins.
405         (nios2_expand_rdprs_builtin): New function.
406         (nios2_expand_cache_builtin): New function.
407         (nios2_expand_wrpie_builtin): New function.
408         (nios2_expand_eni_builtin): New function.
409         (nios2_expand_builtin): Add arch field handling and new builtin
410         cases.
411         * doc/extend.texi (Altera Nios II Built-in Functions): Document
412         new builtins.
413         * doc/md.texi (Machine Constraints): Document U and v constraints.
415 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
416             Cesar Philippidis  <cesar@codesourcery.com>
417             Chung-Lin Tang  <cltang@codesourcery.com>
419         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
420         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
421         callee_save_reg_size and uses_anonymous_args fields.
422         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
423         (nios2_create_cfa_notes): New function.
424         (nios2_adjust_stack): New function for adjusting stack.
425         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
426         Use nios2_adjust_stack.
427         (nios2_expand_epilogue): Likewise.
428         (nios2_expand_return): New function.
429         (nios2_can_use_return_insn): Update for CDX pop.n usage.
430         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
431         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
432         * config/nios2/nios2.md (return): Use nios2_expand_return.
434 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
435             Cesar Philippidis  <cesar@codesourcery.com>
436             Chung-Lin Tang  <cltang@codesourcery.com>
438         * config/nios2/predicates.md (pop_operation): New.
439         (ldwm_operation, stwm_operation): New.
440         (nios2_hard_register_operand): New.
441         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
442         (ldstwm_operation_p): Declare.
443         (gen_ldstwm_peep): Declare.
444         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
445         (base_reg_adjustment_p): New.
446         (pop_operation_p): New.
447         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
448         (nios2_ldstwm_regset_p): New.
449         (ldstwm_operation_p): New.
450         (gen_ldst): New.
451         (nios2_ldst_parallel): New.
452         (struct ldswm_operand): Declare.
453         (compare_ldstwm_operands): New.
454         (can_use_cdx_ldstw): New.
455         (gen_ldstwm_peep): New.
456         * config/nios2/nios2-ldstwm.sml: New.
457         * config/nios2/nios2.md: Include ldstwm.md.
458         * config/nios2/ldstwm.md: Generated.
460 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
461             Cesar Philippidis  <cesar@codesourcery.com>
462             Chung-Lin Tang  <cltang@codesourcery.com>
464         * config/nios2/nios2.h (LABEL_ALIGN): Define.
465         (REG_ALLOC_ORDER): Define.
466         (ADJUST_REG_ALLOC_ORDER): Define.
467         (HONOR_REG_ALLOC_ORDER): Define.
468         (CDX_REG_P): Define.
469         (ANDCLEAR_INT): Define.
470         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
471         (nios2_label_align): Declare.
472         (nios2_cdx_narrow_form_p): Declare.
473         (nios2_adjust_reg_alloc_order): Declare.
474         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
475         operation.
476         (nios2_large_unspec_reloc_p): New function, split from...
477         (nios2_legitimate_pic_operand_p): ...here.
478         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
479         (nios2_print_operand_punct_valid_p): New.
480         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
481         (split_mem_address): New.
482         (split_alu_insn): New.
483         (cdxreg): New.
484         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
485         (enum nios2_add_insn_kind): New.
486         (nios2_add_insn_names, nios2_add_insn_narrow): New.
487         (nios2_add_insn_classify): New.
488         (nios2_add_insn_asm): New.
489         (nios2_cdx_narrow_form_p): New.
490         (label_align, min_labelno, max_labelno): New.
491         (nios2_reorg): New.
492         (nios2_label_align): New.
493         (nios2_adjust_reg_alloc_order): New.
494         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
495         (TARGET_MACHINE_DEPENDENT_REORG): Define.
496         * config/nios2/constraints.md (P): New constraint.
497         * config/nios2/predicates.md (const_and_operand): New.
498         (and_operand): New.
499         (stack_memory_operand): New.
500         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
501         (length): Update to use nios2_cdx_narrow_form_p().
502         (type): Add new insn type values.
503         (control, alu, st, ld, shift): Update insn reservations with
504         new insn type values.
505         (*high, *lo_sum): Define new insn patterns for constant generation.
506         (movqi_internal, movhi_internal, movsi_internal): Reduce
507         alternatives, update asm template to handle CDX variants, update
508         type attributes.
509         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
510         template, update type attributes.
511         (extendhisi2, extendqi<mode>2): Likewise.
512         (addsi3): Change to use function for asm string.
513         (subsi3): Add CDX notation to asm template, update type attributes.
514         (negsi3, one_cmplsi3): Likewise.
515         (andsi3): New pattern, specialized from logical patterns.
516         (<code>si3): Remove and case, combine alternatives, update asm
517         template.
518         (<shift_op>si3): Add CDX notation, update type attributes.
519         (rotrsi3): Update type attribute.
520         (*merge, extzv, insv): New insn patterns.
521         (return): Change to define_expand.
522         (simple_return): Add CDX notation, update type attributes.
523         (indirect_jump): Add CDX notation.
524         (jump): Update asm cases, update length attribute expression.
525         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
526         (nios2_cbranch): Update asm cases and length attribute expression
527         to handle CDX variants.
528         (nios2_cmp<code>): Update asm template.
529         (nop): Add CDX notation, update type attributes.
530         (trap): Add CDX notation.
531         (ctrapsi4): Update asm cases and length attribute expression to
532         handle CDX variant.
533         * doc/md.texi (Machine Constraints): Document P constraint.
535 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
536             Cesar Philippidis  <cesar@codesourcery.com>
537             Chung-Lin Tang  <cltang@codesourcery.com>
539         * config/nios2/nios2.h (SMALL_INT12): New macro.
540         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
541         (nios2_valid_addr_expr_p): Use it.
542         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
543         with implicit "io" instructions on R2.
544         * config/nios2/constraints.md (w): New constraint.
545         * config/nios2/predicates.md (ldstio_memory_operand): New.
546         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
547         operand predicate and constraint.
548         (ld<bh>io_signed, st<bhw>io>): Likewise.
549         * doc/md.texi (Machine Constraints): Document w constraint.
551 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
552             Cesar Philippidis  <cesar@codesourcery.com>
553             Chung-Lin Tang  <cltang@codesourcery.com>
555         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
556         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
557         Nios II architecture level.
558         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
559         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
560         (OPTION_DEFAULT_SPECS): Define.
561         (ASM_SPEC): Add -march= spec strings.
562         * config/nios2/nios2.c (nios2_option_override): Check for
563         conflicts involving new options.
564         * config.gcc (nios2*-*-*): Support --with-arch=.
565         * doc/invoke.texi (Option Summary, Nios II Options): Document
566         -march=, -mbmx, and -mcdx.
568 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
570         PR rtl-optimization/66626
571         * lra-constraints.c (lra_constraints): Prevent equivalence
572         substitution for static chain pseudo in functions with nonlocal
573         goto.
575 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
577         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
578         (nios2_emit_stack_limit_check): Add size parameter.  Handle
579         -fstack-limit-symbol as well as -fstack-limit-register.
580         (nios2_expand_prologue): Emit only a single stack limit check,
581         even if multiple stack adjustments are required.
582         (nios2_option_override): Diagnose unsupported combination of -fpic
583         and -stack-limit-symbol.
585 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
587         * Makefile.in (top_srcdir): New.
588         * configure.ac: Use AM_ZLIB.
589         * configure: Regeneated.
591 2015-07-14  Matthias Klose  <doko@ubuntu.com>
593         PR target/66840
594         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
596 2015-07-14  Richard Biener  <rguenther@suse.de>
598         PR tree-optimization/66863
599         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
600         what we record for conversion use stmt lhs inequalities.
602 2015-07-14  Richard Biener  <rguenther@suse.de>
604         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
605         (decision_tree::gen_gimple): Likewise.
607 2015-07-14  Tom de Vries  <tom@codesourcery.com>
609         * gcc.c (greater_than_spec_func): Declare forward.
610         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
611         -ftree-parallelize-loops={0,1}.
612         (static_spec_functions): Add greater_than_spec_func function with name
613         "gt".
614         (greater_than_spec_func): New function.
616 2015-07-14  Richard Biener  <rguenther@suse.de>
618         * tree-ssa-dom.c (record_temporary_equivalences): Merge
619         wideing type conversion case from record_equivalences_from_incoming_edge
620         and use record_equality to record equivalences.
621         (record_equivalences_from_incoming_edge): Call
622         record_temporary_equivalences.
624 2015-07-14  Richard Biener  <rguenther@suse.de>
626         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
627         (struct if_expr): New.
628         (struct with_expr): Likewise.
629         (is_a_helper): Add helpers for if_expr and with_expr.
630         (struct simplify): Add simplify_kind enum and member.  Remove
631         ifexpr_vec member.
632         (simplify::simplify): Adjust.
633         (lower_commutative): Adjust.
634         (lower_opt_convert): Likewise.
635         (lower_cond): Likewise.
636         (replace_id): Handle with_expr and if_expr.
637         (lower_for): Adjust.
638         (dt_simplify::gen_1): New recursive worker, split out from ...
639         (dt_simplify::gen): ... here.  Deal with if and with expansion
640         recursively.
641         (capture_info::capture_info): Take context argument
642         (capture_info::walk_result): Only analyze specific result.
643         (parser::parse_result): New function.
644         (parser::parse_simplify): Adjust to parse ifs with then end
645         else case.
646         (parser::parse_if): Simplify.
647         (parser::parse_pattern): Pass down simplify kind.
648         * match.pd: Convert if structure to new syntax.
650 2015-07-13  Marek Polacek  <polacek@redhat.com>
652         * rtl.c (rtx_equal_p_cb): Fix typo.
654 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
656         * omega.h: Don't include config.h, don't include params.h again if
657         omega.h has already been included.
658         * graphite-poly.h: Include sese.h.
659         * graphite.c: Don't include sese.h, remove needless includes and
660         minimize includes outside #ifdef HAVE_isl block.
661         * graphite-blocking.c: Don't include sese.h, remove needless includes,
662         and wrap entire file in #ifdef HAVE_isl
663         * graphite-dependences.c: Likewise.
664         * graphite-interchange.c: Likewise.
665         * graphite-isl-ast-to-gimple.c: Likewise.
666         * graphite-optimize-isl.c: Likewise.
667         * graphite-poly.c: Likewise.
668         * graphite-scop-detection.c: Likewise.
669         * graphite-sese-to-poly.c: Likewise.
671 2015-07-13  Tom de Vries  <tom@codesourcery.com>
673         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
675 2015-07-13  Renlin Li  <renlin.li@arm.com>
677         PR rtl/66556
678         * simplify-rtx.c (simplify_const_relational_operation): Add
679         side_effects_p checks.
681 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
683         * bitmap.h: Fix double word typos.
684         * builtins.c: Same.
685         * calls.c: Same.
686         * cfgloopmanip.c: Same.
687         * cgraph.c: Same.
688         * cgraph.h: Same.
689         * cgraphclones.c: Same.
690         * combine.c: Same.
691         * config/aarch64/aarch64-protos.h: Same.
692         * config/aarch64/aarch64.c: Same.
693         * config/aarch64/aarch64.md: Same.
694         * config/arm/arm.md: Same.
695         * config/arm/arm1020e.md: Same.
696         * config/arm/arm1026ejs.md: Same.
697         * config/arm/arm926ejs.md: Same.
698         * config/arm/fa526.md: Same.
699         * config/arm/fa606te.md: Same.
700         * config/arm/fa626te.md: Same.
701         * config/arm/fa726te.md: Same.
702         * config/arm/fmp626.md: Same.
703         * config/darwin.c: Same.
704         * config/epiphany/epiphany.c: Same.
705         * config/frv/frv.c: Same.
706         * config/ft32/ft32.c: Same.
707         * config/gnu-user.h: Same.
708         * config/h8300/constraints.md: Same.
709         * config/i386/i386.c: Same.
710         * config/i386/i386.md: Same.
711         * config/iq2000/iq2000.md: Same.
712         * config/mips/mips.c: Same.
713         * config/mmix/mmix.md: Same.
714         * config/moxie/moxie.c: Same.
715         * config/nds32/nds32.md: Same.
716         * config/pa/pa.h: Same.
717         * config/rs6000/aix.h: Same.
718         * config/rs6000/rs6000.h: Same.
719         * config/sh/sh.c: Same.
720         * config/tilegx/tilegx.md: Same.
721         * config/tilepro/gen-mul-tables.cc: Same.
722         * cse.c: Same.
723         * dbxout.c: Same.
724         * doc/invoke.texi: Same.
725         * dse.c: Same.
726         * dwarf2out.c: Same.
727         * final.c: Same.
728         * gcc.c: Same.
729         * genmatch.c: Same.
730         * gimplify.c: Same.
731         * hash-table.h: Same.
732         * internal-fn.c: Same.
733         * ipa-cp.c: Same.
734         * ipa-devirt.c: Same.
735         * ipa-icf.c: Same.
736         * ipa-icf.h: Same.
737         * ipa-profile.c: Same.
738         * ipa-prop.c: Same.
739         * ipa-prop.h: Same.
740         * ira.c: Same.
741         * omp-low.c: Same.
742         * reg-stack.c: Same.
743         * regcprop.c: Same.
744         * reorg.c: Same.
745         * rtl.h: Same.
746         * sbitmap.h: Same.
747         * tree-eh.c: Same.
748         * tree-inline.c: Same.
749         * tree-sra.c: Same.
750         * tree-ssa-dom.c: Same.
751         * tree-ssa-loop-ivopts.c: Same.
752         * tree-ssa-structalias.c: Same.
753         * tree-ssa-tail-merge.c: Same.
754         * tree-ssa-ter.c: Same.
755         * tree-ssa-threadupdate.c: Same.
756         * tree-ssa-uninit.c: Same.
757         * tree-ssanames.c: Same.
758         * tree-vect-loop-manip.c: Same.
759         * tree-vrp.c: Same.
760         * tree.c: Same.
761         * valtrack.c: Same.
762         * vec.h: Same.
764 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
766         PR middle-end/66726
767         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
768         tree_ssa_phiopt_worker): Call it.
770 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
772         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
773         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
774         REG_EQUAL note.
776 2015-07-11  Marek Polacek  <polacek@redhat.com>
778         PR middle-end/66353
779         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
780         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
781         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
782         rather than bb_has_abnormal_call_pred.
783         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
784         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
785         rather than bb_has_abnormal_call_pred.
787 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
789         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
790         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
791         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
792         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
793         v850_legitimate_address_p): New functions.
794         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
796 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
798         PR target/66819
799         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
800         indirect sibcall with register arguments if register available
801         for argument passing.
802         (init_cumulative_args): Set cfun->machine->arg_reg_available
803         to (cum->nregs > 0) or to true if function has a variable
804         argument list.
805         (function_arg_advance_32): Set cfun->machine->arg_reg_available
806         to false if cum->nregs <= 0.
807         * config/i386/i386.h (machine_function): Add arg_reg_available.
809 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
811         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
812         and gen_higpart instead of gen_rtx_SUBREG.
813         * config/i386/i386.md
814         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
815         (read-modify peephole2): Use gen_lowpart instead of
816         gen_rtx_SUBREG for operand 5.
818 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
820         * config/tilepro/gen-mul-tables.cc (main): Change include list for
821         generated files.
822         * config/tilepro/mul-tables.c: Regenerate.
823         * config/tilegx/mul-tables.c: Regenerate.
825 2015-07-10  Richard Biener  <rguenther@suse.de>
827         * fold-const.c (distribute_bit_expr): Remove.
828         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
829         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
830         to A & (B | C) and simplifying A << C1 << C2 to ...
831         * match.pd: ... patterns here.
833 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
835         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
836         Mark mem as READONLY and NOTRAP for PIC symbol.
838 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
840         * gimple-predict.h: New file.
841         (gimple_predict_predictor, gimple_predict_set_predictor,
842         gimple_predict_outcome, gimple_predict_set_outcome,
843         gimple_build_predict): Relocate here.
844         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
845         gimple_predict_outcome, gimple_predict_set_outcome): Move to
846         gimple-predict.h.
847         * gimple.c (gimple_build_predict): Move to gimple-predict.h
848         * basic-block.h: Don't include cfghooks.h.
849         * backend.h: Don't include predict.h.
850         * cfghooks.h: Include predict.h.
851         * gimple-pretty-print.c: Include gimple-predict.h.
852         * gimplify.c: Likwise.
853         * predict.c: Adjust includes.
854         * tree-inline.c: Likewise.
855         * asan.c: Likewise.
856         * auto-inc-dec.c: Likewise.
857         * auto-profile.c: Likewise.
858         * bb-reorder.c: Likewise.
859         * builtins.c: Likewise.
860         * caller-save.c: Likewise.
861         * calls.c: Likewise.
862         * cfganal.c: Likewise.
863         * cfgbuild.c: Likewise.
864         * cfg.c: Likewise.
865         * cfgcleanup.c: Likewise.
866         * cfgexpand.c: Likewise.
867         * cfghooks.c: Likewise.
868         * cfgloopanal.c: Likewise.
869         * cfgloop.c: Likewise.
870         * cfgloopmanip.c: Likewise.
871         * cfgrtl.c: Likewise.
872         * cgraph.c: Likewise.
873         * cgraphunit.c: Likewise.
874         * combine.c: Likewise.
875         * cprop.c: Likewise.
876         * cse.c: Likewise.
877         * dce.c: Likewise.
878         * dojump.c: Likewise.
879         * dse.c: Likewise.
880         * except.c: Likewise.
881         * expmed.c: Likewise.
882         * expr.c: Likewise.
883         * final.c: Likewise.
884         * fold-const.c: Likewise.
885         * function.c: Likewise.
886         * fwprop.c: Likewise.
887         * gcc-plugin.h: Likewise.
888         * gcse.c: Likewise.
889         * genattrtab.c: Likewise.
890         * genemit.c: Likewise.
891         * gengtype.c: Likewise.
892         * genopinit.c: Likewise.
893         * genoutput.c: Likewise.
894         * genpreds.c: Likewise.
895         * genrecog.c: Likewise.
896         * gimple-fold.c: Likewise.
897         * gimple-iterator.c: Likewise.
898         * gimple-ssa-isolate-paths.c: Likewise.
899         * gimple-ssa-strength-reduction.c: Likewise.
900         * graph.c: Likewise.
901         * graphite-blocking.c: Likewise.
902         * graphite.c: Likewise.
903         * graphite-dependences.c: Likewise.
904         * graphite-interchange.c: Likewise.
905         * graphite-isl-ast-to-gimple.c: Likewise.
906         * graphite-optimize-isl.c: Likewise.
907         * graphite-poly.c: Likewise.
908         * graphite-scop-detection.c: Likewise.
909         * graphite-sese-to-poly.c: Likewise.
910         * haifa-sched.c: Likewise.
911         * ifcvt.c: Likewise.
912         * internal-fn.c: Likewise.
913         * ipa-cp.c: Likewise.
914         * ipa-profile.c: Likewise.
915         * ipa-split.c: Likewise.
916         * ipa-utils.c: Likewise.
917         * ira-build.c: Likewise.
918         * ira-color.c: Likewise.
919         * ira-conflicts.c: Likewise.
920         * ira-costs.c: Likewise.
921         * ira-emit.c: Likewise.
922         * ira-lives.c: Likewise.
923         * jump.c: Likewise.
924         * loop-doloop.c: Likewise.
925         * loop-init.c: Likewise.
926         * loop-invariant.c: Likewise.
927         * loop-unroll.c: Likewise.
928         * lower-subreg.c: Likewise.
929         * lra-assigns.c: Likewise.
930         * lra.c: Likewise.
931         * lra-coalesce.c: Likewise.
932         * lra-constraints.c: Likewise.
933         * lra-lives.c: Likewise.
934         * lto-cgraph.c: Likewise.
935         * lto-streamer-in.c: Likewise.
936         * mode-switching.c: Likewise.
937         * modulo-sched.c: Likewise.
938         * omp-low.c: Likewise.
939         * optabs.c: Likewise.
940         * passes.c: Likewise.
941         * postreload.c: Likewise.
942         * postreload-gcse.c: Likewise.
943         * profile.c: Likewise.
944         * recog.c: Likewise.
945         * regstat.c: Likewise.
946         * reload1.c: Likewise.
947         * reorg.c: Likewise.
948         * rtlanal.c: Likewise.
949         * sched-ebb.c: Likewise.
950         * sel-sched-ir.c: Likewise.
951         * sese.c: Likewise.
952         * shrink-wrap.c: Likewise.
953         * simplify-rtx.c: Likewise.
954         * stmt.c: Likewise.
955         * store-motion.c: Likewise.
956         * tracer.c: Likewise.
957         * trans-mem.c: Likewise.
958         * tree-call-cdce.c: Likewise.
959         * tree-cfg.c: Likewise.
960         * tree-cfgcleanup.c: Likewise.
961         * tree-chkp.c: Likewise.
962         * tree-complex.c: Likewise.
963         * tree-eh.c: Likewise.
964         * tree-if-conv.c: Likewise.
965         * tree-loop-distribution.c: Likewise.
966         * tree-outof-ssa.c: Likewise.
967         * tree-parloops.c: Likewise.
968         * tree-predcom.c: Likewise.
969         * tree-pretty-print.c: Likewise.
970         * tree-profile.c: Likewise.
971         * tree-sra.c: Likewise.
972         * tree-ssa.c: Likewise.
973         * tree-ssa-coalesce.c: Likewise.
974         * tree-ssa-dce.c: Likewise.
975         * tree-ssa-dom.c: Likewise.
976         * tree-ssa-forwprop.c: Likewise.
977         * tree-ssa-ifcombine.c: Likewise.
978         * tree-ssa-loop-ch.c: Likewise.
979         * tree-ssa-loop-im.c: Likewise.
980         * tree-ssa-loop-ivcanon.c: Likewise.
981         * tree-ssa-loop-ivopts.c: Likewise.
982         * tree-ssa-loop-manip.c: Likewise.
983         * tree-ssa-loop-prefetch.c: Likewise.
984         * tree-ssa-loop-unswitch.c: Likewise.
985         * tree-ssa-math-opts.c: Likewise.
986         * tree-ssa-phiopt.c: Likewise.
987         * tree-ssa-pre.c: Likewise.
988         * tree-ssa-reassoc.c: Likewise.
989         * tree-ssa-sink.c: Likewise.
990         * tree-ssa-tail-merge.c: Likewise.
991         * tree-ssa-threadedge.c: Likewise.
992         * tree-ssa-threadupdate.c: Likewise.
993         * tree-switch-conversion.c: Likewise.
994         * tree-tailcall.c: Likewise.
995         * tree-vect-data-refs.c: Likewise.
996         * tree-vect-loop.c: Likewise.
997         * tree-vect-loop-manip.c: Likewise.
998         * tree-vectorizer.c: Likewise.
999         * tree-vrp.c: Likewise.
1000         * ubsan.c: Likewise.
1001         * value-prof.c: Likewise.
1002         * varasm.c: Likewise.
1003         * var-tracking.c: Likewise.
1004         * config/aarch64/aarch64-builtins.c: Likewise.
1005         * config/aarch64/aarch64.c: Likewise.
1006         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1007         * config/alpha/alpha.c: Likewise.
1008         * config/arc/arc.c: Likewise.
1009         * config/arm/arm.c: Likewise.
1010         * config/avr/avr.c: Likewise.
1011         * config/bfin/bfin.c: Likewise.
1012         * config/c6x/c6x.c: Likewise.
1013         * config/cr16/cr16.c: Likewise.
1014         * config/cris/cris.c: Likewise.
1015         * config/darwin.c: Likewise.
1016         * config/darwin-c.c: Likewise.
1017         * config/epiphany/epiphany.c: Likewise.
1018         * config/epiphany/mode-switch-use.c: Likewise.
1019         * config/epiphany/resolve-sw-modes.c: Likewise.
1020         * config/fr30/fr30.c: Likewise.
1021         * config/frv/frv.c: Likewise.
1022         * config/ft32/ft32.c: Likewise.
1023         * config/h8300/h8300.c: Likewise.
1024         * config/i386/i386.c: Likewise.
1025         * config/i386/winnt.c: Likewise.
1026         * config/ia64/ia64.c: Likewise.
1027         * config/iq2000/iq2000.c: Likewise.
1028         * config/lm32/lm32.c: Likewise.
1029         * config/m32c/m32c.c: Likewise.
1030         * config/m32r/m32r.c: Likewise.
1031         * config/m68k/m68k.c: Likewise.
1032         * config/mcore/mcore.c: Likewise.
1033         * config/mep/mep.c: Likewise.
1034         * config/microblaze/microblaze.c: Likewise.
1035         * config/mips/mips.c: Likewise.
1036         * config/mmix/mmix.c: Likewise.
1037         * config/mn10300/mn10300.c: Likewise.
1038         * config/moxie/moxie.c: Likewise.
1039         * config/msp430/msp430.c: Likewise.
1040         * config/nds32/nds32.c: Likewise.
1041         * config/nds32/nds32-cost.c: Likewise.
1042         * config/nds32/nds32-fp-as-gp.c: Likewise.
1043         * config/nds32/nds32-intrinsic.c: Likewise.
1044         * config/nds32/nds32-isr.c: Likewise.
1045         * config/nds32/nds32-md-auxiliary.c: Likewise.
1046         * config/nds32/nds32-memory-manipulation.c: Likewise.
1047         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1048         * config/nds32/nds32-predicates.c: Likewise.
1049         * config/nios2/nios2.c: Likewise.
1050         * config/nvptx/nvptx.c: Likewise.
1051         * config/pa/pa.c: Likewise.
1052         * config/pdp11/pdp11.c: Likewise.
1053         * config/rl78/rl78.c: Likewise.
1054         * config/rs6000/rs6000.c: Likewise.
1055         * config/rx/rx.c: Likewise.
1056         * config/s390/s390.c: Likewise.
1057         * config/sh/sh.c: Likewise.
1058         * config/sh/sh-mem.cc: Likewise.
1059         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1060         * config/sh/sh_treg_combine.cc: Likewise.
1061         * config/sparc/sparc.c: Likewise.
1062         * config/spu/spu.c: Likewise.
1063         * config/stormy16/stormy16.c: Likewise.
1064         * config/tilegx/tilegx.c: Likewise.
1065         * config/tilepro/tilepro.c: Likewise.
1066         * config/v850/v850.c: Likewise.
1067         * config/vax/vax.c: Likewise.
1068         * config/visium/visium.c: Likewise.
1069         * config/xtensa/xtensa.c: Likewise.
1071 2015-07-10  Richard Biener  <rguenther@suse.de>
1073         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
1074         (decision_tree::gen_gimple): Likewise.
1075         (decision_tree::gen_generic): Likewise.
1077 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
1079         PR target/66813
1080         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
1081         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
1083 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
1085         PR middle-end/66820
1086         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
1087         or ORT_TASK contexts.
1088         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
1089         is non-zero.
1091 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1093         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
1094         above function.
1096 2015-07-10  Tom de Vries  <tom@codesourcery.com>
1098         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
1099         insert nit + 1 bound.
1101 2015-07-10  Richard Biener  <rguenther@suse.de>
1103         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
1104         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
1105         (if_convertible_loop_p_1): For this always compute bb predicates.
1106         (if_convertible_loop_p): And free them.
1108 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1110         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
1111         in dump message.
1113 2015-07-10  Richard Biener  <rguenther@suse.de>
1115         PR tree-optimization/66823
1116         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
1117         inverted predicate.
1119 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
1121         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
1122         to handle mips[32|64]r3 and mips[32|64]r5.
1124 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
1126         PR middle-end/66633
1127         * tree-nested.c (get_static_chain): Or in a flag into
1128         info->static_chain_added.
1129         (get_frame_field, get_nonlocal_debug_decl): Likewise.
1130         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
1131         2015-07-01 changes.
1132         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
1133         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
1134         add it to clauses.
1136         PR tree-optimization/66718
1137         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
1138         field.
1139         (vect_simd_lane_linear): New function.
1140         (vectorizable_simd_clone_call): Support using linear arguments for
1141         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
1143 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1145         PR target/66821
1146         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
1148 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1150         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
1151         Use machine mode, not enum machine_mode in the prototype.
1153         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
1154         classify 128-bit floating point support.
1155         (FLOAT128_IBM_P): Likewise.
1156         (FLOAT128_VECTOR_P): Likewise.
1157         (FLOAT128_2REG_P): Likewise.
1158         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
1159         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
1160         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1161         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
1163         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
1164         tests against TFmode/TDmode, since those modes do not use VSX
1165         addresses.
1166         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
1167         support.
1168         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
1169         tests against TFmode, etc.
1170         (invalid_e500_subreg): Add tests against IFmode/KFmode.
1171         (reg_offset_addressing_ok_p): Likewise.
1172         (rs6000_legitimate_offset_address_p): Likewise.
1173         (rs6000_legitimize_address): Likewise.
1174         (rs6000_legitimize_reload_address): Likewise.
1175         (rs6000_legitimate_address_p): Clean up tests against TFmode and
1176         TDmode to use the new helper macros, which will include IFmode and
1177         KFmode.
1178         (rs6000_emit_move): Likewise.
1179         (rs6000_darwin64_record_arg_recurse): Likewise.
1180         (print_operand): Likewise.
1181         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
1182         that uses a single vector register as a vector and not as a
1183         floating point register in terms of the calling sequence.
1184         (rs6000_discover_homogeneous_aggregate): Likewise.
1185         (rs6000_return_in_memory): Likewise.
1186         (init_cumulative_args): Likewise.
1187         (rs6000_function_arg_boundary): Likewise.
1188         (rs6000_function_arg_advance_1): Likewise.
1189         (rs6000_function_arg): Likewise.
1190         (rs6000_pass_by_reference): Likewise.
1191         (rs6000_gimplify_va_arg): Likewise.
1192         (rs6000_secondary_reload_memory): Use machine_mode not enum
1193         machine mode.
1194         (rs6000_split_multireg_move): Use new helper macros.
1195         (spe_func_has_64bit_regs_p): Likewise.
1196         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
1197         (output_toc): Use new helper macros.
1198         (rs6000_register_move_cost): Likewise.
1199         (rs6000_function_value): Add IEEE 128-bit floating point calling
1200         sequence support.
1201         (rs6000_libcall_value): Likewise.
1202         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
1203         floating point support.
1204         (rs6000_vector_mode_supported_p): Likewise.
1206 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
1208         PR rtl-optimization/66782
1209         * lra-int.h (struct lra_insn_recog_data): Add comment about
1210         clobbered hard regs for arg_hard_regs.
1211         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
1212         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
1213         Add condition for processing used hard regs.
1214         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
1215         Process clobbered hard regs.
1217 2015-07-09  Michael Matz  <matz@suse.de>
1219         * genmatch.c (fprintf_indent): New function.
1220         (operand::gen_transform): Add indent parameter.
1221         (expr::gen_transform, c_expr::gen_transform,
1222         capture::gen_transform): Ditto and use fprintf_indent.
1223         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
1224         (dt_operand::gen, dt_operand::gen_predicate,
1225         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
1226         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
1227         (decision_tree::gen_gimple): Adjust calls and indent generated
1228         code.
1229         (decision_tree::gen_generic): Ditto.
1230         (write_predicate): Ditto.
1232 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
1234         PR target/66814
1235         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
1236         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
1237         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
1238         {GENERAL,SSE,MMX}_REG_P where appropriate.
1240 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1242         * lto-streamer.h: Don't include target.h and alloc-pool.h.
1243         * builtins.c: Adjust includes.
1244         * gimple.c: Likewise.
1245         * ipa-icf.c: Likewise.
1246         * lto-opts.c: Likewise.
1247         * ipa-reference.c: Likewise.
1248         * lto-section-out.c: Likewise.
1249         * lto-streamer-in.c: Likewise.
1250         * lto-streamer-out.c: Likewise.
1251         * opts-global.c: Likewise.
1252         * symtab.c: Likewise.
1253         * tree-chkp.c: Likewise.
1254         * tree-ssa-live.c: Likewise.
1255         * tree-streamer-in.c: Likewise.
1256         * tree-streamer-out.c: Likewise.
1257         * config/darwin.c: Likewise.
1258         * config/i386/winnt.c: Likewise.
1260 2015-07-09  Richard Biener  <rguenther@suse.de>
1262         * genmatch.c (struct expr): Add force_single_use flag.
1263         (expr::expr): Add copy constructor.
1264         (capture_info::walk_match): Gather force_single_use captures.
1265         (expr::gen_transform): Use possibly NULLified sequence.
1266         (dt_simplify::gen): Apply single-use restrictions by NULLifying
1267         seq if any constrained expr is not single-use.
1268         (parser::parse_expr): Refactor to allow multiple flags.  Handle
1269         's' flag to force an expression have a single-use if the pattern
1270         simplifies to more than one statement.
1271         * match.pd: Convert most single_use conditionals to :s flags.
1273 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1275         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
1276         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
1277         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1279 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
1281         * flags.h: Don't include flag-types.h or options.h.
1282         * opts-common.c: Adjust includes.
1283         * opts-global.c: Likewise.
1284         * common/config/epiphany/epiphany-common.c: Likewise.
1286 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1288         PR target/66818
1289         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
1290         for IA MCU.
1292 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
1294         PR target/66817
1295         * config/i386/i386.c (ix86_return_in_memory): Return true
1296         if int_size_in_bytes returns negative for IA MCU.
1298 2015-07-09  Marek Polacek  <polacek@redhat.com>
1300         PR tree-optimization/66718
1301         * Makefile.in (OBJS): Add gimple-laddress.o.
1302         * passes.def: Schedule pass_laddress.
1303         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
1304         * tree-pass.h (make_pass_laddress): Declare.
1305         * gimple-laddress.c: New file.
1307 2015-07-09  Richard Biener  <rguenther@suse.de>
1309         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
1311 2015-07-09  Richard Biener  <rguenther@suse.de>
1313         PR tree-optimization/66807
1314         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
1316 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
1318         * function.c (stack_protect_epilogue): Use if rather than switch for
1319         check targetm.have_stack_protect_test.
1321 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1323         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
1324         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
1325         * config/arc/arc.h: Likewise.
1326         * config/arm/arm.h: Likewise.
1327         * config/bfin/bfin.h: Likewise.
1328         * config/epiphany/epiphany.h: Likewise.
1329         * config/frv/frv.h: Likewise.
1330         * config/ia64/ia64.h: Likewise.
1331         * config/iq2000/iq2000.h: Likewise.
1332         * config/lm32/lm32.h: Likewise.
1333         * config/m32r/m32r.h: Likewise.
1334         * config/mcore/mcore.h: Likewise.
1335         * config/mep/mep.h: Likewise.
1336         * config/microblaze/microblaze.h: Likewise.
1337         * config/mips/mips.h: Likewise.
1338         * config/mmix/mmix.h: Likewise.
1339         * config/mn10300/mn10300.h: Likewise.
1340         * config/nds32/nds32.h: Likewise.
1341         * config/nios2/nios2.h: Likewise.
1342         * config/pa/pa.h: Likewise.
1343         * config/rl78/rl78.h: Likewise.
1344         * config/sh/sh.h: Likewise.
1345         * config/sparc/sparc.h: Likewise.
1346         * config/stormy16/stormy16.h: Likewise.
1347         * config/tilegx/tilegx.h: Likewise.
1348         * config/tilepro/tilepro.h: Likewise.
1349         * config/v850/v850.h: Likewise.
1350         * config/xtensa/xtensa.h: Likewise.
1351         * doc/tm.texi: Regenerate.
1352         * doc/tm.texi.in: Adjust.
1353         * combine.c (simplify_set): Likewise.
1354         (simplify_comparison): Likewise.
1355         * expr.c (store_constructor): Likewise.
1356         * internal-fn.c (expand_arith_overflow): Likewise.
1357         * reload.c (push_reload): Likewise.
1358         (find_reloads): Likewise.
1359         (find_reloads_subreg_address): Likewise.
1360         * reload1.c (eliminate_regs_1): Likewise.
1361         * rtlanal.c (nonzero_bits1): Likewise.
1362         (num_sign_bit_copies1): Likewise.
1363         * simplify-rtx.c (simplify_truncation): Likewise.
1365 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1367         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
1368         of AUTO_INC_DEC with the preprocessor.
1369         * combine.c (combine_instructions): Likewise.
1370         (can_combine_p): Likewise.
1371         (try_combine): Likewise.
1372         * emit-rtl.c (try_split): Likewise.
1373         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1374         * lower-subreg.c (resolve_simple_move): Likewise.
1375         * lra.c (update_inc_notes): Likewise.
1376         * recog.c (asm_operand_ok): Likewise.
1377         (constrain_operands): Likewise.
1378         * regrename.c (scan_rtx_address): Likewise.
1379         * reload.c (update_auto_inc_notes): Likewise.
1380         (reg_inc_found_and_valid_p): Likewise.
1381         * reload1.c (reload): Likewise.
1382         (emit_input_reload_insns): Likewise.
1383         (delete_output_reload): Likewise.
1384         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1385         * valtrack.c (cleanup_auto_inc_dec): Likewise.
1387 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1389         * rtl.h: Always define AUTO_INC_DEC.
1390         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
1391         * combine.c (combine_instructions): Likewise.
1392         (can_combine_p): Likewise.
1393         (try_combine): Likewise.
1394         * emit-rtl.c (try_split): Likewise.
1395         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1396         * lower-subreg.c (resolve_simple_move): Likewise.
1397         * lra.c (update_inc_notes): Likewise.
1398         * recog.c (asm_operand_ok): Likewise.
1399         (constrain_operands): Likewise.
1400         * regrename.c (scan_rtx_address): Likewise.
1401         * reload.c (update_auto_inc_notes): Likewise.
1402         (find_equiv_reg): Likewise.
1403         * reload1.c (reload): Likewise.
1404         (reload_as_needed): Likewise.
1405         (choose_reload_regs): Likewise.
1406         (emit_input_reload_insns): Likewise.
1407         (delete_output_reload): Likewise.
1408         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
1409         * valtrack.c (cleanup_auto_inc_dec): Likewise.
1411 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1413         * combine.c (can_combine_def_p): Don't check the value of
1414         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
1415         (combinable_i3pat): Likewise.
1416         (mark_used_regs_combine): Likewise.
1417         * regrename.c (rename_chains): Likewise.
1418         * reload.c (find_reloads_address): Likewise.
1419         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1421 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1423         * combine.c (update_rsp_from_reg_equal): Don't check if
1424         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
1425         (reg_nonzero_bits_for_combine): Likewise.
1426         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
1427         1.
1428         * config/frv/frv.h: Likewise.
1429         * config/lm32/lm32.h: Likewise.
1430         * config/mep/mep.h: Likewise.
1431         * config/mips/mips.h: Likewise.
1432         * config/rs6000/rs6000.h: Likewise.
1433         * config/sh/sh.h: Likewise.
1434         * config/tilegx/tilegx.h (enum reg_class): Likewise.
1435         * config/tilepro/tilepro.h: Likewise.
1436         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
1437         * doc/tm.texi: Regenerate.
1438         * doc/tm.texi.in: Adjust.
1439         * rtlanal.c (nonzero_bits1): Likewise.
1441 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1443         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
1444         with the preprocessor.
1445         (combine_instructions): Likewise.
1446         (try_combine): Likewise.
1447         (subst): Likewise.
1448         (distribute_notes): Likewise.
1450 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1452         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
1453         defined.
1454         (simplify_set): Likewise.
1455         * cse.c (cse_insn): Likewise.
1456         * fold-const.c (fold_single_bit_test): Likewise.
1457         (fold_unary_loc): Likewise.
1458         * postreload.c (reload_cse_simplify_set): Likewise.
1459         (reload_cse_simplify_operands): Likewise.
1461 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
1463         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
1464         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
1466 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
1468         PR target/66746
1469         * config/i386/x86intrin.h: Include <adxintrin.h> even if
1470         __iamcu__ is defined.
1472 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
1474         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
1476 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
1478         PR target/66523
1479         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
1480         names from preservation.
1482 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
1484         PR middle-end/66334
1485         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
1486         hard regno live at the start of BB with incoming abnormal edges.
1487         * lra-lives.c (process_bb_lives): Ditto.
1489 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
1491         PR libgomp/65099
1492         * config/nvptx/mkoffload.c (main): Create an offload image only in
1493         64-bit configurations.
1495 2015-07-08  Martin Liska  <mliska@suse.cz>
1497         PR bootstrap/66744
1498         * tree-sra.c (create_access_1): Call ctor without brackets.
1499         (create_artificial_child_access): Likewise.
1501 2015-07-08  Richard Biener  <rguenther@suse.de>
1503         PR tree-optimization/66793
1504         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
1505         Properly split the block after stmts ending it.
1507 2015-07-08  Richard Biener  <rguenther@suse.de>
1509         PR tree-optimization/66794
1510         * passes.c (execute_function_todo): Assert that post-dominators
1511         are not computed.
1512         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
1513         Free post-dominators.
1515 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1517         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
1518         with early exit.
1520 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
1522         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
1523         more than or equal 8 and less than 32 when optimizing for size.
1525 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1527         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
1528         COSTS_N_INSNS (1) and increment it appropriately throughout the
1529         function.
1531 2015-07-08  Richard Biener  <rguenther@suse.de>
1533         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
1535 2015-07-08  Alan Modra  <amodra@gmail.com>
1537         * target.def (rtx_costs): Remove "code" param, add "mode".
1538         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
1539         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
1540         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
1541         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
1542         call.  Track mode when given in rtx.
1543         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
1544         (default_address_cost): Pass Pmode to rtx_cost.
1545         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
1546         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
1547         with NULL set.
1548         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
1549         (notreg_cost): Add mode param.  Use it.
1550         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
1551         mode param and pass to set_src_cost.  Update all calls.
1552         (hash_scan_set): Formatting.
1553         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
1554         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
1555         * hooks.h: Ditto.
1556         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
1557         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
1558         emit_store_flag): Update set_src_cost and rtx_cost calls.
1559         * auto-inc-dec.c (attempt_change): Likewise.
1560         * calls.c (precompute_register_parameters): Likewise.
1561         * combine.c (expand_compound_operation, make_extraction,
1562         force_to_mode, distribute_and_simplify_rtx): Likewise.
1563         * dojump.c (prefer_and_bit_test): Likewise.
1564         * dse.c (find_shift_sequence): Likewise.
1565         * expr.c (compress_float_constant): Likewise.
1566         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1567         * ifcvt.c (noce_try_sign_mask): Likewise.
1568         * loop-doloop.c (doloop_optimize): Likewise.
1569         * loop-invariant.c (create_new_invariant): Likewise.
1570         * lower-subreg.c (shift_cost, compute_costs): Likewise.
1571         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
1572         lshift_cheap_p): Likewise.
1573         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
1574         try_replace_in_use, reload_cse_move2add): Likewise.
1575         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
1576         Likewise.
1577         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1578         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1579         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
1580         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1581         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
1582         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
1583         to rtx_cost calls.
1584         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
1585         * config/arc/arc.c (arc_rtx_costs): Likewise.
1586         * config/arm/arm.c (arm_rtx_costs): Likewise.
1587         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
1588         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1589         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1590         * config/cris/cris.c (cris_rtx_costs): Likewise.
1591         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
1592         * config/frv/frv.c (frv_rtx_costs): Likewise.
1593         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1594         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1595         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1596         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1597         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1598         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1599         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1600         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1601         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1602         * config/mep/mep.c (mep_rtx_cost): Likewise.
1603         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1604         * config/mips/mips.c (mips_rtx_costs): Likewise.
1605         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1606         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
1607         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
1608         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
1609         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
1610         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
1611         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
1612         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1613         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1614         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
1615         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1616         * config/s390/s390.c (s390_rtx_costs): Likewise.
1617         * config/sh/sh.c (sh_rtx_costs): Likewise.
1618         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1619         * config/spu/spu.c (spu_rtx_costs): Likewise.
1620         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1621         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
1622         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
1623         * config/v850/v850.c (v850_rtx_costs): Likewise.
1624         * config/vax/vax.c (vax_rtx_costs): Likewise.
1625         * config/visium/visium.c (visium_rtx_costs): Likewise.
1626         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1627         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
1628         "code" param, and pass as outer_code to first rtx_cost call.  Pass
1629         mode to rtx_cost calls.
1630         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
1631         calls.
1632         (aarch64_rtx_costs_wrapper): Update.
1633         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
1634         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
1635         rtx_cost calls.
1636         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
1637         and rtx_cost calls.
1638         (avr_operand_rtx_cost): Similarly.
1639         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
1640         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
1641         * config/mips/mips.c (mips_stack_address_p): Comment typo.
1642         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
1643         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
1644         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
1645         rtx_cost.
1646         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
1647         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
1648         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
1649         * doc/tm.texi: Regenerate.
1651 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
1653         * tree-core.h: Include symtab.h.
1654         * rtl.h: Include hard-reg-set.h but not flags.h.
1655         (HARD_CONST): Remove condition compilation involving HARD_CONST since
1656         hard-reg-set.h is always included.
1657         * regs.h: Don't include hard-reg-set.h or rtl.h.
1658         * cfg.h: Include dominance.h.
1659         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
1660         * backend.h: New.  Aggregate commonly used backend header files.
1661         * gimple-ssa.h: Don't include tree-hasher.h.
1662         * ssa.h: New.  Aggregate commonly used SSA header files.
1663         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
1664         * sel-sched-ir.h: Flatten includes.
1665         * lra-int.h: Flatten completely.
1666         * sel-sched-dump.h: Flatten includes.
1667         * ira-int.h: Flatten includes.
1668         * gimple-streamer.h: Remove all includes.
1669         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
1670         * resource.h: Flatten hard-reg-set.h and df.h.
1671         * sched-int.h: Flatten insn-arrt.h and df.h.
1672         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
1673         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
1674         * genattrtab.c (write_header): Adjust generated includes.
1675         * genautomata.c (main): Likewise.
1676         * genconditions.c (write-header): Likewise.
1677         * genemit.c (main): Likewise.
1678         * gengtype.c (open_base_files): Likewise.
1679         * genopinit.c (main): Likewise.
1680         * genoutput.c (output_prologue): Likewise.
1681         * genpeep.c (main): Likewise.
1682         * genpreds.c (write_insn_preds_c): Likewise.
1683         * genrecog.c (write_header): Likewise.
1684         * alias.c: Adjust includes.
1685         * asan.c: Likewise.
1686         * attribs.c: Likewise.
1687         * auto-inc-dec.c: Likewise.
1688         * auto-profile.c: Likewise.
1689         * bb-reorder.c: Likewise.
1690         * bt-load.c: Likewise.
1691         * builtins.c: Likewise.
1692         * caller-save.c: Likewise.
1693         * calls.c: Likewise.
1694         * ccmp.c: Likewise.
1695         * cfg.c: Likewise.
1696         * cfganal.c: Likewise.
1697         * cfgbuild.c: Likewise.
1698         * cfgcleanup.c: Likewise.
1699         * cfgexpand.c: Likewise.
1700         * cfghooks.c: Likewise.
1701         * cfgloop.c: Likewise.
1702         * cfgloopanal.c: Likewise.
1703         * cfgloopmanip.c: Likewise.
1704         * cfgrtl.c: Likewise.
1705         * cgraph.c: Likewise.
1706         * cgraphbuild.c: Likewise.
1707         * cgraphclones.c: Likewise.
1708         * cgraphunit.c: Likewise.
1709         * cilk-common.c: Likewise.
1710         * combine-stack-adj.c: Likewise.
1711         * combine.c: Likewise.
1712         * compare-elim.c: Likewise.
1713         * convert.c: Likewise.
1714         * coverage.c: Likewise.
1715         * cppbuiltin.c: Likewise.
1716         * cprop.c: Likewise.
1717         * cse.c: Likewise.
1718         * cselib.c: Likewise.
1719         * data-streamer-in.c: Likewise.
1720         * data-streamer-out.c: Likewise.
1721         * data-streamer.c: Likewise.
1722         * dbxout.c: Likewise.
1723         * dce.c: Likewise.
1724         * ddg.c: Likewise.
1725         * debug.c: Likewise.
1726         * df-core.c: Likewise.
1727         * df-problems.c: Likewise.
1728         * df-scan.c: Likewise.
1729         * dfp.c: Likewise.
1730         * dojump.c: Likewise.
1731         * dominance.c: Likewise.
1732         * domwalk.c: Likewise.
1733         * double-int.c: Likewise.
1734         * dse.c: Likewise.
1735         * dumpfile.c: Likewise.
1736         * dwarf2asm.c: Likewise.
1737         * dwarf2cfi.c: Likewise.
1738         * dwarf2out.c: Likewise.
1739         * emit-rtl.c: Likewise.
1740         * et-forest.c: Likewise.
1741         * except.c: Likewise.
1742         * explow.c: Likewise.
1743         * expmed.c: Likewise.
1744         * expr.c: Likewise.
1745         * final.c: Likewise.
1746         * fixed-value.c: Likewise.
1747         * fold-const.c: Likewise.
1748         * function.c: Likewise.
1749         * fwprop.c: Likewise.
1750         * gcc-plugin.h: Likewise.
1751         * gcse-common.c: Likewise.
1752         * gcse.c: Likewise.
1753         * generic-match-head.c: Likewise.
1754         * ggc-page.c: Likewise.
1755         * gimple-builder.c: Likewise.
1756         * gimple-expr.c: Likewise.
1757         * gimple-fold.c: Likewise.
1758         * gimple-iterator.c: Likewise.
1759         * gimple-low.c: Likewise.
1760         * gimple-match-head.c: Likewise.
1761         * gimple-pretty-print.c: Likewise.
1762         * gimple-ssa-isolate-paths.c: Likewise.
1763         * gimple-ssa-strength-reduction.c: Likewise.
1764         * gimple-streamer-in.c: Likewise.
1765         * gimple-streamer-out.c: Likewise.
1766         * gimple-walk.c: Likewise.
1767         * gimple.c: Likewise.
1768         * gimplify-me.c: Likewise.
1769         * gimplify.c: Likewise.
1770         * godump.c: Likewise.
1771         * graph.c: Likewise.
1772         * graphite-blocking.c: Likewise.
1773         * graphite-dependences.c: Likewise.
1774         * graphite-interchange.c: Likewise.
1775         * graphite-isl-ast-to-gimple.c: Likewise.
1776         * graphite-optimize-isl.c: Likewise.
1777         * graphite-poly.c: Likewise.
1778         * graphite-scop-detection.c: Likewise.
1779         * graphite-sese-to-poly.c: Likewise.
1780         * graphite.c: Likewise.
1781         * haifa-sched.c: Likewise.
1782         * hw-doloop.c: Likewise.
1783         * ifcvt.c: Likewise.
1784         * init-regs.c: Likewise.
1785         * internal-fn.c: Likewise.
1786         * ipa-chkp.c: Likewise.
1787         * ipa-comdats.c: Likewise.
1788         * ipa-cp.c: Likewise.
1789         * ipa-devirt.c: Likewise.
1790         * ipa-icf-gimple.c: Likewise.
1791         * ipa-icf.c: Likewise.
1792         * ipa-inline-analysis.c: Likewise.
1793         * ipa-inline-transform.c: Likewise.
1794         * ipa-inline.c: Likewise.
1795         * ipa-polymorphic-call.c: Likewise.
1796         * ipa-profile.c: Likewise.
1797         * ipa-prop.c: Likewise.
1798         * ipa-pure-const.c: Likewise.
1799         * ipa-ref.c: Likewise.
1800         * ipa-reference.c: Likewise.
1801         * ipa-split.c: Likewise.
1802         * ipa-utils.c: Likewise.
1803         * ipa-visibility.c: Likewise.
1804         * ipa.c: Likewise.
1805         * ira-build.c: Likewise.
1806         * ira-color.c: Likewise.
1807         * ira-conflicts.c: Likewise.
1808         * ira-costs.c: Likewise.
1809         * ira-emit.c: Likewise.
1810         * ira-lives.c: Likewise.
1811         * ira.c: Likewise.
1812         * jump.c: Likewise.
1813         * langhooks.c: Likewise.
1814         * lcm.c: Likewise.
1815         * loop-doloop.c: Likewise.
1816         * loop-init.c: Likewise.
1817         * loop-invariant.c: Likewise.
1818         * loop-iv.c: Likewise.
1819         * loop-unroll.c: Likewise.
1820         * lower-subreg.c: Likewise.
1821         * lra-assigns.c: Likewise.
1822         * lra-coalesce.c: Likewise.
1823         * lra-constraints.c: Likewise.
1824         * lra-eliminations.c: Likewise.
1825         * lra-lives.c: Likewise.
1826         * lra-remat.c: Likewise.
1827         * lra-spills.c: Likewise.
1828         * lra.c: Likewise.
1829         * lto-cgraph.c: Likewise.
1830         * lto-compress.c: Likewise.
1831         * lto-opts.c: Likewise.
1832         * lto-section-in.c: Likewise.
1833         * lto-section-out.c: Likewise.
1834         * lto-streamer-in.c: Likewise.
1835         * lto-streamer-out.c: Likewise.
1836         * lto-streamer.c: Likewise.
1837         * mcf.c: Likewise.
1838         * mode-switching.c: Likewise.
1839         * modulo-sched.c: Likewise.
1840         * omega.c: Likewise.
1841         * omp-low.c: Likewise.
1842         * optabs.c: Likewise.
1843         * opts-global.c: Likewise.
1844         * passes.c: Likewise.
1845         * plugin.c: Likewise.
1846         * postreload-gcse.c: Likewise.
1847         * postreload.c: Likewise.
1848         * predict.c: Likewise.
1849         * print-rtl.c: Likewise.
1850         * print-tree.c: Likewise.
1851         * profile.c: Likewise.
1852         * real.c: Likewise.
1853         * realmpfr.c: Likewise.
1854         * recog.c: Likewise.
1855         * ree.c: Likewise.
1856         * reg-stack.c: Likewise.
1857         * regcprop.c: Likewise.
1858         * reginfo.c: Likewise.
1859         * regrename.c: Likewise.
1860         * regstat.c: Likewise.
1861         * reload.c: Likewise.
1862         * reload1.c: Likewise.
1863         * reorg.c: Likewise.
1864         * resource.c: Likewise.
1865         * rtl-chkp.c: Likewise.
1866         * rtlanal.c: Likewise.
1867         * rtlhooks.c: Likewise.
1868         * sanopt.c: Likewise.
1869         * sched-deps.c: Likewise.
1870         * sched-ebb.c: Likewise.
1871         * sched-rgn.c: Likewise.
1872         * sched-vis.c: Likewise.
1873         * sdbout.c: Likewise.
1874         * sel-sched-dump.c: Likewise.
1875         * sel-sched-ir.c: Likewise.
1876         * sel-sched.c: Likewise.
1877         * sese.c: Likewise.
1878         * shrink-wrap.c: Likewise.
1879         * simplify-rtx.c: Likewise.
1880         * stack-ptr-mod.c: Likewise.
1881         * stmt.c: Likewise.
1882         * stor-layout.c: Likewise.
1883         * store-motion.c: Likewise.
1884         * stringpool.c: Likewise.
1885         * symtab.c: Likewise.
1886         * target-globals.c: Likewise.
1887         * targhooks.c: Likewise.
1888         * toplev.c: Likewise.
1889         * tracer.c: Likewise.
1890         * trans-mem.c: Likewise.
1891         * tree-affine.c: Likewise.
1892         * tree-browser.c: Likewise.
1893         * tree-call-cdce.c: Likewise.
1894         * tree-cfg.c: Likewise.
1895         * tree-cfgcleanup.c: Likewise.
1896         * tree-chkp-opt.c: Likewise.
1897         * tree-chkp.c: Likewise.
1898         * tree-chrec.c: Likewise.
1899         * tree-complex.c: Likewise.
1900         * tree-data-ref.c: Likewise.
1901         * tree-dfa.c: Likewise.
1902         * tree-diagnostic.c: Likewise.
1903         * tree-dump.c: Likewise.
1904         * tree-eh.c: Likewise.
1905         * tree-emutls.c: Likewise.
1906         * tree-if-conv.c: Likewise.
1907         * tree-inline.c: Likewise.
1908         * tree-into-ssa.c: Likewise.
1909         * tree-iterator.c: Likewise.
1910         * tree-loop-distribution.c: Likewise.
1911         * tree-nested.c: Likewise.
1912         * tree-nrv.c: Likewise.
1913         * tree-object-size.c: Likewise.
1914         * tree-outof-ssa.c: Likewise.
1915         * tree-parloops.c: Likewise.
1916         * tree-phinodes.c: Likewise.
1917         * tree-predcom.c: Likewise.
1918         * tree-pretty-print.c: Likewise.
1919         * tree-profile.c: Likewise.
1920         * tree-scalar-evolution.c: Likewise.
1921         * tree-sra.c: Likewise.
1922         * tree-ssa-address.c: Likewise.
1923         * tree-ssa-alias.c: Likewise.
1924         * tree-ssa-ccp.c: Likewise.
1925         * tree-ssa-coalesce.c: Likewise.
1926         * tree-ssa-copy.c: Likewise.
1927         * tree-ssa-copyrename.c: Likewise.
1928         * tree-ssa-dce.c: Likewise.
1929         * tree-ssa-dom.c: Likewise.
1930         * tree-ssa-dse.c: Likewise.
1931         * tree-ssa-forwprop.c: Likewise.
1932         * tree-ssa-ifcombine.c: Likewise.
1933         * tree-ssa-live.c: Likewise.
1934         * tree-ssa-loop-ch.c: Likewise.
1935         * tree-ssa-loop-im.c: Likewise.
1936         * tree-ssa-loop-ivcanon.c: Likewise.
1937         * tree-ssa-loop-ivopts.c: Likewise.
1938         * tree-ssa-loop-manip.c: Likewise.
1939         * tree-ssa-loop-niter.c: Likewise.
1940         * tree-ssa-loop-prefetch.c: Likewise.
1941         * tree-ssa-loop-unswitch.c: Likewise.
1942         * tree-ssa-loop.c: Likewise.
1943         * tree-ssa-math-opts.c: Likewise.
1944         * tree-ssa-operands.c: Likewise.
1945         * tree-ssa-phiopt.c: Likewise.
1946         * tree-ssa-phiprop.c: Likewise.
1947         * tree-ssa-pre.c: Likewise.
1948         * tree-ssa-propagate.c: Likewise.
1949         * tree-ssa-reassoc.c: Likewise.
1950         * tree-ssa-sccvn.c: Likewise.
1951         * tree-ssa-scopedtables.c: Likewise.
1952         * tree-ssa-sink.c: Likewise.
1953         * tree-ssa-strlen.c: Likewise.
1954         * tree-ssa-structalias.c: Likewise.
1955         * tree-ssa-tail-merge.c: Likewise.
1956         * tree-ssa-ter.c: Likewise.
1957         * tree-ssa-threadedge.c: Likewise.
1958         * tree-ssa-threadupdate.c: Likewise.
1959         * tree-ssa-uncprop.c: Likewise.
1960         * tree-ssa-uninit.c: Likewise.
1961         * tree-ssa.c: Likewise.
1962         * tree-ssanames.c: Likewise.
1963         * tree-stdarg.c: Likewise.
1964         * tree-streamer-in.c: Likewise.
1965         * tree-streamer-out.c: Likewise.
1966         * tree-streamer.c: Likewise.
1967         * tree-switch-conversion.c: Likewise.
1968         * tree-tailcall.c: Likewise.
1969         * tree-vect-data-refs.c: Likewise.
1970         * tree-vect-generic.c: Likewise.
1971         * tree-vect-loop-manip.c: Likewise.
1972         * tree-vect-loop.c: Likewise.
1973         * tree-vect-patterns.c: Likewise.
1974         * tree-vect-slp.c: Likewise.
1975         * tree-vect-stmts.c: Likewise.
1976         * tree-vectorizer.c: Likewise.
1977         * tree-vrp.c: Likewise.
1978         * tree.c: Likewise.
1979         * tsan.c: Likewise.
1980         * ubsan.c: Likewise.
1981         * valtrack.c: Likewise.
1982         * value-prof.c: Likewise.
1983         * var-tracking.c: Likewise.
1984         * varasm.c: Likewise.
1985         * varpool.c: Likewise.
1986         * vmsdbgout.c: Likewise.
1987         * vtable-verify.c: Likewise.
1988         * web.c: Likewise.
1989         * wide-int.cc: Likewise.
1990         * xcoffout.c: Likewise.
1991         * config/aarch64/aarch64-builtins.c: Likewise.
1992         * config/aarch64/aarch64.c: Likewise.
1993         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1994         * config/alpha/alpha.c: Likewise.
1995         * config/arc/arc.c: Likewise.
1996         * config/arm/aarch-common.c: Likewise.
1997         * config/arm/arm-builtins.c: Likewise.
1998         * config/arm/arm-c.c: Likewise.
1999         * config/arm/arm.c: Likewise.
2000         * config/avr/avr-c.c: Likewise.
2001         * config/avr/avr-log.c: Likewise.
2002         * config/avr/avr.c: Likewise.
2003         * config/bfin/bfin.c: Likewise.
2004         * config/c6x/c6x.c: Likewise.
2005         * config/cr16/cr16.c: Likewise.
2006         * config/cris/cris.c: Likewise.
2007         * config/darwin-c.c: Likewise.
2008         * config/darwin.c: Likewise.
2009         * config/epiphany/epiphany.c: Likewise.
2010         * config/epiphany/mode-switch-use.c: Likewise.
2011         * config/epiphany/resolve-sw-modes.c: Likewise.
2012         * config/fr30/fr30.c: Likewise.
2013         * config/frv/frv.c: Likewise.
2014         * config/ft32/ft32.c: Likewise.
2015         * config/h8300/h8300.c: Likewise.
2016         * config/i386/i386-c.c: Likewise.
2017         * config/i386/i386.c: Likewise.
2018         * config/i386/msformat-c.c: Likewise.
2019         * config/i386/winnt-cxx.c: Likewise.
2020         * config/i386/winnt-stubs.c: Likewise.
2021         * config/i386/winnt.c: Likewise.
2022         * config/ia64/ia64-c.c: Likewise.
2023         * config/ia64/ia64.c: Likewise.
2024         * config/iq2000/iq2000.c: Likewise.
2025         * config/lm32/lm32.c: Likewise.
2026         * config/m32c/m32c-pragma.c: Likewise.
2027         * config/m32c/m32c.c: Likewise.
2028         * config/m32r/m32r.c: Likewise.
2029         * config/m68k/m68k.c: Likewise.
2030         * config/mcore/mcore.c: Likewise.
2031         * config/mep/mep-pragma.c: Likewise.
2032         * config/mep/mep.c: Likewise.
2033         * config/microblaze/microblaze-c.c: Likewise.
2034         * config/microblaze/microblaze.c: Likewise.
2035         * config/mips/mips.c: Likewise.
2036         * config/mmix/mmix.c: Likewise.
2037         * config/mn10300/mn10300.c: Likewise.
2038         * config/moxie/moxie.c: Likewise.
2039         * config/msp430/msp430-c.c: Likewise.
2040         * config/msp430/msp430.c: Likewise.
2041         * config/nds32/nds32-cost.c: Likewise.
2042         * config/nds32/nds32-fp-as-gp.c: Likewise.
2043         * config/nds32/nds32-intrinsic.c: Likewise.
2044         * config/nds32/nds32-isr.c: Likewise.
2045         * config/nds32/nds32-md-auxiliary.c: Likewise.
2046         * config/nds32/nds32-memory-manipulation.c: Likewise.
2047         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2048         * config/nds32/nds32-predicates.c: Likewise.
2049         * config/nds32/nds32.c: Likewise.
2050         * config/nios2/nios2.c: Likewise.
2051         * config/nvptx/nvptx.c: Likewise.
2052         * config/pa/pa.c: Likewise.
2053         * config/pdp11/pdp11.c: Likewise.
2054         * config/rl78/rl78-c.c: Likewise.
2055         * config/rl78/rl78.c: Likewise.
2056         * config/rs6000/rs6000-c.c: Likewise.
2057         * config/rs6000/rs6000.c: Likewise.
2058         * config/rx/rx.c: Likewise.
2059         * config/s390/s390-c.c: Likewise.
2060         * config/s390/s390.c: Likewise.
2061         * config/sh/sh-c.c: Likewise.
2062         * config/sh/sh-mem.cc: Likewise.
2063         * config/sh/sh.c: Likewise.
2064         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2065         * config/sh/sh_treg_combine.cc: Likewise.
2066         * config/sol2-c.c: Likewise.
2067         * config/sol2-cxx.c: Likewise.
2068         * config/sol2-stubs.c: Likewise.
2069         * config/sol2.c: Likewise.
2070         * config/sparc/sparc-c.c: Likewise.
2071         * config/sparc/sparc.c: Likewise.
2072         * config/spu/spu-c.c: Likewise.
2073         * config/spu/spu.c: Likewise.
2074         * config/stormy16/stormy16.c: Likewise.
2075         * config/tilegx/mul-tables.c: Likewise.
2076         * config/tilegx/tilegx-c.c: Likewise.
2077         * config/tilegx/tilegx.c: Likewise.
2078         * config/tilepro/mul-tables.c: Likewise.
2079         * config/tilepro/tilepro-c.c: Likewise.
2080         * config/tilepro/tilepro.c: Likewise.
2081         * config/v850/v850-c.c: Likewise.
2082         * config/v850/v850.c: Likewise.
2083         * config/vax/vax.c: Likewise.
2084         * config/visium/visium.c: Likewise.
2085         * config/vms/vms-c.c: Likewise.
2086         * config/vms/vms.c: Likewise.
2087         * config/vxworks.c: Likewise.
2088         * config/xtensa/xtensa.c: Likewise.
2090 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
2092         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
2093         Remove operand constraints.  Change operand 2 predicate to
2094         nonmemory operand.  Limit const_int values to mode bitsize.  Only
2095         allow const_int values less than 32 when optimizing for size.
2096         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
2097         Remove operand constraints.
2098         (*bt<mode>): Use SImode for const_int values less than 32.
2099         (regmode): Remove mode attribute.
2101 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
2103         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2104         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
2105           moxie_legitimate_address_p): New functions.
2106           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2108 2015-07-07  Tom de Vries  <tom@codesourcery.com>
2110         PR tree-optimization/66642
2111         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
2112         header comment.  Rename split_edge variable to edge_at_split.  Split
2113         exit edge to create new loop exit bb.  Insert loop exit phis in new
2114         loop exit bb.
2116 2015-07-07  Tom de Vries  <tom@codesourcery.com>
2118         * tree-cfg.c (get_virtual_phi): New function.
2119         * tree-cfg.h (get_virtual_phi): Declare.
2120         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
2121         (rewrite_virtuals_into_loop_closed_ssa): New function.
2122         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
2123         Declare.
2124         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
2125         (transform_to_exit_first_loop_alt): Use
2126         rewrite_virtuals_into_loop_closed_ssa.
2128 2015-07-07  Richard Biener  <rguenther@suse.de>
2130         * fold-const.c (fold_binary_loc): Move
2131         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
2132         * match.pd: ... here.
2133         Add (X * C1) % C2 -> 0 simplification pattern derived from
2134         extract_muldiv_1.
2136 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2138         PR target/66780
2139         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
2140         change for target/65249.
2142 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
2144         * symtab.c (address_matters_1): Fix typo in comment above.
2145         (can_increase_alignment_p): Likewise.
2147 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2149         * function.c (free_after_compilation): Clear PROP_cfg in
2150         f->curr_properties.
2152 2015-07-07  Richard Biener  <rguenther@suse.de>
2154         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
2155         add which use to.
2156         (add_control_edge): Remove excessive vertical space in dumping.
2157         (process_ssa_edge_worklist): Simulate at most one statement and
2158         return whether we did.  Do not simulate PHIs if they are in a
2159         BB not yet simulated.
2160         (ssa_propagate): Adjust to always drain the BB worklist whenever
2161         a BB is available there, likewise the VARYING edges list before
2162         the interesting edge list.
2164 2015-07-07  Christian Bruel  <christian.bruel@st.com>
2166         PR target/52144
2167         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
2169 2015-07-07  Richard Biener  <rguenther@suse.de>
2171         PR middle-end/66739
2172         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
2173         A - B.
2175 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
2177         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
2178         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
2179         Copy operand 0 to a temporary if !ext_register_operand.  Remove
2180         ancient extract_bit_field workaround.
2181         (insv<mode>_1): Rename from mov<mode>_insv_1.
2182         (*insvqi): Rename from *movqi_insv_2.
2183         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
2184         for renamed insvsi_1.
2185         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
2187 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
2189         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
2190         call to nvptx_reorg_subreg.
2192 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
2194         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
2195         * graphite-dependencies.c, graphite-interchange.c,
2196         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
2197         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
2198         Likewise.
2200 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
2202         * match.pd: Remove element_mode inside HONOR_*.
2203         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
2204         (~X | X -> -1, ~X ^ X -> -1): Merge.
2205         * tree.c (build_each_one_cst): New function.
2206         * tree.h (build_each_one_cst): Likewise.
2208 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
2210         * config.gcc <mips*-*-*>: Add fused-madd.opt.
2211         * config/mips/mips.opt (mfused-madd): Remove.
2212         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
2213         * config/mips/mips.h (TARGET_MIPS8000): New.
2214         (ISA_HAS_FP_MADD4_MSUB4): Remove.
2215         (ISA_HAS_FP_MADDF_MSUBF): Remove.
2216         (ISA_HAS_FP_MADD3_MSUB3): Remove.
2217         (ISA_HAS_NMADD4_NMSUB4): Remove.
2218         (ISA_HAS_NMADD3_NMSUB3): Remove.
2219         (ISA_HAS_FUSED_MADD4): New.
2220         (ISA_HAS_UNFUSED_MADD4): New.
2221         (ISA_HAS_FUSED_MADDF): New.
2222         (ISA_HAS_FUSED_MADD3): New.
2223         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
2224         (*fma<mode>4_madd3) New.
2225         (*fma<mode>4_madd4) New.
2226         (*fma<mode>4_maddf) New.
2227         (fms<mode>4) New.
2228         (*fms<mode>4_msub3) New.
2229         (*fms<mode>4_msub4) New.
2230         (fnma<mode>4) New.
2231         (*fnma<mode>4_nmadd3) New.
2232         (*fnma<mode>4_nmadd4) New.
2233         (fnms<mode>4) New.
2234         (*fnms<mode>4_nmsub3) New.
2235         (*fnms<mode>4_nmsub4) New.
2236         (*madd4<mode>) Modify to be unfused only.
2237         (*msub4<mode>) Modify to be unfused only.
2238         (*nmadd4<mode>) Modify to be unfused only.
2239         (*nmsub4<mode>) Modify to be unfused only.
2240         (*madd3<mode>) Remove.
2241         (*msub3<mode>) Remove.
2242         (*nmadd3<mode>) Remove.
2243         (*nmsub3<mode>) Remove.
2244         (*nmadd3<mode>_fastmath) Remove.
2245         (*nmsub3<mode>_fastmath) Remove.
2246         (*nmadd4<mode>_fastmath) Update condition.
2247         (*nmsub4<mode>_fastmath) Update condition.
2249 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
2251         PR target/65956
2252         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
2253         alignment attribute, exploring one level down for records and arrays.
2255 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
2257         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
2258         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
2259         Copy operand 1 to a temporary if !ext_register_operand.  Remove
2260         ancient extract_bit_field workaround.
2261         (*extv<mode>): Rename from *mov<mode>_extv_1.
2262         (*extvqi): Rename from *movqi_extv_1.
2263         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
2264         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
2265         to a temporary if !ext_register_operand.  Remove ancient
2266         extract_bit_field workaround.
2267         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
2268         (*extzvqi): Rename from *movqi_extzv_2.
2269         (*testqi_ext_3): Remove modes from const_int_operand predicated
2270         operands.  Add "n" constraint.
2271         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
2272         operand.  Add "J" constraint.
2273         (*btsq, *btrq, *btcq peephole2s): Remove mode from
2274         const_0_to_63 predicated operand.
2275         (regmode): New insn attribute.
2276         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
2277         to nonmemory_operand.  Use regmode insn attribute.
2278         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
2279         (*jcc_bt<mode>_mask): Remove mode from operand 3.
2280         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
2281         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
2282         operands.  Use "N" constraint instead of "n".
2284 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
2286         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
2288 2015-07-06  Richard Biener  <rguenther@suse.de>
2290         PR tree-optimization/66772
2291         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
2292         values are available in the PHI node BB when there are
2293         still unexecutable edges.
2295 2015-07-06  Richard Biener  <rguenther@suse.de>
2297         PR tree-optimization/66767
2298         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
2299         Make sure to build the alignment test on a SSA name without
2300         final alignment info valid only if the alignment test
2301         evaluates to true.
2303 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
2305         PR target/66620
2306         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
2307         loop start when inserting LSETUP.
2309 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2311         PR target/53383
2312         * config/i386/i386.c (ix86_option_override_internal): Allow
2313         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
2315 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2317         * read-md.c (decimal_string): Rename to ...
2318         (md_decimal_string): ... this.
2319         (handle_enum): Reflect this.
2321 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2323         PR target/66731
2324         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
2326 2015-07-06  Richard Biener  <rguenther@suse.de>
2328         PR middle-end/66759
2329         * match.pd: Add missing constraint of y to REAL_CST in
2330         REAL_CST - x CMP y to y - CST CMP x simplification.
2332 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
2334         PR tree-optimization/66757
2335         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
2337 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
2338             Sandra Loosemore <sandra@codesourcery.com>
2340         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
2341         Delete extern declaration.
2342         (gprel_constant_p): Add extern declaration.
2343         * config/nios2/constraints.md ("S"): Use gprel_constant_p
2344         instead of nios2_symbol_ref_in_small_data_p.
2345         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
2346         (nios2_symbol_ref_in_small_data_p): Make static.
2347         (gprel_constant_p): Make non-static.
2349 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
2351         * doc/fragments.texi (Target Fragment): Convert debian.org
2352         link to use https.
2353         * doc/install.texi (Configuration): Ditto.
2355 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
2357         PR tree-optimization/66718
2358         * tree-vect-stmts.c (vectorizable_call): Replace uses of
2359         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
2361         PR tree-optimization/66718
2362         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
2363         vectorizable_load, vectorizable_condition): Move vectype,
2364         nunits, ncopies computation after checking what kind of statement
2365         stmt is.
2367 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2369         * target-insns.def (extv, extzv, insv): New targetm instruction
2370         patterns.
2371         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
2372         interface.
2373         * recog.c (simplify_while_replacing): Likewise.
2375 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2377         * target-insns.def (doloop_begin, doloop_end): New targetm
2378         instruction patterns.
2379         * loop-init.c: Include target.h.
2380         (pass_loop2::gate): Use the new targetm patterns instead of
2381         HAVE_*/gen_* interface.
2382         (pass_rtl_doloop::gate): Likewise.
2383         (pass_rtl_doloop::execute): Remove preprocessor condition.
2384         * hw-doloop.c: Build unconditionally.
2385         * loop-doloop.c: Likewise.
2386         (doloop_optimize): Use the new targetm patterns instead of
2387         HAVE_*/gen_* interface.
2388         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
2389         * modulo-sched.c (doloop_register_get): Likewise.
2391 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2393         * target-insns.def (clear_cache): New targetm instruction pattern.
2394         * builtins.c (expand_builtin___clear_cache): Use it instead of
2395         HAVE_*/gen_* interface.
2397 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2399         * target-insns.def (allocate_stack, check_stack, probe_stack)
2400         (probe_stack_address, split_stack_prologue, split_stack_space_check):
2401         New targetm instruction patterns.
2402         * explow.c (allocate_dynamic_stack_space): Use them instead of
2403         HAVE_*/gen_* interface.
2404         (emit_stack_probe): Likewise.
2405         (probe_stack_range): Likewise.
2406         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2408 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2410         * target-insns.def (stack_protect_set, stack_protect_test): New
2411         targetm instruction patterns.
2412         * cfgexpand.c (stack_protect_prologue): Use them instead of
2413         HAVE_*/gen_* interface.
2414         * function.c (stack_protect_epilogue): Likewise.
2416 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2418         * expr.h (gen_move_insn_uncast): Delete.
2419         * expr.c (gen_move_insn_uncast): Delete.
2421 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2423         * target-insns.def (restore_stack_block, restore_stack_function)
2424         (restore_stack_nonlocal, save_stack_block, save_stack_function)
2425         (save_stack_nonlocal): New targetm instruction patterns.
2426         * builtins.c (expand_builtin_apply): Use them instead of
2427         HAVE_*/gen_* interface.
2428         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
2430 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2432         * target-insns.def (trap): New targetm instruction pattern.
2433         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
2434         interface.
2435         * explow.c (allocate_dynamic_stack_space): Likewise.
2436         * ifcvt.c (find_if_header): Likewise.
2438 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2440         * target-insns.def (prefetch): New targetm instruction pattern.
2441         * tree-ssa-loop-prefetch.c: Include targeth.
2442         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
2443         of HAVE_*/gen_* interface.
2444         * builtins.c (expand_builtin_prefetch): Likewise.
2445         * toplev.c (process_options): Likewise.
2447 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2449         * target-insns.def (untyped_call, untyped_return): New targetm
2450         instruction patterns.
2451         * builtins.c (expand_builtin_apply): Use them instead of
2452         HAVE_*/gen_* interface.
2453         (result_vector): Define unconditionally.
2455 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2457         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
2458         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
2459         (nonlocal_goto_receiver): New targetm instruction patterns.
2460         * builtins.c (expand_builtin_setjmp_setup): Use them instead
2461         of HAVE_*/gen_* interface.
2462         (expand_builtin_setjmp_receiver): Likewise.
2463         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
2464         * except.c (expand_dw2_landing_pad_for_region): Likewise.
2466 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
2468         * target.def: Add code_for_* hooks.
2469         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
2470         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
2471         * target-insns.def (casesi, tablejump): New targetm instruction
2472         patterns.
2473         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
2474         (do_tablejump): Likewise.
2475         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
2476         (expand_sjlj_dispatch_table): Likewise.
2477         * targhooks.c (default_case_values_threshold): Likewise.
2479 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
2481         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
2482         Use rtx_insn * instead of rtx.
2483         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
2484         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
2485         (nios2_call_tls_get_addr): Likewise.
2486         (nios2_emit_expensive_div): Likewise.
2487         (nios2_emit_move_sequence): Change return type to bool.
2488         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
2489         Change return type to bool.
2491 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2493         PR target/66747
2494         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
2496 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
2498         PR target/66114
2499         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
2500         of register_operand.  Remove constraint.
2502 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
2504         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
2505         the first argument.
2507 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
2509         * attribs.c (decl_attributes): Guard inform with the return value
2510         of the preceding warning.
2512 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
2514         * doc/invoke.texi (moverride): Move to correct section.
2516 2015-07-03  Richard Biener  <rguenther@suse.de>
2518         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
2519         Copy from tree.c
2520         (dt_operand::gen_gimple_expr): After valueizing operands
2521         re-canonicalize operand order for commutative tree codes.
2523 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2525         PR target/66746.
2526         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
2527         is defined.
2528         (__crc32w): Likewise.
2529         (__crc32d): Likewise.
2530         (__rdpmc): Likewise.
2531         (__rdtscp): Likewise.
2532         (_rdpmc): Likewise.
2533         (_rdtscp): Likewise.
2534         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
2535         is defined.
2537 2015-07-03  Richard Biener  <rguenther@suse.de>
2539         * fold-const.c (fold_mathfn_compare): Remove.
2540         (fold_inf_compare): Likewise.
2541         (fold_comparison): Move floating point comparison simplifications...
2542         * match.pd: ... to patterns here.  Introduce simple_comparisons
2543         operator list and use it for patterns formerly in fold_comparison.
2545 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
2547         PR tree-optimization/66119
2548         * toplev.c (process_options): Don't set up default values for
2549         the sra_max_scalarization_size_{speed,size} parameters.
2550         * tree-sra (analyze_all_variable_accesses): If no values
2551         have been set for the sra_max_scalarization_size_{speed,size}
2552         parameters, call get_move_ratio to get target defaults.
2554 2015-07-03  Richard Biener  <rguenther@suse.de>
2556         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
2557         * match.pd: ... here.
2559 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
2561         PR target/37072
2562         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
2563         is not actually the default on FreeBSD.
2565 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2567         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
2568         definition.
2569         (CMPGE_8HI): Likewise.
2570         (CMPGE_4SI): Likewise.
2571         (CMPGE_2DI): Likewise.
2572         (CMPGE_U16QI): Likewise.
2573         (CMPGE_U8HI): Likewise.
2574         (CMPGE_U4SI): Likewise.
2575         (CMPGE_U2DI): Likewise.
2576         (CMPLE_16QI): Likewise.
2577         (CMPLE_8HI): Likewise.
2578         (CMPLE_4SI): Likewise.
2579         (CMPLE_2DI): Likewise.
2580         (CMPLE_U16QI): Likewise.
2581         (CMPLE_U8HI): Likewise.
2582         (CMPLE_U4SI): Likewise.
2583         (CMPLE_U2DI): Likewise.
2584         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2585         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
2586         ALTIVEC_BUILTIN_VEC_CMPLE.
2587         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
2588         floating-point vector modes.
2589         (vector_nlt<mode>): New define_expand.
2590         (vector_nltu<mode>): Likewise.
2591         (vector_ngt<mode>): Likewise.
2592         (vector_ngtu<mode>): Likewise.
2594 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
2596         PR rtl-optimization/66706
2597         * combine.c (make_compound_operation): If an AND of SUBREG of
2598         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
2600 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
2602         * tree-pass.h (make_pass_ch_vect): New.
2603         * passes.def: Add pass_ch_vect just before pass_if_conversion.
2605         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
2606         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
2607         make_pass_ch_vect): New.
2608         (pass_ch): Extend ch_base.
2610         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
2611         (ch_base::copy_headers): ...here.
2613 2015-07-02  Richard Biener  <rguenther@suse.de>
2615         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
2616         * fold-const.c (get_pointer_modulus_and_residue): Remove.
2617         (fold_binary_loc): Implement (T)ptr & CST in terms of
2618         get_pointer_alignment_1.
2619         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2620         Make sure to build the alignment test on a SSA name without
2621         final alignment info valid only after the prologue.
2623 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
2625         * config/cris/cris.md ("epilogue"): Remove condition.
2626         ("prologue"): Ditto.
2628 2015-07-02  Richard Biener  <rguenther@suse.de>
2630         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
2631         parameter to record a condition that is false.
2632         (record_conditions): When recording an extra NE_EXPR that is
2633         true also record a EQ_EXPR that is false.
2635 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
2637         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
2638         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
2639         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
2640         (set_iv, find_interesting_uses_address, add_candidate_1): New
2641         argument to alloc_iv.
2642         (find_interesting_uses_op, find_interesting_uses_cond): Don't
2643         duplicate struct iv.
2644         (free_loop_data): Don't free struct iv explicitly.
2645         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
2647 2015-07-01  DJ Delorie  <dj@redhat.com>
2649         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
2650         (LIB_SPEC): Add.
2651         (SUPPORTS_DISCRIMINATOR): Define.
2653 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2655         PR bootstrap/66685
2656         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
2657         there are no CALLs in the same pattern.
2659 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2661         PR rtl-optimization/61047
2662         * rtlanal.c (get_initial_register_offset): New function.
2663         (rtx_addr_can_trap_p_1): Check offsets of stack references.
2665 2015-07-01  Richard Biener  <rguenther@suse.de>
2667         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
2668         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
2669         ~X CMP C -> X CMP' ~C to ...
2670         * match.pd: ... patterns here.
2672 2015-07-01  Nick Clifton  <nickc@redhat.com>
2674         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
2675         a 16-bit value into a 20-bit memory slot.
2677 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
2679         * doc/sourcebuild.texi (AArch64-specific attributes): Document
2680         "aarch64_tiny", "aarch64_small", "aarch64_large",
2681         "aarch64_little_endian", "aarch64_big_endian".
2683 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
2685         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
2686         Document "aarch64_small_fpic".
2688 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
2690         * configure.ac: Add check for aarch64 assembler -fpic relocation
2691         modifier support.
2692         * configure: Regenerate.
2693         * config.in: Regenerate.
2694         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
2695         to -fPIC if not support of -fpic relocation modifier in assembler.
2697 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
2699         PR bootstrap/66685
2700         * rtl.c (classify_insn): Handle returns in PARALLELs.
2702 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2704         PR middle-end/66633
2705         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
2706         to true if the function is nested and if not optimizing.
2707         (convert_local_omp_clauses): Initialize need_frame to true if the
2708         function contains nested functions and if not optimizing.
2710 2015-07-01  Richard Biener  <rguenther@suse.de>
2712         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
2713         (X & Y) ^ Y -> ~X & Y transforms to ...
2714         * match.pd: ... here.
2716 2015-07-01  Richard Biener <rguenther@suse.de>
2718         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
2719         of converts to avoid uninteresting noise from the conversion
2720         simplifying patterns.
2722 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
2724         * config/c6x/c6x.c (try_rename_operands): Do not depend on
2725         gcc_assert evaluating its argument for side-effect.
2727 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2729         PR target/64833
2730         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
2731         flag_pic is set.
2733 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2735         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
2736         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
2737         (hash_scc): Add this_ref_p and ref_p parameters and pass them
2738         to the inner DFS walk.
2740 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
2742         * target-insns.def (jump): New targetm instruction pattern.
2743         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
2744         instead of gen_jump.
2745         (fix_up_crossing_landing_pad): Likewise.
2746         (add_labels_and_missing_jumps): Likewise.
2747         (fix_crossing_conditional_branches): Likewise.
2748         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2749         (force_nonfallthru_and_redirect): Likewise.
2750         * cse.c (cse_insn): Likewise.
2751         * expmed.c (expand_divmod): Likewise.
2752         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
2753         * haifa-sched.c (init_before_recovery): Likewise.
2754         (sched_create_recovery_edges): Likewise.
2755         * ifcvt.c (find_cond_trap): Likewise.
2756         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
2757         (expand_float, expand_fix): Likewise.
2758         * stmt.c (emit_jump): Likewise.
2760 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
2762         * defaults.h (HAVE_load_multiple, gen_load_multiple)
2763         (HAVE_store_multiple, gen_store_multiple): Delete.
2764         * target-insns.def (load_multiple, store_multiple): New targetm
2765         instruction patterns.
2766         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
2767         of HAVE_*/gen_* interface.
2769 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
2771         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
2772         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
2773         (gen_mem_signal_fence): Delete.
2774         * target-insns.def (mem_signal_fence, mem_thread_fence)
2775         (memory_barrier): New targetm instruction patterns.
2776         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
2777         interface.
2778         (expand_mem_signal_fence): Likewise.
2780 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
2782         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
2783         * target-insns.def (epilogue, prologue, sibcall_prologue): New
2784         targetm instruction patterns.
2785         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
2786         interface.
2787         * calls.c (expand_call): Likewise.
2788         * cfgrtl.c (cfg_layout_finalize): Likewise.
2789         * df-scan.c (df_get_entry_block_def_set): Likewise.
2790         (df_get_exit_block_use_set): Likewise.
2791         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
2792         * final.c (final_start_function): Likewise.
2793         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2794         (reposition_prologue_and_epilogue_notes): Likewise.
2795         * reorg.c (find_end_label): Likewise.
2796         * toplev.c (process_options): Likewise.
2798 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
2800         * typed-splay-tree.h: New file.
2802 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
2804         PR debug/66691
2805         * lra-int.h (lra_substitute_pseudo): Add a parameter.
2806         (lra_substitute_pseudo_within_insn): Ditto.
2807         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
2808         of constant.
2809         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
2810         to lra_substitute_pseudo.
2811         * lra-lives.c (process_bb_lives): Add an argument to
2812         lra_substitute_pseudo_within_insn call.
2813         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
2814         argument to lra_substitute_pseudo and
2815         lra_substitute_pseudo_within_insn calls.
2816         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
2818 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2820         * configure: Regenerated.
2822 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2824         * config.gcc: Support i[34567]86-*-elfiamcu target.
2825         * config/i386/iamcu.h: New.
2826         * config/i386/i386.opt: Add -miamcu.
2827         * doc/invoke.texi: Document -miamcu.
2828         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
2829         off x87/MMX/SSE/AVX codegen for -miamcu.
2830         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2831         __iamcu/__iamcu__ for -miamcu.
2832         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
2833         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
2834         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
2835         * config/i386/i386.c (ix86_option_override_internal): Ignore and
2836         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
2837         MCU by default.  Default long double to 64-bit for Intel MCU.
2838         Turn on -freg-struct-return for Intel MCU.  Issue an error when
2839         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
2840         AVX is turned on.
2841         (function_arg_advance_32): Pass value whose size is no larger
2842         than 8 bytes in registers for Intel MCU.
2843         (function_arg_32): Likewise.
2844         (ix86_return_in_memory): Return value whose size is no larger
2845         than 8 bytes in registers for Intel MCU.
2846         (iamcu_alignment): New function.
2847         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
2848         true.
2849         (ix86_local_alignment): Don't increase alignment for Intel MCU.
2850         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
2851         true.
2853 2015-06-30  Marek Polacek  <polacek@redhat.com>
2855         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
2856         both operands of the resulting expression.
2858         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
2859         the final expression with the operand's type and then convert
2860         it to the type of the expression.
2862 2015-06-30  Richard Biener  <rguenther@suse.de>
2864         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
2865         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
2866         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
2867         * match.pd: ... to patterns here.
2869 2015-06-30  Richard Biener  <rguenther@suse.de>
2871         PR tree-optimization/66704
2872         * tree-vect-data-refs.c (vect_setup_realignment): Use
2873         make_ssa_name for non-SSA name source.
2875 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
2877         PR middle-end/66702
2878         * omp-low.c (simd_clone_adjust): Handle addressable linear
2879         or uniform parameters or non-gimple type uniform parameters.
2881 2015-06-30  Richard Biener  <rguenther@suse.de>
2883         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
2884         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
2885         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
2886         * match.pd: ... here.
2887         Add a few cases of A - B -> A + (-B) when B "easily" negates.
2888         Move (x & y) | x -> x and friends before
2889         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
2891 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2893         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
2894         -mfix-ut699 is not specified.
2895         (leon3_load): Rename into...
2896         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
2897         is specified.
2899 2015-06-30  Marek Polacek  <polacek@redhat.com>
2901         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
2902         * match.pd: ... here.
2904 2015-06-30  Richard Biener  <rguenther@suse.de>
2906         * target-insns.def (canonicalize_funcptr_for_compare): Add.
2907         * fold-const.c (build_range_check): Replace uses of
2908         HAVE_canonicalize_funcptr_for_compare.
2909         (fold_widened_comparison): Likewise.
2910         (fold_sign_changed_comparison): Likewise.
2911         * dojump.c: Include "target.h".
2912         (do_compare_and_jump): Replace uses of
2913         HAVE_canonicalize_funcptr_for_compare and
2914         gen_canonicalize_funcptr_for_compare.
2915         * expr.c (do_store_flag): Likewise.
2917 2015-06-30  Tom de Vries  <tom@codesourcery.com>
2919         PR tree-optimization/66652
2920         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
2921         max_loop_iterations to determine if nit + 1 overflows.
2923 2015-06-30  Richard Biener  <rguenther@suse.de>
2925         * tree-vrp.c (register_edge_assert_for_2): Also register
2926         asserts for dominating conversion results.
2928 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
2930         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
2931         field in struct iv.
2933 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
2935         PR target/66509
2936         * configure.ac: Fix filds and fildq test for 64-bit.
2937         * configure: Regenerated.
2939 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2941         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
2942         (nvptx_reorg): Here.  Keep the non-subreg pieces.
2944 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2946         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
2947         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
2949 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
2951         * config/i386/i386.md (*jcc_1): Use %! in asm template.
2952         Set attribute "length_nobnd" instead of "length".
2953         (*jcc_2): Ditto.
2954         (jump): Ditto.
2955         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
2957 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
2959         * config/nios2/nios2.c (nios2_delegitimize_address): Make
2960         assert less restrictive.
2962 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2964         PR fortran/66605
2965         * cgraphunit.c (cgraph_node::finalize_function): Do not call
2966         do_warn_unused_parameter.
2967         * function.c (do_warn_unused_parameter): Move from here.
2968         * function.h (do_warn_unused_parameter): Do not declare.
2970 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2972         PR target/65697
2973         * gcc.target/arm/armv-sync-comp-swap.c: New.
2974         * gcc.target/arm/armv-sync-op-acquire.c: New.
2975         * gcc.target/arm/armv-sync-op-full.c: New.
2976         * gcc.target/arm/armv-sync-op-release.c: New.
2978 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2980         PR target/65697
2981         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
2982         initial acquire barrier with final barrier.
2984 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2986         PR target/65697
2987         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
2988         initial acquire barrier with final barrier.
2990 2015-06-29  Richard Henderson  <rth@redhat.com>
2992         * config/i386/constraints.md (Bf): New constraint.
2993         * config/i386/i386-c.c (ix86_target_macros): Define
2994         __GCC_ASM_FLAG_OUTPUTS__.
2995         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
2996         as flags outputs.
2997         * doc/extend.texi (FlagOutputOperands): Document them.
2999 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
3001         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
3002         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
3003         unspec name.
3004         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
3005         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
3006         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
3007         (aarch64_symbol_context): Ditto.
3008         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
3009         and use new pattern name.
3010         (aarch64_expand_mov_immediate): Ditto.
3011         (aarch64_print_operand): Ditto.
3012         (aarch64_classify_tls_symbol): Ditto.
3014 2015-06-29  Marek Polacek  <polacek@redhat.com>
3015             Marc Glisse  <marc.glisse@inria.fr>
3017         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
3018         * match.pd: ... pattern here.
3020 2015-06-29  Tom de Vries  <tom@codesourcery.com>
3022         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
3023         function structure.
3025 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
3027         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
3028         feature description, split out the native option, add a link to
3029         the feature documentation, rearrange and slightly rewrite text.
3030         (Aarch64 options, -mcpu): Likewise.
3031         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
3032         +rdma implies Adv. SIMD.
3034 2015-06-29  Marek Polacek  <polacek@redhat.com>
3036         PR c/66322
3037         * function.c (stack_protect_epilogue): Remove a cast to int.
3038         * doc/invoke.texi: Update -Wswitch-bool description.
3040 2015-06-29  Richard Biener  <rguenther@suse.de>
3042         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
3043         * fold-const.c (fold_binary_loc): Move &A - &B simplification
3044         via ptr_difference_const ...
3045         * match.pd: ... here.
3046         When matching (X ^ Y) == Y also match with swapped operands.
3048 2015-06-29  Richard Biener  <rguenther@suse.de>
3050         * lto-streamer.h (LTO_major_version): Bump to 5.
3052 2015-06-29  Richard Biener  <rguenther@suse.de>
3054         PR tree-optimization/66677
3055         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
3056         STMT_VINFO_VEC_STMT clobbering less strict.
3058 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
3060         PR middle-end/64130
3061         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
3062         division, compute max and min when value ranges for dividend and
3063         divisor are available.
3065 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
3066             Sandra Loosemore <sandra@codesourcery.com>
3068         * regrename.h (regrename_do_replace): Change to return bool.
3069         * regrename.c (rename_chains): Check return value of
3070         regname_do_replace.
3071         (regrename_do_replace): Re-validate the modified insns and
3072         return bool status.
3073         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3074         Update to match rename_chains changes.
3075         * config/c6x/c6x.c (try_rename_operands): Assert that
3076         regrename_do_replace returns true.
3078 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
3080         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
3081         operand 2 here.  Use copy_addr_to_reg to copy non-index
3082         register operand 2 to a temporary.
3083         (<mode>_stx): Ditto for operand 1.
3084         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
3085         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
3086         (ix86_store_bounds): Ditto.
3088 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
3090         * print-tree.c (print_node) [TREE_VEC]: Print its length.
3092 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
3094         * gimple.c (gimple_call_set_fndecl): Remove.
3095         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
3096         build1_loc directly instead of build_fold_addr_expr_loc.
3098 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
3100         * hash-map.h (hash_map::traverse): Use the definition of the
3101         Key typedef rather than the typedef itself.
3103 2015-06-26  Martin Jambor  <mjambor@suse.cz>
3105         PR debug/66301
3106         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
3107         NULL instead of calling dump_enabled_p.
3109 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3111         * config/aarch64/aarch64.opt: (override): New.
3112         * doc/invoke.texi (override): Document.
3113         * config/aarch64/aarch64.c (aarch64_flag_desc): New
3114         (aarch64_fusible_pairs): Likewise.
3115         (aarch64_tuning_flags): Likewise.
3116         (aarch64_tuning_override_function): Likewise.
3117         (aarch64_tuning_override_functions): Likewise.
3118         (aarch64_parse_one_option_token): Likewise.
3119         (aarch64_parse_boolean_options): Likewise.
3120         (aarch64_parse_fuse_string): Likewise.
3121         (aarch64_parse_tune_string): Likewise.
3122         (aarch64_parse_one_override_token): Likewise.
3123         (aarch64_parse_override_string): Likewise.
3124         (aarch64_override_options): Parse the -override string if it
3125         is present.
3127 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3129         * config/aarch64/aarch64-protos.h (tune_params): Remove
3130         const from members.
3131         (aarch64_tune_params): Remove const, change to no longer be
3132         a pointer.
3133         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
3134         change to no longer be a pointer, initialize to generic_tunings.
3135         (aarch64_min_divisions_for_recip_mul): Change dereference of
3136         aarch64_tune_params to member access.
3137         (aarch64_reassociation_width): Likewise.
3138         (aarch64_rtx_mult_cost): Likewise.
3139         (aarch64_address_cost): Likewise.
3140         (aarch64_branch_cost): Likewise.
3141         (aarch64_rtx_costs): Likewise.
3142         (aarch64_register_move_cost): Likewise.
3143         (aarch64_memory_move_cost): Likewise.
3144         (aarch64_sched_issue_rate): Likewise.
3145         (aarch64_builtin_vectorization_cost): Likewise.
3146         (aarch64_override_options): Take a copy of the selected tuning
3147         struct in to aarch64_tune_params, rather than just setting
3148         a pointer, change dereferences of aarch64_tune_params to member
3149         accesses.
3150         (aarch64_override_options_after_change): Change dereferences of
3151         aarch64_tune_params to member access.
3152         (aarch64_macro_fusion_p): Likewise.
3153         (aarch_macro_fusion_pair_p): Likewise.
3154         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
3156 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3158         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
3159         (aarch64_tune_flags): Likewise.
3160         (AARCH64_TUNE_FMA_STEERING): Likewise.
3161         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
3162         to AARCH64_FL_USE_FMA_STEERING_PASS.
3163         (cortex-a57.cortex-a53): Likewise.
3164         (cortex-a72): Use cortexa72_tunings.
3165         (cortex-a72.cortex-a53): Likewise.
3166         (exynos-m1): Likewise.
3167         * config/aarch64/aarch64-protos.h (tune_params): Add
3168         a field: extra_tuning_flags.
3169         * config/aarch64/aarch64-tuning-flags.def: New.
3170         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
3171         (aarch64_extra_tuning_flags): Likewise.
3172         (aarch64_tune_params): Declare here.
3173         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
3174         (cortexa53_tunings): Likewise.
3175         (cortexa57_tunings): Likewise.
3176         (thunderx_tunings): Likewise.
3177         (xgene1_tunings): Likewise.
3178         (cortexa72_tunings): New.
3179         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
3180          (gate): Check against aarch64_tune_params.
3181         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
3182         aarch64-protos.h.
3184 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3186         * config/aarch64/aarch64-fusion-pairs.def: New.
3187         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
3188         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
3189         aarch64_fusion_pairs.
3190         (AARCH64_FUSE_MOV_MOVK): Likewise.
3191         (AARCH64_FUSE_ADRP_ADD): Likewise.
3192         (AARCH64_FUSE_MOVK_MOVK): Likewise.
3193         (AARCH64_FUSE_ADRP_LDR): Likewise.
3194         (AARCH64_FUSE_CMP_BRANCH): Likewise.
3196 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
3198         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
3199         SYMBOL_SMALL_GOT_28K.
3200         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
3201         relocation modifiers.
3202         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
3203         (ldr_got_small_28k_<mode>): New.
3204         (ldr_got_small_28k_sidi): New.
3205         * config/aarch64/iterators.md (got_modifier): New mode iterator.
3206         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
3207         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
3208         SYMBOL_SMALL_GOT_28K.
3209         (aarch64_rtx_costs): Add costs for new instruction sequences.
3210         (initialize_aarch64_code_model): Initialize new model.
3211         (aarch64_classify_symbol): Recognize new model and new symbol classification.
3212         (aarch64_asm_preferred_eh_data_format): Support new model.
3213         (aarch64_load_symref_appropriately): Generate new instruction
3214         sequences for -fpic.
3215         (TARGET_USE_PSEUDO_PIC_REG): New definition.
3216         (aarch64_use_pseudo_pic_reg): New function.
3218 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
3220         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
3221         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
3222         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
3223         (aarch64_expand_mov_immediate): Ditto.
3224         (aarch64_print_operand): Ditto.
3225         (aarch64_classify_symbol): Ditto.
3227 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
3229         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
3231 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
3233         PR bootstrap/66638
3234         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
3235         assertion failed.  Remove assertion itself.
3237 2015-06-26  Richard Biener  <rguenther@suse.de>
3239         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
3240         and -A CMP CST -> A CMP -CST which is redundant with a pattern
3241         in match.pd.
3242         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
3243         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
3244         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
3245         * match.pd: ... patterns here.
3247 2015-06-26  Marek Polacek  <polacek@redhat.com>
3249         * match.pd ((x | y) & ~(x & y) -> x ^ y,
3250         (x | y) & (~x ^ y) -> x & y): New patterns.
3252 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
3254         * rtl.h (emit): Add an optional boolean parameter to control
3255         whether barriers are emitted.
3256         * emit-rtl.c (emit): Likewise.
3257         * gensupport.c (get_emit_function): Return null rather than "emit".
3258         * genemit.c (gen_emit_seq): Handle the null return value.
3259         Don't emit barriers after the final instruction in the sequence.
3260         * gentarget-def.c (main): Don't emit barriers after the instruction.
3262 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3264         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
3265         TARGET_UNIFIED_ASM.
3267 2015-06-26  Richard Biener  <rguenther@suse.de>
3269         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
3271 2015-06-26  Richard Biener  <rguenther@suse.de>
3273         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
3274         irrespective on whether the inner operation has a single use
3275         of both off are constant.
3277 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
3278             Segher Boessenkool  <segher@kernel.crashing.org>
3280         PR target/66412
3281         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
3282         before doing PUT_MODE or PUT_CODE on operands to avoid
3283         in-place RTX modification.
3285 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3287         * gentarget-def.c (def_target_insn): Cast return of strtol to
3288         unsigned int.
3290 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3292         * gimple.h (gimple_call_set_fn): Move inline function.
3293         * gimple.c (gimple_call_set_fn): Relocate here.
3295 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
3297         PR target/65979
3298         PR target/66611
3299         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
3300         the replacement insn will work.
3302 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3304         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
3305         by default.
3307 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3309         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
3310         * cgraph.h: Include ipa-ref.h and plugin-api.h.
3311         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
3312         (symtab_node::address_can_be_compared_p): Move function.
3313         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
3314         definition here.
3315         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
3316         * auto-profile.c: Likewise.
3317         * bb-reorder.c: Likewise.
3318         * builtins.c: Likewise.
3319         * calls.c: Likewise.
3320         * cfgexpand.c: Likewise.
3321         * cgraphbuild.c: Likewise.
3322         * cgraphclones.c: Likewise.
3323         * cgraphunit.c: Likewise.
3324         * combine.c: Likewise.
3325         * coverage.c: Likewise.
3326         * data-streamer-in.c: Likewise.
3327         * data-streamer-out.c: Likewise.
3328         * data-streamer.c: Likewise.
3329         * dbxout.c: Likewise.
3330         * dwarf2out.c: Likewise.
3331         * except.c: Likewise.
3332         * expr.c: Likewise.
3333         * final.c: Likewise.
3334         * fold-const.c: Likewise.
3335         * ggc-page.c: Likewise.
3336         * gimple-fold.c: Likewise.
3337         * gimple-iterator.c: Likewise.
3338         * gimple-pretty-print.c: Likewise.
3339         * gimple-streamer-in.c: Likewise.
3340         * gimple-streamer-out.c: Likewise.
3341         * gimple.c: Likewise.
3342         * gimplify.c: Likewise.
3343         * ipa-chkp.c: Likewise.
3344         * ipa-comdats.c: Likewise.
3345         * ipa-cp.c: Likewise.
3346         * ipa-devirt.c: Likewise.
3347         * ipa-icf-gimple.c: Likewise.
3348         * ipa-icf.c: Likewise.
3349         * ipa-inline-analysis.c: Likewise.
3350         * ipa-inline-transform.c: Likewise.
3351         * ipa-inline.c: Likewise.
3352         * ipa-polymorphic-call.c: Likewise.
3353         * ipa-profile.c: Likewise.
3354         * ipa-prop.c: Likewise.
3355         * ipa-pure-const.c: Likewise.
3356         * ipa-ref.c: Likewise.
3357         * ipa-reference.c: Likewise.
3358         * ipa-split.c: Likewise.
3359         * ipa-utils.c: Likewise.
3360         * ipa-visibility.c: Likewise.
3361         * ipa.c: Likewise.
3362         * langhooks.c: Likewise.
3363         * lto-cgraph.c: Likewise.
3364         * lto-compress.c: Likewise.
3365         * lto-opts.c: Likewise.
3366         * lto-section-in.c: Likewise.
3367         * lto-section-out.c: Likewise.
3368         * lto-streamer-in.c: Likewise.
3369         * lto-streamer-out.c: Likewise.
3370         * lto-streamer.c: Likewise.
3371         * omp-low.c: Likewise.
3372         * opts-global.c: Likewise.
3373         * passes.c: Likewise.
3374         * predict.c: Likewise.
3375         * print-tree.c: Likewise.
3376         * profile.c: Likewise.
3377         * ree.c: Likewise.
3378         * sanopt.c: Likewise.
3379         * stor-layout.c: Likewise.
3380         * symtab.c: Likewise.
3381         * toplev.c: Likewise.
3382         * trans-mem.c: Likewise.
3383         * tree-cfg.c: Likewise.
3384         * tree-chkp.c: Likewise.
3385         * tree-eh.c: Likewise.
3386         * tree-emutls.c: Likewise.
3387         * tree-inline.c: Likewise.
3388         * tree-nested.c: Likewise.
3389         * tree-parloops.c: Likewise.
3390         * tree-pretty-print.c: Likewise.
3391         * tree-profile.c: Likewise.
3392         * tree-sra.c: Likewise.
3393         * tree-ssa-alias.c: Likewise.
3394         * tree-ssa-live.c: Likewise.
3395         * tree-ssa-loop-ivcanon.c: Likewise.
3396         * tree-ssa-loop-ivopts.c: Likewise.
3397         * tree-ssa-pre.c: Likewise.
3398         * tree-ssa-sccvn.c: Likewise.
3399         * tree-ssa-strlen.c: Likewise.
3400         * tree-ssa-structalias.c: Likewise.
3401         * tree-streamer-in.c: Likewise.
3402         * tree-streamer-out.c: Likewise.
3403         * tree-streamer.c: Likewise.
3404         * tree-switch-conversion.c: Likewise.
3405         * tree-tailcall.c: Likewise.
3406         * tree-vect-data-refs.c: Likewise.
3407         * tree-vect-stmts.c: Likewise.
3408         * tree-vectorizer.c: Likewise.
3409         * tree.c: Likewise.
3410         * tsan.c: Likewise.
3411         * ubsan.c: Likewise.
3412         * value-prof.c: Likewise.
3413         * varasm.c: Likewise.
3414         * varpool.c: Likewise.
3415         * config/arm/arm.c: Likewise.
3416         * config/bfin/bfin.c: Likewise.
3417         * config/c6x/c6x.c: Likewise.
3418         * config/cris/cris.c: Likewise.
3419         * config/darwin-c.c: Likewise.
3420         * config/darwin.c: Likewise.
3421         * config/i386/i386.c: Likewise.
3422         * config/i386/winnt.c: Likewise.
3423         * config/microblaze/microblaze.c: Likewise.
3424         * config/mips/mips.c: Likewise.
3425         * config/rs6000/rs6000.c: Likewise.
3426         * config/rx/rx.c: Likewise.
3427         * config/s390/s390.c: Likewise.
3428         * config/tilegx/mul-tables.c: Likewise.
3430 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3432         * config/aarch64/aarch64.c, config/alpha/alpha.c,
3433         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
3434         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
3435         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
3436         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
3437         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
3438         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
3439         config/microblaze/microblaze.c, config/mips/mips.c,
3440         config/mmix/mmix.c, config/mn10300/mn10300.c,
3441         config/moxie/moxie.c, config/msp430/msp430.c,
3442         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
3443         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
3444         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
3445         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
3446         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3447         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
3448         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
3449         target-def.h include.
3450         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
3452 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3454         * Makefile.in (TARGET_DEF): Add target-insns.def.
3455         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
3456         (build/gentarget-def.o): New rule.
3457         (genprogrtl): Add target-def.
3458         * target-insns.def, gentarget-def.c: New files.
3459         * target.def: Add targetm.have_* and targetm.gen_* hooks,
3460         based on the contents of target-insns.def.
3461         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
3462         (HAVE_return, gen_return): Delete.
3463         * target-def.h: Include insn-target-def.h.
3464         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
3465         instead of direct calls.  Rely on them to do the appropriate assertions.
3466         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
3467         (convert_jumps_to_returns): Use targetm interface instead of
3468         direct calls.
3469         (thread_prologue_and_epilogue_insns): Likewise.
3470         * reorg.c (find_end_label, dbr_schedule): Likewise.
3471         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
3472         * shrink-wrap.c (convert_to_simple_return): Likewise.
3473         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
3475 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3477         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
3478         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3479         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
3480         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
3481         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
3482         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
3483         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
3484         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
3485         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
3486         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
3487         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
3488         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
3489         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
3490         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3491         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
3492         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
3493         includes to end.
3495 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3497         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
3498         (unbounded_int_hashmap_traits::key_type): Likewise.
3499         * hash-map.h (hash_map): Get the key type from the traits.
3500         * hash-traits.h (default_hash_traits): By default, inherit from the
3501         template parameter.
3502         * alias.c (alias_set_traits): Delete.
3503         (alias_set_entry_d::children): Use alias_set_hash as the first
3504         template parameter.
3505         (record_alias_subset): Update accordingly.
3506         * except.c (tree_hash_traits): Delete.
3507         (type_to_runtime_map): Use tree_hash as the first template parameter.
3508         (init_eh): Update accordingly.
3509         * genmatch.c (capture_id_map_hasher): Delete.
3510         (cid_map_t): Use nofree_string_hash as first template parameter.
3511         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
3512         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
3513         Use symbol_compare_hash as the first template parameter in
3514         subdivide_hash_map.
3515         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
3516         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
3517         template parameter.
3518         * passes.c (pass_registry_hasher): Delete.
3519         (name_to_pass_map): Use nofree_string_hash as the first template
3520         parameter.
3521         (register_pass_name): Update accordingly.
3522         * sanopt.c (sanopt_tree_map_traits): Delete.
3523         (sanopt_tree_triplet_map_traits): Delete.
3524         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
3525         template parameter.
3526         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
3527         the first template parameter.
3528         * sese.c (rename_map_hasher): Delete.
3529         (rename_map_type): Use tree_ssa_name_hash as the first template
3530         parameter.
3531         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
3532         (function_summary::m_map): Use map_hash as the first template
3533         parameter.
3534         (function_summary::release): Update accordingly.
3535         * tree-if-conv.c (phi_args_hash_traits): Delete.
3536         (predicate_scalar_phi): Use tree_operand_hash as the first template
3537         parameter to phi_arg_map.
3538         * tree-inline.h (dependence_hasher): Delete.
3539         (copy_body_data::dependence_map): Use dependence_hash as the first
3540         template parameter.
3541         * tree-inline.c (remap_dependence_clique): Update accordingly.
3542         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
3543         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
3544         parameter.
3545         (addr_stridxptr): Update accordingly.
3546         * value-prof.c (profile_id_traits): Delete.
3547         (cgraph_node_map): Use profile_id_hash as the first template
3548         parameter.
3549         (init_node_map): Update accordingly.
3550         * config/alpha/alpha.c (string_traits): Delete.
3551         (machine_function::links): Use nofree_string_hash as the first
3552         template parameter.
3553         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
3554         * config/m32c/m32c.c (pragma_traits): Delete.
3555         (pragma_htab): Use nofree_string_hash as the first template parameter.
3556         (m32c_note_pragma_address): Update accordingly.
3557         * config/mep/mep.c (pragma_traits): Delete.
3558         (pragma_htab): Use nofree_string_hash as the first template parameter.
3559         (mep_note_pragma_flag): Update accordingly.
3560         * config/mips/mips.c (mips16_flip_traits): Delete.
3561         (mflip_mips16_htab): Use nofree_string_hash as the first template
3562         parameter.
3563         (mflip_mips16_use_mips16_p): Update accordingly.
3564         (local_alias_traits): Delete.
3565         (mips16_local_aliases): Use nofree_string_hash as the first template
3566         parameter.
3567         (mips16_local_alias): Update accordingly.
3569 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3571         * hash-map-traits.h (default_hashmap_traits): Delete.
3573 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3575         * hash-map-traits.h (unbounded_hashmap_traits): New class.
3576         (unbounded_int_hashmap_traits): Likewise.
3577         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
3579 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3581         * ipa-icf.h (symbol_compare_hash): New class.
3582         (symbol_compare_hashmap_traits): Use it.
3583         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
3584         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
3585         (mem_alloc_description::reverse_mem_map_t): Remove redundant
3586         default_hashmap_traits.
3587         * sanopt.c (sanopt_tree_triplet_hash): New class.
3588         (sanopt_tree_triplet_map_traits): Use it.
3590 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3592         * gengtype-parse.c (require_template_declaration): Allow '+' in
3593         template parameters.  Consolidate cases.
3594         * hash-traits.h (int_hash): New class.
3595         * alias.c (alias_set_hash): New structure.
3596         (alias_set_traits): Use it.
3597         * symbol-summary.h (function_summary::map_hash): New class.
3598         (function_summary::summary_hashmap_traits): Use it.
3599         * tree-inline.h (dependence_hash): New class.
3600         (dependence_hasher): Use it.
3601         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
3602         * value-prof.c (profile_id_hash): New class.
3603         (profile_id_traits): Use it.
3605 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3607         * config/mips/mips.c (mips16_flip_traits): Use it.
3608         (local_alias_traits, mips16_local_aliases): Convert from a map of
3609         rtxes to a map of symbol names.
3610         (mips16_local_alias): Update accordingly.
3612 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3614         * hash-traits.h (string_hash, nofree_string_hash): New classes.
3615         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
3616         * passes.c (pass_registry_hasher): Likewise.
3617         * config/alpha/alpha.c (string_traits): Likewise.
3618         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
3619         * config/m32c/m32c.c (pragma_traits): Likewise.
3620         * config/mep/mep.c (pragma_traits): Likewise.
3622 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3624         * tree-hash-traits.h (tree_hash): New class.
3625         * except.c: Include tree-hash-traits.h.
3626         (tree_hash_traits): Use tree_hash.
3628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3630         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
3631         * sese.c: Include tree-hash-traits.h.
3632         (rename_map_hasher): Use tree_ssa_name_hasher.
3634 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3636         * tree-hash-traits.h (tree_decl_hash): New class.
3637         * tree-ssa-strlen.c: Include tree-hash-traits.h.
3638         (stridxlist_hash_traits): Use tree_decl_hash.
3640 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3642         * tree-hash-traits.h: New file.
3643         (tree_operand_hash): New class.
3644         * sanopt.c: Include tree-hash-traits.h.
3645         (sanopt_tree_map_traits): Use tree_operand_hash.
3646         * tree-if-conv.c: Include tree-hash-traits.h.
3647         (phi_args_hash_traits): Use tree_operand_hash.
3648         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
3649         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
3651 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3653         * hash-map-traits.h: Include hash-traits.h.
3654         (simple_hashmap_traits): New class.
3655         * mem-stats.h (hash_map): Change the default traits to
3656         simple_hashmap_traits<default_hash_traits<Key> >.
3658 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3660         * hash-table.h: Update comments.
3662 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3664         * hash-traits.h (default_hash_traits): New structure.
3665         * hash-set.h (default_hashset_traits): Delete.
3666         (hash_set): Use default_hash_traits<Key> instead of
3667         default_hashset_traits.  Delete hash_entry type and use Key directly.
3668         * ipa-devirt.c (pair_traits): Delete.
3669         (default_hash_traits <type_pair>): Override.
3670         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
3671         (odr_types_equivalent_p, add_type_duplicate): Likewise.
3673 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3675         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
3677 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3679         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
3680         (has_is_empty, is_empty_helper): Delete.
3681         (has_mark_deleted, mark_deleted_helper): Delete.
3682         (has_mark_empty, mark_empty_helper): Delete.
3683         (hash_table::is_deleted): Call the Descriptor unconditionally.
3684         (hash_table::is_empty): Likewise.
3685         (hash_table::mark_deleted): Likewise.
3686         (hash_table::mark_empty): Likewise.
3688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3690         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
3691         redundant typedefs and members.
3692         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
3693         redundant typedefs.
3694         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
3695         * ipa-devirt.c (odr_name_hasher): Likewise.
3696         (polymorphic_call_target_hasher): Likewise.
3697         * ira-costs.c (cost_classes_hasher): Likewise.
3698         * statistics.c (stats_counter_hasher): Likewise.
3699         * trans-mem.c (log_entry_hasher): Likewise.
3700         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
3701         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
3702         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
3703         * var-tracking.c (variable_hasher): Likewise.
3704         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
3705         Remove redundant typedefs and members.
3707 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3709         * hash-traits.h (ggc_cache_hasher): Rename to...
3710         (ggc_cache_remove): ...this and remove typedefs.
3711         (ggc_cache_ptr_hash): New class.
3712         * hash-table.h: Update commentary.
3713         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
3714         rather than ggc_cache_hasher.
3715         (const_wide_int_hasher, reg_attr_hasher): Likewise.
3716         (const_double_hasher, const_fixed_hasher): Likewise.
3717         * function.c (insn_cache_hasher): Likewise.
3718         * trans-mem.c (tm_wrapper_hasher): Likewise.
3719         * tree.h (tree_decl_map_cache_hasher): Likewise.
3720         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
3721         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
3722         * ubsan.c (tree_type_map_cache_hasher): Likewise.
3723         * varasm.c (tm_clone_hasher): Likewise.
3724         * config/i386/i386.c (dllimport_hasher): Likewise.
3725         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
3726         (tree_hasher): Likewise.
3728 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3730         * hash-traits.h (ggc_hasher): Rename to...
3731         (ggc_remover): ...this and remove typedefs.
3732         (ggc_cache_hasher): Update accordingly.  Add typedefs.
3733         (ggc_ptr_hash): New class.
3734         * hash-table.h: Update comment.
3735         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
3736         ggc_hasher.
3737         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
3738         (tree_descriptor_hasher): Likewise.
3739         * cgraph.c (function_version_hasher): Likewise.
3740         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
3741         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
3742         (dw_loc_list_hasher, addr_hasher): Likewise.
3743         * function.h (used_type_hasher): Likewise.
3744         * function.c (temp_address_hasher): Likewise.
3745         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
3746         * libfuncs.h (libfunc_hasher): Likewise.
3747         * lto-streamer.h (decl_state_hasher): Likewise.
3748         * optabs.c (libfunc_decl_hasher): Likewise.
3749         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
3750         * varasm.c (section_hasher, object_block_hasher): Likewise.
3751         (const_rtx_desc_hasher): Likewise.
3752         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
3753         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
3755 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3757         * hash-traits.h (free_ptr_hash): New class.
3758         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
3759         rather than typed_free_remove.  Remove redudant typedefs.
3760         (external_ref_hasher): Likewise.
3761         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
3762         (ehspec_hasher): Likewise.
3763         * ggc-common.c (saving_hasher): Likewise.
3764         * gimplify.c (gimplify_hasher): Likewise.
3765         * haifa-sched.c (delay_i2_hasher): Likewise.
3766         * loop-invariant.c (invariant_expr_hasher): Likewise.
3767         * loop-iv.c (biv_entry_hasher): Likewise.
3768         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
3769         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
3770         * tree-cfg.c (locus_discrim_hasher): Likewise.
3771         * tree-eh.c (finally_tree_hasher): Likewise.
3772         * tree-into-ssa.c (var_info_hasher): Likewise.
3773         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
3774         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
3775         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
3776         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
3777         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
3778         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
3779         (shared_bitmap_hasher): Likewise.
3780         * tree-ssa-threadupdate.c (redirection_data): Likewise.
3781         * tree-vectorizer.h (peel_info_hasher): Likewise.
3782         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
3783         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
3785 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3787         * hash-table.h: Update comments.
3788         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
3789         (nofree_ptr_hash): New class.
3790         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
3791         than typed_noop_remove.  Remove redudant typedefs.
3792         * attribs.c (attribute_hasher): Likewise.
3793         * cfg.c (bb_copy_hasher): Likewise.
3794         * cselib.c (cselib_hasher): Likewise.
3795         * dse.c (invariant_group_base_hasher): Likewise.
3796         * dwarf2cfi.c (trace_info_hasher): Likewise.
3797         * dwarf2out.c (macinfo_entry_hasher): Likewise.
3798         (comdat_type_hasher, loc_list_hasher): Likewise.
3799         * gcse.c (pre_ldst_expr_hasher): Likewise.
3800         * genmatch.c (id_base): Likewise.
3801         * genrecog.c (test_pattern_hasher): Likewise.
3802         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
3803         * haifa-sched.c (delay_i1_hasher): Likewise.
3804         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
3805         * ipa-icf.h (congruence_class_group_hash): Likewise.
3806         * ipa-profile.c (histogram_hash): Likewise.
3807         * ira-color.c (allocno_hard_regs_hasher): Likewise.
3808         * lto-streamer.h (string_slot_hasher): Likewise.
3809         * lto-streamer.c (tree_entry_hasher): Likewise.
3810         * plugin.c (event_hasher): Likewise.
3811         * postreload-gcse.c (expr_hasher): Likewise.
3812         * store-motion.c (st_expr_hasher): Likewise.
3813         * tree-sra.c (uid_decl_hasher): Likewise.
3814         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
3815         (ssa_name_var_hash): Likewise.
3816         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
3817         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
3818         * tree-ssa-pre.c (pre_expr_d): Likewise.
3819         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
3820         * vtable-verify.h (registration_hasher): Likewise.
3821         * vtable-verify.c (vtbl_map_hasher): Likewise.
3822         * config/arm/arm.c (libcall_hasher): Likewise.
3823         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
3824         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
3825         * config/sol2.c (comdat_entry_hasher): Likewise.
3826         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
3827         (print_fold_checksum, fold_checksum_tree): Likewise.
3828         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
3829         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
3830         (fold_build_call_array_loc): Likewise.
3831         * tree-ssa-ccp.c (gimple_htab): Likewise.
3832         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
3833         rather than pointer_type.
3835 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3837         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
3838         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
3840 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3842         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
3843         (ggc_hasher::ggc_mx): Likewise.
3844         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
3845         that duplicate ggc_hasher ones.
3847 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3849         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
3850         (gt_cleare_cache): Check here for deleted and empty entries.
3851         Replace handle_cache_entry with a call to keep_cache_entry.
3852         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
3853         (ggc_cache_hasher::keep_cache_entry): New function.
3854         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
3855         (tm_wrapper_hasher::keep_cache_entry): New function.
3856         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
3857         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
3858         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
3859         (type_cache_hasher::keep_cache_entry): New function.
3860         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
3861         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
3862         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
3863         (tree_type_map_cache_hasher::keep_cache_entry): New function.
3864         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
3865         (tm_clone_hasher::keep_cache_entry): New function.
3866         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
3867         (dllimport_hasher::keep_cache_entry): New function.
3869 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3871         * hash-table.h: Include hash-traits.h.
3872         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
3873         (ggc_cache_hasher): Move to...
3874         * hash-traits.h: ...this new file.
3876 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3878         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
3879         struct cl_optimization.
3880         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
3881         * tree.c (make_node_stat): Allocate cl_optimization struct.
3882         (copy_node_stat): Allocate and copy cl_optimization struct.
3884 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3886         * function.h (struct incoming_args): Move struct.
3887         (pass_by_reference, reference_callee_copied): Remove prototypes.
3888         * emit-rtl.h (struct incoming_args): Relocate struct here.
3889         * calls.h (pass_by_reference, reference_callee_copied): Relocate
3890         prototypes here.
3891         * function.c (pass_by_reference, reference_callee_copied): Move.
3892         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
3893         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
3894         * ipa-chkp.c: Include calls.h.
3896 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
3898         * alias.h (alias_set_type): Move typedef.
3899         * coretypes.h (alias_set_type): Relocate typedef here.
3900         * rtl.h: Don't include alias.h.
3902 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
3904         * cgraph.h (cgraph_rtl_info): Move to rtl.h
3905         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
3906         and instance.
3907         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
3908         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
3909         doesn't exist.
3910         * calls.c: Include hard-reg-set.h before rtl.h.
3911         * ira.c: Likewise.
3913 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
3914             Vladimir Makarov  <vmakarov@redhat.com>
3916         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
3917         Add assert.
3919 2015-06-25  Richard Biener  <rguenther@suse.de>
3921         * fold-const.c (fold_binary_loc): Move simplification of
3922         (X <<>> C1) & C2 ...
3923         * match.pd: ... here.
3925 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
3927         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
3929 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3931         * match.pd: Add patterns for vec_conds between 1 and 0.
3933 2015-06-25  Richard Biener  <rguenther@suse.de>
3935         * tree-vect-stmts.c (vectorizable_conversion): Do not set
3936         STMT_VINFO_VEC_STMT for SLP.
3937         (vectorizable_store): Likewise.
3938         (vectorizable_load): Likewise.
3939         (vect_transform_stmt): Catch SLP vectorization clobbering
3940         STMT_VINFO_VEC_STMT.
3942 2015-06-25  Richard Biener  <rguenther@suse.de>
3944         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
3945         dumping.
3946         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
3947         cleanup resulting dead code and parameters.
3948         (vect_transform_slp_perm_load): Adjust.
3950 2015-06-25  Nick Clifton  <nickc@redhat.com>
3952         * config/bfin/bfin.c (bfin_expand_prologue): Set
3953         current_function_static_stack_size if flag_stack_usage_info is set.
3954         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
3955         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
3956         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3957         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
3959 2015-06-25  Tom de Vries  <tom@codesourcery.com>
3961         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
3962         comment that the generated IV is unsigned.
3964 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3966         PR target/29693
3967         * config/arm/arm.c (arm_dbx_register_number): Return
3968         DWARF_FRAME_REGISTERS by default.
3970 2015-06-25  Tom de Vries  <tom@codesourcery.com>
3972         * dominance.c (calculate_dominance_info): Fix verify_dominators call
3973         argument.  Call verify_dominator when reusing dominator info.
3975 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3977         PR target/66563
3978         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
3979         an additional element of the unspec vector.  Modify indices
3980         of operands.
3981         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
3982         * config/sh/sh.c (prepare_move_operands): Pass incremented
3983         const_int to gen_GOTaddr2picreg.
3984         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
3986 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
3988         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
3989         Condition on TARGET_FLOAT.
3991 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
3993         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
3994         and (no)crypto.
3996 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
3998         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
4000         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
4001         aarch64_err_no_fpadvsimd.
4003         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
4004         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
4005         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
4006         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
4007         Turn error into assert, test TARGET_FLOAT.
4008         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
4009         TARGET_FLOAT.
4011 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
4013         PR debug/66482
4014         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
4016 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4018         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
4020 2015-06-24 Renlin Li <renlin.li@arm.com>
4022         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
4023         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
4025 2015-06-24  Richard Biener  <rguenther@suse.de>
4027         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
4028         (main): Likewise.
4029         (lower_opt_convert): Support lowering of conditional view_convert.
4030         (parser::parse_operation): Likewise.
4031         (parser::parse_for): Likewise.
4033 2015-06-24  Renlin Li  <renlin.li@arm.com>
4035         * varasm.c (emit_local): Use unsigned int for align variable.
4037 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4039         PR target/63408
4040         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
4041         for negative numbers.
4043 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4045         PR rtl-optimization/66306
4046         * reload.c (find_reloads): Swap the match_dup info for
4047         commutative operands.
4049 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4051         * config/s390/vx-builtins.md
4052         ("vec_scatter_element<mode>_<non_vec_int>")
4053         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
4054         attribute with bhfgq.
4056 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4058         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
4060 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4062         * config/s390/s390-builtin-types.def: Add flag to indicate the
4063         options under which the function type is needed.
4064         * config/s390/s390-builtins.def: Add flag to indicate the options
4065         under which the builtin is enabled.
4066         * config/s390/s390-builtins.h: Add flags parameter to macro
4067         definitions.
4068         (bflags_for_builtin): New function.
4069         (flags_for_builtin): Renamed to ...
4070         (opflags_for_builtin): ... this.
4071         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
4072         flags_for_builtin to bflags_for_builtin and
4073         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
4074         * config/s390/s390.c: Add initialization of bflags_builtin and
4075         opflags_builtin arrays.
4076         Remove code for flags_builtin.
4077         (s390_init_builtins): Only create builtin function types if one of
4078         their flags is active.
4079         Only create builtins if all of their flags are active.
4080         (s390_expand_builtin): Rename flags_for_builtin to
4081         opflags_for_builtin.
4083 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4085         * config/s390/vecintrin.h: Remove internal builtins.
4087 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4089         * config/s390/s390.c (s390_secondary_reload): Fix check for
4090         GENERAL_REGS register class.
4092 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4094         * config/s390/s390.c (s390_support_vector_misalignment): Call
4095         default implementation for !TARGET_VX.
4097 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4099         * config/s390/s390.c (s390_legitimate_constant_p): Add
4100         TARGET_VX check.
4102 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4104         * config/s390/s390.c (s390_vector_abi): New variable definition.
4105         (s390_check_type_for_vector_abi): New function.
4106         (TARGET_ASM_FILE_END): New macro definition.
4107         (s390_asm_file_end): New function.
4108         (s390_function_arg): Call s390_check_type_for_vector_abi.
4109         (s390_gimplify_va_arg): Likewise.
4110         * configure: Regenerate.
4111         * configure.ac: Check for .gnu_attribute Binutils feature.
4113 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
4115         PR target/65803
4116         * config/bfin/bfin.c (hwloop_optimize): Initialize
4117         JUMP_LABEL for newly created jump.
4119 2015-06-23  Tristan Gingold  <gingold@adacore.com>
4121         * collect-utils.c (collect_wait): Unlink the response file here
4122         instead of...
4123         (do_wait): ...here.
4124         (utils_cleanup): ...and here.
4126 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
4128         * df-scan.c: Don't include target-def.h.
4129         * targhooks.c: Likewise.
4130         * config/arm/arm-c.c: Likewise.
4131         * config/i386/i386-c.c: Likewise.
4132         * config/nds32/nds32-cost.c: Likewise.
4133         * config/nds32/nds32-fp-as-gp.c: Likewise.
4134         * config/nds32/nds32-intrinsic.c: Likewise.
4135         * config/nds32/nds32-isr.c: Likewise.
4136         * config/nds32/nds32-md-auxiliary.c: Likewise.
4137         * config/nds32/nds32-memory-manipulation.c: Likewise.
4138         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4139         * config/nds32/nds32-predicates.c: Likewise.
4141 2015-06-23  Richard Biener  <rguenther@suse.de>
4143         PR tree-optimization/66636
4144         * tree-vect-stmts.c (vectorizable_store): Properly compute the
4145         def type for further defs for strided stores.
4147 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
4149         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
4150         conditional selects.
4151         (setcc_int<mode>, setcc_float<mode>): Reformat.
4153 2015-06-23  Marek Polacek  <polacek@redhat.com>
4155         * match.pd ((x + y) - (x | y) -> x & y,
4156         (x + y) - (x & y) -> x | y): New patterns.
4158 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
4160         PR 65711
4161         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
4162         '-dynamic-linker' within %{!shared: ...}.
4164 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
4166         PR target/66560
4167         * config/i386/predicates.md (addsub_vm_operator): New predicate.
4168         (addsub_vs_operator): Ditto.
4169         (addsub_vs_parallel): Ditto.
4170         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
4171         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
4172         Put minus RTX before plus and adjust vec_merge selector.
4173         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
4174         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
4175         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
4176         (addsub vec_merge splitters): New combiner splitters.
4177         (addsub vec_select/vec_concat splitters): Ditto.
4179 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
4181         PR tree-optimization/66449
4182         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
4183         POINTER_PLUS_EXPR for pointers.
4185 2015-06-23  Alan Modra  <amodra@gmail.com>
4187         * rtlanal.c (commutative_operand_precedence): Correct comments.
4188         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
4189         declaration.  Return an int.  Distinguish REG,REG return from
4190         others.
4191         (struct simplify_plus_minus_op_data): Make local to function.
4192         (simplify_plus_minus): Don't set canonicalized if merely sorting
4193         registers.  Avoid packing ops if nothing changes.  White space fixes.
4195 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
4197         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
4198         -fdump-ada-spec is passed but not if -fsyntax-only is.
4200 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
4202         PR bootstrap/63740
4203         * lra-lives.c (process_bb_lives): Check insn copying the same
4204         reload pseudo and don't create a copy for it.
4206 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4208         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
4209         for cond_stmt.
4211 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4213         * builtins.def (DEF_GOMP_BUILTIN): Test
4214         'flag_tree_parallelize_loops > 1' instead of
4215         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
4217 2015-06-22  Tom de Vries  <tom@codesourcery.com>
4219         * dominance.c (calculate_dominance_info): Verify dominators if
4220         early-out.
4222 2015-06-22  Marek Polacek  <polacek@redhat.com>
4224         * match.pd ((x ^ y) ^ (x | y) -> x & y,
4225         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
4226         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
4227         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
4229 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
4231         PR target/65871
4232         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
4233         cost of embedded comparison.
4235 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4237         PR target/65914
4238         * config/rs6000/predicates.md (altivec_register_operand): Permit
4239         virtual stack registers.
4240         (vsx_register_operand): Likewise.
4241         (vfloat_operand): Likewise.
4242         (vint_operand): Likewise.
4243         (vlogical_operand): Likewise.
4245 2015-06-22  Richard Biener  <rguenther@suse.de>
4247         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
4248         and single_scalar_iteration_cost members.
4249         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
4250         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
4251         (vect_get_single_scalar_iteration_cost): Remove.
4252         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
4253         Use LOOP_VINFO_SCALAR_ITERATION_COST.
4254         * tree-vect-loop.c (destroy_loop_vec_info): Free
4255         scalar_cost_vec.
4256         (vect_get_single_scalar_iteration_cost): Compute result into
4257         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
4258         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
4259         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
4260         (vect_estimate_min_profitable_iters): Use them.
4262 2015-06-22  Christian Bruel  <christian.bruel@st.com>
4264         PR target/52144
4265         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
4266         (TARGET_INSERT_ATTRIBUTES): Define.
4267         (thumb_flipper): New var.
4268         * config/arm/arm.opt (-mflip-thumb): New switch.
4270 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
4271             Martin Liska  <mliska@suse.cz>
4273         PR ipa/65908
4274         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
4275         construction of arg_types.
4276         (sem_function::sem_function): Likewise.
4277         (sem_function::~sem_function): Remove destruction of arg_types.
4278         (sem_function::compatible_parm_types_p): New function.
4279         (sem_function::equals_wpa): Reorg matching of return values
4280         and parameter types.
4281         (sem_function::equals_private): Reorg mathcing of argument types.
4282         (sem_function::parse_tree_args): Remove.
4283         * ipa-icf.h (init_wpa): Do not call it.
4284         (parse_tree_args): Remove.
4285         (compatible_parm_types_p): Declare.
4286         (result_type): Remove.
4287         (arg_types): Remove.
4289 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
4291         PR ipa/66351
4292         * ipa-polymorphic-call.c
4293         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
4294         initializing alias oracle; fix formating; set base_alias_set if it
4295         is known.
4297 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
4299         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
4300         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
4301         (find_inc): Likewise.
4302         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
4303         swapping.
4304         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
4305         * df-scan.c (df_swap_refs): Remove.
4306         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
4307         * dominance.c (link_roots): Use std::swap instead of manually swapping.
4308         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
4309         * fold-const.c (fold_relational_const): Likewise.
4310         * genattrtab.c (simplify_test_exp): Likewise.
4311         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
4312         gimple_simplify): Likewise.
4313         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
4314         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
4315         * ipa-devirt.c (add_type_duplicate): Likewise.
4316         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
4317         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
4318         * lra.c (lra_create_copy): Likewise.
4319         * lto-streamer-out.c (DFS::DFS): Likewise.
4320         * modulo-sched.c (get_sched_window): Likewise.
4321         * omega.c (omega_pretty_print_problem): Likewise.
4322         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
4323         * reload1.c (reloads_unique_chain_p): Likewise.
4324         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
4325         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
4326         use std::swap.
4327         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
4328         manually swapping.
4329         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
4330         predicate_mem_writes): Likewise.
4331         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
4332         * tree-predcom.c (combine_chains): Likewise.
4333         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
4334         refs_may_alias_p_1): Likewise.
4335         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
4336         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
4337         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
4338         number_of_iterations_cond): Likewise.
4339         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
4340         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4341         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4342         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
4343         * tree-vrp.c (extract_range_from_binary_expr_1,
4344         extract_range_from_unary_expr_1): Likewise.
4346 2015-06-20  Marek Polacek  <polacek@redhat.com>
4348         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
4350 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4352         PR target/66591
4353         * config/sh/sh.c (prepare_move_operands): Replace subreg
4354         index term with R0 for base and index addressing.
4356 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
4358         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
4359         op1 is an fp zero.
4360         (movsf_aarch64): Change condition from register_operand to
4361         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
4362         load1.  Change type for alternative 7 to store1.
4363         (movdf_aarch64): Likewise.
4365 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
4367         * config/vax/vax.md: Adjust sign/zero extend patterns to
4368         handle SUBREGs in operands[1].
4370 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4372         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
4373         of manually swapping.
4374         (expand_vec_perm_interleave2): Likewise.
4376 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
4378         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
4379         reuse bounds created for abnormal ssa names.
4381 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
4383         * config/nvptx/nvptx.md (allocate_stack): Rename to...
4384         (allocate_stack_<mode>): ... this, and add :P on both
4385         match_operand and unspec.
4386         (allocate_stack): New expander.
4388 2015-06-19  Christian Bruel  <christian.bruel@st.com>
4390         PR target/66541
4391         PR target/52144
4392         * config/arm/arm.c (arm_set_current_function): Handle
4393         explicit default options.
4395 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
4397         * config/i386/i386.md (*movsicc_noc_zext): New insn.
4398         (zero-extended cmove with mem peephole2): New pattern.
4399         (cmove with mem peephole2): Merge patterns.
4401 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
4403         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
4405 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
4407         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
4408         * config/mips/mips.md (*madd4<mode>): Ditto.
4409         (*nmadd3<mode>) Ditto.
4410         (*nmadd4<mode>_fastmath): Ditto.
4411         (*nmadd3<mode>_fastmath): Ditto.
4412         (*nmsub4<mode>): Ditto.
4413         (*nmsub3<mode>): Ditto.
4414         (*nmsub4<mode>_fastmath): Ditto.
4415         (*nmsub3<mode>_fastmath): Ditto.
4417 2015-06-18  Michael Matz  <matz@suse.de>
4419         PR middle-end/66253
4420         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
4421         grouped strided stores.
4422         (vectorizable_load): Don't use the DR from first_stmt in
4423         the non-SLP grouped strided case.
4425 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4427         PR target/66569
4428         * function.c (assign_bounds): Add arguments assign_regs,
4429         assign_special, assign_bt.
4430         (assign_parms): For vararg functions handle bounds in BT
4431         and special slots after incoming vararg bounds.
4433 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4435         PR middle-end/66568
4436         * cfgexpand.c (expand_return): Handle missing bounds.
4437         (expand_gimple_stmt_1): Likewise.
4438         * tree-chkp.c (chkp_expand_zero_bounds): New.
4439         * tree-chkp.h (chkp_expand_zero_bounds): New.
4441 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4443         PR middle-end/66567
4444         * ipa-chkp.c (chkp_maybe_create_clone): Require
4445         functions to be instrumentable.
4446         * tree-chkp.c (chkp_replace_function_pointer): Use
4447         chkp_instrumentable_p instead of attribute check.
4449 2015-06-18  Richard Biener  <rguenther@suse.de>
4451         PR tree-optimization/66510
4452         * tree-vect-stmts.c (vectorizable_load): Properly compute the
4453         number of vector loads for SLP permuted loads.
4454         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
4455         check the stride for loop vectorization.
4456         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
4457         vectorization factor.
4458         (vect_analyze_group_access): If the group size is not a power
4459         of two require a epilogue loop.
4460         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
4461         compute and optimizing and alias test pruning after final
4462         vectorization factor computation.
4463         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
4464         vector alignment.
4465         (vect_transform_slp_perm_load): Properly compute the original
4466         number of vector load stmts.
4468 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
4470         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
4471         "unlikely character , in @var" warning.
4473 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
4475         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
4476         (ix86_function_arg_advance): Ditto.
4477         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
4479 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
4481         * function.h (struct rtl_data): Remove struct and accessor macros.
4482         * emit-rtl.h (struct rtl_data): Relocate to here.
4483         * Makefile.in (GTFILES): Add emit-rtl.h.
4484         * df-core.c: Include emit-rtl.h.
4485         * genattrtab.c: Likewise.
4486         * genconditions.c: Likewise.
4487         * genpreds.c: Likewise.
4488         * genrecog.c: Likewise.
4489         * regcprop.c: Likewise.
4490         * resource.c: Likewise.
4491         * sched-rgn.c: Likewise.
4492         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4493         * config/i386/winnt.c: Likewise.
4495 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
4497         PR middle-end/66429
4498         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
4499         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
4500         and has_force_vectorize_loops flags from cfun into
4501         child_cfun.
4502         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
4503         if simduid is non-NULL.
4504         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
4505         * passes.def (pass_simduid_cleanup): Add new pass after loop
4506         passes.
4507         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
4508         indirection from htab argument's type.
4509         (shrink_simd_arrays): New function.
4510         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
4511         Don't call adjust_simduid_builtins if there are no loops.
4512         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
4513         (pass_simduid_cleanup::execute): New method.
4514         (make_pass_simduid_cleanup): New function.
4516 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
4518         * tree-core.h (tree_target_option): Make opts field a pointer to a
4519         cl_target_option instead of an instance of the struct.
4520         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
4521         the structure.
4522         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
4523         TARGET_OPTION_NODE.
4524         (copy_node_stat): Allocate and copy struct cl_target_option.
4526 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
4528         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
4529         Remove conditional exposure of prototypes.
4530         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
4531         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
4532         definitions in tree.h with functions.
4533         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
4534         anon_aggrname_p.
4535         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
4537 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
4539         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
4540         (*cmp<mode>_signed): ... this.
4541         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
4542         (*cmp<mode>_unsigned): ... this.  Remove %b.
4544 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
4546         * coretypes.h: Include input.h and as-a.h.
4547         * rtl.h: Include input.h and as-a.h for generator files.
4548         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
4549         * vec.c: Don't include diagnostic-core.h.
4550         * alias.c: Do not include input.h, line-map.h or is-a.h.
4551         * asan.c: Likewise.
4552         * attribs.c: Likewise.
4553         * auto-inc-dec.c: Likewise.
4554         * auto-profile.c: Likewise.
4555         * bb-reorder.c: Likewise.
4556         * bt-load.c: Likewise.
4557         * builtins.c: Likewise.
4558         * caller-save.c: Likewise.
4559         * calls.c: Likewise.
4560         * ccmp.c: Likewise.
4561         * cfg.c: Likewise.
4562         * cfganal.c: Likewise.
4563         * cfgbuild.c: Likewise.
4564         * cfgcleanup.c: Likewise.
4565         * cfgexpand.c: Likewise.
4566         * cfghooks.c: Likewise.
4567         * cfgloop.c: Likewise.
4568         * cfgloop.h: Likewise.
4569         * cfgloopanal.c: Likewise.
4570         * cfgloopmanip.c: Likewise.
4571         * cfgrtl.c: Likewise.
4572         * cgraph.c: Likewise.
4573         * cgraphbuild.c: Likewise.
4574         * cgraphclones.c: Likewise.
4575         * cgraphunit.c: Likewise.
4576         * cilk-common.c: Likewise.
4577         * combine-stack-adj.c: Likewise.
4578         * combine.c: Likewise.
4579         * compare-elim.c: Likewise.
4580         * convert.c: Likewise.
4581         * coverage.c: Likewise.
4582         * cppbuiltin.c: Likewise.
4583         * cprop.c: Likewise.
4584         * cse.c: Likewise.
4585         * cselib.c: Likewise.
4586         * data-streamer-in.c: Likewise.
4587         * data-streamer-out.c: Likewise.
4588         * data-streamer.c: Likewise.
4589         * dbxout.c: Likewise.
4590         * dce.c: Likewise.
4591         * ddg.c: Likewise.
4592         * debug.c: Likewise.
4593         * df-core.c: Likewise.
4594         * df-problems.c: Likewise.
4595         * df-scan.c: Likewise.
4596         * df.h: Likewise.
4597         * dfp.c: Likewise.
4598         * diagnostic-core.h: Likewise.
4599         * diagnostic.c: Likewise.
4600         * dojump.c: Likewise.
4601         * dominance.c: Likewise.
4602         * domwalk.c: Likewise.
4603         * double-int.c: Likewise.
4604         * dse.c: Likewise.
4605         * dumpfile.c: Likewise.
4606         * dumpfile.h: Likewise.
4607         * dwarf2asm.c: Likewise.
4608         * dwarf2cfi.c: Likewise.
4609         * dwarf2out.c: Likewise.
4610         * emit-rtl.c: Likewise.
4611         * et-forest.c: Likewise.
4612         * except.c: Likewise.
4613         * explow.c: Likewise.
4614         * expmed.c: Likewise.
4615         * expr.c: Likewise.
4616         * final.c: Likewise.
4617         * fixed-value.c: Likewise.
4618         * fold-const.c: Likewise.
4619         * function.c: Likewise.
4620         * fwprop.c: Likewise.
4621         * gcc-plugin.h: Likewise.
4622         * gcse.c: Likewise.
4623         * generic-match-head.c: Likewise.
4624         * ggc-page.c: Likewise.
4625         * gimple-builder.c: Likewise.
4626         * gimple-expr.c: Likewise.
4627         * gimple-fold.c: Likewise.
4628         * gimple-iterator.c: Likewise.
4629         * gimple-low.c: Likewise.
4630         * gimple-match-head.c: Likewise.
4631         * gimple-pretty-print.c: Likewise.
4632         * gimple-ssa-isolate-paths.c: Likewise.
4633         * gimple-ssa-strength-reduction.c: Likewise.
4634         * gimple-streamer-in.c: Likewise.
4635         * gimple-streamer-out.c: Likewise.
4636         * gimple-streamer.h: Likewise.
4637         * gimple-walk.c: Likewise.
4638         * gimple.c: Likewise.
4639         * gimplify-me.c: Likewise.
4640         * gimplify.c: Likewise.
4641         * godump.c: Likewise.
4642         * graph.c: Likewise.
4643         * graphite-blocking.c: Likewise.
4644         * graphite-dependences.c: Likewise.
4645         * graphite-interchange.c: Likewise.
4646         * graphite-isl-ast-to-gimple.c: Likewise.
4647         * graphite-optimize-isl.c: Likewise.
4648         * graphite-poly.c: Likewise.
4649         * graphite-scop-detection.c: Likewise.
4650         * graphite-sese-to-poly.c: Likewise.
4651         * graphite.c: Likewise.
4652         * haifa-sched.c: Likewise.
4653         * hw-doloop.c: Likewise.
4654         * ifcvt.c: Likewise.
4655         * init-regs.c: Likewise.
4656         * input.c: Likewise.
4657         * internal-fn.c: Likewise.
4658         * ipa-chkp.c: Likewise.
4659         * ipa-comdats.c: Likewise.
4660         * ipa-cp.c: Likewise.
4661         * ipa-devirt.c: Likewise.
4662         * ipa-icf-gimple.c: Likewise.
4663         * ipa-icf.c: Likewise.
4664         * ipa-inline-analysis.c: Likewise.
4665         * ipa-inline-transform.c: Likewise.
4666         * ipa-inline.c: Likewise.
4667         * ipa-polymorphic-call.c: Likewise.
4668         * ipa-profile.c: Likewise.
4669         * ipa-prop.c: Likewise.
4670         * ipa-pure-const.c: Likewise.
4671         * ipa-ref.c: Likewise.
4672         * ipa-reference.c: Likewise.
4673         * ipa-split.c: Likewise.
4674         * ipa-utils.c: Likewise.
4675         * ipa-visibility.c: Likewise.
4676         * ipa.c: Likewise.
4677         * ira-build.c: Likewise.
4678         * ira-color.c: Likewise.
4679         * ira-conflicts.c: Likewise.
4680         * ira-costs.c: Likewise.
4681         * ira-emit.c: Likewise.
4682         * ira-lives.c: Likewise.
4683         * ira.c: Likewise.
4684         * jump.c: Likewise.
4685         * langhooks.c: Likewise.
4686         * lcm.c: Likewise.
4687         * loop-doloop.c: Likewise.
4688         * loop-init.c: Likewise.
4689         * loop-invariant.c: Likewise.
4690         * loop-iv.c: Likewise.
4691         * loop-unroll.c: Likewise.
4692         * lower-subreg.c: Likewise.
4693         * lra-assigns.c: Likewise.
4694         * lra-coalesce.c: Likewise.
4695         * lra-constraints.c: Likewise.
4696         * lra-eliminations.c: Likewise.
4697         * lra-lives.c: Likewise.
4698         * lra-remat.c: Likewise.
4699         * lra-spills.c: Likewise.
4700         * lra.c: Likewise.
4701         * lto-cgraph.c: Likewise.
4702         * lto-compress.c: Likewise.
4703         * lto-opts.c: Likewise.
4704         * lto-section-in.c: Likewise.
4705         * lto-section-out.c: Likewise.
4706         * lto-streamer-in.c: Likewise.
4707         * lto-streamer-out.c: Likewise.
4708         * lto-streamer.c: Likewise.
4709         * mcf.c: Likewise.
4710         * mode-switching.c: Likewise.
4711         * modulo-sched.c: Likewise.
4712         * omega.c: Likewise.
4713         * omp-low.c: Likewise.
4714         * optabs.c: Likewise.
4715         * opts-global.c: Likewise.
4716         * opts.h: Likewise.
4717         * passes.c: Likewise.
4718         * plugin.c: Likewise.
4719         * postreload-gcse.c: Likewise.
4720         * postreload.c: Likewise.
4721         * predict.c: Likewise.
4722         * pretty-print.h: Likewise.
4723         * print-rtl.c: Likewise.
4724         * print-tree.c: Likewise.
4725         * profile.c: Likewise.
4726         * real.c: Likewise.
4727         * realmpfr.c: Likewise.
4728         * recog.c: Likewise.
4729         * ree.c: Likewise.
4730         * reg-stack.c: Likewise.
4731         * regcprop.c: Likewise.
4732         * reginfo.c: Likewise.
4733         * regrename.c: Likewise.
4734         * regstat.c: Likewise.
4735         * reload.c: Likewise.
4736         * reload1.c: Likewise.
4737         * reorg.c: Likewise.
4738         * resource.c: Likewise.
4739         * rtl-chkp.c: Likewise.
4740         * rtl-error.c: Likewise.
4741         * rtlanal.c: Likewise.
4742         * rtlhooks.c: Likewise.
4743         * sanopt.c: Likewise.
4744         * sched-deps.c: Likewise.
4745         * sched-ebb.c: Likewise.
4746         * sched-rgn.c: Likewise.
4747         * sched-vis.c: Likewise.
4748         * sdbout.c: Likewise.
4749         * sel-sched-dump.c: Likewise.
4750         * sel-sched-ir.c: Likewise.
4751         * sel-sched.c: Likewise.
4752         * sese.c: Likewise.
4753         * shrink-wrap.c: Likewise.
4754         * simplify-rtx.c: Likewise.
4755         * stack-ptr-mod.c: Likewise.
4756         * statistics.c: Likewise.
4757         * stmt.c: Likewise.
4758         * stor-layout.c: Likewise.
4759         * store-motion.c: Likewise.
4760         * streamer-hooks.c: Likewise.
4761         * stringpool.c: Likewise.
4762         * symtab.c: Likewise.
4763         * target-globals.c: Likewise.
4764         * targhooks.c: Likewise.
4765         * toplev.c: Likewise.
4766         * tracer.c: Likewise.
4767         * trans-mem.c: Likewise.
4768         * tree-affine.c: Likewise.
4769         * tree-browser.c: Likewise.
4770         * tree-call-cdce.c: Likewise.
4771         * tree-cfg.c: Likewise.
4772         * tree-cfgcleanup.c: Likewise.
4773         * tree-chkp-opt.c: Likewise.
4774         * tree-chkp.c: Likewise.
4775         * tree-chrec.c: Likewise.
4776         * tree-complex.c: Likewise.
4777         * tree-data-ref.c: Likewise.
4778         * tree-dfa.c: Likewise.
4779         * tree-diagnostic.c: Likewise.
4780         * tree-dump.c: Likewise.
4781         * tree-eh.c: Likewise.
4782         * tree-emutls.c: Likewise.
4783         * tree-if-conv.c: Likewise.
4784         * tree-inline.c: Likewise.
4785         * tree-into-ssa.c: Likewise.
4786         * tree-iterator.c: Likewise.
4787         * tree-loop-distribution.c: Likewise.
4788         * tree-nested.c: Likewise.
4789         * tree-nrv.c: Likewise.
4790         * tree-object-size.c: Likewise.
4791         * tree-outof-ssa.c: Likewise.
4792         * tree-parloops.c: Likewise.
4793         * tree-phinodes.c: Likewise.
4794         * tree-predcom.c: Likewise.
4795         * tree-pretty-print.c: Likewise.
4796         * tree-profile.c: Likewise.
4797         * tree-scalar-evolution.c: Likewise.
4798         * tree-sra.c: Likewise.
4799         * tree-ssa-address.c: Likewise.
4800         * tree-ssa-alias.c: Likewise.
4801         * tree-ssa-ccp.c: Likewise.
4802         * tree-ssa-coalesce.c: Likewise.
4803         * tree-ssa-copy.c: Likewise.
4804         * tree-ssa-copyrename.c: Likewise.
4805         * tree-ssa-dce.c: Likewise.
4806         * tree-ssa-dom.c: Likewise.
4807         * tree-ssa-dse.c: Likewise.
4808         * tree-ssa-forwprop.c: Likewise.
4809         * tree-ssa-ifcombine.c: Likewise.
4810         * tree-ssa-live.c: Likewise.
4811         * tree-ssa-loop-ch.c: Likewise.
4812         * tree-ssa-loop-im.c: Likewise.
4813         * tree-ssa-loop-ivcanon.c: Likewise.
4814         * tree-ssa-loop-ivopts.c: Likewise.
4815         * tree-ssa-loop-manip.c: Likewise.
4816         * tree-ssa-loop-niter.c: Likewise.
4817         * tree-ssa-loop-prefetch.c: Likewise.
4818         * tree-ssa-loop-unswitch.c: Likewise.
4819         * tree-ssa-loop.c: Likewise.
4820         * tree-ssa-math-opts.c: Likewise.
4821         * tree-ssa-operands.c: Likewise.
4822         * tree-ssa-phiopt.c: Likewise.
4823         * tree-ssa-phiprop.c: Likewise.
4824         * tree-ssa-pre.c: Likewise.
4825         * tree-ssa-propagate.c: Likewise.
4826         * tree-ssa-reassoc.c: Likewise.
4827         * tree-ssa-sccvn.c: Likewise.
4828         * tree-ssa-scopedtables.c: Likewise.
4829         * tree-ssa-sink.c: Likewise.
4830         * tree-ssa-strlen.c: Likewise.
4831         * tree-ssa-structalias.c: Likewise.
4832         * tree-ssa-tail-merge.c: Likewise.
4833         * tree-ssa-ter.c: Likewise.
4834         * tree-ssa-threadedge.c: Likewise.
4835         * tree-ssa-threadupdate.c: Likewise.
4836         * tree-ssa-uncprop.c: Likewise.
4837         * tree-ssa-uninit.c: Likewise.
4838         * tree-ssa.c: Likewise.
4839         * tree-ssanames.c: Likewise.
4840         * tree-stdarg.c: Likewise.
4841         * tree-streamer-in.c: Likewise.
4842         * tree-streamer-out.c: Likewise.
4843         * tree-streamer.c: Likewise.
4844         * tree-switch-conversion.c: Likewise.
4845         * tree-tailcall.c: Likewise.
4846         * tree-vect-data-refs.c: Likewise.
4847         * tree-vect-generic.c: Likewise.
4848         * tree-vect-loop-manip.c: Likewise.
4849         * tree-vect-loop.c: Likewise.
4850         * tree-vect-patterns.c: Likewise.
4851         * tree-vect-slp.c: Likewise.
4852         * tree-vect-stmts.c: Likewise.
4853         * tree-vectorizer.c: Likewise.
4854         * tree-vrp.c: Likewise.
4855         * tree.c: Likewise.
4856         * tsan.c: Likewise.
4857         * ubsan.c: Likewise.
4858         * valtrack.c: Likewise.
4859         * value-prof.c: Likewise.
4860         * var-tracking.c: Likewise.
4861         * varasm.c: Likewise.
4862         * varpool.c: Likewise.
4863         * vmsdbgout.c: Likewise.
4864         * vtable-verify.c: Likewise.
4865         * web.c: Likewise.
4866         * wide-int.cc: Likewise.
4867         * xcoffout.c: Likewise.
4868         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
4869         * common/common-targhooks.c: Likewise.
4870         * config/aarch64/aarch64-builtins.c: Likewise.
4871         * config/aarch64/aarch64.c: Likewise.
4872         * config/alpha/alpha.c: Likewise.
4873         * config/arc/arc.c: Likewise.
4874         * config/arm/aarch-common.c: Likewise.
4875         * config/arm/arm-builtins.c: Likewise.
4876         * config/arm/arm-c.c: Likewise.
4877         * config/arm/arm.c: Likewise.
4878         * config/avr/avr-c.c: Likewise.
4879         * config/avr/avr-log.c: Likewise.
4880         * config/avr/avr.c: Likewise.
4881         * config/bfin/bfin.c: Likewise.
4882         * config/c6x/c6x.c: Likewise.
4883         * config/cr16/cr16.c: Likewise.
4884         * config/cris/cris.c: Likewise.
4885         * config/darwin-c.c: Likewise.
4886         * config/darwin.c: Likewise.
4887         * config/default-c.c: Likewise.
4888         * config/epiphany/epiphany.c: Likewise.
4889         * config/epiphany/mode-switch-use.c: Likewise.
4890         * config/epiphany/resolve-sw-modes.c: Likewise.
4891         * config/fr30/fr30.c: Likewise.
4892         * config/frv/frv.c: Likewise.
4893         * config/ft32/ft32.c: Likewise.
4894         * config/glibc-c.c: Likewise.
4895         * config/h8300/h8300.c: Likewise.
4896         * config/i386/i386-c.c: Likewise.
4897         * config/i386/i386.c: Likewise.
4898         * config/i386/msformat-c.c: Likewise.
4899         * config/i386/winnt-cxx.c: Likewise.
4900         * config/i386/winnt-stubs.c: Likewise.
4901         * config/i386/winnt.c: Likewise.
4902         * config/ia64/ia64-c.c: Likewise.
4903         * config/ia64/ia64.c: Likewise.
4904         * config/iq2000/iq2000.c: Likewise.
4905         * config/lm32/lm32.c: Likewise.
4906         * config/m32c/m32c-pragma.c: Likewise.
4907         * config/m32c/m32c.c: Likewise.
4908         * config/m32r/m32r.c: Likewise.
4909         * config/m68k/m68k.c: Likewise.
4910         * config/mcore/mcore.c: Likewise.
4911         * config/mep/mep-pragma.c: Likewise.
4912         * config/mep/mep.c: Likewise.
4913         * config/microblaze/microblaze-c.c: Likewise.
4914         * config/microblaze/microblaze.c: Likewise.
4915         * config/mips/mips.c: Likewise.
4916         * config/mmix/mmix.c: Likewise.
4917         * config/mn10300/mn10300.c: Likewise.
4918         * config/moxie/moxie.c: Likewise.
4919         * config/msp430/msp430-c.c: Likewise.
4920         * config/msp430/msp430.c: Likewise.
4921         * config/nds32/nds32-cost.c: Likewise.
4922         * config/nds32/nds32-fp-as-gp.c: Likewise.
4923         * config/nds32/nds32-intrinsic.c: Likewise.
4924         * config/nds32/nds32-isr.c: Likewise.
4925         * config/nds32/nds32-md-auxiliary.c: Likewise.
4926         * config/nds32/nds32-memory-manipulation.c: Likewise.
4927         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4928         * config/nds32/nds32-predicates.c: Likewise.
4929         * config/nds32/nds32.c: Likewise.
4930         * config/nios2/nios2.c: Likewise.
4931         * config/nvptx/nvptx.c: Likewise.
4932         * config/pa/pa.c: Likewise.
4933         * config/pdp11/pdp11.c: Likewise.
4934         * config/rl78/rl78-c.c: Likewise.
4935         * config/rl78/rl78.c: Likewise.
4936         * config/rs6000/rs6000-c.c: Likewise.
4937         * config/rs6000/rs6000.c: Likewise.
4938         * config/rx/rx.c: Likewise.
4939         * config/s390/s390-c.c: Likewise.
4940         * config/s390/s390.c: Likewise.
4941         * config/sh/sh-c.c: Likewise.
4942         * config/sh/sh-mem.cc: Likewise.
4943         * config/sh/sh.c: Likewise.
4944         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4945         * config/sh/sh_treg_combine.cc: Likewise.
4946         * config/sol2-c.c: Likewise.
4947         * config/sol2-cxx.c: Likewise.
4948         * config/sol2-stubs.c: Likewise.
4949         * config/sol2.c: Likewise.
4950         * config/sparc/sparc-c.c: Likewise.
4951         * config/sparc/sparc.c: Likewise.
4952         * config/spu/spu-c.c: Likewise.
4953         * config/spu/spu.c: Likewise.
4954         * config/stormy16/stormy16.c: Likewise.
4955         * config/tilegx/mul-tables.c: Likewise.
4956         * config/tilegx/tilegx-c.c: Likewise.
4957         * config/tilegx/tilegx.c: Likewise.
4958         * config/tilepro/mul-tables.c: Likewise.
4959         * config/tilepro/tilepro-c.c: Likewise.
4960         * config/tilepro/tilepro.c: Likewise.
4961         * config/v850/v850-c.c: Likewise.
4962         * config/v850/v850.c: Likewise.
4963         * config/vax/vax.c: Likewise.
4964         * config/visium/visium.c: Likewise.
4965         * config/vms/vms-c.c: Likewise.
4966         * config/vms/vms.c: Likewise.
4967         * config/vxworks.c: Likewise.
4968         * config/winnt-c.c: Likewise.
4969         * config/xtensa/xtensa.c: Likewise.
4971 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
4973         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
4974         function.
4975         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
4977 2015-06-17  Richard Biener  <rguenther@suse.de>
4979         PR tree-optimization/66251
4980         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
4981         stmts for SLP strided stores.
4983         Revert
4984         2015-05-22  Richard Biener  <rguenther@suse.de>
4986         PR tree-optimization/66251
4987         * tree-vect-stmts.c (vectorizable_conversion): Properly
4988         set STMT_VINFO_VEC_STMT even for the SLP case.
4990         2015-05-26  Michael Matz  <matz@suse.de>
4992         PR middle-end/66251
4993         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
4994         STMT_VINFO_VEC_STMT, also with SLP.
4996 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
4998         PR target/56766
4999         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
5000         (*avx_addsubv4df3_1s): Ditto.
5001         (*sse3_addsubv2df3_1): Ditto.
5002         (*sse3_addsubv2df3_1s): Ditto.
5003         (*avx_addsubv8sf3_1): Ditto.
5004         (*avx_addsubv8sf3_1s): Ditto.
5005         (*sse3_addsubv4sf3_1): Ditto.
5006         (*sse3_addsubv4sf3_1s): Ditto.
5008 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
5010         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
5011         (SYSROOT_SUFFIX_SPEC): Update.
5012         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
5013         (STARTFILE_PREFIX_SPEC): Update.
5014         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
5015         (MULTILIB_REQUIRED): New.
5016         (MULTILIB_OSDIRNAMES): New.
5017         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
5018         (MULTILIB_REQUIRED): New.
5019         (MULTILIB_OSDIRNAMES): New.
5021 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
5023         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
5024         * config/aarch64/aarch64-options-extensions.def: Update "fP",
5025         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
5026         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
5027         (AARCH64_FL_PAN): New.
5028         (AARCH64_FL_LOR): New.
5029         (AARCH64_FL_RDMA): New.
5030         (AARCH64_FL_FOR_ARCH8_1): New.
5031         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
5032         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
5034 2015-06-16  Martin Liska  <mliska@suse.cz>
5036         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
5037         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
5038         guard.
5040 2015-06-16  Richard Biener  <rguenther@suse.de>
5042         * tree-vect-stmts.c (vectorizable_store): Adjust.
5043         (vectorizable_load): Likewise.
5044         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5045         Simplify.
5046         (vect_create_data_ref_ptr): Likewise.
5047         (bump_vector_ptr): Adjust.
5049 2015-06-16  Richard Biener  <rguenther@suse.de>
5051         * tree-vect-stmts.c (vectorizable_load): Properly start loads
5052         with the first element if this is grouped loads.
5054 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
5056         * config/arm/arm-protos.h (struct tune_params): Rename
5057         log_op_non_sc to log_op_non_short_circuit, and rename enum
5058         values to expand SC to SHORT_CIRCUIT.
5059         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
5060         to LOG_OP_NON_SHORT_CIRCUIT.
5061         (arm_fastmul_tune):Likewise
5062         (arm_strongarm_tune): Likewise.
5063         (arm_xscale_tune): Likewise.
5064         (arm_9e_tune): Likewise.
5065         (arm_marvell_pj4_tune): Likewise.
5066         (arm_v6t2_tune): Likewise.
5067         (arm_cortex_tune): Likewise.
5068         (arm_cortex_a8_tune): Likewise.
5069         (arm_cortex_a7_tune): Likewise.
5070         (arm_cortex_a15_tune): Likewise.
5071         (arm_cortex_a53_tune): Likewise.
5072         (arm_cortex_a57_tune): Likewise.
5073         (arm_xgene1_tune): Likewise.
5074         (arm_cortex_a5_tune): Likewise.
5075         (arm_cortex_a9_tune): Likewise.
5076         (arm_cortex_a12_tune): Likewise.
5077         (arm_v7m_tune): Likewise.
5078         (arm_cortex_m7_tune): Likewise.
5079         (arm_v6m_tune): Likewise.
5080         (arm_fa726te_tune): Likewise.
5082 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
5084         * altivec.md: Delete UNSPEC_VMLADDUHM.
5085         (mulv4si3_p8): New pattern.
5086         (mulv4si3): Use it for POWER8.
5087         (mulv8hi3): Use vmladduhm with zero addend.
5088         (altivec_vmladduhm): Descriptive RTL.
5090 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
5092         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
5093         to use neon_move instead of mov_imm.
5094         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
5095         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
5097         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
5098         aarch64_float_const_zero_rtx_p check before TFmode check.
5099         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
5100         an fp zero.
5101         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
5102         code and attributes to match.  Change condition from register_operand
5103         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
5104         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
5105         to store2.
5107 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
5109         PR debug/66535
5110         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
5111         there is no parent.
5113 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
5115         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
5116         HOST_WIDE_INT parameter.
5118 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
5120         PR ipa/66181
5121         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
5122         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
5123         TYPE_NO_FORCE_BLK.
5124         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5126 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
5128         * rtl.h (classify_insn): Declare.
5129         * emit-rtl.c (classify_insn): Move to...
5130         * rtl.c: ...here and add generator support.
5131         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
5132         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
5133         * genemit.c (gen_emit_seq): New function.
5134         (gen_expand, gen_split): Use it.
5136 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
5138         * tree.c (make_vector_stat): Fix comment to state that the
5139         function returns a VECTOR_CST.
5141 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
5143         * gensupport.h (add_implicit_parallel): Declare.
5144         * genrecog.c (add_implicit_parallel): Move to...
5145         * gensupport.c (add_implicit_parallel): ...here.
5146         (process_one_cond_exec): Use it.
5147         * genemit.c (gen_insn): Likewise.
5149 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
5151         PR bootstrap/66448
5152         * passes.c (rest_of_decl_compilation): Do not register globals for
5153         early debug if they are declared in built-ins.
5155 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
5157         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
5159 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5161         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
5162         manually swapping.
5163         (noce_try_cmove_arith): Likewise.
5164         (noce_get_alt_condition): Likewise.
5166 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5168         * common/config/i386/i386-common.c
5169         (OPTION_MASK_ISA_MWAITX_SET): New.
5170         (ix86_handle_option): Handle mwaitx.
5171         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
5172         (x86_64-*-*): Likewise.
5173         * config/i386/mwaitxintrin.h: New header.
5174         * config/i386/cpuid.h (bit_MWAITX):  Define.
5175         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5176         MWAITX support.
5177         * config/i386/i386.opt (mwaitx): New.
5178         * config/i386/i386-builtin-types.def
5179         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
5180         * config/i386/i386-c.c: Define __MWAITX__ if needed.
5181         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
5182         (PTA_MWAITX): New.
5183         (ix86_option_override_internal): Handle new option.
5184         (processor_alias_table): Added PTA_MWAITX.
5185         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
5186         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
5187         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
5188         IX86_BUILTIN_MONITORX  built-ins.
5189         * config/i386/i386.h (TARGET_MWAITX): New.
5190         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
5191         UNSPEC_MONITORX.
5192         (mwaitx):  New pattern.
5193         (monitorx_<mode>): New pattern.
5194         * config/i386/x86intrin.h: Include mwaitxintrin.h.
5195         * doc/extend.texi: Document monitorx and mwaitx builtins.
5196         * doc/invoke.texi: Document -mmwaitx option.
5198 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
5200         * emit-rtl.c (need_atomic_barrier_p): Mask model with
5201         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
5203 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
5205         * dbxout.c (xcoff_debug_hooks): Provide a function for
5206         register_main_translation_unit hook.
5208 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
5210         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
5211         variants cases from switch.
5212         (rs6000_post_atomic_barrier): Same.
5213         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
5214         (rs6000_expand_atomic_exchange): Same.
5215         (rs6000_expand_atomic_op): Same.
5216         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
5217         SYNC variants cases from switch.
5218         (atomic_load): Same.
5219         (atomic_store): Same.
5221 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
5223         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
5224         CONST_INT for goto.
5226 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
5228         PR bootstrap/66448
5229         * dwarf2out.c (check_die): Check for common duplicate attributes.
5230         (add_location_or_const_value_attribute): Do not add duplicate
5231         attributes.
5232         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
5233         time around.
5234         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
5235         (gen_type_die_with_usage): Call check_die.
5236         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
5238 2015-06-11  Jason Merrill  <jason@redhat.com>
5240         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
5241         dies.
5243 2015-06-11  Marek Polacek  <polacek@redhat.com>
5245         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
5247 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5249         PR bootstrap/66252
5250         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
5251         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
5252         (*addx_extend_sp32): Fix pasto.
5253         (*subx_extend): Rename into...
5254         (*subx_extend_sp32): ...this.
5255         (*adddi3_extend_sp32): Add earlyclobber.
5256         (*subdi3_insn_sp32): Likewise.
5257         (*subdi3_extend_sp32): Likewise.
5258         (*and_not_di_sp32): Likewise.
5259         (*or_not_di_sp32): Likewise.
5260         (*xor_not_di_sp32): Likewise.
5261         (*negdi2_sp32): Likewise.
5262         (*one_cmpldi2_sp32): Likewise.
5264 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
5266         * debug.h (struct gcc_debug_hooks): Add a
5267         register_main_translation_unit hook.
5268         * debug.c (do_nothing_debug_hooks): Provide a function for this
5269         new hook.
5270         * dbxout.c (dbx_debug_hooks): Likewise.
5271         * sdbout.c (sdb_debug_hooks): Likewise.
5272         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5273         * dwarf2out.c (main_translation_unit): New global variable.
5274         (dwarf2out_register_main_translation_unit): New function
5275         implementing the new hook.
5276         (dwarf2_debug_hooks): Assign
5277         dwarf2out_register_main_translation_unit to this new hook.
5278         (dwarf2out_init): Associate any main translation unit to
5279         comp_unit_die ().
5281 2015-06-11  Marek Polacek  <polacek@redhat.com>
5283         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
5285 2015-06-11  Marek Polacek  <polacek@redhat.com>
5287         * match.pd: Use single_use throughout.
5289 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5291         * config/arm/arm.c (arm_option_params_internal): When optimising
5292         for speed set max_insns_skipped when arm_restrict_it.
5294 2015-06-11  Christian Bruel  <christian.bruel@st.com>
5296         PR target/52144
5297         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
5298          macros in ...
5299         (arm_cpu_builtins): New function.
5300         (arm_pragma_target_parse): Call arm_cpu_builtins.
5301         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
5302         (arm_register_target_pragmas): Likewise.
5303         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
5304          Call arm_register_target_pragmas.
5305         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
5306         (arm_pragma_target_parse): Likewise.
5308 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
5310         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
5311         of the second operand.
5313 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
5315         PR target/66473
5316         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
5317         to prepare mask operand for AVX512 modes.
5319 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5321         PR target/66474
5322         * doc/md.texi (Machine Constraints): Document that on the PowerPC
5323         if you use a constraint that targets a VSX register, you must use
5324         %x<n> in the template.
5326 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
5328         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
5329         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
5330         (define_insn "trap"): New definition.
5332 2015-06-10  Richard Biener  <rguenther@suse.de>
5334         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
5335         out from ...
5336         (vect_supported_load_permutation_p): ... here.  Handle
5337         supportable permutations in reductions.
5338         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
5339         for vectorizing strided group loads.
5341 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
5343         PR target/66470
5344         * config/i386/i386.c (ix86_split_long_move): For collisions
5345         involving direct tls segment refs, move the UNSPEC_TP possibly
5346         wrapped in ZERO_EXTEND out of the address for lea, to each of
5347         the memory loads.
5349 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5351         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
5352         dmb sy. Adjust tabs.
5354 2015-06-10  Tom de Vries  <tom@codesourcery.com>
5356         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
5358 2015-06-10  Martin Liska  <mliska@suse.cz>
5360         PR bootstrap/66471
5361         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
5362         all enum values in mem_alloc_origin.
5363         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
5364         name.
5365         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
5366         * bitmap.c (bitmap_register): Likewise.
5367         (dump_bitmap_statistics): Likewise.
5368         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5369         (ggc_record_overhead): Likewise.
5370         * hash-map.h: Likewise.
5371         * hash-set.h: Likewise.
5372         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
5373         * hash-table.h: Likewise.
5374         * vec.c (vec_prefix::register_overhead): Likewise.
5375         (vec_prefix::release_overhead): Likewise.
5376         (dump_vec_loc_statistics): Likewise.
5378 2015-06-09  Christian Bruel  <christian.bruel@st.com>
5380         PR target/52144
5381         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
5382         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
5383         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
5384         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
5385         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
5386         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
5387         (arm_valid_target_attribute_p): Likewise.
5388         (arm_set_current_function, arm_can_inline_p): Likewise.
5389         (arm_valid_target_attribute_rec): Likewise.
5390         (arm_previous_fndecl): New variable.
5391         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
5392         (TARGET_CAN_INLINE_P): Define.
5393         (arm_asm_trampoline_template): Emit mode.
5394         (arm_file_start): Don't set unified syntax.
5395         (arm_declare_function_name): Set unified syntax and mode.
5396         (arm_option_override): Init target_option_default_node.
5397         and target_option_current_node.
5398         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
5399         (*call_symbol): Likewise.
5400         * doc/extend.texi: Document ARM/Thumb target attribute.
5401         * doc/invoke.texi: Likewise.
5403 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5405         Revert:
5406         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5407         PR rtl-optimization/64164
5408         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5409         * tree-ssa-copyrename.c: Removed.
5410         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5411         -ftree-coalesce-vars.
5412         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5413         * common.opt (ftree-copyrename): Ignore.
5414         (ftree-coalesce-inlined-vars): Likewise.
5415         * doc/invoke.texi: Remove the ignored options above.
5416         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5417         * tree-ssa-coalesce.h: ... here.
5418         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5419         headers required by it.
5420         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5421         across variables when flag_tree_coalesce_vars.  Check register
5422         use and promoted modes to allow coalescing.  Moved to
5423         tree-ssa-coalesce.c.
5424         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5425         with its member functions to tree-ssa-coalesce.c.
5426         (var_map_base_init): Likewise.  Renamed to
5427         compute_samebase_partition_bases.
5428         (partition_view_normal): Drop want_bases parameter.
5429         (partition_view_bitmap): Likewise.
5430         * tree-ssa-live.h: Adjust declarations.
5431         * tree-ssa-coalesce.c: Include explow.h.
5432         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5433         default defs at the entry point.
5434         (dump_part_var_map): New.
5435         (compute_optimized_partition_bases): New, called by...
5436         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5437         of compute_samebase_partition_bases.  Adjust.
5438         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5439         * cfgexpand.c (leader_merge): New.
5440         (get_rtl_for_parm_ssa_default_def): New.
5441         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5442         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5443         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
5444         redundant MEM attr setting.
5445         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
5446         from...
5447         (expand_one_stack_var): ... this.  New wrapper to check and
5448         skip already expanded SSA partitions.
5449         (record_alignment_for_reg_var): New, factored out of...
5450         (expand_one_var): ... this.
5451         (expand_one_ssa_partition): New.
5452         (adjust_one_expanded_partition_var): New.
5453         (expand_one_register_var): Check and skip already expanded SSA
5454         partitions.
5455         (expand_used_vars): Don't create DECLs for anonymous SSA
5456         names.  Expand all SSA partitions, then adjust all SSA names.
5457         (pass::execute): Replace the loops that set
5458         SA.partition_to_pseudo from partition leaders and cleared
5459         DECL_RTL for multi-location variables, and that which used to
5460         rename vars and set attrs, with one that clears DECL_RTL and
5461         checks that PARMs and RESULTs default_defs match DECL_RTL.
5462         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5463         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5464         * explow.c (promote_ssa_mode): New.
5465         * explow.h (promote_ssa_mode): Declare.
5466         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5467         * function.c: Include cfgexpand.h.
5468         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5469         (use_register_for_parm_decl): Wrapper for the above to
5470         special-case the result_ptr.
5471         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5472         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5473         multiple locations.
5474         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5475         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
5476         (assign_parm_setup_block): Prefer SSA-assigned location.
5477         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
5478         if stack_parm is NULL.
5479         (assign_parm_setup_stack): Prefer SSA-assigned location.
5480         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
5481         rtl before testing for pointer bounds.  Special-case result_ptr.
5482         (expand_function_start): Maybe reset DECL_RTL of result.
5483         Prefer SSA-assigned location for result and static chain.
5484         Factor out DECL_RESULT and SET_DECL_RTL.
5485         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5486         anonymous SSA names.  Use promote_ssa_mode.
5487         (get_temp_reg): Likewise.
5488         (remove_ssa_form): Adjust.
5489         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5490         and get its reg_usage for reg invalidation.
5491         (compute_bb_dataflow): Pass it insn.
5492         (emit_notes_in_bb): Likewise.
5493         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
5494         fail assert on conversion between unsigned types.
5496 2015-06-09  Tom de Vries  <tom@codesourcery.com>
5498         PR tree-optimization/65460
5499         * omp-low.c (expand_omp_target): Set parallelized_function on
5500         cgraph_node for child_fn.
5502 2015-06-09  Tom de Vries  <tom@codesourcery.com>
5504         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
5505         parallelized_function before add_new_function.
5507 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
5509         * gcc-plugin.h: Move decls to plugin.h and include it.
5510         * plugin.h: Relocate decls from gcc-plugin.h
5511         * ggc-page.c: Include required header files.
5512         * passes.c: Likewise.
5513         * cgraphunit.c: Likewise.
5515 2015-06-09  Tom de Vries  <tom@codesourcery.com>
5517         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
5519 2015-06-09  Jason Merrill  <jason@redhat.com>
5521         PR bootstrap/66448
5522         * toplev.c (check_global_declaration): Don't warn about a clone.
5524 2015-06-09  Marek Polacek  <polacek@redhat.com>
5526         PR tree-optimization/66299
5527         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
5528         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
5529         patterns.
5531 2015-06-09  Richard Biener  <rguenther@suse.de>
5533         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
5534         (vect_analyze_slp_instance): Instead do not falsely drop
5535         load permutations.
5537 2015-06-09  Richard Biener  <rguenther@suse.de>
5539         PR middle-end/66423
5540         * match.pd: Handle A % (unsigned)(1 << B).
5542 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
5544         * varasm.c (output_object_block_htab): Remove.
5545         (output_object_block_compare): New.
5546         (output_object_blocks): Sort named object_blocks before outputting
5547         them.
5549 2015-06-09  Richard Biener  <rguenther@suse.de>
5551         PR tree-optimization/66419
5552         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
5553         consider GROUP_GAP when detecting a perfect subchain.
5555 2015-06-09  Nick Clifton  <nickc@redhat.com>
5557         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
5558         place read only data in the .frodata section.
5560 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
5562         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
5563         (atomic_store<mode>): Likewise.
5565 2015-06-09  Richard Biener  <rguenther@suse.de>
5567         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
5569 2015-06-09  Richard Biener  <rguenther@suse.de>
5571         PR middle-end/66413
5572         * tree-inline.c (insert_init_debug_bind): Unshare value.
5574 2015-06-09  Richard Biener  <rguenther@suse.de>
5576         PR tree-optimization/66396
5577         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
5578         Rename virtual operands.
5580 2015-06-09  Tom de Vries  <tom@codesourcery.com>
5582         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
5583         always return false.
5585 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5587         PR rtl-optimization/64164
5588         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5589         * tree-ssa-copyrename.c: Removed.
5590         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5591         -ftree-coalesce-vars.
5592         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5593         * common.opt (ftree-copyrename): Ignore.
5594         (ftree-coalesce-inlined-vars): Likewise.
5595         * doc/invoke.texi: Remove the ignored options above.
5596         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5597         * tree-ssa-coalesce.h: ... here.
5598         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5599         headers required by it.
5600         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5601         across variables when flag_tree_coalesce_vars.  Check register
5602         use and promoted modes to allow coalescing.  Moved to
5603         tree-ssa-coalesce.c.
5604         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5605         with its member functions to tree-ssa-coalesce.c.
5606         (var_map_base_init): Likewise.  Renamed to
5607         compute_samebase_partition_bases.
5608         (partition_view_normal): Drop want_bases parameter.
5609         (partition_view_bitmap): Likewise.
5610         * tree-ssa-live.h: Adjust declarations.
5611         * tree-ssa-coalesce.c: Include explow.h.
5612         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5613         default defs at the entry point.
5614         (dump_part_var_map): New.
5615         (compute_optimized_partition_bases): New, called by...
5616         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5617         of compute_samebase_partition_bases.  Adjust.
5618         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5619         * cfgexpand.c (leader_merge): New.
5620         (get_rtl_for_parm_ssa_default_def): New.
5621         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5622         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5623         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
5624         redundant MEM attr setting.
5625         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
5626         from...
5627         (expand_one_stack_var): ... this.  New wrapper to check and
5628         skip already expanded SSA partitions.
5629         (record_alignment_for_reg_var): New, factored out of...
5630         (expand_one_var): ... this.
5631         (expand_one_ssa_partition): New.
5632         (adjust_one_expanded_partition_var): New.
5633         (expand_one_register_var): Check and skip already expanded SSA
5634         partitions.
5635         (expand_used_vars): Don't create DECLs for anonymous SSA
5636         names.  Expand all SSA partitions, then adjust all SSA names.
5637         (pass::execute): Replace the loops that set
5638         SA.partition_to_pseudo from partition leaders and cleared
5639         DECL_RTL for multi-location variables, and that which used to
5640         rename vars and set attrs, with one that clears DECL_RTL and
5641         checks that PARMs and RESULTs default_defs match DECL_RTL.
5642         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5643         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5644         * explow.c (promote_ssa_mode): New.
5645         * explow.h (promote_ssa_mode): Declare.
5646         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5647         * function.c: Include cfgexpand.h.
5648         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5649         (use_register_for_parm_decl): Wrapper for the above to
5650         special-case the result_ptr.
5651         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5652         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5653         multiple locations.
5654         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5655         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
5656         (assign_parm_setup_block): Prefer SSA-assigned location.
5657         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
5658         if stack_parm is NULL.
5659         (assign_parm_setup_stack): Prefer SSA-assigned location.
5660         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
5661         rtl before testing for pointer bounds.  Special-case result_ptr.
5662         (expand_function_start): Maybe reset DECL_RTL of result.
5663         Prefer SSA-assigned location for result and static chain.
5664         Factor out DECL_RESULT and SET_DECL_RTL.
5665         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5666         anonymous SSA names.  Use promote_ssa_mode.
5667         (get_temp_reg): Likewise.
5668         (remove_ssa_form): Adjust.
5669         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5670         and get its reg_usage for reg invalidation.
5671         (compute_bb_dataflow): Pass it insn.
5672         (emit_notes_in_bb): Likewise.
5673         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
5674         fail assert on conversion between unsigned types.
5676 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
5678         PR debug/58315
5679         * tree-inline.c (reset_debug_binding): New.
5680         (reset_debug_bindings): Likewise.
5681         (expand_call_inline): Call it.
5683 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
5685         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
5686         TYPE_STRING_FLAG.
5688 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
5690         * lto-streamer-out.c (lto_output_location): Stream
5691         reserved locations correctly.
5692         * lto-streamer-in.c (lto_output_location): Likewise.
5694 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
5696         * coretypes.h: Include hash-table.h and hash-set.h for host files.
5697         * ggc.h: Don't include statistics.h>
5698         * hash-map.h: Remove all includes.
5699         * hash-set.h: Likewise.
5700         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
5701         the include list. Remove <new>.
5702         * inchash.h: Remove all includes.
5703         * mem-stats.h: Likewise.
5704         * vec.h: No special processing for generators or ggc.
5705         * alias.c : Adjust include files.
5706         * alloc-pool.c : Likewise.
5707         * alloc-pool.h : Likewise.
5708         * asan.c : Likewise.
5709         * attribs.c : Likewise.
5710         * auto-inc-dec.c : Likewise.
5711         * auto-profile.c : Likewise.
5712         * bb-reorder.c : Likewise.
5713         * bitmap.c : Likewise.
5714         * bitmap.h : Likewise.
5715         * bt-load.c : Likewise.
5716         * builtins.c : Likewise.
5717         * caller-save.c : Likewise.
5718         * calls.c : Likewise.
5719         * ccmp.c : Likewise.
5720         * cfg.c : Likewise.
5721         * cfganal.c : Likewise.
5722         * cfgbuild.c : Likewise.
5723         * cfgcleanup.c : Likewise.
5724         * cfgexpand.c : Likewise.
5725         * cfghooks.c : Likewise.
5726         * cfgloop.c : Likewise.
5727         * cfgloop.h : Likewise.
5728         * cfgloopanal.c : Likewise.
5729         * cfgloopmanip.c : Likewise.
5730         * cfgrtl.c : Likewise.
5731         * cgraph.c : Likewise.
5732         * cgraphbuild.c : Likewise.
5733         * cgraphclones.c : Likewise.
5734         * cgraphunit.c : Likewise.
5735         * cilk-common.c : Likewise.
5736         * combine-stack-adj.c : Likewise.
5737         * combine.c : Likewise.
5738         * compare-elim.c : Likewise.
5739         * context.c : Likewise.
5740         * convert.c : Likewise.
5741         * coverage.c : Likewise.
5742         * cppbuiltin.c : Likewise.
5743         * cprop.c : Likewise.
5744         * cse.c : Likewise.
5745         * cselib.c : Likewise.
5746         * data-streamer-in.c : Likewise.
5747         * data-streamer-out.c : Likewise.
5748         * data-streamer.c : Likewise.
5749         * data-streamer.h : Likewise.
5750         * dbxout.c : Likewise.
5751         * dce.c : Likewise.
5752         * ddg.c : Likewise.
5753         * debug.c : Likewise.
5754         * df-core.c : Likewise.
5755         * df-problems.c : Likewise.
5756         * df-scan.c : Likewise.
5757         * df.h : Likewise.
5758         * dfp.c : Likewise.
5759         * dojump.c : Likewise.
5760         * dominance.c : Likewise.
5761         * domwalk.c : Likewise.
5762         * double-int.c : Likewise.
5763         * dse.c : Likewise.
5764         * dumpfile.c : Likewise.
5765         * dwarf2asm.c : Likewise.
5766         * dwarf2cfi.c : Likewise.
5767         * dwarf2out.c : Likewise.
5768         * emit-rtl.c : Likewise.
5769         * et-forest.c : Likewise.
5770         * except.c : Likewise.
5771         * except.h : Likewise.
5772         * explow.c : Likewise.
5773         * expmed.c : Likewise.
5774         * expr.c : Likewise.
5775         * final.c : Likewise.
5776         * fixed-value.c : Likewise.
5777         * fold-const.c : Likewise.
5778         * function.c : Likewise.
5779         * fwprop.c : Likewise.
5780         * gcc-plugin.h : Likewise.
5781         * gcc.c : Likewise.
5782         * gcse-common.c : Likewise.
5783         * gcse.c : Likewise.
5784         * genattrtab.c : Likewise.
5785         * genautomata.c : Likewise.
5786         * genconditions.c : Likewise.
5787         * genemit.c : Likewise.
5788         * generic-match-head.c : Likewise.
5789         * genextract.c : Likewise.
5790         * gengtype-state.c : Likewise.
5791         * gengtype.c : Likewise.
5792         * genhooks.c : Likewise.
5793         * genmatch.c : Likewise.
5794         * genmodes.c : Likewise.
5795         * genrecog.c : Likewise.
5796         * gensupport.c : Likewise.
5797         * ggc-common.c : Likewise.
5798         * ggc-internal.h : Likewise.
5799         * ggc-none.c : Likewise.
5800         * ggc-page.c : Likewise.
5801         * gimple-builder.c : Likewise.
5802         * gimple-expr.c : Likewise.
5803         * gimple-fold.c : Likewise.
5804         * gimple-iterator.c : Likewise.
5805         * gimple-low.c : Likewise.
5806         * gimple-match-head.c : Likewise.
5807         * gimple-pretty-print.c : Likewise.
5808         * gimple-ssa-isolate-paths.c : Likewise.
5809         * gimple-ssa-strength-reduction.c : Likewise.
5810         * gimple-ssa.h : Likewise.
5811         * gimple-streamer-in.c : Likewise.
5812         * gimple-streamer-out.c : Likewise.
5813         * gimple-streamer.h : Likewise.
5814         * gimple-walk.c : Likewise.
5815         * gimple.c : Likewise.
5816         * gimplify-me.c : Likewise.
5817         * gimplify.c : Likewise.
5818         * godump.c : Likewise.
5819         * graph.c : Likewise.
5820         * graphds.c : Likewise.
5821         * graphite-blocking.c : Likewise.
5822         * graphite-dependences.c : Likewise.
5823         * graphite-interchange.c : Likewise.
5824         * graphite-isl-ast-to-gimple.c : Likewise.
5825         * graphite-optimize-isl.c : Likewise.
5826         * graphite-poly.c : Likewise.
5827         * graphite-scop-detection.c : Likewise.
5828         * graphite-sese-to-poly.c : Likewise.
5829         * graphite.c : Likewise.
5830         * haifa-sched.c : Likewise.
5831         * hard-reg-set.h : Likewise.
5832         * hw-doloop.c : Likewise.
5833         * ifcvt.c : Likewise.
5834         * inchash.c : Likewise.
5835         * incpath.c : Likewise.
5836         * init-regs.c : Likewise.
5837         * input.c : Likewise.
5838         * internal-fn.c : Likewise.
5839         * ipa-chkp.c : Likewise.
5840         * ipa-comdats.c : Likewise.
5841         * ipa-cp.c : Likewise.
5842         * ipa-devirt.c : Likewise.
5843         * ipa-icf-gimple.c : Likewise.
5844         * ipa-icf.c : Likewise.
5845         * ipa-inline-analysis.c : Likewise.
5846         * ipa-inline-transform.c : Likewise.
5847         * ipa-inline.c : Likewise.
5848         * ipa-polymorphic-call.c : Likewise.
5849         * ipa-profile.c : Likewise.
5850         * ipa-prop.c : Likewise.
5851         * ipa-pure-const.c : Likewise.
5852         * ipa-ref.c : Likewise.
5853         * ipa-reference.c : Likewise.
5854         * ipa-split.c : Likewise.
5855         * ipa-utils.c : Likewise.
5856         * ipa-visibility.c : Likewise.
5857         * ipa.c : Likewise.
5858         * ira-build.c : Likewise.
5859         * ira-color.c : Likewise.
5860         * ira-conflicts.c : Likewise.
5861         * ira-costs.c : Likewise.
5862         * ira-emit.c : Likewise.
5863         * ira-lives.c : Likewise.
5864         * ira.c : Likewise.
5865         * jump.c : Likewise.
5866         * langhooks.c : Likewise.
5867         * lcm.c : Likewise.
5868         * libfuncs.h : Likewise.
5869         * lists.c : Likewise.
5870         * loop-doloop.c : Likewise.
5871         * loop-init.c : Likewise.
5872         * loop-invariant.c : Likewise.
5873         * loop-iv.c : Likewise.
5874         * loop-unroll.c : Likewise.
5875         * lower-subreg.c : Likewise.
5876         * lra-assigns.c : Likewise.
5877         * lra-coalesce.c : Likewise.
5878         * lra-constraints.c : Likewise.
5879         * lra-eliminations.c : Likewise.
5880         * lra-lives.c : Likewise.
5881         * lra-remat.c : Likewise.
5882         * lra-spills.c : Likewise.
5883         * lra.c : Likewise.
5884         * lto-cgraph.c : Likewise.
5885         * lto-compress.c : Likewise.
5886         * lto-opts.c : Likewise.
5887         * lto-section-in.c : Likewise.
5888         * lto-section-out.c : Likewise.
5889         * lto-streamer-in.c : Likewise.
5890         * lto-streamer-out.c : Likewise.
5891         * lto-streamer.c : Likewise.
5892         * lto-streamer.h : Likewise.
5893         * mcf.c : Likewise.
5894         * mode-switching.c : Likewise.
5895         * modulo-sched.c : Likewise.
5896         * omega.c : Likewise.
5897         * omp-low.c : Likewise.
5898         * optabs.c : Likewise.
5899         * opts-global.c : Likewise.
5900         * opts.h : Likewise.
5901         * passes.c : Likewise.
5902         * plugin.c : Likewise.
5903         * postreload-gcse.c : Likewise.
5904         * postreload.c : Likewise.
5905         * predict.c : Likewise.
5906         * print-rtl.c : Likewise.
5907         * print-tree.c : Likewise.
5908         * profile.c : Likewise.
5909         * read-md.c : Likewise.
5910         * read-md.h : Likewise.
5911         * read-rtl.c : Likewise.
5912         * real.c : Likewise.
5913         * realmpfr.c : Likewise.
5914         * recog.c : Likewise.
5915         * ree.c : Likewise.
5916         * reg-stack.c : Likewise.
5917         * regcprop.c : Likewise.
5918         * reginfo.c : Likewise.
5919         * regrename.c : Likewise.
5920         * regstat.c : Likewise.
5921         * reload.c : Likewise.
5922         * reload1.c : Likewise.
5923         * reorg.c : Likewise.
5924         * resource.c : Likewise.
5925         * rtl-chkp.c : Likewise.
5926         * rtl.c : Likewise.
5927         * rtl.h : Likewise.
5928         * rtlanal.c : Likewise.
5929         * rtlhash.c : Likewise.
5930         * rtlhash.h : Likewise.
5931         * rtlhooks.c : Likewise.
5932         * sanopt.c : Likewise.
5933         * sched-deps.c : Likewise.
5934         * sched-ebb.c : Likewise.
5935         * sched-rgn.c : Likewise.
5936         * sched-vis.c : Likewise.
5937         * sdbout.c : Likewise.
5938         * sel-sched-dump.c : Likewise.
5939         * sel-sched-ir.c : Likewise.
5940         * sel-sched-ir.h : Likewise.
5941         * sel-sched.c : Likewise.
5942         * sese.c : Likewise.
5943         * shrink-wrap.c : Likewise.
5944         * shrink-wrap.h : Likewise.
5945         * simplify-rtx.c : Likewise.
5946         * stack-ptr-mod.c : Likewise.
5947         * statistics.c : Likewise.
5948         * stmt.c : Likewise.
5949         * stor-layout.c : Likewise.
5950         * store-motion.c : Likewise.
5951         * stringpool.c : Likewise.
5952         * symtab.c : Likewise.
5953         * target-globals.c : Likewise.
5954         * targhooks.c : Likewise.
5955         * tlink.c : Likewise.
5956         * toplev.c : Likewise.
5957         * tracer.c : Likewise.
5958         * trans-mem.c : Likewise.
5959         * tree-affine.c : Likewise.
5960         * tree-affine.h : Likewise.
5961         * tree-browser.c : Likewise.
5962         * tree-call-cdce.c : Likewise.
5963         * tree-cfg.c : Likewise.
5964         * tree-cfgcleanup.c : Likewise.
5965         * tree-chkp-opt.c : Likewise.
5966         * tree-chkp.c : Likewise.
5967         * tree-chrec.c : Likewise.
5968         * tree-complex.c : Likewise.
5969         * tree-data-ref.c : Likewise.
5970         * tree-dfa.c : Likewise.
5971         * tree-diagnostic.c : Likewise.
5972         * tree-dump.c : Likewise.
5973         * tree-eh.c : Likewise.
5974         * tree-eh.h : Likewise.
5975         * tree-emutls.c : Likewise.
5976         * tree-hasher.h : Likewise.
5977         * tree-if-conv.c : Likewise.
5978         * tree-inline.c : Likewise.
5979         * tree-inline.h : Likewise.
5980         * tree-into-ssa.c : Likewise.
5981         * tree-iterator.c : Likewise.
5982         * tree-loop-distribution.c : Likewise.
5983         * tree-nested.c : Likewise.
5984         * tree-nrv.c : Likewise.
5985         * tree-object-size.c : Likewise.
5986         * tree-outof-ssa.c : Likewise.
5987         * tree-parloops.c : Likewise.
5988         * tree-phinodes.c : Likewise.
5989         * tree-predcom.c : Likewise.
5990         * tree-pretty-print.c : Likewise.
5991         * tree-profile.c : Likewise.
5992         * tree-scalar-evolution.c : Likewise.
5993         * tree-sra.c : Likewise.
5994         * tree-ssa-address.c : Likewise.
5995         * tree-ssa-alias.c : Likewise.
5996         * tree-ssa-ccp.c : Likewise.
5997         * tree-ssa-coalesce.c : Likewise.
5998         * tree-ssa-copy.c : Likewise.
5999         * tree-ssa-copyrename.c : Likewise.
6000         * tree-ssa-dce.c : Likewise.
6001         * tree-ssa-dom.c : Likewise.
6002         * tree-ssa-dse.c : Likewise.
6003         * tree-ssa-forwprop.c : Likewise.
6004         * tree-ssa-ifcombine.c : Likewise.
6005         * tree-ssa-live.c : Likewise.
6006         * tree-ssa-loop-ch.c : Likewise.
6007         * tree-ssa-loop-im.c : Likewise.
6008         * tree-ssa-loop-ivcanon.c : Likewise.
6009         * tree-ssa-loop-ivopts.c : Likewise.
6010         * tree-ssa-loop-manip.c : Likewise.
6011         * tree-ssa-loop-niter.c : Likewise.
6012         * tree-ssa-loop-prefetch.c : Likewise.
6013         * tree-ssa-loop-unswitch.c : Likewise.
6014         * tree-ssa-loop.c : Likewise.
6015         * tree-ssa-math-opts.c : Likewise.
6016         * tree-ssa-operands.c : Likewise.
6017         * tree-ssa-phiopt.c : Likewise.
6018         * tree-ssa-phiprop.c : Likewise.
6019         * tree-ssa-pre.c : Likewise.
6020         * tree-ssa-propagate.c : Likewise.
6021         * tree-ssa-reassoc.c : Likewise.
6022         * tree-ssa-sccvn.c : Likewise.
6023         * tree-ssa-scopedtables.c : Likewise.
6024         * tree-ssa-sink.c : Likewise.
6025         * tree-ssa-strlen.c : Likewise.
6026         * tree-ssa-structalias.c : Likewise.
6027         * tree-ssa-tail-merge.c : Likewise.
6028         * tree-ssa-ter.c : Likewise.
6029         * tree-ssa-threadedge.c : Likewise.
6030         * tree-ssa-threadupdate.c : Likewise.
6031         * tree-ssa-uncprop.c : Likewise.
6032         * tree-ssa-uninit.c : Likewise.
6033         * tree-ssa.c : Likewise.
6034         * tree-ssanames.c : Likewise.
6035         * tree-stdarg.c : Likewise.
6036         * tree-streamer-in.c : Likewise.
6037         * tree-streamer-out.c : Likewise.
6038         * tree-streamer.c : Likewise.
6039         * tree-streamer.h : Likewise.
6040         * tree-switch-conversion.c : Likewise.
6041         * tree-tailcall.c : Likewise.
6042         * tree-vect-data-refs.c : Likewise.
6043         * tree-vect-generic.c : Likewise.
6044         * tree-vect-loop-manip.c : Likewise.
6045         * tree-vect-loop.c : Likewise.
6046         * tree-vect-patterns.c : Likewise.
6047         * tree-vect-slp.c : Likewise.
6048         * tree-vect-stmts.c : Likewise.
6049         * tree-vectorizer.c : Likewise.
6050         * tree-vectorizer.h : Likewise.
6051         * tree-vrp.c : Likewise.
6052         * tree.c : Likewise.
6053         * tsan.c : Likewise.
6054         * ubsan.c : Likewise.
6055         * valtrack.c : Likewise.
6056         * valtrack.h : Likewise.
6057         * value-prof.c : Likewise.
6058         * var-tracking.c : Likewise.
6059         * varasm.c : Likewise.
6060         * varpool.c : Likewise.
6061         * vec.c: Likewise.
6062         * vmsdbgout.c : Likewise.
6063         * vtable-verify.c : Likewise.
6064         * vtable-verify.h : Likewise.
6065         * web.c : Likewise.
6066         * wide-int.cc : Likewise.
6067         * xcoffout.c : Likewise.
6068         * config/aarch64/aarch64-builtins.c : Likewise.
6069         * config/aarch64/aarch64.c : Likewise.
6070         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
6071         * config/alpha/alpha.c : Likewise.
6072         * config/arc/arc.c : Likewise.
6073         * config/arm/aarch-common.c : Likewise.
6074         * config/arm/arm-builtins.c : Likewise.
6075         * config/arm/arm-c.c : Likewise.
6076         * config/arm/arm.c : Likewise.
6077         * config/avr/avr-c.c : Likewise.
6078         * config/avr/avr-log.c : Likewise.
6079         * config/avr/avr.c : Likewise.
6080         * config/bfin/bfin.c : Likewise.
6081         * config/c6x/c6x.c : Likewise.
6082         * config/cr16/cr16.c : Likewise.
6083         * config/cris/cris.c : Likewise.
6084         * config/darwin-c.c : Likewise.
6085         * config/darwin.c : Likewise.
6086         * config/default-c.c : Likewise.
6087         * config/epiphany/epiphany.c : Likewise.
6088         * config/epiphany/mode-switch-use.c : Likewise.
6089         * config/epiphany/resolve-sw-modes.c : Likewise.
6090         * config/fr30/fr30.c : Likewise.
6091         * config/frv/frv.c : Likewise.
6092         * config/ft32/ft32.c : Likewise.
6093         * config/glibc-c.c : Likewise.
6094         * config/h8300/h8300.c : Likewise.
6095         * config/i386/i386-c.c : Likewise.
6096         * config/i386/i386.c : Likewise.
6097         * config/i386/msformat-c.c : Likewise.
6098         * config/i386/winnt-cxx.c : Likewise.
6099         * config/i386/winnt-stubs.c : Likewise.
6100         * config/i386/winnt.c : Likewise.
6101         * config/ia64/ia64-c.c : Likewise.
6102         * config/ia64/ia64.c : Likewise.
6103         * config/iq2000/iq2000.c : Likewise.
6104         * config/lm32/lm32.c : Likewise.
6105         * config/m32c/m32c-pragma.c : Likewise.
6106         * config/m32c/m32c.c : Likewise.
6107         * config/m32r/m32r.c : Likewise.
6108         * config/m68k/m68k.c : Likewise.
6109         * config/mcore/mcore.c : Likewise.
6110         * config/mep/mep-pragma.c : Likewise.
6111         * config/mep/mep.c : Likewise.
6112         * config/microblaze/microblaze-c.c : Likewise.
6113         * config/microblaze/microblaze.c : Likewise.
6114         * config/mips/mips.c : Likewise.
6115         * config/mmix/mmix.c : Likewise.
6116         * config/mn10300/mn10300.c : Likewise.
6117         * config/moxie/moxie.c : Likewise.
6118         * config/msp430/msp430-c.c : Likewise.
6119         * config/msp430/msp430.c : Likewise.
6120         * config/nds32/nds32-cost.c : Likewise.
6121         * config/nds32/nds32-fp-as-gp.c : Likewise.
6122         * config/nds32/nds32-intrinsic.c : Likewise.
6123         * config/nds32/nds32-isr.c : Likewise.
6124         * config/nds32/nds32-md-auxiliary.c : Likewise.
6125         * config/nds32/nds32-memory-manipulation.c : Likewise.
6126         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
6127         * config/nds32/nds32-predicates.c : Likewise.
6128         * config/nds32/nds32.c : Likewise.
6129         * config/nios2/nios2.c : Likewise.
6130         * config/nvptx/nvptx.c : Likewise.
6131         * config/pa/pa.c : Likewise.
6132         * config/pdp11/pdp11.c : Likewise.
6133         * config/rl78/rl78-c.c : Likewise.
6134         * config/rl78/rl78.c : Likewise.
6135         * config/rs6000/rs6000-c.c : Likewise.
6136         * config/rs6000/rs6000.c : Likewise.
6137         * config/rx/rx.c : Likewise.
6138         * config/s390/s390-c.c : Likewise.
6139         * config/s390/s390.c : Likewise.
6140         * config/sh/sh-c.c : Likewise.
6141         * config/sh/sh-mem.cc : Likewise.
6142         * config/sh/sh.c : Likewise.
6143         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
6144         * config/sh/sh_treg_combine.cc : Likewise.
6145         * config/sol2-c.c : Likewise.
6146         * config/sol2-cxx.c : Likewise.
6147         * config/sol2-stubs.c : Likewise.
6148         * config/sol2.c : Likewise.
6149         * config/sparc/sparc-c.c : Likewise.
6150         * config/sparc/sparc.c : Likewise.
6151         * config/spu/spu-c.c : Likewise.
6152         * config/spu/spu.c : Likewise.
6153         * config/stormy16/stormy16.c : Likewise.
6154         * config/tilegx/mul-tables.c : Likewise.
6155         * config/tilegx/tilegx-c.c : Likewise.
6156         * config/tilegx/tilegx.c : Likewise.
6157         * config/tilepro/mul-tables.c : Likewise.
6158         * config/tilepro/tilepro-c.c : Likewise.
6159         * config/tilepro/tilepro.c : Likewise.
6160         * config/v850/v850-c.c : Likewise.
6161         * config/v850/v850.c : Likewise.
6162         * config/vax/vax.c : Likewise.
6163         * config/visium/visium.c : Likewise.
6164         * config/vms/vms-c.c : Likewise.
6165         * config/vms/vms.c : Likewise.
6166         * config/vxworks.c : Likewise.
6167         * config/winnt-c.c : Likewise.
6168         * config/xtensa/xtensa.c : Likewise.
6170 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
6172         PR lto/65378
6173         * ipa-utils.h (warn_types_mismatch): Update prototype.
6174         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
6175         parameters.
6176         (type_mismatch_p): New function.
6177         (warn_types_mismatch): Reorg to work better on non-C++ types.
6178         (odr_types_equivalent_p): Add loc1/loc2 parameters.
6179         (add_type_duplicate): Update.
6181 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6183         PR rtl-optimization/66444
6184         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
6185         call_used_regs.
6187 2015-06-08  Richard Biener  <rguenther@suse.de>
6189         PR tree-optimization/66422
6190         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
6191         block after inserted gcc_unreachable.
6193 2015-06-08  Nick Clifton  <nickc@redhat.com>
6195         * config/rx/rx.c (rx_function_value): Do not promote vector types.
6196         (rx_promote_function_mode): Likewise.
6197         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
6199 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
6201         * genattrtab.c (insn_alternatives): Change type from int *
6202         to uint64_t *.
6203         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
6204         (get_attr_value): Change type of num_alt to uint64_t.
6205         (compute_alternative_mask): Change return type from
6206         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
6207         (make_alternative_compare, mk_attr_alt): Change argument type
6208         from int to uint64_t.
6209         (simplify_test_exp): Change type of i from int to uint64_t.
6210         Shift ((uint64_t) 1) instead of 1 up.
6211         (main): Adjust oballocvec first argument from int to uint64_t.
6212         Shift ((uint64_t) 1) instead of 1 up.
6214 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6216         PR other/65366
6217         * gdbhooks.py: Import sys.
6218         (intptr): New function.  Replace int(...) by intptr(...).
6220 2015-06-08  Richard Biener  <rguenther@suse.de>
6222         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
6223         adjustment for gaps at the end of a SLP load group properly.
6224         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
6225         all permutations we can generate.
6226         (vect_transform_slp_perm_load): Use the correct group-size.
6228 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
6230         * genmatch.c (expr::gen_transform): For conditions, guess the type
6231         from the second operand.
6233 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6235         PR tree-optimization/66442
6236         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
6237         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
6238         if the loop latch is not a singleton.  Use
6239         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
6241 2015-06-08  Marek Polacek  <polacek@redhat.com>
6243         PR sanitizer/66452
6244         * toplev.c (check_global_declaration): Don't warn about artificial
6245         decls.
6247 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6249         PR tree-optimization/66436
6250         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
6251         dump file.
6252         * gimplify.c: Add tree-dump.h include.
6253         (gimplify_function_tree): Dump function to gimple dump file.
6254         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
6255         dump file.
6257 2015-06-08  Tom de Vries  <tom@codesourcery.com>
6259         PR tree-optimization/66435
6260         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
6261         function.
6263 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
6265         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
6266         of ptr_type_node to not be ptr_to_node.
6267         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
6268         TREE_TYPE of pointers.
6269         * gimple-expr.c (useless_type_conversion): Reorder the check for
6270         function pointers and TYPE_CANONICAL.
6272 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
6274         PR bootstrap/66319
6275         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
6276         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
6277         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
6278         later.
6279         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
6280         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
6281         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
6282         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
6283         and non iso if unix2003.
6285 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
6287         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
6289 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
6291         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
6292         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
6293         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
6294         except.c, final.c, function.c, gcse-common.c, genemit.c,
6295         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
6296         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
6297         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
6298         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
6299         more derived ones.
6301 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
6303         * combine.c (combine_split_insns): Remove cast.
6304         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
6305         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
6306         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
6307         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
6308         * genemit.c (gen_split): Change return type of generated functions to
6309         rtx_insn.
6310         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
6311         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
6312         gen_peephole2_* functions.
6313         (print_subroutine, main): Likewise.
6314         * recog.c (peephole2_optimize): Remove cast.
6315         (peep2_next_insn): Promote return type to rtx_insn.
6316         * recog.h (peep2_next_insn): Fix prototype.
6317         * rtl.h (try_split, split_insns): Likewise.
6319 2015-06-06  DJ Delorie  <dj@redhat.com>
6321         * config/msp430/msp430.c (msp430_asm_integer): Support addition
6322         and subtraction too.
6324 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6326         PR target/66410
6327         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
6328         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
6329         instead of Snd.  Disparage Sid/z alternative with '^'.
6331 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
6333         * dwarf2out.c: Remove deferred_locations*.
6334         (dwarf2_debug_hooks): Add early_finish hook.
6335         Remove global_decl hook.
6336         Add early_global_decl and late_global_decl hook.
6337         New global early_dwarf.
6338         New structure set_early_dwarf.
6339         (output_die): Indicate whether a DIE was generated early
6340         when generating assembly with -dA.
6341         (struct limbo_die_struct): Document created_for field.
6342         Remove file_table_last_lookup.
6343         (remove_AT): Return TRUE if successful.
6344         (remove_child_TAG): Clear die_parent.
6345         (reparent_child): New function abstracted from...
6346         (splice_child_die): ...here.
6347         (new_die): ICE if a DIE ends up in limbo too late.
6348         (check_die): New.
6349         (defer_location): Remove.
6350         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
6351         (fill_variable_array_bounds): New.
6352         (decl_start_label): Call fill_variable_array_bounds.
6353         (gen_formal_parameter_die): Rewrite to reuse previously generated
6354         DIEs.
6355         (gen_subprogram_die): Same.
6356         (gen_variable_die): Same.
6357         (gen_const_die): Same.
6358         (gen_label_die): Same.
6359         (gen_lexical_block_die): Same.
6360         (decl_will_get_specification_p): New.
6361         (local_function_static): New.
6362         (gen_struct_or_union_type_die): Fill in variable-length fields.
6363         (gen_typedef_die): Fill in variable-length typedefs.
6364         (gen_tagged_type_die): Gracefully return on error_mark_node.
6365         Handle re-entrancy.
6366         (gen_type_die_with_usage): Handle variable-length types.
6367         Remove duplicate code for ARRAY_TYPE case.
6368         (process_scope_var): Only process imported modules during early
6369         dwarf.
6370         (dwarf2out_early_global_decl): New.
6371         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
6372         (dwarf2out_type_decl): Set early_dwarf while calling
6373         dwarf2out_decl.
6374         (dwarf2out_decl): Verify that we did not recreate a previously
6375         generated DIE.
6376         Do not return on DECL_EXTERNALs in VAR_DECLs.
6377         Abstract some code to local_function_static.
6378         (lookup_filename): Remove use of file_table_last_lookup.
6379         Gracefully exit on missing file_name.
6380         (dwarf2out_finish): Verify limbo list.
6381         Remove deferred_locations_list use.
6382         Move deferred_asm_name and limbo flushing to...
6383         (dwarf2out_early_finish): ...here.  New.
6384         (dwarf2out_c_finalize): Remove set of deferred_location_list,
6385         deferred_asm_name, and file_table_last_lookup.
6386         * cgraph.h (referred_to_p): Add default argument.
6387         * cgraphunit.c (referred_to_p): Add and handle include_self
6388         argument.
6389         (analyze_functions): Add first_time argument.
6390         Call check_global_declaration for all symbols.
6391         Call late_global_decl for nodes for moribund nodes.
6392         (finalize_compilation_unit): Add new argument to
6393         analyze_functions.
6394         Call early_global_decl for functions.
6395         Call early_finish debug hook.
6396         * dbxout.c (dbxout_early_global_decl): New.
6397         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
6398         (dbx_debug_hooks): Add new hooks.
6399         (xcoff_debug_hooks): Same.
6400         * debug.c (do_nothing_debug_hooks): Add early_finish field.
6401         Add early and late debug hooks.
6402         Remove global_decl hook.
6403         * debug.h (struct gcc_debug_hooks): Add early_finish,
6404         early_global_decl, and late_global_decl fields.
6405         Remove global_decl field.
6406         Document gcc_debug_hooks.
6407         * gengtype.c (output_typename): Remove.
6408         * godump.c (go_early_global_decl): New.
6409         (go_late_global_decl): New.
6410         (go_global_decl): Remove.
6411         (dump_go_spec_init): Remove global_decl.  Add
6412         {early,late}_global_decl.
6413         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
6414         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
6415         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
6416         (write_global_declarations): Remove.
6417         (global_decl_processing): New.
6418         * langhooks.h (struct lang_hooks_for_decls): Remove
6419         final_write_globals field.
6420         Add post_compilation_parsing_cleanups field.
6421         * passes.c (rest_of_decl_compilation): Call early_global_decl.
6422         * sdbout.c: Add early and late_global_decl hooks.  Remove
6423         sdbout_global_decl hook.
6424         Add early_finish field for sdb_debug_hooks.
6425         (sdbout_global_decl): Remove.
6426         (sdbout_early_global_decl): New.
6427         (sdbout_late_global_decl): New.
6428         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
6429         * toplev.c (check_global_declaration): Rename from
6430         check_global_declaration_1.
6431         Adapt to use symtab infrastructure.
6432         (check_global_declarations): Remove.
6433         (emit_debug_global_declarations): Remove.
6434         (compile_file): Remove call to final_write_globals langhook.
6435         Run the actual compilation process.
6436         Perform any post compilation parser cleanups.
6437         Generate late debug info.
6438         * toplev.h (check_global_declaration): New.
6439         (check_global_declaration_1): Remove.
6440         (check_global_declarations): Remove.
6441         (write_global_declarations): Remove.
6442         (emit_debug_global_declarations): Remove.
6443         (global_decl_processing): New.
6444         * tree-core.h (struct tree_block): Add DIE field.
6445         * tree.h (BLOCK_DIE): New.
6446         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
6447         throughout.
6448         (vmsdbgout_early_global_decl): New.
6449         (vmsdbgout_late_global_decl): New.
6450         Add early_finish debug hook field to vmsdbg_debug_hooks.
6451         Remove vmsdbgout_decl to vmsdbgout_function_decl.
6452         Add early and late_global_decl debug hooks.
6454 2015-06-05  Julian Brown  <julian@codesourcery.com>
6455             Sandra Loosemore  <sandra@codesourcery.com>
6457         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
6458         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
6459         to print-sysroot-suffix.sh script.
6461 2015-06-05  Tom de Vries  <tom@codesourcery.com>
6463         merge from gomp4 branch:
6464         2015-05-28  Tom de Vries  <tom@codesourcery.com>
6466         PR tree-optimization/65443
6467         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
6468         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
6469         (try_transform_to_exit_first_loop_alt): New function.
6470         (transform_to_exit_first_loop): Use
6471         try_transform_to_exit_first_loop_alt.
6473 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
6475         * builtins.c (expand_builtin_atomic_compare_exchange): Call
6476         emit_cmp_and_jump_insns with the mode of target.
6478 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6480         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
6482 2015-06-04  DJ Delorie  <dj@redhat.com>
6484         * config/msp430/msp430.md (movsi_s): New.  Special case for
6485         storing a 20-bit symbol into a 32-bit register.
6486         * config/msp430/msp430.c (msp430_subreg): Add support for it.
6487         * config/msp430/predicates.md (msp430_symbol_operand): New.
6489 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
6491         * c-family/c-common.c (noplt): New attribute.
6492         (handle_noplt_attribute): New handler.
6493         * calls.c (prepare_call_address): Check for noplt
6494         attribute.
6495         * config/i386/i386.c (ix86_expand_call): Check
6496         for noplt attribute.
6497         (ix86_nopic_noplt_attribute_p): New function.
6498         (ix86_output_call_insn): Output indirect call for non-pic
6499         no plt calls.
6500         * doc/extend.texi (noplt): Document new attribute.
6501         * doc/invoke.texi: Document new attribute.
6503 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
6505         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
6506         real.h, and fixed-value.h when included in host source files.
6507         * double-int.h: Remove redundant #includes listed above.
6508         * fixed-value.h: Likewise.
6509         * real.h: Likewise.
6510         * wide-int.h: Likewise.
6511         * inchash.h: Likewise.
6512         * rtl.h: Add some include files When included from a generator file.
6513         * target.h: Remove wide-int.h and insn-modes.h from the include list.
6514         * internal-fn.h: Don't include coretypes.h.
6515         * alias.c: Adjust includes for restructured coretypes.h.
6516         * asan.c: Likewise.
6517         * attribs.c: Likewise.
6518         * auto-inc-dec.c: Likewise.
6519         * auto-profile.c: Likewise.
6520         * bb-reorder.c: Likewise.
6521         * bt-load.c: Likewise.
6522         * builtins.c: Likewise.
6523         * caller-save.c: Likewise.
6524         * calls.c: Likewise.
6525         * ccmp.c: Likewise.
6526         * cfg.c: Likewise.
6527         * cfganal.c: Likewise.
6528         * cfgbuild.c: Likewise.
6529         * cfgcleanup.c: Likewise.
6530         * cfgexpand.c: Likewise.
6531         * cfghooks.c: Likewise.
6532         * cfgloop.c: Likewise.
6533         * cfgloop.h: Likewise.
6534         * cfgloopanal.c: Likewise.
6535         * cfgloopmanip.c: Likewise.
6536         * cfgrtl.c: Likewise.
6537         * cgraph.c: Likewise.
6538         * cgraphbuild.c: Likewise.
6539         * cgraphclones.c: Likewise.
6540         * cgraphunit.c: Likewise.
6541         * cilk-common.c: Likewise.
6542         * combine-stack-adj.c: Likewise.
6543         * combine.c: Likewise.
6544         * compare-elim.c: Likewise.
6545         * convert.c: Likewise.
6546         * coverage.c: Likewise.
6547         * cppbuiltin.c: Likewise.
6548         * cprop.c: Likewise.
6549         * cse.c: Likewise.
6550         * cselib.c: Likewise.
6551         * data-streamer-in.c: Likewise.
6552         * data-streamer-out.c: Likewise.
6553         * data-streamer.c: Likewise.
6554         * dbxout.c: Likewise.
6555         * dce.c: Likewise.
6556         * ddg.c: Likewise.
6557         * debug.c: Likewise.
6558         * df-core.c: Likewise.
6559         * df-problems.c: Likewise.
6560         * df-scan.c: Likewise.
6561         * df.h: Likewise.
6562         * dfp.c: Likewise.
6563         * dojump.c: Likewise.
6564         * dominance.c: Likewise.
6565         * domwalk.c: Likewise.
6566         * double-int.c: Likewise.
6567         * dse.c: Likewise.
6568         * dumpfile.c: Likewise.
6569         * dwarf2asm.c: Likewise.
6570         * dwarf2cfi.c: Likewise.
6571         * dwarf2out.c: Likewise.
6572         * dwarf2out.h: Likewise.
6573         * emit-rtl.c: Likewise.
6574         * et-forest.c: Likewise.
6575         * except.c: Likewise.
6576         * explow.c: Likewise.
6577         * expmed.c: Likewise.
6578         * expr.c: Likewise.
6579         * final.c: Likewise.
6580         * fixed-value.c: Likewise.
6581         * fold-const.c: Likewise.
6582         * function.c: Likewise.
6583         * fwprop.c: Likewise.
6584         * gcc-plugin.h: Likewise.
6585         * gcse.c: Likewise.
6586         * generic-match-head.c: Likewise.
6587         * ggc-page.c: Likewise.
6588         * gimple-builder.c: Likewise.
6589         * gimple-expr.c: Likewise.
6590         * gimple-fold.c: Likewise.
6591         * gimple-iterator.c: Likewise.
6592         * gimple-low.c: Likewise.
6593         * gimple-match-head.c: Likewise.
6594         * gimple-pretty-print.c: Likewise.
6595         * gimple-ssa-isolate-paths.c: Likewise.
6596         * gimple-ssa-strength-reduction.c: Likewise.
6597         * gimple-streamer-in.c: Likewise.
6598         * gimple-streamer-out.c: Likewise.
6599         * gimple-streamer.h: Likewise.
6600         * gimple-walk.c: Likewise.
6601         * gimple.c: Likewise.
6602         * gimplify-me.c: Likewise.
6603         * gimplify.c: Likewise.
6604         * godump.c: Likewise.
6605         * graph.c: Likewise.
6606         * graphite-blocking.c: Likewise.
6607         * graphite-dependences.c: Likewise.
6608         * graphite-interchange.c: Likewise.
6609         * graphite-isl-ast-to-gimple.c: Likewise.
6610         * graphite-optimize-isl.c: Likewise.
6611         * graphite-poly.c: Likewise.
6612         * graphite-scop-detection.c: Likewise.
6613         * graphite-sese-to-poly.c: Likewise.
6614         * graphite.c: Likewise.
6615         * haifa-sched.c: Likewise.
6616         * hooks.h: Likewise.
6617         * hw-doloop.c: Likewise.
6618         * ifcvt.c: Likewise.
6619         * incpath.c: Likewise.
6620         * init-regs.c: Likewise.
6621         * internal-fn.c: Likewise.
6622         * ipa-chkp.c: Likewise.
6623         * ipa-comdats.c: Likewise.
6624         * ipa-cp.c: Likewise.
6625         * ipa-devirt.c: Likewise.
6626         * ipa-icf-gimple.c: Likewise.
6627         * ipa-icf.c: Likewise.
6628         * ipa-inline-analysis.c: Likewise.
6629         * ipa-inline-transform.c: Likewise.
6630         * ipa-inline.c: Likewise.
6631         * ipa-polymorphic-call.c: Likewise.
6632         * ipa-profile.c: Likewise.
6633         * ipa-prop.c: Likewise.
6634         * ipa-pure-const.c: Likewise.
6635         * ipa-ref.c: Likewise.
6636         * ipa-reference.c: Likewise.
6637         * ipa-split.c: Likewise.
6638         * ipa-utils.c: Likewise.
6639         * ipa-visibility.c: Likewise.
6640         * ipa.c: Likewise.
6641         * ira-build.c: Likewise.
6642         * ira-color.c: Likewise.
6643         * ira-conflicts.c: Likewise.
6644         * ira-costs.c: Likewise.
6645         * ira-emit.c: Likewise.
6646         * ira-lives.c: Likewise.
6647         * ira.c: Likewise.
6648         * jump.c: Likewise.
6649         * langhooks.c: Likewise.
6650         * lcm.c: Likewise.
6651         * loop-doloop.c: Likewise.
6652         * loop-init.c: Likewise.
6653         * loop-invariant.c: Likewise.
6654         * loop-iv.c: Likewise.
6655         * loop-unroll.c: Likewise.
6656         * lower-subreg.c: Likewise.
6657         * lra-assigns.c: Likewise.
6658         * lra-coalesce.c: Likewise.
6659         * lra-constraints.c: Likewise.
6660         * lra-eliminations.c: Likewise.
6661         * lra-lives.c: Likewise.
6662         * lra-remat.c: Likewise.
6663         * lra-spills.c: Likewise.
6664         * lra.c: Likewise.
6665         * lto-cgraph.c: Likewise.
6666         * lto-compress.c: Likewise.
6667         * lto-opts.c: Likewise.
6668         * lto-section-in.c: Likewise.
6669         * lto-section-out.c: Likewise.
6670         * lto-streamer-in.c: Likewise.
6671         * lto-streamer-out.c: Likewise.
6672         * lto-streamer.c: Likewise.
6673         * mcf.c: Likewise.
6674         * mode-switching.c: Likewise.
6675         * modulo-sched.c: Likewise.
6676         * omega.c: Likewise.
6677         * omp-low.c: Likewise.
6678         * optabs.c: Likewise.
6679         * opts-global.c: Likewise.
6680         * passes.c: Likewise.
6681         * plugin.c: Likewise.
6682         * postreload-gcse.c: Likewise.
6683         * postreload.c: Likewise.
6684         * predict.c: Likewise.
6685         * print-rtl.c: Likewise.
6686         * print-tree.c: Likewise.
6687         * profile.c: Likewise.
6688         * real.c: Likewise.
6689         * realmpfr.c: Likewise.
6690         * realmpfr.h: Likewise.
6691         * recog.c: Likewise.
6692         * ree.c: Likewise.
6693         * reg-stack.c: Likewise.
6694         * regcprop.c: Likewise.
6695         * reginfo.c: Likewise.
6696         * regrename.c: Likewise.
6697         * regs.h: Likewise.
6698         * regstat.c: Likewise.
6699         * reload.c: Likewise.
6700         * reload1.c: Likewise.
6701         * reorg.c: Likewise.
6702         * resource.c: Likewise.
6703         * rtl-chkp.c: Likewise.
6704         * rtlanal.c: Likewise.
6705         * rtlhooks.c: Likewise.
6706         * sanopt.c: Likewise.
6707         * sched-deps.c: Likewise.
6708         * sched-ebb.c: Likewise.
6709         * sched-rgn.c: Likewise.
6710         * sched-vis.c: Likewise.
6711         * sdbout.c: Likewise.
6712         * sel-sched-dump.c: Likewise.
6713         * sel-sched-ir.c: Likewise.
6714         * sel-sched.c: Likewise.
6715         * sese.c: Likewise.
6716         * shrink-wrap.c: Likewise.
6717         * shrink-wrap.h: Likewise.
6718         * simplify-rtx.c: Likewise.
6719         * stack-ptr-mod.c: Likewise.
6720         * statistics.c: Likewise.
6721         * stmt.c: Likewise.
6722         * stor-layout.c: Likewise.
6723         * store-motion.c: Likewise.
6724         * stringpool.c: Likewise.
6725         * symtab.c: Likewise.
6726         * target-globals.c: Likewise.
6727         * targhooks.c: Likewise.
6728         * toplev.c: Likewise.
6729         * tracer.c: Likewise.
6730         * trans-mem.c: Likewise.
6731         * tree-affine.c: Likewise.
6732         * tree-affine.h: Likewise.
6733         * tree-browser.c: Likewise.
6734         * tree-call-cdce.c: Likewise.
6735         * tree-cfg.c: Likewise.
6736         * tree-cfgcleanup.c: Likewise.
6737         * tree-chkp-opt.c: Likewise.
6738         * tree-chkp.c: Likewise.
6739         * tree-chrec.c: Likewise.
6740         * tree-complex.c: Likewise.
6741         * tree-data-ref.c: Likewise.
6742         * tree-dfa.c: Likewise.
6743         * tree-diagnostic.c: Likewise.
6744         * tree-dump.c: Likewise.
6745         * tree-eh.c: Likewise.
6746         * tree-emutls.c: Likewise.
6747         * tree-if-conv.c: Likewise.
6748         * tree-inline.c: Likewise.
6749         * tree-into-ssa.c: Likewise.
6750         * tree-iterator.c: Likewise.
6751         * tree-loop-distribution.c: Likewise.
6752         * tree-nested.c: Likewise.
6753         * tree-nrv.c: Likewise.
6754         * tree-object-size.c: Likewise.
6755         * tree-outof-ssa.c: Likewise.
6756         * tree-parloops.c: Likewise.
6757         * tree-phinodes.c: Likewise.
6758         * tree-predcom.c: Likewise.
6759         * tree-pretty-print.c: Likewise.
6760         * tree-pretty-print.h: Likewise.
6761         * tree-profile.c: Likewise.
6762         * tree-scalar-evolution.c: Likewise.
6763         * tree-sra.c: Likewise.
6764         * tree-ssa-address.c: Likewise.
6765         * tree-ssa-alias.c: Likewise.
6766         * tree-ssa-ccp.c: Likewise.
6767         * tree-ssa-coalesce.c: Likewise.
6768         * tree-ssa-copy.c: Likewise.
6769         * tree-ssa-copyrename.c: Likewise.
6770         * tree-ssa-dce.c: Likewise.
6771         * tree-ssa-dom.c: Likewise.
6772         * tree-ssa-dse.c: Likewise.
6773         * tree-ssa-forwprop.c: Likewise.
6774         * tree-ssa-ifcombine.c: Likewise.
6775         * tree-ssa-live.c: Likewise.
6776         * tree-ssa-loop-ch.c: Likewise.
6777         * tree-ssa-loop-im.c: Likewise.
6778         * tree-ssa-loop-ivcanon.c: Likewise.
6779         * tree-ssa-loop-ivopts.c: Likewise.
6780         * tree-ssa-loop-manip.c: Likewise.
6781         * tree-ssa-loop-niter.c: Likewise.
6782         * tree-ssa-loop-prefetch.c: Likewise.
6783         * tree-ssa-loop-unswitch.c: Likewise.
6784         * tree-ssa-loop.c: Likewise.
6785         * tree-ssa-loop.h: Likewise.
6786         * tree-ssa-math-opts.c: Likewise.
6787         * tree-ssa-operands.c: Likewise.
6788         * tree-ssa-phiopt.c: Likewise.
6789         * tree-ssa-phiprop.c: Likewise.
6790         * tree-ssa-pre.c: Likewise.
6791         * tree-ssa-propagate.c: Likewise.
6792         * tree-ssa-reassoc.c: Likewise.
6793         * tree-ssa-sccvn.c: Likewise.
6794         * tree-ssa-scopedtables.c: Likewise.
6795         * tree-ssa-sink.c: Likewise.
6796         * tree-ssa-strlen.c: Likewise.
6797         * tree-ssa-structalias.c: Likewise.
6798         * tree-ssa-tail-merge.c: Likewise.
6799         * tree-ssa-ter.c: Likewise.
6800         * tree-ssa-threadedge.c: Likewise.
6801         * tree-ssa-threadupdate.c: Likewise.
6802         * tree-ssa-uncprop.c: Likewise.
6803         * tree-ssa-uninit.c: Likewise.
6804         * tree-ssa.c: Likewise.
6805         * tree-ssanames.c: Likewise.
6806         * tree-stdarg.c: Likewise.
6807         * tree-streamer-in.c: Likewise.
6808         * tree-streamer-out.c: Likewise.
6809         * tree-streamer.c: Likewise.
6810         * tree-switch-conversion.c: Likewise.
6811         * tree-tailcall.c: Likewise.
6812         * tree-vect-data-refs.c: Likewise.
6813         * tree-vect-generic.c: Likewise.
6814         * tree-vect-loop-manip.c: Likewise.
6815         * tree-vect-loop.c: Likewise.
6816         * tree-vect-patterns.c: Likewise.
6817         * tree-vect-slp.c: Likewise.
6818         * tree-vect-stmts.c: Likewise.
6819         * tree-vectorizer.c: Likewise.
6820         * tree-vrp.c: Likewise.
6821         * tree.c: Likewise.
6822         * tsan.c: Likewise.
6823         * ubsan.c: Likewise.
6824         * valtrack.c: Likewise.
6825         * value-prof.c: Likewise.
6826         * var-tracking.c: Likewise.
6827         * varasm.c: Likewise.
6828         * varpool.c: Likewise.
6829         * vmsdbgout.c: Likewise.
6830         * vtable-verify.c: Likewise.
6831         * web.c: Likewise.
6832         * wide-int-print.cc: Likewise.
6833         * wide-int-print.h: Likewise.
6834         * wide-int.cc: Likewise.
6835         * xcoffout.c: Likewise.
6836         * config/aarch64/aarch64-builtins.c: Likewise.
6837         * config/aarch64/aarch64.c: Likewise.
6838         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6839         * config/alpha/alpha.c: Likewise.
6840         * config/arc/arc.c: Likewise.
6841         * config/arm/aarch-common.c: Likewise.
6842         * config/arm/arm-builtins.c: Likewise.
6843         * config/arm/arm-c.c: Likewise.
6844         * config/arm/arm.c: Likewise.
6845         * config/avr/avr-c.c: Likewise.
6846         * config/avr/avr-log.c: Likewise.
6847         * config/avr/avr.c: Likewise.
6848         * config/bfin/bfin.c: Likewise.
6849         * config/c6x/c6x.c: Likewise.
6850         * config/cr16/cr16.c: Likewise.
6851         * config/cris/cris.c: Likewise.
6852         * config/darwin-c.c: Likewise.
6853         * config/darwin.c: Likewise.
6854         * config/default-c.c: Likewise.
6855         * config/epiphany/epiphany.c: Likewise.
6856         * config/epiphany/mode-switch-use.c: Likewise.
6857         * config/epiphany/resolve-sw-modes.c: Likewise.
6858         * config/fr30/fr30.c: Likewise.
6859         * config/frv/frv.c: Likewise.
6860         * config/ft32/ft32.c: Likewise.
6861         * config/glibc-c.c: Likewise.
6862         * config/h8300/h8300.c: Likewise.
6863         * config/i386/i386-c.c: Likewise.
6864         * config/i386/i386.c: Likewise.
6865         * config/i386/msformat-c.c: Likewise.
6866         * config/i386/winnt-cxx.c: Likewise.
6867         * config/i386/winnt-stubs.c: Likewise.
6868         * config/i386/winnt.c: Likewise.
6869         * config/ia64/ia64-c.c: Likewise.
6870         * config/ia64/ia64.c: Likewise.
6871         * config/iq2000/iq2000.c: Likewise.
6872         * config/lm32/lm32.c: Likewise.
6873         * config/m32c/m32c-pragma.c: Likewise.
6874         * config/m32c/m32c.c: Likewise.
6875         * config/m32r/m32r.c: Likewise.
6876         * config/m68k/m68k.c: Likewise.
6877         * config/mcore/mcore.c: Likewise.
6878         * config/mep/mep-pragma.c: Likewise.
6879         * config/mep/mep.c: Likewise.
6880         * config/microblaze/microblaze-c.c: Likewise.
6881         * config/microblaze/microblaze.c: Likewise.
6882         * config/mips/mips.c: Likewise.
6883         * config/mmix/mmix.c: Likewise.
6884         * config/mn10300/mn10300.c: Likewise.
6885         * config/moxie/moxie.c: Likewise.
6886         * config/msp430/msp430-c.c: Likewise.
6887         * config/msp430/msp430.c: Likewise.
6888         * config/nds32/nds32-cost.c: Likewise.
6889         * config/nds32/nds32-fp-as-gp.c: Likewise.
6890         * config/nds32/nds32-intrinsic.c: Likewise.
6891         * config/nds32/nds32-isr.c: Likewise.
6892         * config/nds32/nds32-md-auxiliary.c: Likewise.
6893         * config/nds32/nds32-memory-manipulation.c: Likewise.
6894         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6895         * config/nds32/nds32-predicates.c: Likewise.
6896         * config/nds32/nds32.c: Likewise.
6897         * config/nios2/nios2.c: Likewise.
6898         * config/nvptx/nvptx.c: Likewise.
6899         * config/pa/pa.c: Likewise.
6900         * config/pdp11/pdp11.c: Likewise.
6901         * config/rl78/rl78-c.c: Likewise.
6902         * config/rl78/rl78.c: Likewise.
6903         * config/rs6000/rs6000-c.c: Likewise.
6904         * config/rs6000/rs6000.c: Likewise.
6905         * config/rx/rx.c: Likewise.
6906         * config/s390/s390-c.c: Likewise.
6907         * config/s390/s390.c: Likewise.
6908         * config/sh/sh-c.c: Likewise.
6909         * config/sh/sh-mem.cc: Likewise.
6910         * config/sh/sh.c: Likewise.
6911         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6912         * config/sh/sh_treg_combine.cc: Likewise.
6913         * config/sol2-c.c: Likewise.
6914         * config/sol2-cxx.c: Likewise.
6915         * config/sol2-stubs.c: Likewise.
6916         * config/sol2.c: Likewise.
6917         * config/sparc/sparc-c.c: Likewise.
6918         * config/sparc/sparc.c: Likewise.
6919         * config/spu/spu-c.c: Likewise.
6920         * config/spu/spu.c: Likewise.
6921         * config/stormy16/stormy16.c: Likewise.
6922         * config/tilegx/mul-tables.c: Likewise.
6923         * config/tilegx/tilegx-c.c: Likewise.
6924         * config/tilegx/tilegx.c: Likewise.
6925         * config/tilepro/mul-tables.c: Likewise.
6926         * config/tilepro/tilepro-c.c: Likewise.
6927         * config/tilepro/tilepro.c: Likewise.
6928         * config/v850/v850-c.c: Likewise.
6929         * config/v850/v850.c: Likewise.
6930         * config/vax/vax.c: Likewise.
6931         * config/visium/visium.c: Likewise.
6932         * config/vms/vms-c.c: Likewise.
6933         * config/vms/vms.c: Likewise.
6934         * config/vxworks.c: Likewise.
6935         * config/winnt-c.c: Likewise.
6936         * config/xtensa/xtensa.c: Likewise.
6937         * common/config/bfin/bfin-common.c: Likewise.
6939 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
6941         * tree.h (tree_code_for_canonical_type_merging): New function.
6942         * tree.c (gimple_canonical_types_compatible_p): Use
6943         tree_code_for_canonical_type_merging..
6945 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6947         PR c++/66192
6948         PR target/66200
6949         * doc/tm.texi: Regenerate.
6950         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
6951         * target.def (TARGET_RELAXED_ORDERING): Likewise.
6952         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
6953         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
6954         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
6955         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
6956         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
6957         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
6958         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
6960 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6962         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
6963         register fma steering pass.
6964         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
6965         AARCH64_TUNE_FMA_STEERING.
6967 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
6969         * tree.c (verify_type_variant): Verify that type and variant is
6970         compatible.
6971         (gimple_canonical_types_compatible_p): Look for main variants.
6973 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6975         * config.gcc (powerpc*-*-*): Add support for a new configure
6976         option --with-advance-toolchain=<xxx> which overrides using the
6977         default header files, libraries and dynamic linker.
6979         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
6980         specs to support the configure --with-advance-toolchain=<xxx>
6981         option.
6982         (INCLUDE_EXTRA_SPEC): Likewise.
6983         (LINK_OS_EXTRA_SPEC32): Likewise.
6984         (LINK_OK_EXTRA_SPEC64): Likewise.
6985         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
6986         (DYNAMIC_LINKER_PREFIX): Likewise.
6987         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
6988         toolchain support.
6989         (GLIBC_DYNAMIC_LINKER32): Likewise.
6990         (GLIBC_DYNAMIC_LINKER64): Likewise.
6991         (LINK_OS_LINUX_SPEC32): Likewise.
6992         (LINK_OS_LINUX_SPEC64): Likewise.
6994         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
6995         configuration option.
6997 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
6999         PR target/66275
7000         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
7001         to determine current function ABI.
7002         (ix86_function_value_regno_p): Ditto.
7004 2015-06-03  Martin Liska  <mliska@suse.cz>
7006         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
7007         * bitmap.h (struct bitmap_usage): Likewise.
7008         * ggc-common.c (struct ggc_usage): Likewise.
7009         * mem-stats.h (struct mem_location): Likewise.
7010         (struct mem_usage): Likewise.
7011         * vec.c (struct vec_usage): Likewise.
7013 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
7015         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
7016         -Bsymbolic.
7018 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
7020         * doc/plugins.texi (enum plugin_event): New event.
7021         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
7022         and PLUGIN_FINISH_FUNCTION.
7023         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
7024         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
7026 2015-06-03  Richard Biener  <rguenther@suse.de>
7028         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7029         compute GROUP_GAP for the first element.
7030         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
7031         on in-group gaps.
7033 2015-06-03  Nick Clifton  <nickc@redhat.com>
7035         * config/rl78/rl78-real.md: Add peepholes to avoid a register
7036         copy when calling a function.
7037         * config/rl78/rl78.c (need_to_save): Do not push the frame
7038         pointer in an interrupt handler prologue if it is never used.
7040 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7042         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
7044 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
7046         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
7047         reference when cloning alias node.
7049 2015-06-03  Martin Liska  <mliska@suse.cz>
7051         * alloc-pool.h (struct pool_usage): Correct space padding.
7052         * ggc-page.c (ggc_print_statistics): Align columns in a report.
7053         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
7054         * tree.c (dump_tree_statistics): Align columns in a report.
7056 2015-06-03  Martin Liska  <mliska@suse.cz>
7058         * alloc-pool.c (allocate_pool_descriptor): Remove.
7059         (struct pool_output_info): Likewise.
7060         (print_alloc_pool_statistics): Likewise.
7061         (dump_alloc_pool_statistics): Likewise.
7062         * alloc-pool.h (struct pool_usage): New struct.
7063         (pool_allocator::initialize): Change usage of memory statistics
7064         to a new interface.
7065         (pool_allocator::release): Likewise.
7066         (pool_allocator::allocate): Likewise.
7067         (pool_allocator::remove): Likewise.
7068         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
7069         for a pool allocator.
7070         * mem-stats.h (struct mem_location): Add new ctor.
7071         (struct mem_usage): Add counter for number of
7072         instances.
7073         (mem_alloc_description::register_descriptor): New overload of
7074         * mem-stats.h (mem_location::to_string): New function.
7075         * bitmap.h (struct bitmap_usage): Use this new function.
7076         * ggc-common.c (struct ggc_usage): Likewise.
7077         the function.
7079 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
7081         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
7082         of GCC_INSN_FLAGS_H block.
7084 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
7086         * explow.c (plus_constant): Update check after force_const_mem call
7087         to see if the value returned is not a NULL_RTX.
7089 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
7091         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
7092         remove instumentation thunks calling reachable functions.
7093         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
7094         * lto/lto-partition.c (privatize_symbol_name_1): New.
7095         (privatize_symbol_name): Privatize both decl and orig_decl
7096         names for instrumented functions.
7097         * cgraph.c (cgraph_node::verify_node): Add transparent
7098         alias chain check for instrumented node.
7100 2015-06-03  Marek Polacek  <polacek@redhat.com>
7102         PR c/64223
7103         PR c/29358
7104         * tree.c (attribute_value_equal): Handle attribute format.
7105         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
7107 2015-06-03  Richard Biener  <rguenther@suse.de>
7109         PR tree-optimization/63916
7110         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7111         Forward-propagate non-invariant addresses by splicing their
7112         reference ops if the result isn't going to be used by PRE.
7113         (vn_reference_lookup_3): Remove pointless assert.
7115 2015-06-03  Richard Biener  <rguenther@suse.de>
7117         PR tree-optimization/66375
7118         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
7119         add to the evolution before following SSA edges.
7121 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
7123         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
7124         (dump_use, dump_cand, find_induction_variables): Pass new argument
7125         to dump_iv.
7126         (record_use): Preserve the ssa name information in IV.
7128 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
7130         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
7131         NO_MODE_TEST.
7132         (add_mode_tests): Don't add mode tests if the predicate only
7133         accepts scalar constant integers.  Otherwise, allow the mode
7134         of "op" to be VOIDmode if the predicate does accept such integers.
7136 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
7138         PR target/66258
7139         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
7140         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
7141         (aarch64_secondary_reload): Likewise
7142         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
7143         to !TARGET_FLOAT.
7144         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
7145         Likewise.
7147 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
7148             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7150         PR target/65768
7151         * cprop.c (try_replace_reg): Check cost of constants before propagating.
7153 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7155         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
7156         provide access to the IBM extended double floating point mode if
7157         long double is IEEE 128-bit floating point.
7158         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
7159         point if long double is the IBM extended double type.
7161         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
7162         enable adding IEEE 128-bit floating point support.
7163         (-mfloat128-software): Likewise.
7164         (-mfloat128-sw): Likewise.
7166         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
7167         128-bit floating point types to occupy any register if
7168         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
7169         -mfloat128-software is enabled.
7170         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
7171         support.
7172         (rs6000_option_override_internal): Add -mfloat128-* support.
7173         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
7175         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
7176         and float128 type nodes.
7177         (ieee128_float_type_node): Likewise.
7178         (ibm128_float_type_node): Likewise.
7180 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7182         PR target/66136
7183         * config/aarch64/geniterators.sh: Rewrite in awk.
7185 2015-06-02  Martin Liska  <mliska@suse.cz>
7187         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
7188         values to avoid -Wmaybe-uninitialized errors.
7190 2015-06-02  Richard Biener  <rguenther@suse.de>
7192         PR debug/65549
7193         * dwarf2out.c (lookup_context_die): New function.
7194         (resolve_addr): Avoid forcing a full DIE for the
7195         target of a DW_TAG_GNU_call_site during late compilation.
7196         Instead create a stub DIE without a type if we have a
7197         context DIE present.
7199 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
7201         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
7203 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
7205         PR tree-optimization/48052
7206         * cfgloop.h (struct control_iv): New.
7207         (struct loop): New field control_ivs.
7208         * tree-ssa-loop-niter.c : Include "stor-layout.h".
7209         (number_of_iterations_lt): Set no_overflow information.
7210         (number_of_iterations_exit): Init control iv in niter struct.
7211         (record_control_iv): New.
7212         (estimate_numbers_of_iterations_loop): Call record_control_iv.
7213         (loop_exits_before_overflow): New.  Interface factored out of
7214         scev_probably_wraps_p.
7215         (scev_probably_wraps_p): Factor loop niter related code into
7216         loop_exits_before_overflow.
7217         (free_numbers_of_iterations_estimates_loop): Free control ivs.
7218         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
7220 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7222         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
7223         the target doesn't belong to the current function.
7225 2015-06-02  Marek Polacek  <polacek@redhat.com>
7227         PR middle-end/66345
7228         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
7229         get_maxval_strlen does not produce an INTEGER_CST.
7231 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
7233         * config/arc/constraints.md: Use lower-case names in match_code.
7234         * config/mmix/constraints.md: Likewise.
7236 2015-06-02  Richard Biener  <rguenther@suse.de>
7238         PR tree-optimization/65961
7239         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
7240         check and clarify dump message.
7241         (vect_build_slp_tree): If all children are built up from scalars
7242         build up the parent from scalars instead.
7243         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
7245 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7247         PR other/65366
7248         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
7249         instead of print ... .
7251 2015-06-02  Alan Modra  <amodra@gmail.com>
7253         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
7254         2014-08-11 change.
7256 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
7258         PR tree-optimization/52563
7259         PR tree-optimization/62173
7260         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
7261         (alloc_iv, set_iv): New parameter.
7262         (determine_biv_step): Delete.
7263         (find_bivs): Inline original determine_biv_step.  Pass new
7264         argument to set_iv.
7265         (idx_find_step): Use no_overflow information for conversion.
7266         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
7267         resolve_mixers handle folded_casts.
7268         (instantiate_scev_name): Change bool parameter to bool pointer.
7269         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
7270         (instantiate_array_ref, instantiate_scev_not): Ditto.
7271         (instantiate_scev_3, instantiate_scev_2): Ditto.
7272         (instantiate_scev_1, instantiate_scev_r): Ditto.
7273         (instantiate_scev_convert, ): Change parameter.  Pass argument
7274         to chrec_convert_aggressive.
7275         (instantiate_scev): Change argument.
7276         (resolve_mixers): New parameter and set it.
7277         (scev_const_prop): New argument.
7278         * tree-scalar-evolution.h (resolve_mixers): New parameter.
7279         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
7280         of chrec_conert_1.
7281         (chrec_convert): New parameter.  Move definition below.
7282         (chrec_convert_aggressive): New parameter and set it.  Call
7283         convert_affine_scev.
7284         * tree-chrec.h (chrec_convert): New parameter.
7285         (chrec_convert_aggressive): Ditto.
7287 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
7289         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
7290         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
7291         the LHS of a no-return call if its type has variable size.
7292         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
7293         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
7295 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
7297         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
7298         * config.in: Regenerate.
7300 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7302         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7303         consecutive accesses within outer-loop with force_vectorize
7304         for references with zero step in inner-loop.
7306 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
7308         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
7309         rather than from gcc/build directory.
7311 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
7313         PR target/65697
7314         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
7315         for __sync memory models, emit initial loads and final barriers as
7316         appropriate.
7318 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
7320         PR target/65697
7321         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
7322         (aarch64_split_atomic_op): Check for __sync memory models, emit
7323         appropriate initial loads and final barriers.
7325 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
7327         * Makefile.in: Fix gcov dependencies that should
7328         not point to a build folder.
7330 2015-06-01  Richard Biener  <rguenther@suse.de>
7332         Revert
7333         2015-05-29  Richard Biener  <rguenther@suse.de>
7335         PR tree-optimization/66314
7336         * tree-ssa-threadupdate.c (create_block_for_threading): Add
7337         parameter that says which loop the new block belongs to.
7338         (ssa_create_duplicates): Blocks duplicated for the threaded
7339         path belong to the loop of the thread destination.
7341 2015-06-01  Martin Liska  <mliska@suse.cz>
7343         * sched-deps.c: Include pool-alloc.h before
7344         cselib.h header file is included.
7346 2015-06-01  Richard Biener  <rguenther@suse.de>
7348         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
7349         functions.
7351 2015-06-01  Martin Liska  <mliska@suse.cz>
7353         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
7354         a function local variable.
7356 2015-06-01  Martin Liska  <mliska@suse.cz>
7358         * alloc-pool.c (create_alloc_pool): Remove.
7359         (empty_alloc_pool): Likewise.
7360         (free_alloc_pool): Likewise.
7361         (free_alloc_pool_if_empty): Likewise.
7362         (pool_alloc): Likewise.
7363         (pool_free): Likewise.
7364         * alloc-pool.h: Remove old declarations.
7366 2015-06-01  Martin Liska  <mliska@suse.cz>
7368         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
7369         (ira_create_object): Likewise.
7370         (ira_create_allocno): Likewise.
7371         (ira_create_live_range): Likewise.
7372         (copy_live_range): Likewise.
7373         (ira_finish_live_range): Likewise.
7374         (ira_free_allocno_costs): Likewise.
7375         (finish_allocno): Likewise.
7376         (finish_allocnos): Likewise.
7377         (initiate_prefs): Likewise.
7378         (ira_create_pref): Likewise.
7379         (finish_pref): Likewise.
7380         (finish_prefs): Likewise.
7381         (initiate_copies): Likewise.
7382         (ira_create_copy): Likewise.
7383         (finish_copy): Likewise.
7384         (finish_copies): Likewise.
7385         (finish_prefs): Likewise.
7387 2015-06-01  Martin Liska  <mliska@suse.cz>
7389         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
7390         (allocate_and_init_ipcp_value): Likewise.
7391         (ipcp_lattice::add_value): Likewise.
7392         (merge_agg_lats_step): Likewise.
7393         (ipcp_driver): Likewise.
7394         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
7395         (ipa_free_all_structures_after_iinln): Likewise.
7396         * ipa-prop.h: Likewise.
7398 2015-06-01  Martin Liska  <mliska@suse.cz>
7400         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
7401         pool allocator.
7402         (set_hint_predicate): Likewise.
7403         (inline_summary_alloc): Likewise.
7404         (reset_inline_edge_summary): Likewise.
7405         (reset_inline_summary): Likewise.
7406         (set_cond_stmt_execution_predicate): Likewise.
7407         (set_switch_stmt_execution_predicate): Likewise.
7408         (compute_bb_predicates): Likewise.
7409         (estimate_function_body_sizes): Likewise.
7410         (inline_free_summary): Likewise.
7412 2015-06-01  Martin Liska  <mliska@suse.cz>
7414         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
7415         (ipa_edge_duplication_hook): Likewise.
7416         (ipa_free_all_structures_after_ipa_cp): Likewise.
7417         (ipa_free_all_structures_after_iinln): Likewise.
7419 2015-06-01  Martin Liska  <mliska@suse.cz>
7421         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
7422         (ipa_profile_generate_summary): Likewise.
7423         (ipa_profile_read_summary): Likewise.
7424         (ipa_profile): Likewise.
7426 2015-06-01  Martin Liska  <mliska@suse.cz>
7428         * tree-ssa-structalias.c (new_var_info): Use new type-based
7429         pool allocator.
7430         (new_constraint): Likewise.
7431         (init_alias_vars): Likewise.
7432         (delete_points_to_sets): Likewise.
7434 2015-06-01  Martin Liska  <mliska@suse.cz>
7436         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
7437         (free_strinfo): Likewise.
7438         (pass_strlen::execute): Likewise.
7440 2015-06-01  Martin Liska  <mliska@suse.cz>
7442         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
7443         pool allocator.
7444         (vn_reference_insert_pieces): Likewise.
7445         (vn_phi_insert): Likewise.
7446         (visit_reference_op_call): Likewise.
7447         (copy_phi): Likewise.
7448         (copy_reference): Likewise.
7449         (process_scc): Likewise.
7450         (allocate_vn_table): Likewise.
7451         (free_vn_table): Likewise.
7453 2015-06-01  Martin Liska  <mliska@suse.cz>
7455         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
7456         pool allocator.
7457         (add_repeat_to_ops_vec): Likewise.
7458         (get_ops): Likewise.
7459         (maybe_optimize_range_tests): Likewise.
7460         (init_reassoc): Likewise.
7461         (fini_reassoc): Likewise.
7463 2015-06-01  Martin Liska  <mliska@suse.cz>
7465         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
7466         pool allocator.
7467         (bitmap_set_new): Likewise.
7468         (get_or_alloc_expr_for_constant): Likewise.
7469         (get_or_alloc_expr_for): Likewise.
7470         (phi_translate_1): Likewise.
7471         (compute_avail): Likewise.
7472         (init_pre): Likewise.
7473         (fini_pre): Likewise.
7475 2015-06-01  Martin Liska  <mliska@suse.cz>
7477         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
7478         (delete_dep_node): Likewise.
7479         (create_deps_list): Likewise.
7480         (free_deps_list): Likewise.
7481         (sched_deps_init): Likewise.
7482         (sched_deps_finish): Likewise.
7484 2015-06-01  Martin Liska  <mliska@suse.cz>
7486         * regcprop.c (free_debug_insn_changes): Use new type-based
7487         pool allocator.
7488         (replace_oldest_value_reg): Likewise.
7489         (pass_cprop_hardreg::execute): Likewise.
7491 2015-06-01  Martin Liska  <mliska@suse.cz>
7493         * ira-build.c (initiate_cost_vectors): Use new type-based
7494         pool allocator.
7495         (ira_allocate_cost_vector): Likewise.
7496         (ira_free_cost_vector): Likewise.
7497         (finish_cost_vectors): Likewise.
7499 2015-06-01  Martin Liska  <mliska@suse.cz>
7501         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
7502         pool allocator.
7503         (free_sched_pools): Likewise.
7504         * sel-sched-ir.h (_list_alloc): Likewise.
7505         (_list_remove): Likewise.
7507 2015-06-01  Martin Liska  <mliska@suse.cz>
7509         * stmt.c (add_case_node): Use new type-based pool allocator.
7510         (expand_case): Likewise.
7511         (expand_sjlj_dispatch_table): Likewise.
7513 2015-06-01  Martin Liska  <mliska@suse.cz>
7515         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
7516         (free_bb): Likewise.
7517         (pass_cse_reciprocals::execute): Likewise.
7519 2015-06-01  Martin Liska  <mliska@suse.cz>
7521         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
7522         (sra_deinitialize) Likewise.
7523         (create_access_1) Likewise.
7524         (build_accesses_from_assign) Likewise.
7525         (create_artificial_child_access) Likewise.
7527 2015-06-01  Martin Liska  <mliska@suse.cz>
7529         * dse.c (get_group_info):Use new type-based pool allocator.
7530         (dse_step0) Likewise.
7531         (free_store_info) Likewise.
7532         (delete_dead_store_insn) Likewise.
7533         (free_read_records) Likewise.
7534         (record_store) Likewise.
7535         (replace_read) Likewise.
7536         (check_mem_read_rtx) Likewise.
7537         (scan_insn) Likewise.
7538         (dse_step1) Likewise.
7539         (dse_step7) Likewise.
7541 2015-06-01  Martin Liska  <mliska@suse.cz>
7543         * df-scan.c (struct df_scan_problem_data):Use new type-based
7544         pool allocator.
7545         (df_scan_free_internal) Likewise.
7546         (df_scan_alloc) Likewise.
7547         (df_grow_reg_info) Likewise.
7548         (df_free_ref) Likewise.
7549         (df_insn_create_insn_record) Likewise.
7550         (df_mw_hardreg_chain_delete) Likewise.
7551         (df_insn_info_delete) Likewise.
7552         (df_free_collection_rec) Likewise.
7553         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
7554         (df_sort_and_compress_mws) Likewise.
7555         (df_ref_create_structure) Likewise.
7556         (df_ref_record) Likewise.
7558 2015-06-01  Martin Liska  <mliska@suse.cz>
7560         * df-problems.c (df_chain_create):Use new type-based pool allocator.
7561         (df_chain_unlink_1) Likewise.
7562         (df_chain_unlink) Likewise.
7563         (df_chain_remove_problem) Likewise.
7564         (df_chain_alloc) Likewise.
7565         (df_chain_free) Likewise.
7566         * df.h (struct dataflow) Likewise.
7568 2015-06-01  Martin Liska  <mliska@suse.cz>
7570         * cselib.c (new_elt_list):Use new type-based pool allocator.
7571         (new_elt_loc_list) Likewise.
7572         (unchain_one_elt_list) Likewise.
7573         (unchain_one_elt_loc_list) Likewise.
7574         (unchain_one_value) Likewise.
7575         (new_cselib_val) Likewise.
7576         (cselib_init) Likewise.
7577         (cselib_finish) Likewise.
7579 2015-06-01  Martin Liska  <mliska@suse.cz>
7581         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
7582         (sh_reorg) Likewise.
7584 2015-06-01  Martin Liska  <mliska@suse.cz>
7586         * cfg.c (initialize_original_copy_tables):Use new type-based
7587         pool allocator.
7588         (free_original_copy_tables) Likewise.
7589         (copy_original_table_clear) Likewise.
7590         (copy_original_table_set) Likewise.
7592 2015-06-01  Martin Liska  <mliska@suse.cz>
7594         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
7595         pool allocator.
7596         (asan_mem_ref_new) Likewise.
7597         (free_mem_ref_resources) Likewise.
7599 2015-06-01  Martin Liska  <mliska@suse.cz>
7601         * var-tracking.c (variable_htab_free):Use new type-based
7602         pool allocator.
7603         (attrs_list_clear) Likewise.
7604         (attrs_list_insert) Likewise.
7605         (attrs_list_copy) Likewise.
7606         (shared_hash_unshare) Likewise.
7607         (shared_hash_destroy) Likewise.
7608         (unshare_variable) Likewise.
7609         (var_reg_delete_and_set) Likewise.
7610         (var_reg_delete) Likewise.
7611         (var_regno_delete) Likewise.
7612         (drop_overlapping_mem_locs) Likewise.
7613         (variable_union) Likewise.
7614         (insert_into_intersection) Likewise.
7615         (canonicalize_values_star) Likewise.
7616         (variable_merge_over_cur) Likewise.
7617         (dataflow_set_merge) Likewise.
7618         (remove_duplicate_values) Likewise.
7619         (variable_post_merge_new_vals) Likewise.
7620         (dataflow_set_preserve_mem_locs) Likewise.
7621         (dataflow_set_remove_mem_locs) Likewise.
7622         (variable_from_dropped) Likewise.
7623         (variable_was_changed) Likewise.
7624         (set_slot_part) Likewise.
7625         (clobber_slot_part) Likewise.
7626         (delete_slot_part) Likewise.
7627         (loc_exp_insert_dep) Likewise.
7628         (notify_dependents_of_changed_value) Likewise.
7629         (emit_notes_for_differences_1) Likewise.
7630         (vt_emit_notes) Likewise.
7631         (vt_initialize) Likewise.
7632         (vt_finalize) Likewise.
7634 2015-06-01  Martin Liska  <mliska@suse.cz>
7636         * ira-color.c (init_update_cost_records):Use new type-based
7637         pool allocator.
7638         (get_update_cost_record) Likewise.
7639         (free_update_cost_record_list) Likewise.
7640         (finish_update_cost_records) Likewise.
7641         (initiate_cost_update) Likewise.
7643 2015-06-01  Martin Liska  <mliska@suse.cz>
7645         * lra.c (init_insn_regs): Use new type-based pool allocator.
7646         (new_insn_reg) Likewise.
7647         (free_insn_reg) Likewise.
7648         (free_insn_regs) Likewise.
7649         (finish_insn_regs) Likewise.
7650         (init_insn_recog_data) Likewise.
7651         (init_reg_info) Likewise.
7652         (finish_reg_info) Likewise.
7653         (lra_free_copies) Likewise.
7654         (lra_create_copy) Likewise.
7655         (invalidate_insn_data_regno_info) Likewise.
7657 2015-06-01  Martin Liska  <mliska@suse.cz>
7659         * lra-lives.c (free_live_range): Use new type-based pool allocator.
7660         (free_live_range_list) Likewise.
7661         (create_live_range) Likewise.
7662         (copy_live_range) Likewise.
7663         (lra_merge_live_ranges) Likewise.
7664         (remove_some_program_points_and_update_live_ranges) Likewise.
7665         (lra_live_ranges_init) Likewise.
7666         (lra_live_ranges_finish) Likewise.
7668 2015-06-01  Martin Liska  <mliska@suse.cz>
7670         * et-forest.c (et_new_occ): Use new type-based pool allocator.
7671         (et_new_tree): Likewise.
7672         (et_free_tree): Likewise.
7673         (et_free_tree_force): Likewise.
7674         (et_free_pools): Likewise.
7675         (et_split): Likewise.
7677 2015-06-01  Martin Liska  <mliska@suse.cz>
7679         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
7680         to header file.
7681         * alloc-pool.h (pool_allocator::pool_allocator): New function.
7682         (pool_allocator::release): Likewise.
7683         (inline pool_allocator::release_if_empty): Likewise.
7684         (inline pool_allocator::~pool_allocator): Likewise.
7685         (pool_allocator::allocate): Likewise.
7686         (pool_allocator::remove): Likewise.
7688 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
7690         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
7691         in comment.
7693 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
7695         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
7696         to fusible_ops.
7697         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
7698         (arm_macro_fusion_p): Likewise.
7699         (arm_macro_fusion_pair_p): Likewise.
7701 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
7703         * config/aarch64/aarch64-protos.h (tune_params): Rename
7704         fuseable_ops to fusible_ops.
7705         * config/aarch64/aarch64.c (generic_tunings): Rename
7706         fuseable_ops to fusible_ops.
7707         (cortexa53_tunings): Likewise.
7708         (cortexa57_tunings): Likewise.
7709         (thunderx_tunings): Likewise.
7710         (xgene1_tunings): Likewise.
7711         (aarch64_macro_fusion_p): Likewise.
7712         (aarch64_macro_fusion_pair_p): Likewise.
7714 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7716         * config/s390/driver-native.c: New file.
7717         * config/s390/x-native: New file.
7718         * config.host: Add new files for s390.
7719         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
7720         and -march=native
7721         * config.gcc: Likewise.
7722         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
7723         * config/s390/s390-opts.h (enum processor_type): Ditto.
7724         * config/s390/s390.c (s390_option_override): Catch unhandled
7725         PROCESSOR_NATIVE
7727 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
7729         PR target/65527
7730         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
7731         redirection for instrumented calls.
7732         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
7733         (append_compiler_options): Append -fcheck-pointer-bounds.
7734         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
7735         (chkp_redirect_edge): New.
7736         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
7737         (chkp_redirect_edge): New.
7739 2015-06-01  Richard Biener  <rguenther@suse.de>
7741         PR tree-optimization/66280
7742         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
7743         def-use walking.
7745 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7747         * config/aarch64/aarch64.md
7748         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
7749         logic_shift_imm.
7751 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
7753         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
7754         Remove obsolete kludge.
7756 2015-06-01  Richard Biener  <rguenther@suse.de>
7758         * tree-ssa-reassoc.c (get_rank): Simplify.
7760 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
7762         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
7763         * configure: Regenerated.
7765 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
7767         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
7768         issue (add space between string literal and macro).
7769         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
7771 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
7773         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
7774         implict or explicit -fPIE or -fpie.
7776 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
7778         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
7780 2015-05-28  DJ Delorie  <dj@redhat.com>
7782         * expmed.c (extract_bit_field_1): Avoid clobbering a
7783         yet-to-be-used base/index register.
7785 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
7787         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
7788         (alias_stats): Add num_universal.
7789         (alias_set_subset_of): Special case pointers; be ready for NULL
7790         children.
7791         (alias_sets_conflict_p): Special case pointers; be ready for NULL
7792         children.
7793         (init_alias_set_entry): Break out from ...
7794         (record_alias_subset): ... here; propagate new fields;
7795         allocate children only when really needed.
7796         (get_alias_set): Do less generous pointer globbing.
7797         (dump_alias_stats_in_alias_c): Update statistics.
7799 2015-05-30  Alan Modra  <amodra@gmail.com>
7801         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
7802         correct block for use of r12.
7803         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
7805 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7807         PR target/66215
7808         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
7809         with -mhotpatch=.
7811 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
7813         PR tree-optimization/66142
7814         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
7815         virtual phis that feed themselves.
7817 2015-05-29  Richard Biener  <rguenther@suse.de>
7819         PR tree-optimization/66314
7820         * tree-ssa-threadupdate.c (create_block_for_threading): Add
7821         parameter that says which loop the new block belongs to.
7822         (ssa_create_duplicates): Blocks duplicated for the threaded
7823         path belong to the loop of the thread destination.
7825 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7827         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
7828         to cleanup-saved-temps.
7829         * doc/sourcebuild.texi (Clean up generated test files): Expand
7830         introduction.
7831         (dg-keep-saved-temps): Document new proc.
7832         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
7833         cleanup-saved-temps): Remove.
7835 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
7837         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
7838         gcc_AC_CHECK_DECLS.
7839         * configure: Regenerate.
7841 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
7843         * config/nios2/linux.h (CPP_SPEC): Define.
7845 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
7847         * config/microblaze/linux.h (CPP_SPEC): Define.
7849 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
7851         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
7852         -pthread is specified.
7854 2015-05-28  Richard Biener  <rguenther@suse.de>
7856         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
7857         (vect_fixup_scalar_cycles_with_patterns): Likewise.
7858         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
7859         after pattern recog.
7860         (vect_create_epilog_for_reduction): Properly handle reductions
7861         with patterns.
7862         (vectorizable_reduction): Likewise.
7863         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
7864         reduction chains.
7865         (vect_get_constant_vectors): Create the correct number of
7866         initial values for reductions.
7867         (vect_schedule_slp_instance): Handle reduction chains that are
7868         type changing properly.
7869         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
7871 2015-05-28  Richard Biener  <rguenther@suse.de>
7873         PR tree-optimization/66142
7874         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
7875         values better in memcpy destination handling.  Handle non-aliasing
7876         we discover here.
7878 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
7880         PR target/63810
7881         * config/darwin-c.c (version_components): New global enum.
7882         (parse_version, version_as_legacy_macro)
7883         (version_as_modern_macro, macosx_version_as_macro): New functions.
7884         (version_as_macro): Remove.
7885         (darwin_cpp_builtins): Use new function.
7887 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
7889         * builtins.c (expand_builtin_acc_on_device): Mark parameters
7890         with ATTRIBUTE_UNUSED.
7892 2015-05-28  Julian Brown  <julian@codesourcery.com>
7894         PR libgomp/65742
7896         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
7897         sequence for !ACCEL_COMPILER.
7899 2015-05-28  Nick Clifton  <nickc@redhat.com>
7901         * config/rx/rx.c (push_regs): New function.  Extracts code from...
7902         (rx_expand_prologue): ... here.  Use push_regs to push even small
7903         spans of registers.
7904         (pop_regs): New function.
7905         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
7906         registers.
7908 2015-05-28  Richard Biener  <rguenther@suse.de>
7910         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
7911         member.
7912         (SLP_INSTANCE_BODY_COST_VEC): Remove.
7913         (vect_update_slp_costs_according_to_vf): Likewise.
7914         (vect_slp_analyze_operations): Update prototype.
7915         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
7916         vect_update_slp_costs_according_to_vf, adjust.
7917         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
7918         (vect_analyze_slp_cost_1): Likewise.
7919         (vect_analyze_slp_cost): Likewise.  Properly deal with
7920         widening reduction ops.  Commit body costs.
7921         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
7922         cost for loops from here.
7923         (vect_slp_analyze_operations): But do it from here when
7924         the vectorization factor is known and stmts are analyzed.
7925         (vect_bb_vectorization_profitable_p): Simplify.
7926         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
7927         (vect_update_slp_costs_according_to_vf): Remove.
7929 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
7930             H.J. Lu  <hongjiu.lu@intel.com>
7932         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
7933         (BUILD_CFLAGS): Likewise.
7934         (BUILD_CXXFLAGS): Likewise.
7935         (LINKER): Add @NO_PIE_FLAG@.
7936         (BUILD_LDFLAGS): Likewise.
7937         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
7938         --enable-default-pie.
7939         * common.opt (fPIE): Initialize to -1.
7940         (fpie): Likewise.
7941         (no-pie): New option.
7942         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
7943         * configure.ac: Add --enable-default-pie.
7944         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
7945         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
7946         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
7947         * gcc.c (NO_PIE_SPEC): New.
7948         (PIE_SPEC): Likewise.
7949         (NO_FPIE1_SPEC): Likewise.
7950         (FPIE1_SPEC): Likewise.
7951         (NO_FPIE2_SPEC): Likewise.
7952         (FPIE2_SPEC): Likewise.
7953         (NO_FPIE2_SPEC): Likewise.
7954         (FPIE_SPEC): Likewise.
7955         (NO_FPIE_SPEC): Likewise.
7956         (NO_FPIC1_SPEC): Likewise.
7957         (FPIC1_SPEC): Likewise.
7958         (NO_FPIC2_SPEC): Likewise.
7959         (FPIC2_SPEC): Likewise.
7960         (NO_FPIC2_SPEC): Likewise.
7961         (FPIC_SPEC): Likewise.
7962         (NO_FPIC_SPEC): Likewise.
7963         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
7964         (FPIE1_OR_FPIC1_SPEC): Likewise.
7965         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
7966         (FPIE2_OR_FPIC2_SPEC): Likewise.
7967         (NO_FPIE_AND_FPIC_SPEC): Likewise.
7968         (FPIE_OR_FPIC_SPEC): Likewise.
7969         (LD_PIE_SPEC): Likewise.
7970         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
7971         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
7972         * config/darwin.h (PIE_SPEC): Renamed to ...
7973         (DARWIN_PIE_SPEC): This.
7974         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
7975         * config/darwin9.h (PIE_SPEC): Renamed to ...
7976         (DARWIN_PIE_SPEC): This.
7977         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
7978         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
7979         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
7980         FPIE2_OR_FPIC2_SPEC.
7981         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
7982         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
7983         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
7984         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
7985         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
7986         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
7987         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
7988         * config/m32r/m32r.h (ASM_SPEC): Likewise.
7989         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
7990         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7991         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
7992         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
7993         * config/sparc/linux.h (ASM_SPEC): Likewise.
7994         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7995         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
7996         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
7997         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7998         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7999         * config/sparc/sparc.h (ASM_SPEC): Likewise.
8000         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
8001         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
8002         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
8003         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
8004         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
8005         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
8006         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
8007         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
8008         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
8009         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
8010         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
8011         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
8012         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8013         * config/vax/linux.h (ASM_SPEC): Likewise.
8014         * doc/install.texi: Document --enable-default-pie.
8015         * doc/invoke.texi: Document -no-pie.
8016         * config.in: Regenerated.
8017         * configure: Likewise.
8019 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8021         PR rtl-optimization/66168
8022         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
8023         can_move_invariant_reg.
8025 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
8027         PR target/66148
8028         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
8029         REG_EQUAL note when doing insert.
8031         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
8032         instead of "%d" for 'o' operand.
8034 2015-05-27  Nathan Sidwell  <nathan@acm.org>
8036         PR c++/66270
8037         * tree.c (build_pointer_type_for_mode): Canonical type does not
8038         inherit can_alias_all.
8039         (build_reference_type_for_mode): Likewise.
8041 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8043         * expr.h (array_at_struct_end_p): Move to...
8044         (array_ref_element_size): Likewise.
8045         (component_ref_field_offset): Likewise.
8046         * tree.h (array_ref_element_size): ...here.
8047         (array_at_struct_end_p): Likewise.
8048         (component_ref_field_offset): Likewise.
8049         * expr.c (array_ref_element_size): Move to...
8050         (array_ref_low_bound): Likewise.
8051         (array_at_struct_end_p): Likewise.
8052         (array_ref_up_bound): Likewise.
8053         (component_ref_field_offset): Likewise.
8054         * tree.c (array_ref_element_size): ...here.
8055         (array_ref_low_bound): Likewise.
8056         (array_ref_up_bound): Likewise.
8057         (array_at_struct_end_p): Likewise.
8058         (component_ref_field_offset): Likewise.
8060 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
8061             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8063         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
8065 2015-05-27  Jason Merrill  <jason@redhat.com>
8067         PR bootstrap/66304
8068         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
8069         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
8070         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
8072 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
8074         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
8075         is true.
8077         * statistics.c (statistics_fini_pass): Print pass name.
8079 2015-05-27  Richard Biener  <rguenther@suse.de>
8081         PR tree-optimization/66272
8082         Revert parts of
8083         2014-08-15  Richard Biener  <rguenther@suse.de>
8085         PR tree-optimization/62031
8086         * tree-data-ref.c (dr_analyze_indices): Do not set
8087         DR_UNCONSTRAINED_BASE.
8088         (dr_may_alias_p): All indirect accesses have to go the
8089         formerly DR_UNCONSTRAINED_BASE path.
8090         * tree-data-ref.h (struct indices): Remove
8091         unconstrained_base member.
8092         (DR_UNCONSTRAINED_BASE): Remove.
8094 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
8096         * dwarf2out.c: Remove block_map.
8097         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
8098         (gen_lexical_block_die): Same.
8099         (dwarf2out_function_decl): Remove block_map use.
8100         (dwarf2out_c_finalize): Same.
8101         * tree-core.h (struct tree_block): Add die field.
8102         * tree.h (BLOCK_DIE): New.
8104 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8106         PR target/65358
8107         * expr.c (memory_load_overlap): New function.
8108         (emit_push_insn): When pushing partial args to the stack would
8109         clobber the register part load the overlapping part into a pseudo
8110         and put it into the hard reg after pushing.  Change return type
8111         to bool.  Add bool argument.
8112         * expr.h (emit_push_insn): Change return type to bool.
8113         Add bool argument.
8114         * calls.c (expand_call): Cancel sibcall optimization when encountering
8115         partial argument on targets with ARGS_GROW_DOWNWARD and
8116         !STACK_GROWS_DOWNWARD.
8117         (emit_library_call_value_1): Update callsite of emit_push_insn.
8118         (store_one_arg): Likewise.
8120 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
8122         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
8124 2015-05-27  Martin Liska  <mliska@suse.cz>
8126         * Makefile.in: Add additional dependencies related to memory report
8127         enhancement.
8128         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
8129         * bitmap.c (struct bitmap_descriptor_d): Remove.
8130         (struct loc): Likewise.
8131         (struct bitmap_desc_hasher): Likewise.
8132         (bitmap_desc_hasher::hash): Likewise.
8133         (bitmap_desc_hasher::equal): Likewise.
8134         (get_bitmap_descriptor): Likewise.
8135         (bitmap_register): User new memory descriptor API.
8136         (register_overhead): Likewise.
8137         (bitmap_find_bit): Register nsearches and search_iter statistics.
8138         (struct bitmap_output_info): Remove.
8139         (print_statistics): Likewise.
8140         (dump_bitmap_statistics): Use new memory descriptor.
8141         * bitmap.h (struct bitmap_usage): New class.
8142         * genmatch.c: Extend header file inclusion.
8143         * genpreds.c: Likewise.
8144         * ggc-common.c (struct ggc_usage): New class.
8145         (struct ggc_loc_desc_hasher): Remove.
8146         (ggc_loc_desc_hasher::hash): Likewise.
8147         (ggc_loc_desc_hasher::equal): Likewise.
8148         (struct ggc_ptr_hash_entry): Likewise.
8149         (struct ptr_hash_hasher): Likewise.
8150         (ptr_hash_hasher::hash): Likewise.
8151         (ptr_hash_hasher::equal): Likewise.
8152         (make_loc_descriptor): Likewise.
8153         (ggc_prune_ptr): Likewise.
8154         (dump_ggc_loc_statistics): Use new memory descriptor.
8155         (ggc_record_overhead): Likewise.
8156         (ggc_free_overhead): Likewise.
8157         (final_cmp_statistic): Remove.
8158         (cmp_statistic): Likewise.
8159         (ggc_add_statistics): Liekwise.
8160         (ggc_prune_overhead_list): Likewise.
8161         * hash-map-traits.h: New file.
8162         * hash-map.h (struct default_hashmap_traits): Move the traits to a
8163         separate header file.
8164         * hash-set.h: Pass memory statistics info to ctor.
8165         * hash-table.c (void dump_hash_table_loc_statistics): New function.
8166         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
8167         (hash_table::~hash_table): Register memory release operation.
8168         (hash_table::alloc_entries): Handle memory allocation operation.
8169         (hash_table::expand): Likewise.
8170         * inchash.c (iterative_hash_hashval_t): Move implementation to header
8171         file.
8172         (iterative_hash_host_wide_int): Likewise.
8173         * inchash.h (class hash): Likewise.
8174         * mem-stats-traits.h: New file.
8175         * mem-stats.h: New file.
8176         (mem_location): Add new class.
8177         (mem_usage): Likewise.
8178         (mem_alloc_description): Likewise.
8179         * sese.c: Add new header file inclusision.
8180         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
8181         and hash_set.
8182         * tree-sra.c: Add new header file inclusision.
8183         * vec.c (struct vec_descriptor): Remove.
8184         (hash_descriptor): Likewise.
8185         (struct vec_usage): Likewise.
8186         (struct ptr_hash_entry): Likewise.
8187         (hash_ptr): Likewise.
8188         (eq_ptr): Likewise.
8189         (vec_prefix::register_overhead): Use new memory descriptor API.
8190         (vec_prefix::release_overhead): Likewise.
8191         (add_statistics): Remove.
8192         (dump_vec_loc_statistics): Use new memory descriptor API.
8193         * vec.h (struct vec_prefix): Likewise.
8194         (va_heap::reserve): Likewise.
8195         (va_heap::release): Likewise.
8196         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
8198 2015-05-27  Richard Biener  <rguenther@suse.de>
8200         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
8201         earlier and remove ??? comment.
8202         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
8203         and got called from loop analysis bail out.  Always pass the SLP
8204         node to the vectorizable_* functions.
8205         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
8206         the premature SLP check here.
8207         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
8208         detected SLP stmts.
8209         (vect_detect_hybrid_slp_1): Likewise.
8211 2015-05-26  Jeff Law  <law@redhat.com>
8213         * combine.c (find_split_point): Verify that the shift count is a
8214         constant when choosing (plus (ashift ...)) as a split point.
8216         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
8217         No functional changes.
8219 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
8221         * ipa-polymorphic-call.c
8222         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
8223         case when call target is already known.
8225 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
8227         PR target/65979
8228         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
8229         take into account the case that operands[1] and operands[2]
8230         are the same register.
8232 2015-05-26  Michael Matz  <matz@suse.de>
8234         PR middle-end/66251
8236         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
8237         stores.
8238         (vect_create_vectorized_demotion_stmts): Always set
8239         STMT_VINFO_VEC_STMT, also with SLP.
8240         (vectorizable_store): Handle strided group stores.
8242 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8244         PR target/66049
8245         * config/aarch64/aarch64.md
8246         (*adds_shift_imm_<mode>):  New pattern.
8247         (*subs_shift_imm_<mode>):  Likewise.
8248         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
8249         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8250         (*add_uxt<mode>_shift2): Likewise.
8251         (*add_uxtsi_shift2_uxtw): Likewise.
8252         (*sub_uxt<mode>_shift2): Likewise.
8253         (*sub_uxtsi_shift2_uxtw): Likewise.
8255 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
8257         * config/rs6000/constraints.md (Y, U): Use match_test.
8259 2015-05-26  Christian Bruel  <christian.bruel@st.com>
8261         PR target/52144
8262         * config/arm/arm.c (arm_option_check_internal)
8263         (arm_option_params_internal): Check opts->target_flags to set macros.
8264         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
8265         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
8266         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
8267         (builtin_define): Replaced with def_or_undef_macro.
8268         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
8269         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
8270         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
8271         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
8272         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
8273         (TARGET_ARM_FEATURE_LDREX_P)
8274         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
8275         * config/arm/arm-c.c (def_or_undef_macro): New function.
8276         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
8278 2015-05-26  Christian Bruel  <christian.bruel@st.com>
8280         * c-common.h (builtin_define_with_int_value)
8281         (builtin_define_type_sizeof): Declare.
8282         * c-cppbuiltin.c (builtin_define_with_int_value)
8283         (builtin_define_type_sizeof): Externalize.
8284         (builtin_define_std): Cleanup declaration.
8285         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
8286         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
8287         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
8288         (builtin_define, builtin_assert): New macros.
8290 2015-05-26  Richard Biener  <rguenther@suse.de>
8292         PR tree-optimization/66142
8293         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
8294         MEM_REFs for the same base address.
8296 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8298         PR ipa/66181
8299         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
8301 2015-05-26  Jason Merrill  <jason@redhat.com>
8303         * configure.ac: Set CXXFLAGS for ISL test.
8304         * configure: Regenerate.
8306         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
8307         strstr and basename.
8308         * configure: Regenerate.
8310 2015-05-26  Richard Biener  <rguenther@suse.de>
8312         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
8313         X % C -> X & (C - 1) for C being a power-of two to ...
8314         * match.pd: ... patterns.
8316 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
8318         * match.pd (swapped_tcc_comparison): New operator list.
8319         (-A CMP -B): New simplification.
8320         * fold-const.c (fold_comparison): Remove corresponding code.
8322 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8324         * caller-save.c (init_caller_save): Base temporary register numbers
8325         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
8326         * cfgloopanal.c (init_set_costs): Likewise.
8327         * dojump.c (prefer_and_bit_test): Likewise.
8328         * expr.c (init_expr_target): Likewise.
8329         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8330         * lower-subreg.c (init_lower_subreg): Likewise.
8331         * postreload.c (reload_cse_regs_1): Likewise.
8333 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
8335         * gensupport.h (compute_test_codes): Declare.
8336         * gensupport.c (compute_predicate_codes): Rename to...
8337         (compute_test_codes): ...this.  Generalize error message.
8338         (process_define_predicate): Update accordingly.
8339         * genpreds.c (compute_maybe_allows): Delete.
8340         (add_constraint): Use compute_test_codes to determine whether
8341         something can accept a SUBREG, REG or MEM.
8343 2015-05-26  Torvald Riegel  <triegel@redhat.com>
8345         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
8346         'memory model' to align with C++11; fix description of memory orders;
8347         fix a few typos.
8349 2015-05-26  Richard Biener  <rguenther@suse.de>
8351         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
8352         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
8353         detect whether we apply SLP.  Remove call to
8354         vect_update_slp_costs_according_to_vf.
8355         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
8356         vect_update_slp_costs_according_to_vf from here.  Dispatch
8357         to vect_slp_analyze_operations to analyze SLP stmts.
8358         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
8359         unused bb_vec_info parameter, adjust assert.
8360         (vect_slp_analyze_operations): Pass in the slp instance tree
8361         instead of bb_vec_info.
8362         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
8363         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
8365 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
8367         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
8368         Q_REGS.  Expand comment.
8369         (REG_CLASS_NAMES): Ditto.
8370         (REG_CLASS_CONTENTS): Ditto.
8372 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
8374         PR target/66274
8375         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
8376         when LEGACY_INT_REGNO_P is processed.
8378 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
8380         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
8382 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8384         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
8385         register if not marked dead/unused, before return.
8387 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8389         PR lto/66180
8390         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
8391         is set; check for assembler name at LTO time.
8392         (type_in_anonymous_namespace): Remove hacks, check that all
8393         anonymous types are called "<anon>"
8394         (odr_type_p): Simplify; add check for "<anon>"
8395         (odr_subtypes_equivalent): Add odr_type_p check.
8396         * tree.c (need_assembler_name_p): Even anonymous namespace needs
8397         assembler name.
8399 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8401         * ipa-utils.h (method_class_type): Remove.
8402         * cgraphunit.c (walk_polymorphic_call_targets): Use
8403         TYPE_METHOD_BASETYPE.
8404         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
8405         on main variants only.
8406         (method_class_type): Remove.
8407         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
8408         (build_type_inheritance_graph): Likewise.
8409         * ipa-icf.c (sem_function::equals_wpa): Likewise.
8410         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
8411         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
8413 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
8415         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
8416         is_typedef_decl, typedef_variant_p): Constify.
8417         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
8418         is_typedef_decl, typedef_variant_p): Constify.
8420 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8422         * defaults.h (gen_tablejump): New function.
8423         (HAVE_tablejump): Add default value.
8424         * expr.c: Adjust.
8425         * stmt.c: Likewise.
8427 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8429         * defaults.h (gen_store_multiple): New function.
8430         (HAVE_store_multiple): Add default value.
8431         * expr.c (move_block_from_reg): Adjust.
8433 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8435         * defaults.h (gen_load_multiple): New function.
8436         (HAVE_load_multiple): Add default value.
8437         * expr.c (move_block_to_reg): Adjust.
8439 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8441         * defaults.h (gen_mem_signal_fence): New function.
8442         (HAVE_mem_signal_fence): Add default value.
8443         * optabs.c: Adjust.
8445 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8447         * defaults.h (gen_memory_barrier): New function.
8448         (HAVE_memory_barrier): Add default value.
8449         * optabs.c: Adjust.
8451 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8453         * defaults.h (gen_mem_thread_fence): New function.
8454         (HAVE_mem_thread_fence): Add default definition.
8455         * optabs.c: Adjust.
8457 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8459         * combine.c (find_split_point): Check the value of HAVE_lo_sum
8460         instead of if it is defined.
8461         (combine_simplify_rtx): Likewise.
8462         * lra-constraints.c (process_address_1): Likewise.
8463         * config/darwin.c: Adjust.
8464         * genconfig.c (main): Always define HAVE_lo_sum.
8466 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8468         * genmatch.c (parser::parse_operation): Reject expanding
8469         operator-list inside 'for'.
8471 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8473         * genmatch.c (parser::parse_for): Reject iterator if used as
8474         operator-list.
8476 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8478         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
8479         after end of id-list.
8481 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
8483         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
8484         we do not try to compute canonical type for type that does not need
8485         alias set.
8486         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
8487         FUNCITON_TYPE.
8488         * tree.h (type_with_alias_set_p): New.
8490 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
8492         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
8493         function attributes.
8494         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
8496 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
8498         * Makefile.in (check_gcc_parallelize): Delete.
8499         (lang_checks_parallelized): Update comment.
8501 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
8503         PR rtl-optimization/66237
8504         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
8505         location of an "as_a" cast.
8507 2015-05-22  Jeff Law  <law@redhat.com>
8509         * config/pa/pa.md (non-canonical shift-add insns): Remove.
8510         (peepholes with non-canonical RTL sources): Remove.
8511         (peepholes for indexed stores of FP regs in integer modes): Match and
8512         generate canonical RTL.
8514 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
8516         PR tree-optimization/63387
8517         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
8518         ((x ord x) & (y ord y) -> (x ord y),
8519         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
8520         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
8521         vectors like scalars.
8523 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
8525         * convert.c (convert_to_integer, convert_to_vector): Include the
8526         types in the error message.
8528 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
8530         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
8531         simplifications.
8533 2015-05-22  Jeff Law  <law@redhat.com>
8535         * config/pa/pa.md (integer_indexed_store splitters): Use
8536         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
8537         insns -- adjusting the constant 2nd operand accordingly.
8539         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
8540         (plus (ashift X log2) Y) if it is a split point.
8542         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
8543         out of hppa_legitimize_address to handle both forms of a multiply
8544         by 2, 4 or 8.
8545         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
8546         Always generate the ASHIFT variant as the result is not directly
8547         used in a MEM.  Update comments and refactor slightly to improve
8548         readability.
8550 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8552         PR target/65491
8553         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
8554         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
8555         (aarch64_composite_type_p): Return false if given type and mode are
8556         for a short vector.
8558 2015-05-22  Richard Biener  <rguenther@suse.de>
8560         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
8561         member.
8562         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
8563         patterns when determining whether SLP is pure.
8564         (vect_is_slp_reduction): Remove check for pattern stmts.
8565         (vect_is_simple_reduction_1): Remove dead code.
8566         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
8567         (vect_get_and_check_slp_defs): Pass in the stmt number.
8568         Allow the first def in a reduction to be not a pattern stmt when
8569         the rest of the stmts def are patterns.
8570         (vect_build_slp_tree_1): Allow tcc_expression codes like
8571         SAD_EXPR and DOT_PROD_EXPR.
8572         (vect_build_slp_tree): Adjust.
8573         (vect_analyze_slp): Refactor and move BB vect error message ...
8574         (vect_slp_analyze_bb_1): ... here.
8576 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
8578         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
8579         for CSWTCH temporary.
8581 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8583         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
8584         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
8585         unknown unspecs.
8587 2015-05-22  Richard Biener  <rguenther@suse.de>
8589         PR tree-optimization/66251
8590         * tree-vect-stmts.c (vectorizable_conversion): Properly
8591         set STMT_VINFO_VEC_STMT even for the SLP case.
8593 2015-05-22  Marek Polacek  <polacek@redhat.com>
8595         * doc/extend.texi: Use @pxref instead of @xref.
8597 2015-05-22  hiraditya  <hiraditya@msn.com>
8599         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
8600         redundant if.
8602 2015-05-22  Richard Biener  <rguenther@suse.de>
8604         PR tree-optimization/65701
8605         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8606         Move peeling cost models into one place.  Peel for alignment
8607         for single loads only if an aligned load is cheaper than
8608         an unaligned load.
8610 2015-05-22  Marek Polacek  <polacek@redhat.com>
8612         PR c/47043
8613         * doc/extend.texi (Enumerator Attributes): New section.
8614         Document syntax of enumerator attributes.
8616 2015-05-22  Richard Biener  <rguenther@suse.de>
8618         * tree-vect-loop.c (get_reduction_op): New function.
8619         (vect_model_reduction_cost): Use it, add reduc_index parameter.
8620         Make ready for BB reductions.
8621         (vect_create_epilog_for_reduction): Use get_reduction_op.
8622         (vectorizable_reduction): Init reduc_index to a valid value.
8623         Adjust vect_model_reduction_cost call.
8624         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
8625         operand for reduction defaults.  Add SAD_EXPR support.
8626         Assert we have a neutral op for SLP reductions.
8627         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
8628         walking pattern stmt ops only recurse to SSA names.
8630 2015-05-22  Richard Biener  <rguenther@suse.de>
8632         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
8633         assert with guard, remove check on detected reduction.
8634         (vect_recog_sad_pattern): Likewise.
8635         (vect_recog_widen_sum_pattern): Likewise.
8637 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8639         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
8640         __always_inline__ attribute.
8641         (vaesdq_u8): Likewise.
8642         (vaesmcq_u8): Likewise.
8643         (vaesimcq_u8): Likewise.
8644         (vsha1cq_u32): Likewise.
8645         (vsha1mq_u32): Likewise.
8646         (vsha1pq_u32): Likewise.
8647         (vsha1h_u32): Likewise.
8648         (vsha1su0q_u32): Likewise.
8649         (vsha1su1q_u32): Likewise.
8650         (vsha256hq_u32): Likewise.
8651         (vsha256h2q_u32): Likewise.
8652         (vsha256su0q_u32): Likewise.
8653         (vsha256su1q_u32): Likewise.
8654         (vmull_p64): Likewise.
8655         (vmull_high_p64): Likewise.
8657 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8659         * final.c (final_scan_insn): Don't check HAVE_peephole with the
8660         preprocessor.
8661         * output.h: Likewise.
8662         * genconfig.c (main): Alwways define HAVE_peephole.
8663         * genpeep.c: Don't emit checks of HAVE_peephole.
8665 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8667         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
8668         check HAVE_conditional_move with the preprocessor.
8670 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8672         * genconfig.c (main): Always define HAVE_conditional_move.
8673         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
8674         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
8675         is defined.
8677 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8679         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
8680         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
8681         and FRAME_POINTER_REGNUM with the preprocessor.
8683 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8685         * defaults.h: Add default for STACK_PUSH_CODE.
8686         * expr.c: Don't redefine STACK_PUSH_CODE.
8687         * recog.c: Likewise.
8689 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8691         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
8692         sched-deps.c: Use if instead of preprocessor checks with
8693         STACK_GROWS_DOWNWARD.
8695 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8697         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
8698         is defined.
8699         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
8700         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
8701         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
8702         * doc/tm.texi: Regenerate.
8704 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8706         PR target/66232
8707         * config/i386/constraints.md (Bg): New constraint for GOT memory
8708         operand.
8709         * config/i386/i386.md (*call_got_x32): New pattern.
8710         (*call_value_got_x32): Likewise.
8711         * config/i386/predicates.md (GOT_memory_operand): New predicate.
8713 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
8715         PR tree-optimization/66233
8716         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
8717         Simplify.
8719 2015-05-21  Jeff Law  <law@redhat.com>
8721         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
8722         than MULT for shadd sequences.
8724 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
8726         * alias.c (alias_stats): New static var.
8727         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
8728         (dump_alias_stats_in_alias_c): New function.
8729         * alias.h (dump_alias_stats_in_alias_c): Declare.
8730         * tree-ssa-alias.c (dump_alias_stats): Call it.
8732 2015-05-08  Michael Matz  <matz@suse.de>
8734         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
8735         to strided_p.
8736         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
8737         (STMT_VINFO_STRIDED_P): ... this.
8738         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
8739         (vect_verify_datarefs_alignment): Likewise.
8740         (vect_enhance_data_refs_alignment): Likewise.
8741         (vect_analyze_data_ref_access): Likewise.
8742         (vect_analyze_data_refs): Accept strided stores.
8743         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
8744         (vect_model_load_cost): Adjust for macro rename.
8745         (vectorizable_mask_load_store): Likewise.
8746         (vectorizable_load): Likewise.
8747         (vectorizable_store): Open code strided stores.
8749 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8751         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
8752         Document sqrt_insn.
8754 2015-05-21  Richard Biener  <rguenther@suse.de>
8756         PR c++/66211
8757         * match.pd: Guard pattern optimzing (int)(float)int
8758         conversions to apply only on GIMPLE.
8760 2015-05-21  Jeff Law  <law@redhat.com>
8762         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
8763         multiply-accumulate/shift-add insn generation.
8765 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
8767         PR target/54236
8768         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
8769         operands[1] are the same.
8771 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8773         PR middle-end/66221
8774         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
8775         build_distinct_type_copy to copy bounds.
8777 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
8779         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
8780         Change to unsigned int.
8782 2015-05-20  Jeff Law  <law@redhat.com>
8784         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
8785         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
8786         (pa_shadd_constant_p): Allow constants for shadd insns rather
8787         than valid scaling constants for memory addresses.
8788         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
8789         * config/pa/predicates.md (mem_shadd_operand): New predicate.
8790         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
8791         (shift-add insns using ASHIFT): New patterns.
8793 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
8795         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
8796         feasible.
8797         (fix_up_fall_thru_edges): Likewise.
8798         (fix_crossing_conditional_branches): Likewise. Promote jump targets
8799         from to rtx_insn to rtx_code_label where feasible.
8800         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
8801         gen_move_insn (returned type changed to rtx_insn).
8802         * builtins.c (expand_errno_check): Fix arguments of
8803         do_compare_rtx_and_jump (now expects rtx_code_label).
8804         (expand_builtin_acc_on_device): Likewise.
8805         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
8806         invert_jump (now exprects rtx_jump_insn).
8807         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
8808         (construct_init_block): Use rtx_code_label.
8809         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
8810         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
8811         calling redirect_jump.
8812         (patch_jump_insn): Likewise.
8813         (redirect_branch_edge): Likewise.
8814         (force_nonfallthru_and_redirect): Likewise.
8815         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
8816         when suitable.
8817         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
8818         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
8819         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
8820         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
8821         to store the value retured by gen_label_rtx.
8822         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
8823         rtx_jump_insn.
8824         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
8825         (split_branches): Fix calls of redirect_jump.
8826         * dojump.c (jumpifnot): Promote argument type from rtx to
8827         rtx_code_label.
8828         (jumpifnot_1): Likewise.
8829         (jumpif): Likewise.
8830         (jumpif_1): Likewise.
8831         (do_jump_1): Likewise.
8832         (do_jump): Likewise. Use rtx_code_label when feasible.
8833         (do_jump_by_parts_greater_rtx): Likewise.
8834         (do_jump_by_parts_zero_rtx): Likewise.
8835         (do_jump_by_parts_equality_rtx): Likewise.
8836         (do_compare_rtx_and_jump): Likewise.
8837         * dojump.h: Update function prototypes.
8838         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
8839         returns rtx_insn).
8840         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
8841         rtx_jump_insn.
8842         (emit_label_before): Likewise.
8843         (emit_jump_insn_after_noloc): Likewise.
8844         (emit_jump_insn_after_setloc): Likewise.
8845         (emit_jump_insn_after): Likewise
8846         (emit_jump_insn_before_setloc): Likewise.
8847         (emit_jump_insn_before): Likewise.
8848         (emit_label_before): Promote return type to rtx_code_label.
8849         (emit_label): Likewise.
8850         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
8851         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
8852         gen_move_insn.
8853         (emit_stack_restore): Likewise.
8854         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
8855         (do_cmp_and_jump): Likewise.
8856         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
8857         from rtx to rtx_code_label.
8858         (gen_move_insn_uncast): New function.
8859         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
8860         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
8861         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
8862         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
8863         invert_jump_1 and redirect_jump_1.
8864         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
8865         do_compare_rtx_and_jump.
8866         (expand_addsub_overflow): Likewise.
8867         (expand_neg_overflow): Likewise.
8868         (expand_mul_overflow): Likewise.
8869         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
8870         return value of gen_move_insn.
8871         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
8872         * loop-doloop.c (add_test): Use rtx_code_label.
8873         (doloop_modify): Likewise.
8874         (doloop_optimize): Likewise.
8875         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
8876         * lra-constraints.c (emit_spill_move): Remove cast of value returned
8877         by gen_move_insn.
8878         (inherit_reload_reg): Add cast when calling dump_insn_slim.
8879         (split_reg): Likewise.
8880         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
8881         gen_move_insn.
8882         * optabs.c (expand_binop_directly): Remove casts of values returned by
8883         maybe_gen_insn.
8884         (expand_unop_direct): Likewise.
8885         (expand_abs): Likewise.
8886         (maybe_emit_unop_insn): Likewise.
8887         (maybe_gen_insn): Promote return type to rtx_insn.
8888         * optabs.h: Update prototype of maybe_gen_insn.
8889         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
8890         redundant cast.
8891         * recog.c (struct peep2_insn_data): Promote type of insn field to
8892         rtx_insn.
8893         (peep2_reinit_state): Use NULL instead of NULL_RTX.
8894         (peep2_attempt): Remove casts of insn in peep2_insn_data.
8895         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
8896         * recog.h (struct insn_gen_fn): Promote return types of function
8897         pointers and operator ().from rtx to rtx_insn.
8898         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
8899         (fill_eager_delay_slots): Likewise.
8900         (relax_delay_slots): Likewise.
8901         (make_return_insns): Likewise.
8902         (dbr_schedule): Likewise.
8903         (optimize_skips): Likewise.
8904         (reorg_redirect_jump): Likewise.
8905         (fill_slots_from_thread): Likewise.
8906         * reorg.h: Update prototypes.
8907         * resource.c (find_dead_or_set_registers): Use dyn_cast to
8908         rtx_jump_insn instead of check.  Use it's jump_target method.
8909         * rtl.h (rtx_jump_insn::jump_label): Define new method.
8910         (rtx_jump_insn::jump_target): Define new method.
8911         (rtx_jump_insn::set_jump_target): Define new method.
8912         * rtlanal.c (tablejump_p): Promote type of one local variable.
8913         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
8914         (sched_analyze_insn): Likewise.
8915         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
8916         (print_insn): Likewise.
8917         * stmt.c (label_rtx): Promote return type to rtx_insn.
8918         (force_label_rtx): Likewise.
8919         (jump_target_rtx): Define new function.
8920         (expand_label): Use it, get rid of one cast.
8921         (expand_naked_return): Promote rtx to rtx_code_label.
8922         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
8923         (expand_case): Use rtx_code_label instread of rtx where feasible.
8924         (expand_sjlj_dispatch_table): Likewise.
8925         (emit_case_nodes): Likewise.
8926         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
8927         * store-motion.c (insert_store): Make use of new return type of
8928         gen_move_insn and remove a cast.
8929         (replace_store_insn): Likewise.
8931 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
8933         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
8934         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
8936 2015-05-20  Jeff Law  <law@redhat.com>
8938         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
8939         dispose of the jump thread path when the jump threading
8940         opportunity is cancelled.
8942 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8944         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
8945         when printing the caret character.
8947 2015-05-20  Marek Polacek  <polacek@redhat.com>
8949         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
8951 2015-05-20  Marek Polacek  <polacek@redhat.com>
8953         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
8954         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
8955         * gimple-fold.c (canonicalize_bool): Likewise.
8956         (same_bool_result_p): Likewise.
8957         * tree-if-conv.c (parse_predicate): Likewise.
8959 2015-05-20  Marek Polacek  <polacek@redhat.com>
8961         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
8962         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
8964 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8966         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
8967         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
8968         values.
8970 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
8972         * config/mips/mips.h (micromips_globals): Declare.
8974 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
8976         * timevar.def (TV_INITIALIZE_RTL): New.
8977         * toplev.c (initialize_rtl): Use an auto_timevar to account this
8978         function's time to TV_INITIALIZE_RTL.
8980 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
8982         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
8983         gimple_build_nop calls.
8984         (chkp_find_bounds_for_elem): Likewise.
8985         (chkp_get_zero_bounds): Likewise.
8986         (chkp_get_none_bounds): Likewise.
8987         (chkp_get_bounds_by_definition): Likewise.
8988         (chkp_generate_extern_var_bounds): Likewise.
8989         (chkp_get_bounds_for_decl_addr): Likewise.
8990         (chkp_get_bounds_for_string_cst): Likewise.
8992 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
8994         PR tree-optimization/65447
8995         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
8996         (dump_use, dump_uses): Support to dump sub use.
8997         (record_use): New parameters to support sub use.  Remove call to
8998         dump_use.
8999         (record_sub_use, record_group_use): New functions.
9000         (compute_max_addr_offset, split_all_small_groups): New functions.
9001         (group_address_uses, rewrite_use_address): New functions.
9002         (strip_offset): New declaration.
9003         (find_interesting_uses_address): Call record_group_use.
9004         (add_candidate): New assertion.
9005         (infinite_cost_p): Move definition forward.
9006         (add_costs): Check INFTY cost and return immediately.
9007         (get_computation_cost_at): Clear setup cost and dependent bitmap
9008         for sub uses.
9009         (determine_use_iv_cost_address): Compute cost for sub uses.
9010         (rewrite_use_address_1): Rename from old rewrite_use_address.
9011         (free_loop_data): Free sub uses.
9012         (tree_ssa_iv_optimize_loop): Call group_address_uses.
9014 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9015             Jim Wilson  <jim.wilson@linaro.org>
9017         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
9018         new  fields loadv and storev.
9019         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
9020         Initialize loadv and storev.
9021         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
9022         (cortexa53_extra_costs): Likewise.
9023         (cortexa57_extra_costs): Likewise.
9024         (xgene1_extra_costs): Likewise.
9025         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
9026         rtx_costs.
9028 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9030         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
9031          storev.
9032         (cortexa8_extra_costs): Likewise.
9033         (cortexa5_extra_costs): Likewise.
9034         (cortexa7_extra_costs): Likewise.
9035         (cortexa12_extra_costs): Likewise.
9036         (cortexa15_extra_costs): Likewise.
9037         (v7m_extra_costs): Likewise.
9039 2015-05-20  Jeff Law  <law@redhat.com>
9041         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
9042         instead of open-coded version.  Also delete the jump thread created
9043         within this function.
9045 2015-05-20  Alan Modra  <amodra@gmail.com>
9047         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
9048         stack adjusting insn.  Formatting.
9049         (rs6000_emit_prologue): Track stack adjusting insn, and use of
9050         r12.  If possible, emit first -fsplit-stack arg pointer insn
9051         before stack adjust.  Don't use r12 to save cr if split-stack.
9053 2015-05-20  Alan Modra  <amodra@gmail.com>
9055         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
9056         Define.
9057         (rs6000_supports_split_stack): New function.
9058         * gcc/config/rs6000/rs6000.c (machine_function): Add
9059         split_stack_arg_pointer.
9060         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
9061         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
9062         rather than virtual_incoming_args_rtx.
9063         (rs6000_va_start): Likewise.
9064         (split_stack_arg_pointer_used_p): New function.
9065         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
9066         (morestack_ref): New var.
9067         (gen_add3_const, rs6000_expand_split_stack_prologue,
9068         rs6000_internal_arg_pointer, rs6000_live_on_entry,
9069         rs6000_split_stack_space_check): New functions.
9070         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
9071         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
9072         (UNSPECV_SPLIT_STACK_RETURN): Define.
9073         (split_stack_prologue, load_split_stack_limit,
9074         load_split_stack_limit_di, load_split_stack_limit_si,
9075         split_stack_return, split_stack_space_check): New expands and insns.
9076         * gcc/config/rs6000/rs6000-protos.h
9077         (rs6000_expand_split_stack_prologue): Declare.
9078         (rs6000_split_stack_space_check): Declare.
9080 2015-05-20  Alan Modra  <amodra@gmail.com>
9082         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
9083         (direct_return): Test vrsave_size rather than vrsave_mask.
9084         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
9085         (rs6000_emit_epilogue): Likewise.
9087 2015-05-20  Alan Modra  <amodra@gmail.com>
9089         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
9090         when not saving registers.
9091         (debug_stack_info): Adjust to omit printing unused offsets,
9092         as before.
9093         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
9094         expression.
9096 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9098         PR c++/65835
9099         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
9100         value_type to const char *.
9102 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
9104         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
9105         to build a biarch toolchain again.
9107 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
9109         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
9110         or implicit declarations.
9111         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
9112         into it.
9113         (get_odr_type): Check type has linkage before adding bases.
9114         (register_odr_type): Check that type has linkage before adding it.
9115         (type_known_to_have_no_deriavations_p): Rename to ..
9116         (type_known_to_have_no_derivations_p): This one.
9117         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
9118         (type_known_to_have_no_derivations_p): This one.
9119         * ipa-polymorphic-call.c
9120         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
9121         type has linkage.
9123 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9125         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
9126         (layout_type): Use RECORD_OR_UNION_TYPE_P.
9128 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9130         * config/s390/s390.c (s390_vector_bool_type_p): New function.
9131         (s390_invalid_binary_op): New function.
9132         (TARGET_INVALID_BINARY_OP): Define macro.
9134 2015-05-19  David Sherwood  <david.sherwood@arm.com>
9136         * loop-invariant.c (create_new_invariant): Don't calculate address cost
9137         if mode is not a scalar integer.
9138         (get_inv_cost): Increase computational cost for unused invariants.
9140 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9142         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
9143         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
9144         * config/s390/s390-builtin-types.def: New file.
9145         * config/s390/s390-builtins.def: New file.
9146         * config/s390/s390-builtins.h: New file.
9147         * config/s390/s390-c.c: New file.
9148         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
9149         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
9150         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
9151         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
9152         prototypes.
9153         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
9154         Include.
9155         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
9156         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
9157         variable definitions.
9158         (s390_const_operand_ok): New function.
9159         (s390_expand_builtin): Rewrite.
9160         (s390_init_builtins): New function.
9161         (s390_handle_vectorbool_attribute): New function.
9162         (s390_attribute_table): Add s390_vector_bool attribute.
9163         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
9164         (s390_branch_condition_mask): Generate masks for new modes.
9165         (s390_expand_vec_compare_cc): New function.
9166         (s390_mangle_type): Add mangling for vector bool types.
9167         (enum s390_builtin): Remove.
9168         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
9169         efpc builtins.
9170         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
9171         s390_cpu_cpp_builtins.
9172         (REGISTER_TARGET_PRAGMAS): New macro.
9173         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
9174         (insn_cmp mode attribute): Add new CC modes.
9175         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
9176         (lcbb): New pattern definition.
9177         * config/s390/s390intrin.h: Include vecintrin.h.
9178         * config/s390/t-s390: New file.
9179         * config/s390/vecintrin.h: New file.
9180         * config/s390/vector.md: Include vx-builtins.md.
9181         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
9182         support.
9184 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9186         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
9187         CCVFHE.
9188         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
9189         (s390_select_ccmode): Likewise.
9190         (s390_canonicalize_comparison): Swap operands if necessary.
9191         (s390_expand_vec_compare_scalar): Expand DFmode compare using
9192         single element vector instructions.
9193         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
9194         (s390_branch_condition_mask): Generate CC masks for the new modes.
9195         * config/s390/s390.md (v0, vf, vd): New mode attributes.
9196         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
9197         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
9198         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
9199         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
9200         (*extend<DSF:mode><BFP:mode>2): New insn definition.
9201         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
9202         (extend<DSF:mode><BFP:mode>2): Turn into expander.
9203         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
9204         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
9205         (sqrt<mode>2): Add vector instruction.
9207 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9209         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
9210         constraints.
9211         * config/s390/predicates.md (const0_operand, constm1_operand)
9212         (constable_operand): Accept vector operands.
9213         * config/s390/s390-modes.def: Add supported vector modes.
9214         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
9215         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
9216         (s390_bytemask_vector_p, s390_expand_vec_strlen)
9217         (s390_expand_vec_compare, s390_expand_vcond)
9218         (s390_expand_vec_init): Add prototypes.
9219         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
9220         (s390_vector_mode_supported_p): New function.
9221         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
9222         (s390_contiguous_bitmask_vector_p): New function.
9223         (s390_bytemask_vector_p): New function.
9224         (s390_split_ok_p): Vector regs don't work either.
9225         (regclass_map): Add VEC_REGS.
9226         (s390_legitimate_constant_p): Handle vector constants.
9227         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
9228         (legitimate_reload_vector_constant_p): New function.
9229         (s390_preferred_reload_class): Handle CONST_VECTOR.
9230         (s390_reload_symref_address):  Likewise.
9231         (s390_secondary_reload): Vector memory instructions only support
9232         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
9233         (s390_emit_ccraw_jump): New function.
9234         (s390_expand_vec_strlen): New function.
9235         (s390_expand_vec_compare): New function.
9236         (s390_expand_vcond): New function.
9237         (s390_expand_vec_init): New function.
9238         (s390_dwarf_frame_reg_mode): New function.
9239         (print_operand): Handle addresses with 'O' and 'R' constraints.
9240         (NR_C_MODES, constant_modes): Add vector modes.
9241         (s390_output_pool_entry): Handle vector constants.
9242         (s390_hard_regno_mode_ok): Handle vector registers.
9243         (s390_class_max_nregs): Likewise.
9244         (s390_cannot_change_mode_class): New function.
9245         (s390_invalid_arg_for_unprototyped_fn): New function.
9246         (s390_function_arg_vector): New function.
9247         (s390_function_arg_float): Remove size variable.
9248         (s390_pass_by_reference): Handle vector arguments.
9249         (s390_function_arg_advance): Likewise.
9250         (s390_function_arg): Likewise.
9251         (s390_return_in_memory): Vector values are returned in a VR if
9252         possible.
9253         (s390_function_and_libcall_value): Handle vector arguments.
9254         (s390_gimplify_va_arg): Likewise.
9255         (s390_call_saved_register_used): Consider the arguments named.
9256         (s390_conditional_register_usage): Disable v16-v31 for non-vec
9257         targets.
9258         (s390_preferred_simd_mode): New function.
9259         (s390_support_vector_misalignment): New function.
9260         (s390_vector_alignment): New function.
9261         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
9262         (TARGET_VECTOR_MODE_SUPPORTED_P)
9263         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
9264         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
9265         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
9266         (TARGET_VECTOR_ALIGNMENT): Define target macro.
9267         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
9268         (FIRST_PSEUDO_REGISTER): Increase value.
9269         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
9270         (VECTOR_REG_P): Define macros.
9271         (FIXED_REGISTERS, CALL_USED_REGISTERS)
9272         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
9273         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
9274         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
9275         Add vector registers.
9276         (CANNOT_CHANGE_MODE_CLASS): Call C function.
9277         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
9278         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
9279         memory.
9280         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
9281         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
9282         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
9283         (VR*_REGNUM): New constants.
9284         (ALL): New mode iterator.
9285         (INTALL): Remove mode iterator.
9286         Include vector.md.
9287         (movti): Implement TImode moves for VRs.
9288         Disable TImode splitter for VR targets.
9289         Implement splitting TImode GPR<->VR moves.
9290         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
9291         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
9292         reload<mode>_la_in, reload<mode>_la_out.
9293         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
9294         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
9295         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
9296         (mov<mode> SF SD): Prefer lder, lde for loading.
9297         Add lrl and strl instructions.
9298         Add vector instructions.
9299         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
9300         Call s390_expand_vec_strlen on z13.
9301         (*cc_to_int): Change predicate to nonimmediate_operand.
9302         (addti3): Rename to *addti3.  New expander.
9303         (subti3): Rename to *subti3.  New expander.
9304         * config/s390/vector.md: New file.
9306 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9308         * common/config/s390/s390-common.c (processor_flags_table): Add
9309         z13.
9310         * config.gcc: Add z13.
9311         * config/s390/s390-opts.h (enum processor_type): Add
9312         PROCESSOR_2964_Z13.
9313         * config/s390/s390.c (s390_adjust_priority): Check for
9314         PROCESSOR_2964_Z13.
9315         (s390_reorg): Likewise.
9316         (s390_sched_reorder): Likewise.
9317         (s390_sched_variable_issue): Likewise.
9318         (s390_loop_unroll_adjust): Likewise.
9319         (s390_option_override): Likewise. Default to -mvx when available.
9320         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
9321         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
9322         (TARGET_VX_ABI): Define macros.
9323         macros.
9324         (TARGET_DEFAULT): Add MASK_OPT_VX.
9325         * config/s390/s390.md ("cpu" attribute): Add z13.
9326         ("cpu_facility" attribute): Add vec.
9327         * config/s390/s390.opt (processor_type): Add z13.
9328         (mvx): New options.
9329         * doc/invoke.texi: Add z13 option for -march.
9331 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9333         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
9334         mode check to make sure that only scalar integer values are
9335         accepted.
9337 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
9339         * tree.c (verify_type_variant): Fix #undef.
9340         (gimple_canonical_types_compatible_p): Move here from lto.c
9341         (verify_type): Verify TYPE_CANONICAL compatibility.
9342         * tree.h (gimple_canonical_types_compatible_p): Declare.
9344 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
9346         PR middle-end/66199
9347         * tree.h (OMP_TEAMS_COMBINED): Define.
9348         * gimplify.c (enum gimplify_omp_var_data): Add
9349         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
9350         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
9351         (omp_notice_variable): Accept both ORT_TEAMS
9352         and ORT_COMBINED_TEAMS.  Don't recurse if
9353         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
9354         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
9355         GOVD_FIRSTPRIVATE.
9356         (omp_no_lastprivate): New function.
9357         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
9358         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
9359         notice_outer and set appropriate bits, otherwise make
9360         sure default(none) combined constructs won't complain.
9361         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
9362         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
9363         omp_no_lastprivate either remove the clause or turn it
9364         into OMP_CLAUSE_PRIVATE.
9365         (gimplify_omp_for): Fix up handling of implicit
9366         lastprivate or linear iterators.
9367         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
9368         ORT_COMBINED_TEAMS.
9369         * omp-low.c (lower_omp_for_lastprivate): For combined
9370         for simd use fd.loop.n2 from the for rather than simd.
9372 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9374         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
9375         instead of gen_rtx_raw_REG.
9376         (cris_expand_epilogue): Likewise.
9377         * config/microblaze/microblaze.c (microblaze_classify_address):
9378         Likewise.
9379         * config/sparc/sparc.md: Likewise.
9381 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
9383         * config/alpha/alpha.c (alpha_legitimize_reload_address)
9384         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
9385         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
9386         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
9387         Use CASE_CONST_SCALAR_INT.
9388         (print_operand) <case 'M'>: Use mode_width_operand to check the
9389         value of the constant.
9390         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
9391         * config/alpha/predicates.md (input_operand): Use general_operand
9392         instead of match_code as operand check.
9393         (symbolic_operand): Use match_code with subexpression digits.
9394         * config/alpha/constraints.md (Q): Ditto.
9396 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9398         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
9400 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9402         * config/s390/s390.c (s390_secondary_reload): Fix check for
9403         load/store relative.
9405 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9407         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
9408         alternative_mask to uint64_t.
9410 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
9412         PR tree-optimization/66187
9413         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9414         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
9415         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
9417 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
9419         * diagnostic.c (diagnostic_report_current_module): Strengthen
9420         local "new_map" from const line_map * to
9421         const line_map_ordinary *.
9422         * genmatch.c (error_cb): Likewise for local "map".
9423         (output_line_directive): Likewise for local "map".
9424         * input.c (expand_location_1): Likewise for local "map".
9425         Pass NULL rather than &map to
9426         linemap_unwind_to_first_non_reserved_loc, since the value is never
9427         read from there, and the value written back not read from here.
9428         (is_location_from_builtin_token): Strengthen local "map" from
9429         const line_map * to const line_map_ordinary *.
9430         (dump_location_info): Strengthen locals "map" from
9431         line_map *, one to const line_map_ordinary *, the other
9432         to const line_map_macro *.
9433         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
9434         const line_map * to const line_map_macro *.
9435         (maybe_unwind_expanded_macro_loc): Add a call to
9436         linemap_check_macro when writing to the "map" field of the
9437         loc_map_pair.
9438         Introduce local const line_map_ordinary * "ord_map", using it in
9439         place of "map" in the part of the function where we know we have
9440         an ordinary map.  Strengthen local "m" from const line_map * to
9441         const line_map_ordinary *.
9443 2015-05-19  Nick Clifton  <nickc@redhat.com>
9445         PR target/66156
9446         * config/msp430/msp430.md (zero_extendhisi2): Add support for
9447         separate source and destination registers.
9449 2015-05-19  Richard Biener  <rguenther@suse.de>
9451         PR tree-optimization/66165
9452         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
9453         for no load permutation.
9455         PR tree-optimization/66185
9456         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
9457         when building the SLP node from scalars.
9459 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9460             Tristan Gingold  <gingold@adacore.com>
9462         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
9463         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
9464         (expand_stack_restore): Call record_new_stack_level.
9465         (expand_stack_save): Do not call do_pending_stack_adjust.
9466         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
9467         * calls.c (expand_call): Call record_new_stack_level for alloca.
9468         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
9469         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
9470         (update_sjlj_context): New global function.
9471         * except.h (update_sjlj_context): Declare.
9472         * explow.c (record_new_stack_level): New global function.
9473         (allocate_dynamic_stack_space): Call record_new_stack_level.
9474         * explow.h (record_new_stack_level): Declare.
9475         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
9476         * cfgrtl.c (duplicate_insn_chain): Likewise.
9478 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9480         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
9481         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
9482         STACK_GROWS_DOWNWARD as normal if.
9483         (expand_call): Likewise.
9485 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
9487         PR target/54236
9488         * config/sh/sh.md (*round_int_even): New insn_and_split and
9489         accompanying new unnamed split.
9491 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9493         * bitmap.c (bitmap_set_range): Handle count==1 specially.
9494         (bitmap_clear_range): Likewise.
9495         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
9496         bitmap_set_range unconditionally.
9497         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
9498         * df-scan.c (df_mark_reg): Likewise.
9499         * haifa-sched.c (setup_ref_regs): Likewise.
9500         * sched-rgn.c (update_live_1): Likewise.
9502 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9504         * regs.h (END_HARD_REGNO): Delete.
9505         (END_REGNO): Move to...
9506         * rtl.h: ...here.
9507         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
9508         * caller-save.c (mark_set_regs): Likewise.
9509         * combine.c (move_deaths, distribute_notes): Likewise.
9510         * cse.c (invalidate, invalidate_for_call): Likewise.
9511         * df-scan.c (df_ref_record): Likewise.
9512         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
9513         (record_last_reg_set_info): Likewise.
9514         * reg-stack.c (convert_regs_exit): Likewise.
9515         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
9516         * resource.c (update_live_status): Likewise.
9517         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
9519 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9521         * rtl.h (reg_info): Add an nregs field.
9522         (REG_NREGS): Use it.
9523         (SET_REGNO_RAW): Delete.
9524         (set_regno_raw): New function.
9525         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
9526         (END_REGNO): Redefine in terms of REG_NREGS.
9527         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
9528         SET_REGNO_RAW.
9529         * emit-rtl.c (set_mode_and_regno): Likewise.
9530         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
9531         instead of SET_REGNO_RAW.
9533 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9535         * rtl.h (PUT_MODE_RAW): New macro.
9536         (PUT_REG_NOTE_KIND): Use it.
9537         (set_mode_and_regno): Declare.
9538         (gen_raw_REG): Change regno to "unsigned int".
9539         (gen_rtx_REG): Change "unsigned" to "unsigned int".
9540         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
9541         use set_mode_and_regno to change the mode of registers.
9542         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
9543         * emit-rtl.c (set_mode_and_regno): New function.
9544         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
9545         * caller-save.c (reg_save_code): Use set_mode_and_regno.
9546         * expr.c (init_expr_target): Likewise.
9547         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9548         * postreload.c (reload_cse_simplify_operands): Likewise.
9550 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9552         * caller-save.c (init_caller_save): Use word_mode and
9553         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
9554         * expr.c (init_expr_target): Likewise.
9555         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9556         * postreload.c (reload_cse_regs_1): Likewise.
9558 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9560         * rtl.def (REG): Change format to "r".
9561         * rtl.h (rtunion): Remove rt_reg.
9562         (reg_info): New structure.
9563         (rtx_def): Add reg field to main union.
9564         (X0REGATTR): Delete.
9565         (REG_CHECK): New macro.
9566         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
9567         * rtl.c (rtx_format): Document "r".
9568         (rtx_code_size): Handle REG specially.
9569         * gengenrtl.c (special_format): Return true for formats
9570         that include 'r'.
9571         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
9572         Deal with REG_ATTRS after the field loop.
9573         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
9574         * expmed.c (init_expmed): Call gen_raw_REG instead of
9575         gen_rtx_raw_REG.
9576         * expr.c (init_expr_target): Likewise.
9577         * regcprop.c (maybe_mode_change): Likewise.
9578         * varasm.c (make_decl_rtl): Likewise.
9579         * final.c (leaf_renumber_regs_insn): Return early after
9580         handling REGs.
9581         * genemit.c (gen_exp): Handle 'r' fields.
9582         * genpeep.c (match_rtx): Likewise.
9583         * gensupport.c (subst_pattern_match): Likewise.
9584         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
9585         (alter_constraints, subst_dup): Likewise.
9586         * read-rtl.c (read_rtx_code): Likewise.
9587         * print-rtl.c (print_rtx): Likewise.
9588         * genrecog.c (find_operand, find_matching_operand): Likewise.
9589         (validate_pattern, match_pattern_2): Likewise.
9590         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
9591         (rtx_test::regno_field): New function.
9592         (operator ==, safe_to_hoist_p, transition_parameter_type)
9593         (parameter_type_string, print_parameter_value)
9594         (print_nonbool_test, print_test): Handle new enum values.
9595         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
9596         * lra-constraints.c (operands_match_p): Likewise.
9598 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9600         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
9601         Change type of new_regno to unsigned int.
9602         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
9603         new_regno to unsigned int.
9604         (df_ref_change_reg_with_loc): Remove old_regno parameter.
9605         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
9606         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
9607         (SET_REGNO_RAW): Add space after ",".
9609 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9611         * rtl.h (REG_NREGS): New macro
9612         * alias.c (record_set): Use it.
9613         * cfgcleanup.c (mark_effect): Likewise.
9614         * combine.c (likely_spilled_retval_1): Likewise.
9615         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
9616         (move_deaths, distribute_notes): Likewise.
9617         * cselib.c (cselib_record_set): Likewise.
9618         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
9619         * df-scan.c (df_mark_reg): Likewise.
9620         * dse.c (look_for_hardregs): Likewise.
9621         * dwarf2out.c (reg_loc_descriptor): Likewise.
9622         (multiple_reg_loc_descriptor): Likewise.
9623         * expr.c (write_complex_part, read_complex_part): Likewise.
9624         (emit_move_complex): Likewise.
9625         * haifa-sched.c (setup_ref_regs): Likewise.
9626         * ira-lives.c (mark_hard_reg_live): Likewise.
9627         * lra.c (lra_set_insn_recog_data): Likewise.
9628         * mode-switching.c (create_pre_exit): Likewise.
9629         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
9630         (reload_combine_recognize_pattern): Likewise.
9631         (reload_combine_note_use, move2add_record_mode): Likewise.
9632         (reload_cse_move2add): Likewise.
9633         * reg-stack.c (subst_stack_regs_pat): Likewise.
9634         * regcprop.c (kill_value, copy_value): Likewise.
9635         (copyprop_hardreg_forward_1): Likewise.
9636         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
9637         (build_def_use): Likewise.
9638         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
9639         (deps_analyze_insn): Likewise.
9640         * sched-rgn.c (check_live_1, update_live_1): Likewise.
9641         * sel-sched.c (count_occurrences_equiv): Likewise.
9642         * valtrack.c (dead_debug_insert_temp): Likewise.
9644 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
9646         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
9647         * dse.c (note_add_store): Likewise.
9648         * ira-lives.c (mark_hard_reg_dead): Likewise.
9649         * loop-invariant.c (mark_reg_store): Likewise.
9650         (mark_reg_death): Likewise.
9651         * postreload.c (reload_combine): Likewise.
9652         (reload_combine_note_store): Likewise.
9653         (reload_combine_note_use): Likewise.
9654         * recog.c (peep2_reg_dead_p): Likewise.
9656 2015-05-19  Alan Modra  <amodra@gmail.com>
9658         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
9659         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
9660         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
9661         unused predicates.
9662         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
9663         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
9664         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
9665         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
9667 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
9669         * config/mips/mips.md (JOIN_MODE): New mode iterator.
9670         (join2_load_Store<JOIN_MODE:mode>): New pattern.
9671         (join2_loadhi): Likewise.
9672         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
9673         load-load and store-stores.
9674         * config/mips/mips.opt (mload-store-pairs): New option.
9675         (TARGET_LOAD_STORE_PAIRS): New macro.
9676         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
9677         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
9678         * config/mips/mips.c (mips_load_store_bonding_p): New function.
9680 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
9682         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
9683         explicit swaps.
9684         * dojump.c (do_compare_rtx_and_jump): Likewise.
9685         * expmed.c (emit_store_flag_1): Likewise.
9686         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
9687         * final.c (sprint_ul): Use std::reverse for reversing a string.
9688         * fold-const.c (extract_muldiv_1): Use std::swap.
9689         * genmodes.c (emit_mode_int_n): Likewise.
9690         * ifcvt.c (dead_or_predicable): Likewise.
9691         * ira-build.c (ira_merge_live_ranges): Likewise.
9692         (swap_allocno_copy_ends_if_necessary): Likewise.
9693         * ira.c (ira_setup_alts): Likewise.
9694         * loop-iv.c (iv_analyze_expr): Likewise.
9695         (implies_p): Likewise.
9696         (canon_condition): Likewise.
9697         * lra-constraints.c (swap_operands): Likewise.
9698         * lra-lives.c (lra_merge_live_ranges): Likewise.
9699         * omega.c (swap): Remove.
9700         (bswap): Remove.
9701         (omega_unprotect_1): Use std::swap.
9702         (omega_solve_geq): Likewise.
9703         * optabs.c (expand_binop_directly): Likewise.
9704         (expand_binop): Likewise.
9705         (emit_conditional_move): Likewise.
9706         (emit_conditional_add): Likewise.
9707         * postreload.c (reload_cse_simplify_operands): Likewise.
9708         * reg-stack.c (emit_swap_insn): Likewise.
9709         (swap_to_top): Likewise.
9710         (compare_for_stack_reg): Likewise.
9711         (subst_asm_stack_regs): Likewise.
9712         * reload.c (find_reloads): Likewise.
9713         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
9714         * sel-sched.c (invoke_reorder_hooks): Likewise.
9715         (create_block_for_bookkeeping): Likewise.
9716         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
9717         (lambda_matrix_right_hermite): Use std::swap.
9718         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
9719         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9720         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
9721         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
9722         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
9723         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
9724         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9725         * tree-vrp.c (compare_ranges): Likewise.
9726         * var-tracking.c (add_with_sets): Likewise.
9727         (vt_find_locations): Likewise.
9729 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
9731         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
9732         pie executables.
9733         (FBSD_ENDFILE_SPEC): Likewise.
9734         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
9735         config/freebsd-spec.h.
9736         (ENDFILE_SPEC): Likewise.
9738 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
9739             Richard Henderson  <rth@redhat.com>
9741         PR target/57032
9742         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
9743         Check for a memory location that is not a reference (using an AND)
9744         to an unaligned location here.
9745         * config/alpha/predicates.md (normal_memory_operand): Remove.
9747 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
9749         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
9750         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
9752 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
9754         * config/mips/mips.c (micromips_globals): New variable.
9755         (mips_set_compression_mode): Save and reinitialize target-dependent
9756         state for microMIPS.
9758 2015-05-18  Martin Liska  <mliska@suse.cz>
9760         * dbgcnt.def: Add new counter.
9761         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
9763 2015-05-18  Martin Liska  <mliska@suse.cz>
9765         * dbgcnt.def: Sort counters.
9766         * opts.c (common_handle_option): Do not compile if
9767         -fdbg-cnt-list is enabled.
9769 2015-05-18  Tom de Vries  <tom@codesourcery.com>
9771         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
9772         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
9773         address operator to va_list operand.
9774         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
9775         unconditionally.
9776         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
9777         operand.
9778         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
9779         * config/s390/s390.c (s390_gimplify_va_arg): Same.
9780         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
9782 2015-05-18  Tom de Vries  <tom@codesourcery.com>
9784         * tree-ssa-tail-merge.c: Fix whitespace.
9786 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
9788         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
9789         cortex-a17, and cortex-a17.cortex-a7.
9791 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
9793         PR target/54236
9794         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
9796 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
9798         PR target/66174
9799         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
9800         QImode inner modes for TARGET_AVX512BW.  Force mask operand
9801         to a register for AVX512F modes.
9803 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
9805         * toplev.c (emit_debug_global_declarations): Do not output debug info
9806         when doing slim LTO objects.
9808 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
9810         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
9811         odr_types_equivalent_p): Declare.
9812         (odr_type_p): Use gcc_checking_assert.
9813         (type_in_anonymous_namespace_p) Declare.
9814         (type_with_linkage_p): Declare.
9815         * common.opt (Wlto-type-mismatch): New warning.
9816         * ipa-devirt.c (compound_type_base): New function.
9817         (odr_or_derived_type_p): New function.
9818         (odr_types_equivalent_p): New function.
9819         (add_type_duplicate): Simplify.
9820         (type_with_linkage_p): Add hack to prevent false positives on C types
9821         (type_in_anonymous_namespace_p): Likewise.
9822         * tree.c (need_assembler_name_p): Use type_with_linkage.
9823         * tree.h (type_in_anonymous_namespace_p): Remove.
9824         * doc/invoke.texi (-Wlto-type-mismatch): Document
9826 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
9828         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
9829         (verify_type): Verify STRING_FLAG.
9831 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9833         PR fortran/44054
9834         * tree-pretty-print.c (percent_K_format): Replace locus pointer
9835         with accessor function.
9836         * tree-diagnostic.c (diagnostic_report_current_function): Use
9837         diagnostic_location function.
9838         (maybe_unwind_expanded_macro_loc): Likewise.
9839         (virt_loc_aware_diagnostic_finalizer): Likewise.
9840         (default_tree_printer): Replace locus pointer with accessor function.
9841         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
9842         (diagnostic_set_info_translated): Initialize second location.
9843         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
9844         (diagnostic_show_locus): Handle two locations. Call
9845         diagnostic_print_caret_line.
9846         (diagnostic_print_caret_line): New.
9847         (default_diagnostic_starter): Use diagnostic_location function.
9848         (diagnostic_report_diagnostic): Use diagnostic_location function.
9849         (verbatim): Do not set text.locus.
9850         * diagnostic.h (struct diagnostic_info): Remove location field.
9851         (struct diagnostic_context): Make caret_chars an array of two.
9852         (diagnostic_location): New inline.
9853         (diagnostic_expand_location): Handle two locations.
9854         (diagnostic_same_line): New inline.
9855         (diagnostic_print_caret_line): Declare.
9856         (CARET_LINE_MARGIN): New constant.
9857         * pretty-print.c (pp_printf): Do not set text.locus.
9858         (pp_verbatim): Do not set text.locus.
9859         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
9860         (struct text_info): Replace locus pointer with locations
9861         array. Add accessor functions.
9863 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
9864             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9866         PR target/65768
9867         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
9868         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
9869          large constants in register instead of splitting them.
9871 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
9873         PR target/66140
9874         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
9875         replacements in memory addresses.
9876         (get_unaligned_address): Ditto.
9878 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
9880         * config/ft32/*: New files for FT32 port.
9881         * doc/install.texi: Add FT32 information.
9882         * doc/invoke.texi: Add FT32 information.
9883         * doc/md.texi: Add FT32 information.
9884         * doc/contrib.texi: Self added.
9886 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
9888         PR tree-optimization/64454
9889         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
9890         (-1 - A -> ~A): Remove unnecessary condition.
9892 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
9894         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
9895         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9896         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
9898 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
9900         * ipa-chkp.h (chkp_wrap_function): New.
9901         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
9902         (chkp_wrap_function_name): New.
9903         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
9904         to get wrapper name.
9905         * lto-cgraph.c: Include ipa-chkp.h.
9906         (input_cgraph_1): Avoid alias chain for wrappers.
9908 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
9910         PR middle-end/66134
9911         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
9912         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
9914 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9916         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
9917         (AARCH64_FL_SLOWMUL): Delete.
9918         (AARCH64_FL_CRC): Redefine to 1<<3.
9919         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
9921 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9923         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
9924         casting.
9926 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
9928         * config/alpha/alpha.md (extendqidi2): Use general_operand
9929         instead of some_operand for operand[1] predicate.
9930         (extendhidi2): Ditto.
9931         (cbranchdi4): Use general_operand instead of some_operand
9932         for operand[1] and operands[2] predicates.
9933         (cstoredi4): Ditto.
9934         * config/alpha/predicates.md (some_operand): Remove unused predicate.
9935         (some_ni_operand): Ditto.
9937 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
9939         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
9940         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
9941         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
9942         low part of the constant using alpha_emit_set_const_1.
9943         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
9945 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
9947         * varasm.c (output_constant_pool_1): Pass down alignment from
9948         constant pool entry's descriptor to output_constant_pool_2.
9949         (output_object_block): Add comment prior to call to
9950         output_constant_pool_1.
9952 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
9954         PR rtl-optimization/65862
9955         * target.def (ira_change_pseudo_allocno_class): New hook.
9956         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
9957         value of the hook.
9958         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
9959         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
9960         hook.
9961         * ira-costs.c (find_costs_and_classes): Call the hook and change
9962         classes when it is necessary.
9963         * doc/tm.texi: Update.
9965 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
9967         * config/i386/i386.md (sibcall_memory): Check that register with
9968         callee address is not also used as one of the arguments, instead
9969         of checking that it is not live after the sibcall.
9970         (sibcall_pop_memory): Ditto.
9971         (sibcall_value_memory): Ditto.
9972         (sibcall_value_pop_memory): Ditto.
9974 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
9976         * generic-match-head.c (types_match): Handle non-types.
9977         * gimple-match-head.c (types_match): Likewise.
9978         * match.pd: Remove unnecessary TREE_TYPE for types_match.
9980 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
9982         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
9983         (csneg3<mode>_insn): Enable expansion of pattern.
9985 2015-05-14  Nick Clifton  <nickc@redhat.com>
9987         * config/rl78/rl78.c (rl78_select_section): Select the correct
9988         default section based upon the category of the decl.
9990 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
9992         PR rtl-optimization/30967
9993         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
9994         destination mode for the cost of scc patterns.
9996 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
9998         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
9999         using SWIM248 mode iterator.
10000         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
10001         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
10002         for operand[2] constraint.
10003         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
10005 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10007         PR middle-end/66133
10008         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
10009         make sure it is never noreturn, even when the task body does not
10010         return.
10011         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
10012         right before GIMPLE_OMP_RETURN.
10013         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
10014         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
10015         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
10017 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10019         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
10020         * tree-ssa-math-opts.c: Include params.h
10021         (pow_synth_sqrt_info): New struct.
10022         (representable_as_half_series_p): New function.
10023         (get_fn_chain): Likewise.
10024         (print_nested_fn): Likewise.
10025         (dump_fractional_sqrt_sequence): Likewise.
10026         (dump_integer_part): Likewise.
10027         (expand_pow_as_sqrts): Likewise.
10028         (gimple_expand_builtin_pow): Use above to attempt to expand
10029         pow as series of square roots.  Removed now unused variables.
10031 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
10033         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
10034         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
10035         Remove *p0 and *p1 arguments.  Rewrite function.
10036         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
10037         (alpha_split_const_mov): Update calls to alpha_extract_integer and
10038         alpha_emit_set_long_const.
10039         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
10040         (alpha_output_mi_thunk_osf): Ditto.
10041         * config/alpha/alpha.md (movti): Do not check operands[1]
10042         for CONST_DOUBLE.
10044 2015-05-13  Richard Biener  <rguenther@suse.de>
10046         PR tree-optimization/66129
10047         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
10048         commutative.
10049         (vect_schedule_slp_instance): Fix typo.
10051 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
10053         * common.opt (fdump-internal-locations): New option.
10054         * input.c: Include diagnostic-core.h.
10055         (get_end_location): New function.
10056         (write_digit): New function.
10057         (write_digit_row): New function.
10058         (dump_location_range): New function.
10059         (dump_labelled_location_range): New function.
10060         (dump_location_info): New function.
10061         * input.h (dump_location_info): New prototype.
10062         * toplev.c (compile_file): Handle flag_dump_locations.
10064 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10066         * gimple-expr.h (is_gimple_constant): Reorder.
10067         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
10069 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10071         * combine.c (simplify_set): When generating a CC set, if the
10072         source already is in the correct mode, do not wrap it in a
10073         compare.  Simplify the rest of that code.
10075 2015-05-13  Richard Biener  <rguenther@suse.de>
10077         PR tree-optimization/66123
10078         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
10079         a taken edge.
10081 2015-05-13  Richard Biener  <rguenther@suse.de>
10083         PR middle-end/66110
10084         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
10085         specially.
10086         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
10088 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10090         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
10091         * aclocal.m4: Regenerated with automake-1.11.6.
10093 2015-05-13  Tom de Vries  <tom@codesourcery.com>
10095         PR tree-optimization/66010
10096         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
10097         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
10098         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
10099         and rval based on do_deref.
10101 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10103         PR target/65103
10104         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
10105         link time constants into adress expressions and therefore set
10106         their cost to 0.
10108 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10110         PR target/66112
10111         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
10112         Use SWI248 iterator instead of SWI.
10113         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
10114         Use eq_attr "alternative" "0" instead of match_test in
10115         length_immediate attribute computation.
10116         (*mulvhi4, *mulvhi4_1): New define_insns.
10118         PR target/66112
10119         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
10120         SIGNED to get precision of non-negative value.
10122 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10124         PR target/66048
10125         * function.c (diddle_return_value_1): Process bounds first.
10126         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
10127         register.
10129 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10131         PR rtl-optimization/64616
10132         * loop-invariant.c (can_move_invariant_reg): New.
10133         (move_invariant_reg): Call above new function to decide whether
10134         instruction can just be moved, skipping creation of temporary
10135         register.
10137 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10139         PR target/pr66047.c
10140         * i386.c (ix86_function_sseregparm): Only return -1 if local function
10141         with implied regparm is called from -mno-sse function.
10142         (init_cumulative_args): Output error if ix86_function_sseregparm
10143         return -1 and SSE register would be needed.
10144         (function_arg_advance_32): Likewise.
10145         (function_arg_32): Likewise.
10146         * i386.h (ix86_args): Add decl field.
10148 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10150         PR ipa/65873
10151         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
10152         inlines across optimization boundary.
10154 2015-05-12  Jason Merrill  <jason@redhat.com>
10156         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
10157         string literal and macro name.
10159 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
10161         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
10162         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
10163         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
10165 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
10167         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
10168         (-Wmisleading-indentation): New option.
10169         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
10171 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
10173         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
10174         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
10175         (alpha_extract_integer): Ditto.
10176         (alpha_legitimate_constant_p): Ditto.
10177         (alpha_split_tmode_pair): Ditto.
10178         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
10179         (alpha_expand_mov): Ditto.
10180         (print_operand): Remove handling of 'H' modifier.
10181         <case 'm'>: Remove CONST_DOUBLE handling.
10182         (summarize_insn): Handle CONST_WIDE_INT.
10183         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
10184         (anddi3): Ditto.
10185         (movti): Handle CONST_WIDE_INT.
10186         * config/alpha/constraints.md ('H'): Remove constraint definition.
10187         ('G'): Do not match MODE_FLOAT class.
10188         * config/alpha/predicates.md (const0_operand): Also match
10189         const_wide_int.
10190         (non_add_const_operand): Ditto.
10191         (non_zero_const_operand): Ditto.
10192         (some_operand): Ditto.
10193         (input_operand): Ditto.  Handle CONST_WIDE_INT.
10194         (and_operand): Do not match const_double.
10195         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
10197 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
10199         PR target/65697
10200         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
10201         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
10202         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10203         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
10204         is_mm_seq_cst, is_mm_sync): New accessor functions.
10205         * builtins.c (expand_builtin_sync_operation,
10206         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
10207         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
10208         (get_memmodel,  expand_builtin_atomic_compare_exchange,
10209         expand_builtin_atomic_load, expand_builtin_atomic_store,
10210         expand_builtin_atomic_clear): Use new accessor routines.
10211         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
10212         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
10213         (maybe_emit_sync_lock_test_and_set): Use new accessors and
10214         MEMMODEL_SYNC_ACQUIRE.
10215         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
10216         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
10217         expand_atomic_store): Use new accessors.
10218         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
10219         * tsan.c (instrument_builtin_call): Update check for memory model beyond
10220         final enum to use MEMMODEL_LAST.
10221         * c-family/c-common.c: Use new accessor for memmodel_base.
10222         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
10223         accessors.
10224         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
10225         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
10226         mem_thread_fence, *dmb): Likewise.
10227         * config/alpha/alpha.c (alpha_split_compare_and_swap,
10228         alpha_split_compare_and_swap_12): Likewise.
10229         * config/arm/arm.c (arm_expand_compare_and_swap,
10230         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
10231         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
10232         atomic_loaddi): Likewise.
10233         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
10234         Likewise.
10235         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
10236         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
10237         use new accessors.
10238         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
10239         atomic_store<mode>, atomic_compare_and_swap<mode>,
10240         atomic_exchange<mode>): Use new accessors.
10241         * config/mips/mips.c (mips_process_sync_loop): Likewise.
10242         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
10243         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
10244         rs6000_post_atomic_barrier): Add new cases.
10245         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
10246         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
10247         (atomic_load<mode>): Add new cases and use new accessors.
10248         (store_quadpti): Add new cases.
10249         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
10250         accessors.
10251         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
10252         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
10253         model, not 8.
10255 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
10257         * ipa-devirt.c (type_with_linkage_p): New function.
10258         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
10259         type has linkage.
10260         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
10261         (can_be_name_hashed_p): Simplify.
10262         (hash_odr_name): Check that type has linkage before checking if it is
10263         anonymous.
10264         (types_same_for_odr): Likewise.
10265         (odr_name_hasher::equal): Likewise.
10266         (odr_subtypes_equivalent_p): Likewise.
10267         (warn_types_mismatch): Likewise.
10268         (get_odr_type): Likewise.
10269         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
10270         * ipa-utils.h (odr_type_p): Move offline.
10271         * tree.c (need_assembler_name_p): Fix handling of types
10272         without linkages.
10273         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
10275 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
10277         * timevar.c (timevar_enable): Delete in favor of...
10278         (g_timer): New global.
10279         (struct timevar_def): Move to timevar.h inside class timer.
10280         (struct timevar_stack_def): Likewise.
10281         (timevars): Delete global in favor of field "m_timevars" within
10282         class timer in timevar.h
10283         (stack): Likewise, in favor of field "m_stack".
10284         (unused_stack_instances): Likewise, in favor of field
10285         "m_unused_stack_instances".
10286         (start_time): Likewise, in favor of field "m_start_time".
10287         (get_time): Eliminate check for timevar_enable.
10288         (timer::timer): New function, built from part of timevar_init.
10289         (timevar_init): Rewrite idempotency test from using
10290         "timevar_enable" bool to using dynamic allocation of "g_timer".
10291         Move rest of implementation into timer's constructor.
10292         (timevar_push_1): Rename to...
10293         (timer::push): ...this, adding "m_" prefixes to variables that
10294         are now fields of timer.
10295         (timevar_pop_1): Likewise, rename to...
10296         (timer::pop): ...this, and add "m_" prefixes.
10297         (timevar_start): Replace test for "timevar_enable" with one for
10298         "g_timer", and move bulk of implementation to...
10299         (timer::start): ...here, adding "m_" prefixes.
10300         (timevar_stop): Likewise, from here...
10301         (timer::stop): ...to here.
10302         (timevar_cond_start): Likewise, from here...
10303         (timer::cond_start): ...to here.
10304         (timevar_cond_stop): Likewise, from here...
10305         (timer::cond_stop): ...to here.
10306         (validate_phases): Rename to...
10307         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
10308         locals "total" and "tv" const.
10309         (timevar_print): Rename to...
10310         (timer::print): ...this, and add "m_" prefixes.  Make locals
10311         "total" and "tv" const.  Eliminate test for timevar_enable.
10312         * timevar.h (timevar_enable): Eliminate.
10313         (g_timer): New declaration.
10314         (timevar_push_1): Eliminate.
10315         (timevar_pop_1): Eliminate.
10316         (timevar_print): Eliminate.
10317         (class timer): New class.
10318         (timevar_push): Rewrite to use g_timer.
10319         (timevar_pop): Likewise.
10320         * toplev.c (toplev::~toplev): Likewise.
10322 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
10324         * arm-protos.h (arm_sched_autopref): Delete.
10325         (tune_params): Re-organize, use enums for flag values.
10326         (FUSE_OPS): New macro.
10327         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
10328         (ARM_PREFETCH_BENEFICIAL): Likewise.
10329         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
10330         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10331         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
10332         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
10333         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
10334         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
10335         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
10336         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
10337         format.
10338         (arm_option_override, thumb2_reorg, arm_print_tune_info)
10339         (aarch_macro_fusion_pair_p): Update uses of current_tune.
10340         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
10342 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
10344         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
10345         "break".
10347 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
10348             Sandra Loosemore <sandra@codesourcery.com>
10350         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
10351         value.
10352         (REG_CLASS_NAMES): Add "IJMP_REGS".
10353         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
10354         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
10355         use new "c" register constraint.
10356         * config/nios2/constraint.md (c): New register constraint
10357         corresponding to IJMP_REGS.
10359 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10361         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
10362         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
10363         define_splits): Delete, revamp, transmogrify into ...
10364         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
10365         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
10366         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
10367         New.
10369 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10371         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
10372         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
10374 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10376         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
10377         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
10378         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
10379         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
10380         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
10381         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
10382         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
10383         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
10384         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
10385         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10386         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
10387         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
10388         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
10389         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
10390         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
10391         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
10392         and 30 corresponding splitters): Delete.
10394 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10396         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
10397         zero_extract.
10399 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10401         * combine.c (recog_for_combine_1): New function, factored out
10402         from recog_for_combine.
10403         (change_zero_ext): New function.
10404         (recog_for_combine): If recog fails, try again with the pattern
10405         modified by change_zero_ext; if that still fails, restore the
10406         pattern.
10408 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
10410         * combine.c (get_undo_marker): New function.
10411         (undo_to_marker): New function, largely factored out from ...
10412         (undo_all): ... this.  Adjust.
10414 2015-05-12  Richard Biener  <rguenther@suse.de>
10416         PR tree-optimization/66101
10417         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
10418         fixup if we turn a loop exit edge to a fallthru edge.
10420 2015-05-12  Richard Biener  <rguenther@suse.de>
10422         PR tree-optimization/37021
10423         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
10424         (SLP_TREE_TWO_OPERATORS): New define.
10425         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
10426         SLP_TREE_TWO_OPERATORS.
10427         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
10428         SLP node.
10429         (vect_build_slp_tree): Adjust.
10430         (vect_analyze_slp_cost_1): Likewise.
10431         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
10432         emitting two vector stmts and mixing the results.
10434 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10436         * call.c (print_z_candidates): Remove dead code.
10438 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10440         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
10441         and zEC12_simple_fp.
10442         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
10443         to 1.
10445 2015-05-12  Tom de Vries  <tom@codesourcery.com>
10447         PR tree-optimization/66010
10448         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
10449         ifn_va_arg.
10450         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
10451         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
10452         va_lists are passed, and remove corresponding handling.
10453         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
10454         do_deref argument to ifn_va_arg.
10455         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
10456         ifn_va_arg.
10458 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10460         PR target/65955
10461         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
10462         REG before taking its REGNO.
10464 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10466         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
10467         rsp->sign_bit_copies and rsp->nonzero_bits into ...
10468         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
10469         present to get more accurate information about the number of sign bit
10470         copies and non zero bits.
10472 2015-05-12  Richard Biener  <rguenther@suse.de>
10474         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
10475         do not allow unrolling.
10477 2015-05-11  Richard Henderson  <rth@redhat.com>
10479         * config/i386/i386-modes.def (CCP): New.
10480         * config/i386/i386.c (put_condition_code): Handle it.
10481         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
10483 2015-05-11  Richard Henderson  <rth@redhat.com>
10485         * target.def (md_asm_clobbers): Replace with...
10486         (md_asm_adjust): this.
10487         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
10488         (TARGET_MD_ASM_ADJUST): New.
10489         * tm.texi: Rebuild.
10490         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
10491         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
10492         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
10494         * cfgexpand.c (check_operand_nalternatives): Accept vector of
10495         constraints instead of lists of outputs and inputs.
10496         (expand_asm_stmt): Save and restore input_location around the
10497         body of the function.  Move asm data into vectors instead of
10498         building tree lists.  Generate cleanup sequences as needed,
10499         rather than waiting til the end.  Use new md_asm_adjust hook.
10501         * config/vxworks.c: Include vec.h before target.h.
10502         * gimple.c: Likewise.
10503         * incpath.c: Likewise.
10504         * mode-switching.c: Likewise.
10506         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
10507         (cris_md_asm_adjust): this.
10508         (TARGET_MD_ASM_CLOBBERS): Remove.
10509         (TARGET_MD_ASM_ADJUST): New.
10510         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
10511         (ix86_md_asm_adjust): this.
10512         (TARGET_MD_ASM_CLOBBERS): Remove.
10513         (TARGET_MD_ASM_ADJUST): New.
10514         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
10515         (mn10300_md_asm_adjust): this.
10516         (TARGET_MD_ASM_CLOBBERS): Remove.
10517         (TARGET_MD_ASM_ADJUST): New.
10518         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
10519         (rs6000_md_asm_adjust): this.
10520         (TARGET_MD_ASM_CLOBBERS): Remove.
10521         (TARGET_MD_ASM_ADJUST): New.
10522         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
10523         (visium_md_asm_adjust): this.
10524         (TARGET_MD_ASM_CLOBBERS): Remove.
10525         (TARGET_MD_ASM_ADJUST): New.
10527 2015-05-11  Richard Henderson  <rth@redhat.com>
10529         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
10530         if noutputs is zero.
10531         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
10533         * cfgexpand.c (expand_asm_operands): Merge into...
10534         (expand_asm_stmt): ... here.
10536         * cfgexpand.c (expand_asm_operands): Don't call
10537         resolve_asm_operand_names.
10538         * stmt.c (resolve_asm_operand_names): Clarify block comment.
10540 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
10542         * dwarf2out.c (gen_member_die): Sanity check that we access
10543         TYPE_MAIN_VARIANT for TYPE_METHODS.
10544         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
10545         checking TYPE_METHODS.
10546         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
10547         if non-null.
10548         (build_distinct_type_copy): Clear TYPE_METHODS.
10549         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
10550         (verify_type): Allow TYPE_METHODS to be error_mark_node.
10551         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
10553 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
10555         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
10556         (emit_pattern_before_setloc): Likewise.
10558 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
10560         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
10561         for define_peephole2s.
10562         (get_peephole2_pattern): New function.
10563         (main): Use it.  Call validate_pattern.
10565 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10567         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
10568         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
10569         (Last callee saved reg is different for AVR_TINY architecture)
10571 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
10573         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
10574         when looking for memory references.
10576 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
10578         PR target/65753
10579         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
10580         via function pointers.
10582 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
10584         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
10585         indirect call by forcing address into a pseudo with -fno-plt.
10586         * common.opt (flag_plt): New option.
10587         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
10588         ([-fno-plt]): Document.
10590 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
10592         PR bootstrap/66105
10593         * config/rs6000/option-defaults.h: Add space between string literal
10594         and macro name.
10596 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10598         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
10599         accross ARM targets.
10601 2015-05-11  Christian Bruel  <christian.bruel@st.com>
10603         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
10604         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
10606 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
10608         PR rtl-optimization/66076
10609         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
10610         Don't grow the heap array if it is already big enough from a
10611         previous iteration.
10613 2015-05-11  Christian Bruel  <christian.bruel@st.com>
10615         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
10616         (is_called_in_ARM_mode): Remove.
10617         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
10618         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
10619         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
10620          arm_declare_function_name.
10622 2015-05-11  Christian Bruel  <christian.bruel@st.com>
10624         * config/arm/arm.c (arm_option_override): Reoganized and split into :
10625         (arm_option_params_internal); New function.
10626         (arm_option_check_internal): New function.
10627         (arm_option_override_internal): New function.
10628         (thumb_code, thumb1_code): Remove.
10629         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
10630         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
10631         (thumb_code, thumb1_code): Remove.
10632         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
10634 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
10636         * config/alpha/alpha.c (alpha_emit_set_const_1)
10637         (alpha_emit_set_long_const, alpha_extract_integer)
10638         (alpha_legitimate_constant_p, alpha_split_const_mov)
10639         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
10640         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
10641         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
10642         HOST_WIDE_INT_1U.
10643         * config/alpha/predicates.md (mode_mask_operand): Do not match
10644         const_double RTX.
10645         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
10646         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
10647         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
10648         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
10649         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
10651 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
10653         PR target/65780
10654         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
10655         default_binds_local_p_2.
10656         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
10657         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
10659 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
10661         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
10663 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
10665         Patch by Richard Biener
10666         * coverage.c (coverage_obj_init): Delay building of type variant
10667         until the type is finished.
10669 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
10671         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
10672         mismatch between C and C++ type; compoare correctly ARG_TYPES
10673         for non-prototypes and output correctly parameter index for METHOD_TYPE.
10674         (odr_types_equivalent_p): Fix wording of warning about attributes;
10675         it is OK to match prototype and non-prototype.
10677 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
10679         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
10680         TYPE_ARG_TYPES list.
10681         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
10682         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
10684 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
10686         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
10687         * tree.h (is_lang_specific): Constify.
10689 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
10691         PR tree-optimization/64454
10692         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
10693         Rewrite.
10695 2015-05-08  Jason Merrill  <jason@redhat.com>
10697         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
10698         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
10699         config/darwin.h, config/darwin9.h, config/elfos.h,
10700         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
10701         config/microblaze/microblaze.h, config/mips/mips.h,
10702         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
10703         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
10704         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
10705         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
10706         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
10707         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
10708         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
10709         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
10710         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
10711         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
10712         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
10713         between string literal and macro name.
10715 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10717         * jump.c: Change argument types to rtx_insn *.
10718         * rtl.h: Adjust.
10720 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10722         * lra-constraints.c: Change argument type to rtx_insn *.
10724 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10726         * df-problems.c: Change argument type to rtx_insn *.
10728 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10730         * combine.c: Change argument type to rtx_insn *.
10732 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10734         * rtl.h: Adjust.
10735         * rtlanal.c: Change argument type to rtx_insn *.
10737 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10739         * sched-deps.c: Change argument types to rtx_insn *.
10740         * sched-int.h: Adjust.
10742 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10744         * dwarf2cfi.c: Change argument type to rtx_insn *.
10746 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10748         * ira.c (decrease_live_ranges_number): Changetype of local
10749         variable to rtx_insn *.
10750         * recog.c: Change argument types to rtx_insn *.
10751         * recog.h: Adjust.
10753 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10755         * reorg.c: Change argument types to rtx_insn *.
10757 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10759         * ira-color.c: Change argument types to rtx_insn *.
10760         * lra-eliminations.c: Likewise.
10761         * ira.h: Adjust.
10763 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10765         * gcse.c: Change argument types to rtx_insn *.
10767 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10769         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
10771 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10773         * emit-rtl.c (emit_debug_insn_before): Change argument type to
10774         rtx_insn *.
10775         * rtl.h: Adjust.
10777 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10779         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
10780         * rtl.h: Adjust.
10782 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10784         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
10785         * rtl.h: Adjust.
10787 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10789         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
10790         * rtl.h: Adjust.
10792 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10794         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
10795         * rtl.h: Adjust.
10797 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10799         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
10800         to rtx_insn *.
10801         * rtl.h: Adjust.
10803 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10805         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
10806         to rtx_insn *.
10807         * rtl.h: Likewise.
10809 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10811         * except.c (can_nonlocal_goto): Change type of argument to
10812         rtx_insn *.
10813         * rtl.h: Adjust.
10815 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10817         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
10818         * rtl.h: Adjust.
10820 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10822         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
10823         * cfgrtl.c (can_delete_label_p): Adjust.
10824         * rtl.h: likewise.
10826 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10828         * reorg.c (stop_search_p): Change argument to rtx_insn *.
10830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10832         * except.c (make_reg_eh_region_note): Change argument to
10833         rtx_insn *.
10834         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
10835         * except.h: Adjust.
10837 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10839         * mode-switching.c (commit_mode_sets): Change type of local
10840         variable from rtx to rtx_insn *.
10842 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
10844         * doc/install.texi (--enable-languages): Add missing jit and lto info.
10845         Add ^ to grep command.
10846         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
10847         arg to last gimple_simplify declaration.  Add missing gimple_build
10848         declaration for built-in function case with four tree args.
10850 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
10851             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10853         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
10854         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
10855         (GNU_USER_DYNAMIC_LINKERN32): Update.
10857 2015-05-08  Richard Biener  <rguenther@suse.de>
10859         PR tree-optimization/66036
10860         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10861         Handle strided group loads.
10862         (vect_verify_datarefs_alignment): Likewise.
10863         (vect_enhance_data_refs_alignment): Likewise.
10864         (vect_analyze_group_access): Likewise.
10865         (vect_analyze_data_ref_access): Likewise.
10866         (vect_analyze_data_ref_accesses): Likewise.
10867         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
10868         (vectorizable_load): Likewise.
10870 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
10872         * config/rs6000/rs6000.md: Require operand inequality in one
10873         of the peepholes.
10875 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
10876             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10878         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
10879         from (set ...).
10880         * config/rx/rx.md (movdi, movdf): Likewise.
10881         Likewise for define_peephole2s.
10883 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
10885         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
10886         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
10887         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
10888         vtst_u64): Rewrite using gcc vector extensions.
10890 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
10892         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
10893         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
10895 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
10897         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
10899 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10901         * config/glibc-stdint.h (OPTION_MUSL): Define.
10902         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
10903         Change the definition based on OPTION_MUSL for 64 bit targets.
10904         * config/linux.h (OPTION_MUSL): Redefine.
10905         * config/alpha/linux.h (OPTION_MUSL): Redefine.
10906         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
10907         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
10909 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
10910             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10912         * config.gcc (LIBC_MUSL): New tm_defines macro.
10913         * config/linux.h (OPTION_MUSL): Define.
10914         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
10915         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
10916         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10917         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10918         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10919         * config/linux.opt (mmusl): New option.
10920         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
10921         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
10922         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
10923         * configure: Regenerate.
10925 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
10926             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10928         PR target/48904
10929         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
10930         * config/i386/knetbsd-gnu64.h: New file.
10932 2015-05-08  Marek Polacek  <polacek@redhat.com>
10934         PR c/64918
10935         * doc/invoke.texi: Document -Woverride-init-side-effects.
10937 2015-05-07  Marek Polacek  <polacek@redhat.com>
10939         PR c/65179
10940         * doc/invoke.texi: Document -Wshift-negative-value.
10942 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
10944         * gcov-tool.c (do_merge): Refactore to remove int ret.
10945         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
10946         !type == FUNC to type != FUNC.
10947         * reload.h (struct target_reload): Changee to type of
10948         x_spill_indirect_levels from bool to unsigned char.
10950 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
10952         * rtl.h (always_void_p): New function.
10953         * gengenrtl.c (always_void_p): Likewise.
10954         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
10955         with code foo are always VOIDmode.
10956         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
10957         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
10958         compare-elim.c, config/aarch64/aarch64.c,
10959         config/aarch64/aarch64.md, config/alpha/alpha.c,
10960         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
10961         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
10962         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
10963         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10964         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
10965         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
10966         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
10967         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
10968         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
10969         config/ia64/vect.md, config/iq2000/iq2000.c,
10970         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
10971         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
10972         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
10973         config/mep/mep.c, config/microblaze/microblaze.c,
10974         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
10975         config/mn10300/mn10300.c, config/msp430/msp430.c,
10976         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
10977         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
10978         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
10979         config/rs6000/altivec.md, config/rs6000/rs6000.c,
10980         config/rs6000/rs6000.md, config/rs6000/vector.md,
10981         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
10982         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
10983         config/sh/sh.md, config/sh/sh_treg_combine.cc,
10984         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
10985         config/spu/spu.md, config/stormy16/stormy16.c,
10986         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
10987         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
10988         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
10989         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
10990         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
10991         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
10992         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
10993         var-tracking.c: Update calls accordingly.
10995 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
10997         PR middle-end/192
10998         PR middle-end/54303
10999         * varasm.c (function_mergeable_rodata_prefix): New function.
11000         (mergeable_string_section): Use it.
11001         (mergeable_constant_section): Use it.
11003 2015-05-07  Jeff Law  <law@redhat.com>
11005         PR target/39726
11006         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11007         simplifier to narrow arithmetic.
11008         * generic-match-head.c: (types_match, single_use): New functions.
11009         * gimple-match-head.c: (types_match, single_use): New functions.
11011 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11013         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
11014         rtx type.
11016 2015-05-07  Richard Biener  <rguenther@suse.de>
11018         PR tree-optimization/66002
11019         * passes.def: Schedule another pass_merge_phi after ifcombine, right
11020         before phiopt.
11022 2015-05-07  Marek Polacek  <polacek@redhat.com>
11023             Martin Uecker  <uecker@eecs.berkeley.edu>
11025         * doc/invoke.texi: Document -fsanitize=bounds-strict.
11026         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
11027         into SANITIZE_NONDEFAULT.
11028         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
11030 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
11032         PR target/66015
11033         * config/alpha/alpha.c (alpha_override_options_after_change): New.
11034         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
11035         (alpha_override_options): Move align_loops, align_jumps and
11036         align_functions handling into alpha_override_options_after_change.
11038 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
11039             Chris Jones  <chrisj@nvidia.com>
11040             Joshua Conner  <jconner@nvidia.com>
11042         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
11043         linking of crtfastmath.o.
11044         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
11046 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
11048         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
11049         (cstore<mode>4_unsigned_imm): New expander.
11050         (cstore<mode>4): Remove empty constraint strings.  Use the new
11051         expanders.
11053 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
11055         PR target/64208
11056         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
11057         alternatives.
11059 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11061         * config/aarch64/geniterators.sh: Use standard BRE in sed.
11063 2015-05-06  Alan Modra  <amodra@gmail.com>
11065         PR target/66033
11066         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
11067         (UNSPEC_NOP): Define.
11068         (reload_vsx_from_gpr<mode>): Add missing DONE.
11069         (reload_gpr_from_vsx<mode>): Likewise.
11070         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
11071         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
11073 2015-05-06  Christian Bruel  <christian.bruel@st.com>
11075         PR target/66015
11076         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
11077         align_jumps, align_functions into aarch64_override_options_after_change.
11079 2015-05-06  Richard Biener  <rguenther@suse.de>
11081         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
11082         vect_transform_slp_perm_load to check if we support a permutation
11083         for basic-block vectorization.
11085 2015-05-06  Nick Clifton  <nickc@redhat.com>
11087         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
11088         used, even if it is not being used as a frame pointer.
11090 2015-05-05  Jason Merrill  <jason@redhat.com>
11092         * dwarf2out.c (gen_member_die): Don't emit anything for an
11093         anonymous class constructor.
11095 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
11097         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
11098         that it reflects the block structure.
11099         (afdo_propagate_edge): Likewise.
11100         (afdo_calculate_branch_prob): Likewise.
11101         (afdo_annotate_cfg): Likewise.
11102         * cfgcleanup.c (equal_different_set_p): Likewise.
11103         (try_crossjump_to_edge): Likewise.
11104         * cgraph.c (cgraph_node::verify_node): Likewise.
11105         * cgraphunit.c (expand_all_functions): Likewise.
11106         * config/i386/i386.c (ix86_expand_copysign): Likewise.
11107         (exact_dependency_1): Likewise.
11108         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
11109         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
11110         * gensupport.c (process_define_subst): Likewise.
11111         * lto-wrapper.c (merge_and_complain): Likewise.
11112         * tree-if-conv.c (if_convertible_bb_p): Likewise.
11113         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
11114         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
11115         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11116         * tree-vect-loop.c (vectorizable_reduction): Likewise.
11117         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
11118         * tree-vect-stmts.c (vectorizable_shift): Likewise.
11119         * tree-vrp.c (vrp_finalize): Likewise.
11120         * tree.c (variably_modified_type_p): Likewise.
11122 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
11124         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
11125         on darwin12 and later.
11126         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
11127         file to pass -rdynamic on darwin12 and later.
11128         * config/darwin.opt (rdynamic): Add.
11130 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11132         * doc/extend.texi (C Extensions): Update menu for moved Variable
11133         Attributes and Type Attributes sections.
11135 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11137         PR target/65990
11138         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
11139         if rep_8byte stringop strategy was specified for 32-bit target.
11141 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
11143         PR target/65915
11144         * config/i386/i386.md (vector convert to float spltiter): Check for
11145         xmm16+, when splitting scalar float conversion.
11146         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
11148 2015-05-05  Nick Clifton  <nickc@redhat.com>
11150         * config/msp430/msp430-opts.h (enum msp430_regions): New.
11151         * config/msp430/msp430.c (msp430_override_options): Complain if
11152         -mcode-region or -mdata-region is used on a non MSP430X.
11153         (msp430_section_attr): New function.  Checks lower, upper and
11154         either attributes.
11155         (msp430_attribute_table): Add lower, upper and either.
11156         (gen_prefix): New function.  Generates a prefix for a section
11157         name.
11158         (msp430_select_section): New function - handles the choice of
11159         section for an object.  Takes into account memory region
11160         attributes and options.
11161         (msp430_function_section): Use gen_prefix.
11162         (TARGET_SECTION_TYPE_FLAGS): Define.
11163         (msp430_section_type_flags): New function.
11164         (TARGET_ASM_UNIQUE_SECTION): Define.
11165         (msp430_unique_section): New function.
11166         (msp430_output_aligned_decl_common): New function.
11167         (msp430_do_not_relax_short_jumps): New function.
11168         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
11169         Define.
11170         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11171         * config/msp430/msp430-protos.h
11172         (msp430_do_not_relax_short_jumps): New prototype.
11173         (msp430_output_aligned_decl_common): New prototype.
11174         * config/msp430/msp430.md (length): New attribute.
11175         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
11176         then use a long code sequence for short jumps.
11177         * config/msp430/msp430.opt (mcode-region): New.
11178         (mdata-region): New.
11179         * doc/invoke.texi: Document new options.
11180         * doc/extend.texi: Document new attributes.
11182 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
11184         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
11185         (tune_params): Add field branch_costs.
11186         (aarch64_branch_cost): Declare.
11187         * gcc/config/aarch64.c (generic_branch_cost): New.
11188         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
11189         (cortexa53_tunings): Likewise.
11190         (cortexa57_tunings): Likewise.
11191         (thunderx_tunings): Likewise.
11192         (xgene1_tunings): Likewise.
11193         (aarch64_branch_cost): Define.
11194         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
11196 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11198         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
11199         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
11200         * config/i386/i386.md: Ditto.
11201         * config/i386/winnt.c: Ditto.
11203 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
11205         * doc/extend.texi (__atomic Builtins): Move implementation details
11206         to the end of the description, rewrite opening paragraphs, state
11207         difference with __sync builtins, state C11/C++11 assumptions,
11208         weaken itemized descriptions, add explanation of memory model
11209         behaviour, expand description of compare-exchange, simplify text.
11211 2015-05-05  Renlin Li  <renlin.li@arm.com>
11213         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
11215 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
11217         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
11218         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
11219         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
11220         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
11221         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
11222         * configure: Regenerate.
11223         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
11224         * doc/install.texi (aarch64*-*-*): Document new
11225         --enable-fix-cortex-a53-843419 option.
11226         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
11227         and -mno-fix-cortex-a53-843419 options.
11229 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
11231         PR target/65871
11232         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
11234 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
11236         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
11237         fix overactive TYPE_MIN_VALUE check and add FIXME for type
11238         compatibility problems.
11240 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
11242         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
11243         constraints.
11244         (cbranchsi4_reg): New.
11245         * config/microblaze/microblaze.c
11246         (microblaze_expand_conditional_branch_reg): New.
11247         * config/microblaze/microblaze-protos.h
11248         (microblaze_expand_conditional_branch_reg): New prototype.
11250 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
11252         * config/microblaze/microblaze.md (peephole2): New.
11254 2015-05-04  Jeff Law  <law@redhat.com>
11256         Revert:
11257         2015-05-04  Jeff Law  <law@redhat.com>
11259         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11260         simplifier to narrow arithmetic.
11261         * generic-match-head.c: (types_match, single_use): New functions.
11262         * gimple-match-head.c: (types_match, single_use): New functions.
11264 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11266         PR target/65987
11267         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
11268         (split_branches): Likewise.
11270 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
11272         * common.opt (fdelete-null-pointer-checks): Init to -1.
11273         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
11274         override flag_delete_null_pointer_checks default.
11275         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
11276         behavior re address zero.  Better document target-specific behavior.
11277         (-fisolate-errneous-paths-dereference): Mention relationship to
11278         -fdelete-null-pointer-checks.
11280 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
11282         PR tree-optimization/65984
11283         * ubsan.c: Include tree-cfg.h.
11284         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
11285         stmt_could_throw_p test, rename can_throw variable to ends_bb.
11287 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
11289         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
11290         to CONST_DOUBLE_P predicate.
11291         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
11292         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
11293         allow only operands that satisfy standard_sse_constant_p predicate.
11294         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
11295         to CONST_DOUBLE_P predicate.
11297 2015-05-04  Jeff Law  <law@redhat.com>
11299         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
11300         simplifier to narrow arithmetic.
11301         * generic-match-head.c: (types_match, single_use): New functions.
11302         * gimple-match-head.c: (types_match, single_use): New functions.
11304 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
11306         * config/arm/arm.c: Restore bootstrap.
11308 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
11310         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
11311         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
11312         as CONST_WIDE_INT, not CONST_DOUBLE.
11313         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
11314         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
11315         (ix86_find_base_term): Do not check for CONST_DOUBLE.
11316         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
11317         (ix86_build_signbit_mask): Rewrite using wide ints.
11318         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
11319         (ix86_rtx_costs): Handle CONST_WIDE_INT.
11320         (find_constant): Ditto.
11321         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
11322         using gen_int_mode.
11323         * config/i386/predicates.md (x86_64_immediate_operand)
11324         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
11325         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
11326         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
11327         (const0_operand): Also match const_wide_int.
11328         (constm1_operand): Ditto.
11329         (const1_operand): Ditto.
11331 2015-05-04  Richard Biener  <rguenther@suse.de>
11333         PR tree-optimization/65965
11334         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11335         store groups at gaps.
11337 2015-05-04  Richard Biener  <rguenther@suse.de>
11339         PR tree-optimization/65935
11340         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
11341         then make sure to apply that swapping to the IL.
11343 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
11345         * Makefile.in (PATCHLEVEL_c): New variable.
11346         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
11347         expand the same way as if DEVPHASE_c was non-empty.
11349 2015-05-04  Kai Tietz  <ktietz@redhat.com>
11351         PR target/65559
11352         * lto-wrapper.c (run_gcc): Open filename
11353         in binary-mode.
11355 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
11357         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
11358         sections up in file, to immediately after the Function Attributes
11359         section.
11361 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
11363         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
11365 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11367         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
11368         (insert_partition_copy_on_edge): Adjust.
11369         (insert_rtx_to_part_on_edge): Likewise.
11370         (insert_part_to_rtx_on_edge): Likewise.
11372 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11374         * function.c (set_return_jump_label): Change type of argument to
11375         rtx_insn *.
11376         * function.h (set_return_jump_label): Adjust.
11378 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11380         * reload.h (struct reg_equivs_t): Change type of init to
11381         rtx_insn *.
11382         * ira.c (fix_reg_equiv_init): Adjust.
11383         * reload1.c (eliminate_regs_1): Likewise.
11384         (init_eliminable_invariants): Likewise.
11386 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11388         * cselib.c (fp_setter_insn): Take a rtx_insn *.
11389         * cselib.h (fp_setter_insn): Adjust.
11391 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11393         * recog.c (struct validate_replace_src_data): Change type of
11394         insn field to rtx_insn *.
11395         (validate_replace_src_group): Change type of argument to rtx_insn *.
11396         * recog.h (validate_replace_src_group): Adjust.
11398 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11400         * haifa-sched.c: Change the type of some variables to rtx_insn *.
11401         * sched-deps.c: Likewise.
11402         * sched-int.h: Likewise.
11403         * sched-rgn.c: Likewise.
11404         * sel-sched.c: Likewise.
11406 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11408         to rtx_insn *.
11409         * config/i386/i386.c: Change the type of some arguments to
11410         rtx_insn *.
11411         * config/arm/arm.c: Likewise.
11413 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11415         * lra-constraints.c: Change type of some arguments to rtx_insn *.
11417 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11419         * regcprop.c (kill_autoinc_value): Change type of argument to
11420         rtx_insn *.
11422 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11424         * genrecog.c (print_subroutine): Adjust.
11425         * recog.c (get_bool_attr_mask_uncached): Likewise.
11426         * recog.h (struct recog_data_d): Change the type of insn to
11427         rtx_insn *.
11429 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11431         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
11433 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11435         * df-problems.c (df_set_note): Change type of argument to
11436         rtx_insn *.
11438 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11440         * builtins.c (expand_builtin_trap): Change type of local
11441         variable to rtx_insn *.
11442         (add_sched_insns_for_speculation): Likewise.
11443         (ix86_emit_save_regs): Likewise.
11444         (get_scratch_register_on_entry): Likewise.
11445         (ix86_emit_restore_reg_using_pop): Likewise.
11446         (ix86_emit_leave): Likewise.
11447         (ix86_emit_restore_regs_using_mov): Likewise.
11448         (ix86_expand_epilogue): Likewise.
11449         Likewise.
11450         (rl78_alloc_physical_registers_umul): Likewise.
11451         * cselib.c (discard_useless_locs): Likewise.
11452         (cselib_invalidate_regno): Likewise.
11453         (cselib_invalidate_mem): Likewise.
11454         * function.c (expand_function_start): Likewise.
11455         (emit_use_return_register_into_block): Likewise.
11456         * gcse.c: Likewise.
11457         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
11458         * ifcvt.c (noce_get_alt_condition): Likewise.
11459         * loop-doloop.c (doloop_condition_get): Likewise.
11460         * lra-constraints.c (inherit_in_ebb): Likewise.
11461         * modulo-sched.c (sms_schedule_by_order): Likewise.
11462         * recog.c (next_insn_tests_no_inequality): Likewise.
11463         * reorg.c (emit_delay_sequence): Likewise.
11464         (update_reg_dead_notes): Likewise.
11465         (fix_reg_dead_note): Likewise.
11466         (fill_slots_from_thread): Likewise.
11467         (delete_computation): Likewise.
11469 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
11471         * doc/extend.texi (Variable Attributes): Add menu and proper
11472         @nodes to subsections.  Move Microsoft Windows attributes to
11473         their own subsection.
11474         (Type Attributes): Reorganize introduction to remove duplicate
11475         list of attributes.  Add menu and proper @nodes to subsections.
11476         Alphabetize the main table of common attributes.
11478 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11480         * match.pd: New simplification patterns.
11481         (x + (x & 1))  -> ((x + 1) & ~1)
11482         (x & ~(x & y)) -> ((x & ~y))
11483         (x | ~(x | y)) -> ((x | ~y))
11485 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11487         * target.def (attribute_table): Mention that struct attribute_spec
11488         is defined in tree-core.h rather than tree.h
11489         * doc/tm.texi: Regenerate.
11491 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
11493         * genrecog.c (test): Rename to rtx_test.  Update rest of file
11494         accordingly.
11496 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
11498         PR translation/65959
11499         * params.h (DEFPARAM): Rename msgid to nocmsgid.
11501 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
11503         * gcc/config/aarch64/aarch64-protos.h (tune_params):
11504         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
11505         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
11506         Return value depending on target.
11507         (generic_tunings): Initialize new target settings.
11508         (cortexa53_tunings): Likewise.
11509         (cortexa57_tunings): Likewise.
11510         (thunderx_tunings): Likewise.
11511         (xgene1_tunings): Likewise.
11513 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
11515         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
11516         Make Cortex-A53 shift costs more accurate.
11518 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11520         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
11521         UNSIGNED_FLOAT.
11523 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
11525         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
11526         Calculate cost of op0 and op1 in PLUS and MINUS cases.
11528 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11530         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
11531         Add cost of op0 in the compare-with-fpzero case.
11533 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
11535         * builtins.c (fold_builtin_1): Remove spurious second
11536         semicolon.
11537         * cgraph.h (symtab_node::get_availability): Likewise.
11538         * opts.c (common_handle_option): Remove spurious second semicolon.
11539         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11540         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11542 2015-04-30  Caroline Tice  <cmtice@google.com>
11544         PR gcov-profile/65929
11545         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
11546         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
11547         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
11548         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
11549         * doc/tm.texi: Regenerate.
11550         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
11551         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
11552         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
11553         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
11555 2015-04-30  Marek Polacek  <polacek@redhat.com>
11557         * varasm.c (handle_cache_entry): Fix logic.
11559 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11561         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
11562         (*extrsi5_insn_uxtw_alt): Likewise.
11563         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
11564         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
11565         operations.
11567 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11569         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
11570         fabd in ABS case.
11572 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11574         * config/aarch64/aarch64.md
11575         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
11576         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
11577         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
11578         appropriately.  Handle alternative EON form.
11580 2015-04-30  Renlin Li  <renlin.li@arm.com>
11582         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
11583         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
11585 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
11587         PR ipa/65873
11588         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
11589         -fstrict-aliasing boundaries.
11591 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11593         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
11594         and [SU]MNEGL patterns.
11596 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11598         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
11599         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
11600         combined arithmetic-shift ops.  Properly handle all shift and extend
11601         operations that can occur in combination with PLUS/MINUS.
11602         Rename maybe_fma to compound_p.
11603         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
11604         arithmetic and shift operations.
11606 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11608         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
11609         rather than arith_shift cost when costing ADD/MINUS of an
11610         extended value.
11612 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
11614         PR lto/65948
11615         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
11616         to itself.
11618 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
11620         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
11621         are for the same position.
11623 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
11625         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
11626         vectorize_loops.
11627         (vectorize_loops): Use it.
11629 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
11631         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
11632         for aggregate types.
11633         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
11634         type to be non_ODR.
11635         * tree.c (need_assembler_name_p): Compute mangled name for
11636         non-fundamental types and integer types.
11638 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
11640         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
11641         manual swaps.
11642         * expr.c (expand_expr_real_2): Likewise.
11644 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
11646         * tree.c (build_common_builtin_nodes): Do not build
11647         __builtin_alloca_with_align as equivalent of library alloca.
11649 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
11651         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
11652         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
11653         bugus variants.
11654         * tree.c: Include print-tree.h and ipa-utils.h
11655         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
11656         (free_lang_data_in_cgraph): Call verify_type.
11657         (verify_type_variant): New function.
11658         (verify_type): New function.
11659         * tree.h (verify_type): Declare.
11661 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
11663         * config/mips/mips-cpus.def: (mips4): Change default processor
11664         from PROCESSOR_R8000 to PROCESSOR_R10000.
11666 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
11668         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
11669         la/jalr instead of jal.
11671 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
11673         PR target/65871
11674         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
11675         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
11676         (setcc+movzbl peephole2): Check also clobbered reg.
11677         (setcc+andl peephole2): Ditto.
11679 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
11681         PR libgomp/65099
11682         * config/nvptx/mkoffload.c (target_ilp32): New variable.
11683         (main): Set it depending on "-foffload-abi=[...]".
11684         (compile_native, main): Use it to pass "-m32" or "-m64" to the
11685         compiler.
11687 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
11689         PR target/65770
11690         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
11691         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
11692         Flip lane index back at assembly time for bigendian.
11694 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
11696         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
11697         * gimplify.c (gimplify_omp_workshare): Use it.
11699 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
11701         * Makefile.in (build/genrecog.o): Depend on inchash.h.
11702         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
11703         build/inchash.o
11704         * genrecog.c: Rewrite most of the code except for the third page.
11706 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
11708         * inchash.h, inchash.c: Include bconfig.h for build objects.
11709         * Makefile.in (build/inchash.o): New rule.
11711 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
11713         PR target/65924
11714         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
11715         number in type attribute expression.
11717 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
11719         * loop-iv.c (canon_condition): Generalize to all types of integer
11720         constant.
11722 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
11724         * gimple-walk.c: Prune duplicate or unneeded includes.
11725         (walk_gimple_asm): Only call parse_input_constraint or
11726         parse_output_constraint if their findings are used.
11727         Honour parse_input_constraint and parse_output_constraint
11728         result.
11730 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
11732         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
11734 2015-04-29  Tom de Vries  <tom@codesourcery.com>
11736         PR tree-optimization/65893
11737         * passes.def (pass_all_optimizations): Move pass_stdarg to after
11738         pass_dce.
11740 2015-04-29  Richard Biener  <rguenther@suse.de>
11742         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
11743         compute GROUP_SIZE for basic-block SLP.
11744         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
11745         take into account gaps.
11746         (vect_get_mask_element): Properly reject references to previous
11747         vectors.
11748         (vect_transform_slp_perm_load): Likewise.
11750 2015-04-29  Christian Bruel  <christian.bruel@st.com>
11752         PR target/64835
11753         * config/i386/i386.c (ix86_default_align): New function.
11754         (ix86_override_options_after_change): Call ix86_default_align.
11755         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
11756         (ix86_override_options_after_change): New function.
11758 2015-04-28  Jeff Law  <law@redhat.com>
11760         * tree-ssa-dom.c (record_equality); Fix comment typos.
11762 2015-04-28  Tom de Vries  <tom@codesourcery.com>
11764         PR tree-optimization/65887
11765         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
11767 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
11769         * doc/extend.texi (Declaring Attributes of Functions): Split into
11770         subsections by target.  Alphabetize the table of common attributes.
11771         Rewrite some of the introductory text to reflect the new structure.
11772         Update some cross-references to point to the new subsections.
11773         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
11774         duplicate copies in the discussion of function, label, and type
11775         attributes.
11777 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
11779         PR bootstrap/65910
11780         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
11782 2015-04-28  Jason Merrill  <jason@redhat.com>
11784         PR c++/65734
11785         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
11786         (finalize_type_size): Respect TYPE_USER_ALIGN.
11787         (layout_type) [ARRAY_TYPE]: Likewise.
11789 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
11791         * config/arm/arm.md (*arm_movt): Fix type attribute.
11792         (*cmpsi_shiftsi): Likewise.
11793         (*cmpsi_shiftsi_swp): Likewise.
11794         (*movsicc_insn): Likewise.
11795         (*cond_move): Likewise.
11796         (*if_plus_move): Likewise.
11797         (*if_move_plus): Likewise.
11798         (*if_arith_move): Likewise.
11799         (*if_move_arith): Likewise.
11800         (*if_shift_move): Likewise.
11801         (*if_move_shift): Likewise.
11802         (*arm_movtas_ze): Likewise.
11803         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
11804         redundancy and type attribute.
11805         (*thumb2_movsi_insn): Fix type attribute.
11806         (*thumb2_addsi_short): Likewise.
11807         (thumb2_addsi3_compare0): Likewise.
11808         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
11809         attributes accordingly.
11811 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
11813         PR other/65911
11814         * function.c (pad_to_arg_alignment): Add parentheses.
11816 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
11818         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
11819         libgcc/config/frv/elf-lib.h.
11821 2015-04-28  Tom de Vries  <tom@codesourcery.com>
11823         * tree-call-cdce.c: Fix example in header comment.
11825 2015-04-28  Richard Biener  <rguenther@suse.de>
11827         PR tree-optimization/62283
11828         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
11829         fails fatally and we are vectorizing a basic-block simply
11830         cause the child to be constructed piecewise.
11831         (vect_analyze_slp_cost_1): Adjust.
11832         (vect_detect_hybrid_slp_stmts): Likewise.
11833         (vect_bb_slp_scalar_cost): Likewise.
11834         (vect_get_constant_vectors): For piecewise constructed
11835         constants place them after the last def.
11836         (vect_get_slp_defs): Adjust.
11837         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
11838         externals for basic-block vectorization.
11840 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11842         PR target/63503
11843         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
11844         aarch64-*-*.
11845         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
11846         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
11847         (AARCH64_TUNE_FMA_STEERING): Likewise.
11848         * config/aarch64/aarch64-cores.def: Set
11849         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
11850         FMUL/FMADD instructions.
11851         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
11852         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
11853         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
11854         * config/aarch64/cortex-a57-fma-steering.h: New file.
11855         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11857 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
11859         * gensupport.c (std_preds): Add missing codes to address_operand entry.
11861 2015-04-28  Richard Biener  <rguenther@suse.de>
11863         PR tree-optimization/65851
11864         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
11865         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
11866         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
11867         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
11868         (ccp_visit_phi_node): Adjust.
11869         (evaluate_stmt): For simplifications to SSA names return its
11870         lattice value if that isn't VARYING.  Return immediately when
11871         simplified to a constant.
11872         (visit_assignment): Adjust.
11873         (ccp_visit_stmt): Likewise.
11875 2015-04-28  Tom de Vries  <tom@codesourcery.com>
11877         PR tree-optimization/65818
11878         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
11879         evaluated.
11881 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11883         * calls.c (save_fixed_argument_area): Don't check
11884         ARGS_GROW_DOWNWARD with the preprocessor.
11885         (restore_fixed_argument_area): Likewise.
11886         (mem_overlaps_already_clobbered_arg_p): Likewise.
11887         (check_sibcall_argument_overlap): Likewise.
11888         (expand_call): Likewise.
11889         (emit_library_call_value_1): Likewise.
11890         (store_one_arg): Likewise.
11891         * function.c (assign_parms): Likewise.
11892         (locate_and_pad_parm): Likewise.
11893         (pad_to_arg_alignment): Likewise.
11894         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
11896 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11898         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
11899         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
11900         * calls.c (save_fixed_argument_area): Don't chekc if
11901         ARGS_GROW_DOWNWARD is defined.
11902         (restore_fixed_argument_area): Likewise.
11903         (mem_overlaps_already_clobbered_arg_p): Likewise.
11904         (check_sibcall_argument_overlap): Likewise.
11905         (expand_call): Likewise.
11906         (emit_library_call_value_1): Likewise.
11907         (store_one_arg): Likewise.
11908         * function.c (assign_parms): Likewise.
11909         (locate_and_pad_parm): Likewise.
11910         (pad_to_arg_alignment): Likewise.
11911         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
11913 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11915         * defaults.h (gen_epilogue): New function.
11916         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
11917         defined.
11918         * cfgrtl.c (cfg_layout_finalize): Likewise.
11919         * df-scan.c: Likewise.
11920         * function.c (thread_prologue_and_epilogue_insns): Likewise.
11921         (reposition_prologue_and_epilogue_notes): Likewise.
11922         * reorg.c (find_end_label): Likewise.
11923         * toplev.c: Likewise.
11925 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11927         * bb-reorder.c (HAVE_return): Don't check if its undefined.
11928         * defaults.h (gen_simple_return): New function.
11929         (gen_simple_return): Likewise.
11930         (HAVE_return): Add default definition to false.
11931         (HAVE_simple_return): Likewise.
11932         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
11933         HAVE_return and HAVE_simple_return are defined.
11934         * function.c (gen_return_pattern): Likewise.
11935         (convert_jumps_to_returns): Likewise.
11936         (thread_prologue_and_epilogue_insns): Likewise.
11937         * reorg.c (find_end_label): Likewise.
11938         (dbr_schedule): Likewise.
11939         * shrink-wrap.c: Likewise.
11940         * shrink-wrap.h: Likewise.
11942 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11944         * defaults.h (EPILOGUE_USES): Add default definition of false.
11945         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
11946         * resource.c (init_resource_info): Likewise.
11948 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11950         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
11951         to false.
11952         * dwarf2out.c (field_byte_offset): REmove check if
11953         PCC_BITFIELD_TYPE_MATTERS is defined.
11954         * stor-layout.c (layout_decl): Likewise.
11955         (update_alignment_for_field): Likewise.
11956         (place_field): Likewise.
11958 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11960         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
11961         true.
11962         * regrename.c (check_new_reg_p): Remove check if
11963         HARD_REGNO_RENAME_OK is defined.
11964         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
11966 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11968         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
11969         * cse.c (fold_rtx): Likewise.
11970         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
11971         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
11972         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
11973         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
11974         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
11975         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
11976         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
11977         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
11978         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
11979         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
11980         * Likewise.
11981         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
11982         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
11983         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
11984         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
11985         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
11986         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
11987         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
11988         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
11989         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
11990         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
11991         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
11992         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
11993         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
11994         * doc/tm.texi: Regenerate.
11995         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
11996         either true or false.
11998 2015-04-27  Jeff Law  <law@redhat.com>
12000         PR tree-optimization/65217
12001         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
12002         of them has a single use, make sure it is the LHS of the implied
12003         copy.
12005 2015-04-28  Alan Modra  <amodra@gmail.com>
12007         PR target/65810
12008         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
12009         (offsettable_ok_by_alignment): Use minimum of decl and toc
12010         pointer alignment.  Replace dead code with assertion.
12011         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
12012         case if size exceeds toc pointer alignment.
12013         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
12014         (rs6000_emit_move): Likewise.
12015         * configure.ac: Add linker toc pointer alignment check.
12016         * configure: Regenerate.
12017         * config.in: Regenerate.
12019 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
12021         * config.gcc: Add h8300-*-linux.
12022         * config/h8300/linux.h: New.
12023         * config/h8300/t-linux: New.
12024         * config/h8300/h8300.c (h8300_option_override): Normal mode
12025         is not supported for h8300-*-linux.
12026         (h8300_file_start): Target priority change.
12027         (get_shift_alg): Likewise.
12028         (h8300_shift_need_scratch_p): Likewise.
12029         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12030         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
12032 2015-04-27  Caroline Tice  <cmtice@google.com>
12034         * final.c (final_scan_insn):  Output cold_function_name as function
12035         type.
12036         * varasm.c (cold_function_name):  Make global.
12037         (assemble_start_function):  Re-set cold_function_name.
12038         (assemble_end_function): Output cold partition size.
12039         * varasm.h (cold_function_name):  Declare global.
12041 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
12043         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
12044         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
12045         constraint.
12046         (*movxi_internal_avx512f): Ditto.
12047         (define_split): Check for xmm16+, when splitting scalar float_extend.
12048         (*extendsfdf2_mixed): Use "v" constraint.
12049         (define_split): Check for xmm16+, when splitting scalar float_truncate.
12050         (*truncdfsf_fast_sse): Use "v" constraint.
12051         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
12052         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
12053         (define_peephole2): Check for xmm16+, when converting scalar
12054         float_truncate.
12055         (define_peephole2): Check for xmm16+, when converting scalar
12056         float_extend.
12057         (*fop_<mode>_comm_mixed): Use "v" constraint.
12058         (*fop_<mode>_comm_sse): Ditto.
12059         (*fop_<mode>_1_mixed): Ditto.
12060         (*sqrt<mode>2_sse): Ditto.
12061         (*ieee_s<ieee_maxmin><mode>3): Ditto.
12063 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12065         * combine.c (simplify_if_then_else): Use std::swap instead
12066         of manually swapping.
12067         (known_cond): Likewise.
12068         (simplify_comparison): Likewise.
12070 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
12072         PR target/64579
12073         * config/rs6000/htm.md: Remove all define_expands.
12074         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
12075         UNSPECV_HTM_TABORTWCI): Remove.
12076         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
12077         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
12078         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
12079         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
12080         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
12081         tabortwci_internal): Remove define_insns.
12082         (tabort<wd>c, tabort<wd>ci): New define_insns.
12083         (tabort): Use gpc_reg_operand.
12084         (tcheck): Remove operand.
12085         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
12086         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
12087         expected value.
12088         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
12089         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
12090         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
12091         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
12092         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
12093         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
12094         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
12095         (tcheck): Remove builtin argument.
12096         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
12097         not TARGET_64BIT.
12098         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
12099         tabortdc and tabortdci builtins when not in 64-bit mode.
12100         Modify code to handle the loss of the HTM define_expands.
12101         Emit code to copy the CR register to TARGET.
12102         (htm_init_builtins): Modify code to handle the loss of the HTM
12103         define_expands.
12104         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
12105         (RS6000_BTC_64BIT): Likewise.
12106         (RS6000_BTC_CR): New macro.
12107         * doc/extend.texi: Update documentation for htm builtins.
12109 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12111         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
12112         of manually swapping.
12113         (simplify_associative_operation): Likewise.
12114         (simplify_binary_operation): Likewise.
12115         (simplify_plus_minus): Likewise.
12116         (simplify_relational_operation): Likewise.
12117         (simplify_ternary_operation): Likewise.
12119 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12121         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
12122         (xs_hi_nonmemory_operand): Remove error.
12123         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
12124         general_operand rather than xs_hi_general_operand.
12126 2015-04-27  Richard Biener  <rguenther@suse.de>
12128         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
12129         (record_equivalences_from_stmt): Valueize rhs.
12130         (record_equality): Canonicalize x and y order via
12131         tree_swap_operands_p.  Do not swap operands for same loop depth.
12133 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
12135         PR target/65296
12136         PR target/65895
12137         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
12138         Add hint how to use own spec file.
12140 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
12142         PR tree-optimization/65875
12143         * tree-vrp.c (update_value_range): If in is_new case setting
12144         old_vr to VR_VARYING, also set new_vr to it.  Remove
12145         old_vr->type == VR_VARYING test.
12146         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
12147         SSA_PROP_INTERESTING if update_value_range returned true,
12148         but new range is VR_VARYING.
12150 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12152         * combine.c (sign_extend_short_imm): New.
12153         (set_nonzero_bits_and_sign_copies): Use above new function for sign
12154         extension of src short immediate.
12155         (reg_nonzero_bits_for_combine): Likewise for tem.
12157 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12159         * stor-layout.c (self_referential_component_ref_p): New predicate.
12160         (copy_self_referential_tree_r): Use it.
12161         (self_referential_size): Punt for simple operations directly involving
12162         self-referential component references.
12163         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
12165 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12167         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
12169 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
12171         * vec.h (vec): Make splice arguments const.  Update definitions
12172         accordingly.
12174 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
12176         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
12177         alternatives.
12179 2015-04-26  Tom de Vries  <tom@codesourcery.com>
12181         PR tree-optimization/65826
12182         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
12184 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
12186         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
12187         (*madd3<mode>): Ditto.
12188         (*msub4<mode>): Ditto.
12189         (*msub3<mode>): Ditto.
12190         (*nmadd4<mode>): Ditto.
12191         (*nmadd3<mode>): Ditto.
12192         (*nmadd4<mode>_fastmath): Ditto.
12193         (*nmadd3<mode>_fastmath): Ditto.
12194         (*nmsub4<mode>): Ditto.
12195         (*nmsub3<mode>): Ditto.
12196         (*nmsub4<mode>_fastmath): Ditto.
12197         (*nmsub3<mode>_fastmath): Ditto.
12199 2015-04-24  Jason Merrill  <jason@redhat.com>
12201         PR c++/50800
12202         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
12203         down when building TYPE_CANONICAL.
12204         (build_pointer_type_for_mode): Likewise.
12206 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
12208         * genrecog.c (validate_pattern): Check matching constraint refers
12209         to a lower numbered operand.
12211 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12213         PR target/65849
12214         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
12215         save to independent variables use the Save attribute.  This will
12216         allow these options to be modified with the #pragma/attribute
12217         target support.
12218         (-mallow-movmisalign): Likewise.
12219         (-mallow-df-permute): Likewise.
12220         (-msched-groups): Likewise.
12221         (-malways-hint): Likewise.
12222         (-malign-branch-targets): Likewise.
12223         (-mvectorize-builtins): Likewise.
12224         (-msave-toc-indirect): Likewise.
12226         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
12227         can be set via the #pragma/attribute target support.
12228         (rs6000_opt_vars): Likewise.
12229         (rs6000_inner_target_options): If VSX was set, also set
12230         -mno-avoid-indexed-addresses.
12232 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12234         * config/arm/iterators.md (shiftable_ops): Rename to...
12235         (SHIFTABLE_OPS): ... This.  Update use in comments.
12236         (ior_xor): Rename to...
12237         (IOR_XOR): ... This.
12238         (vqh_ops): Rename to...
12239         (VQH_OPS): ... This.
12240         (vqhs_ops): Rename to...
12241         (VQHS_OPS): ... This.
12242         (rshifts): Rename to...
12243         (RSHIFTS): ... This.
12244         (returns): Rename to...
12245         (RETURNS): ... This.
12246         * config/arm/arm.md: Update uses of the above.
12247         * config/arm/neon.md: Likewise.
12249 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12251         * config.host (case ${host}): Add aarch64*-*-linux case.
12252         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
12253         fields to all the cores.
12254         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
12255         Add MCPU_MTUNE_NATIVE_SPECS.
12256         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
12257         field to all extensions.
12258         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
12259         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
12260         Adjust definition of AARCH64_OPT_EXTENSION.
12261         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
12262         (MCPU_MTUNE_NATIVE_SPECS): Define.
12263         * config/aarch64/driver-aarch64.c: New file.
12264         * config/aarch64/x-arch64: New file.
12265         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
12266         -mtune and -march.
12268 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12269             Wei Mi  <wmi@google.com>
12271         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
12272         * config/i386/i386.c (extract_base_offset_in_addr): New function.
12273         (ix86_operands_ok_for_move_multiple): Ditto.
12274         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
12275         (movlpd/movhpd to movupd peephole2): Ditto.
12277 2015-04-24  Marek Polacek  <polacek@redhat.com>
12279         PR c/61534
12280         * input.h (from_macro_expansion_at): Define.
12282         PR c/63357
12283         * doc/invoke.texi: Update description of -Wlogical-op.
12285 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12287         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
12288         ternary operator in fprintf and harmonize spacing.
12290 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12292         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
12293         Mark operand1 commutative.
12295 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
12297         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
12298         input operands in memory.
12299         (*vec_concatv2si_sse4_1): Ditto.
12300         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
12301         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
12302         register_operand.
12303         (vec_extract_hi_v32hi): Ditto.
12304         (vec_extract_hi_v64hi): Ditto.
12305         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
12307 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12308             Steven Bosscher <steven@gcc.gnu.org>
12310         PR rtl-optimization/34503
12311         * cprop.c (cprop_reg_p): New.
12312         (hash_scan_set): Use above function to check if register can be
12313         propagated.
12314         (find_avail_set): Return up to two sets, one whose source is a
12315         register and one whose source is a constant.  Sets are returned in an
12316         array passed as parameter rather than as a return value.
12317         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
12318         sets returned by find_avail_set, starting with the one whose source is
12319         a constant. Use cprop_reg_p to check if register can be propagated.
12320         (do_local_cprop): Use cprop_reg_p to check if register can be
12321         propagated.
12322         (implicit_set_cond_p): Likewise.
12324 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12326         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
12327         (sem_function::equals): IGNORED_NODES parameter is now unused;
12328         update call of equals_private.
12329         (sem_function::equals_private): Do not call equals_wpa; skip
12330         gimple body matching if there is no body.
12331         (sem_function::init): Add logic to hash tthunk info.
12332         (sem_function::parse): Also parse thunks.
12333         * ipa-icf.h (equals_private): Update declaration.
12335 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12337         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
12338         asterisk from name so this can be generated directly.
12339         (*altivec_stvx_<mode>_internal): Likewise.
12340         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
12341         that this is never called during or after reload/lra.
12342         (rs6000_frame_related): Remove split_reg
12343         argument and logic that references it.
12344         (emit_frame_save): Remove last parameter from call to
12345         rs6000_frame_related.
12346         (rs6000_emit_prologue): Remove last parameter from eight calls to
12347         rs6000_frame_related.  Force generation of stvx instruction for
12348         Altivec register saves.  Remove split_reg handling, which is no
12349         longer needed.
12350         (rs6000_emit_epilogue):  Force generation of lvx instruction for
12351         Altivec register restores.
12353 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12355         * config/rs6000/rs6000.opt (mcrypto): Change option description to
12356         match category changes in ISA 2.07B.
12358 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12360         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
12361         iterators.
12362         (cmp_op, cmp_type): New code attributes.
12363         (NEON_VCMP, NEON_VACMP): New int iterators.
12364         (cmp_op_unsp): New int attribute.
12365         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
12366         (neon_vceq<mode>): Delete.
12367         (neon_vc<cmp_op><mode>_insn): New pattern.
12368         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
12369         (neon_vcgeu<mode>): Delete.
12370         (neon_vcle<mode>): Likewise.
12371         (neon_vclt<mode>: Likewise.
12372         (neon_vcage<mode>): Likewise.
12373         (neon_vcagt<mode>): Likewise.
12374         (neon_vca<cmp_op><mode>): New define_expand.
12375         (neon_vca<cmp_op><mode>_insn): New pattern.
12376         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
12378 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12380         * tree.h (attribute_value_equal): Declare.
12381         * tree.c (attribute_value_equal): Export.
12383 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12385         * ipa-icf.c (sem_item::compare_attributes): New function.
12386         (sem_item::compare_referenced_symbol_properties): Compare variable
12387         attributes.
12388         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
12389         (sem_function::param_used_p): New function.
12390         (sem_function::equals_wpa): Fix attribute comparsion; match
12391         parameter type codes; do not compare paremter flags when
12392         they are not used; compare edge flags; compare indirect calls.
12393         (sem_item::update_hash_by_addr_refs): Hash reference type.
12394         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
12395         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
12396         reference use type.
12397         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
12398         * ipa-icf.h (compare_attributes, param_used_p): Declare.
12400 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
12402         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
12403         cleanup.
12404         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
12405         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
12406         (sem_item::compare_referenced_symbol_properties): New.
12407         (sem_item::hash_referenced_symbol_properties): New.
12408         (sem_item::compare_cgraph_references): Rename to ...
12409         (sem_item::compare_symbol_references): ... this one; use
12410         compare_referenced_symbol_properties.
12411         (sem_function::equals_wpa): Do not compare
12412         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
12413         DECL_IS_OPERATOR_NEW; compare pointer sizes.
12414         (sem_item::update_hash_by_addr_refs): Call
12415         hash_referenced_symbol_properties.
12416         (sem_item::update_hash_by_local_refs): Cleanup.
12417         (sem_function::merge): Do not mix up symbol properties.
12418         (sem_variable::equals_wpa): Use compare_symbol_references.
12419         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
12420         (sem_item::hash_referenced_symbol_properties): New.
12421         (sem_item::compare_symbol_references): New.
12422         (sem_item::compare_cgraph_references): Remove.
12424 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
12426         PR target/26702
12427         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
12428         Emit size of local.
12430 2015-04-23  Nick Clifton  <nickc@redhat.com>
12432         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
12433         ATTRIBUTE_UNUSED to x parameter.
12434         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
12436 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12438         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
12439         TARGET_CRYPTO to TARGET_P8_VECTOR>
12440         (crypto_vpermxor_<mode>): Likewise.
12441         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
12442         (BU_CRYPTO_3A): Likewise.
12443         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
12444         (BU_CRYPTO_OVERLOAD_3A): New #define.
12445         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
12446         (VPMSUMH): Likewise.
12447         (VPMSUMW): Likewise.
12448         (VPMSUMD): Likewise.
12449         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
12450         (VPERMXOR_V4SI): Likewise.
12451         (VPERMXOR_V8HI): Likewise.
12452         (VPERMXOR_V16QI): Likewise.
12453         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
12454         BU_CRYPTO_OVERLOAD_2A.
12455         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
12456         BU_CRYPTO_OVERLOAD_3A.
12457         * config/rs6000/rs6000.opt (mcrypto): Change description of
12458         option.
12460 2015-04-23  Richard Biener  <rguenther@suse.de>
12462         * passes.def: Remove copy propagation passes run directly after CCP.
12463         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
12464         SSA names.
12465         (ccp_visit_phi_node): Rework to handle first executable edge
12466         specially.
12468 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
12470         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12471         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
12472         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
12473         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
12474         (thumb_legimitimize_reload_address): Remove.
12475         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
12476         Remove.
12477         (thumb_legimitimize_reload_address): Remove.
12479 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12481         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
12483 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12485         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
12486         MAX_LDM_STM_OPS.
12487         (store_multiple): Likewise.
12489 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12491         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
12492         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
12493         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
12494         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
12495         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
12496         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
12497         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
12498         Specify issue_rate value.
12499         (arm_issue_rate): Look up issue rate from tuning structs. Remove
12500         large switch statement.
12501         (arm_marvell_pj4_tune): New struct.
12502         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
12503         struct.
12505 2015-04-23  Richard Biener  <rguenther@suse.de>
12507         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
12508         (vect_find_last_store_in_slp_instance): Rename to ...
12509         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
12510         (vect_analyze_slp_cost_1): Use vector_load for constant defs
12511         and vec_construct for external defs when estimating prologue cost.
12512         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
12513         Compute costs here only when vectorizing loops.
12514         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
12515         have been determined.
12516         (vect_schedule_slp_instance): Simplify vectorized code placement
12517         and prepare for in-BB external defs.
12518         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
12519         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
12520         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
12521         guard.
12522         (vect_model_load_cost): Likewise.
12523         (vectorizable_store): Instead add it here.
12524         (vectorizable_load): Likewise.
12525         (vect_is_simple_use): Dump def type textually.
12527 2015-04-23  Richard Biener  <rguenther@suse.de>
12529         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
12530         * cfgloop.c (verify_loop_structure): Verify the root loop node.
12531         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
12532         instead of get_eh_region_from_lp_number.
12533         * loop-init.c (fix_loop_structure): If we removed a loop, reset
12534         the SCEV cache.
12536 2015-04-23  Anton Blanchard  <anton@samba.org>
12538         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
12539         need for -mprofile-kernel to save LR to stack.
12541 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12543         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
12544         adjustments.
12545         (insn_is_swappable_p): Return 1 for a convert from double to
12546         single precision when all of its uses are splats of BE element
12547         zero.
12549 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12551         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
12553 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12555         PR target/65456
12556         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
12557         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
12558         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
12559         option.
12560         (rs6000_builtin_mask_for_load): Return 0 for targets with
12561         efficient unaligned VSX accesses so that the vectorizer will use
12562         direct unaligned loads.
12563         (rs6000_builtin_support_vector_misalignment): Always return true
12564         for targets with efficient unaligned VSX accesses.
12565         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
12566         stores on targets with efficient unaligned VSX accesses is almost
12567         always the same as the cost of an aligned load or store, so model
12568         it that way.
12569         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
12570         unaligned vectors if we have efficient unaligned VSX accesses.
12571         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
12572         undocumented option.
12574 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12576         Revert:
12577         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
12579         * config.gcc (LIBC_MUSL): New tm_defines macro.
12580         * config/linux.h (OPTION_MUSL): Define.
12581         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12582         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12583         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12585         * config/linux.opt (mmusl): New option.
12586         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12587         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12589         * configure: Regenerate.
12591 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
12593         * config.gcc (LIBC_MUSL): New tm_defines macro.
12594         * config/linux.h (OPTION_MUSL): Define.
12595         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12596         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12597         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12599         * config/linux.opt (mmusl): New option.
12600         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12601         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12603         * configure: Regenerate.
12605 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
12607         * doc/invoke.texi (-fsanitize-sections): Update description.
12608         * asan.c (set_sanitized_sections): Parse incoming arg.
12609         (section_sanitized_p): Support wildcards.
12611 2015-04-22  Tom de Vries  <tom@codesourcery.com>
12613         PR tree-optimization/65823
12614         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
12615         equality between ap_copy and ap.
12617 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12619         PR target/47098
12620         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
12622 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12624         PR target/47122
12625         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
12627 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12629         PR target/55144
12630         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
12631         remove already contained t-files.
12633 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12635         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
12636         Remove unneeded forward declarations.
12637         (suitable_for_tail_call_opt_p): Commentary typo fix.
12639 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12641         * varasm.c (emit_bss): Remove redundant guard.
12643 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12645         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
12647 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12649         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
12651 2015-04-22  Hale Wang  <hale.wang@arm.com>
12652             Terry Guo  <terry.guo@arm.com>
12654         PR rtl-optimization/64818
12655         * combine.c (can_combine_p): Don't combine user-specified
12656         register if it is in an asm input.
12658 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
12660         PR ipa/65076
12661         * passes.def (early_optimizations): Add pass_dse.
12663 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12665         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
12666         * reorg.c (redundant_insn): Remove ifdef
12667         INSN_REFERENCES_ARE_DELAYED.
12668         * resource.c (mark_referenced_resources): Likewise.
12670 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12672         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
12673         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
12674         * resource.c (mark_set_resources): Likewise.
12676 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12678         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
12679         * cfgcleanup.c (flow_find_cross_jump): Likewise.
12680         (flow_find_head_matching_sequence): Likewise.
12681         (try_head_merge_bb): Likewise.
12682         * combine.c (can_combine_p): Likewise.
12683         (try_combine): Likewise.
12684         (distribute_notes): Likewise.
12685         * df-problems.c (can_move_insns_across): Likewise.
12686         * final.c (final): Likewise.
12687         * gcse.c (insert_insn_end_basic_block): Likewise.
12688         * ira.c (find_moveable_pseudos): Likewise.
12689         * reorg.c (try_merge_delay_insns): Likewise.
12690         (fill_simple_delay_slots): Likewise.
12691         (fill_slots_from_thread): Likewise.
12692         * sched-deps.c (sched_analyze_2): Likewise.
12694 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12696         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
12697         PIC_OFFSET_TABLE_REGNUM.
12699 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12701         * alias.c (init_alias_target): Remove ifdef
12702         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
12703         * df-scan.c (df_insn_refs_collect): Likewise.
12704         (df_get_regular_block_artificial_uses): Likewise.
12705         (df_get_eh_block_artificial_uses): Likewise.
12706         (df_get_entry_block_def_set): Likewise.
12707         (df_get_exit_block_use_set): Likewise.
12708         * emit-rtl.c (gen_rtx_REG): Likewise.
12709         * ira.c (ira_setup_eliminable_regset): Likewise.
12710         * reginfo.c (init_reg_sets_1): Likewise.
12711         * regrename.c (rename_chains): Likewise.
12712         * reload1.c (reload): Likewise.
12713         (eliminate_regs_in_insn): Likewise.
12714         * resource.c (mark_referenced_resources): Likewise.
12715         (init_resource_info): Likewise.
12717 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12719         * defaults.h (MASK_RETURN_ADDR): New definition.
12720         * except.c (expand_builtin_extract_return_addr): Remove ifdef
12721         MASK_RETURN_ADDR.
12723 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12725         * defaults.h (RETURN_ADDR_OFFSET): New definition.
12726         * except.c (expand_builtin_extract_return_addr): Remove ifdef
12727         RETURN_ADDR_OFFSET.
12728         (expand_builtin_frob_return_addr): Likewise.
12730 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12732         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
12733         (try_redirect_by_replacing_jump): Likewise.
12734         (rtl_tidy_fallthru_edge): Likewise.
12735         * combine.c (insn_a_feeds_b): Likewise.
12736         (find_split_point): Likewise.
12737         (simplify_set): Likewise.
12738         * cprop.c (cprop_jump): Likewise.
12739         * cse.c (cse_extended_basic_block): Likewise.
12740         * df-problems.c (can_move_insns_across): Likewise.
12741         * function.c (emit_use_return_register_into_block): Likewise.
12742         * haifa-sched.c (sched_init): Likewise.
12743         * ira.c (find_moveable_pseudos): Likewise.
12744         * loop-invariant.c (find_invariant_insn): Likewise.
12745         * lra-constraints.c (curr_insn_transform): Likewise.
12746         * postreload.c (reload_combine_recognize_const_pattern):
12747         * Likewise.
12748         * reload.c (find_reloads): Likewise.
12749         * reorg.c (delete_scheduled_jump): Likewise.
12750         (steal_delay_list_from_target): Likewise.
12751         (steal_delay_list_from_fallthrough): Likewise.
12752         (redundant_insn): Likewise.
12753         (fill_simple_delay_slots): Likewise.
12754         (fill_slots_from_thread): Likewise.
12755         (delete_computation): Likewise.
12756         * sched-rgn.c (add_branch_dependences): Likewise.
12758 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12760         * genconfig.c (main): Always define HAVE_cc0.
12761         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
12762         HAVE_cc0.
12763         * cfgcleanup.c (flow_find_cross_jump): Likewise.
12764         (flow_find_head_matching_sequence): Likewise.
12765         (try_head_merge_bb): Likewise.
12766         * cfgrtl.c (rtl_merge_blocks): Likewise.
12767         (try_redirect_by_replacing_jump): Likewise.
12768         (rtl_tidy_fallthru_edge): Likewise.
12769         * combine.c (do_SUBST_MODE): Likewise.
12770         (insn_a_feeds_b): Likewise.
12771         (combine_instructions): Likewise.
12772         (can_combine_p): Likewise.
12773         (try_combine): Likewise.
12774         (find_split_point): Likewise.
12775         (subst): Likewise.
12776         (simplify_set): Likewise.
12777         (distribute_notes): Likewise.
12778         * cprop.c (cprop_jump): Likewise.
12779         * cse.c (cse_extended_basic_block): Likewise.
12780         * df-problems.c (can_move_insns_across): Likewise.
12781         * final.c (final): Likewise.
12782         (final_scan_insn): Likewise.
12783         * function.c (emit_use_return_register_into_block): Likewise.
12784         * gcse.c (insert_insn_end_basic_block): Likewise.
12785         * haifa-sched.c (sched_init): Likewise.
12786         * ira.c (find_moveable_pseudos): Likewise.
12787         * loop-invariant.c (find_invariant_insn): Likewise.
12788         * lra-constraints.c (curr_insn_transform): Likewise.
12789         * optabs.c (prepare_cmp_insn): Likewise.
12790         * postreload.c (reload_combine_recognize_const_pattern):
12791         * Likewise.
12792         * reload.c (find_reloads): Likewise.
12793         (find_reloads_address_1): Likewise.
12794         * reorg.c (delete_scheduled_jump): Likewise.
12795         (steal_delay_list_from_target): Likewise.
12796         (steal_delay_list_from_fallthrough): Likewise.
12797         (try_merge_delay_insns): Likewise.
12798         (redundant_insn): Likewise.
12799         (fill_simple_delay_slots): Likewise.
12800         (fill_slots_from_thread): Likewise.
12801         (delete_computation): Likewise.
12802         (relax_delay_slots): Likewise.
12803         * sched-deps.c (sched_analyze_2): Likewise.
12804         * sched-rgn.c (add_branch_dependences): Likewise.
12806 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12808         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
12809         that is trivially ded on non cc0 targets.
12810         (simplify_set): Likewise.
12811         (mark_used_regs_combine): Likewise.
12812         * cse.c (new_basic_block): Likewise.
12813         (fold_rtx): Likewise.
12814         (cse_insn): Likewise.
12815         (cse_extended_basic_block): Likewise.
12816         (set_live_p): Likewise.
12817         * rtlanal.c (canonicalize_condition): Likewise.
12818         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12820 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12822         * conditions.h: Define macros even if HAVE_cc0 is undefined.
12823         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
12824         * final.c: Likewise.
12825         * jump.c: Likewise.
12826         * recog.c: Likewise.
12827         * recog.h: Declare functions even when HAVE_cc0 is undefined.
12828         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
12830 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12832         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
12833         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
12834         * builtins.c (expand_builtin): Remove check if
12835         EH_RETURN_DATA_REGNO is defined.
12836         * df-scan.c (df_bb_refs_collect): Likewise.
12837         (df_get_exit_block_use_set): Likewise.
12838         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
12839         * ira-lives.c (process_bb_node_lives): Likewise.
12840         * lra-lives.c (process_bb_lives): Likewise.
12842 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
12844         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
12845         FIRST_PSEUDO_REG): New.
12846         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
12847         (ARG_POINTER_REGNUM): Define to ARGP_REG.
12848         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
12849         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
12850         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
12851         (FIRST_INT_REG): New.
12852         (LAST_INT_REG): New.
12853         (FIRST_*_REG): Define using *_REG.
12854         (LAST_*_REG): Ditto.
12855         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
12856         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
12857         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
12859 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12861         * expmed.c: (synth_mult): Only assume overlapping
12862         shift with previous steps in alg_sub_t_m2 case.
12864 2015-04-21  Richard Biener  <rguenther@suse.de>
12866         PR tree-optimization/65650
12867         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
12868         transitions involving copies.
12869         (set_lattice_value): Adjust for copy lattice state.
12870         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
12871         if that doesn't dominate the merge point.
12872         (bit_value_unop): Adjust what we treat as varying mask.
12873         (bit_value_binop): Likewise.
12874         (bit_value_assume_aligned): Likewise.
12875         (evaluate_stmt): When we simplified to a SSA name record a copy
12876         instead of dropping to varying.
12877         (visit_assignment): Simplify.
12879         * gimple-match.h (gimple_simplify): Add another callback.
12880         * gimple-fold.c (fold_stmt_1): Adjust caller.
12881         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
12882         for the 2nd callback.
12883         * gimple-match-head.c (gimple_simplify): Add a callback that is
12884         used to valueize the stmt operands and use it that way.
12886 2015-04-21  Richard Biener  <rguenther@suse.de>
12888         PR tree-optimization/65788
12889         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
12891 2015-04-21  Richard Biener  <rguenther@suse.de>
12893         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
12894         vec_construct cost by vec_stmt_cost.
12896 2015-04-21  Richard Biener  <rguenther@suse.de>
12898         * cfghooks.h (create_basic_block): Replace with two overloads
12899         for RTL and GIMPLE.
12900         (split_block): Likewise.
12901         * cfghooks.c (split_block): Rename to ...
12902         (split_block_1): ... this.
12903         (split_block): Add two type-safe overloads for RTL and GIMPLE.
12904         (split_block_after_labels): Call split_block_1.
12905         (create_basic_block): Rename to ...
12906         (create_basic_block_1): ... this.
12907         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
12908         (create_empty_bb): Call create_basic_block_1.
12909         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
12910         split_block_after_labels.
12911         * omp-low.c (expand_parallel_call): Likewise.
12912         (expand_omp_target): Likewise.
12913         (simd_clone_adjust): Likewise.
12914         * tree-chkp.c (chkp_get_entry_block): Likewise.
12915         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
12916         create_basic_block overload.
12917         (cgraph_node::expand_thunk): Likewise.
12918         * tree-cfg.c (make_blocks): Likewise.
12919         (handle_abnormal_edges): Likewise.
12920         * tree-inline.c (copy_bb): Likewise.
12922 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12924         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
12925         New pattern.
12926         (*xor_one_cmplsidi3_ze): Likewise.
12928 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12930         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
12931         use df_remove_problem rather than manually removing problems, leaving
12932         holes in df->problems_in_order[].
12934 2015-04-21  Tom de Vries  <tom@codesourcery.com>
12936         PR tree-optimization/65802
12937         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
12939 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12941         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
12942         Increase to 128.
12943         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
12944         at '.'.  Assert that there's enough space for everything.
12946 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
12948         PR tree-optimization/64950
12949         Revert:
12950         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
12952         PR target/41089
12953         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12954         as volatile.
12956 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
12958         PR rtl-optimization/64916
12959         * cfgcleanup.c (values_equal_p): New function.
12960         (can_replace_by): Use it.
12962 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
12964         PR c++/65801
12965         * doc/invoke.texi ([-Wnarrowing]): Update.
12967 2015-04-20  Jeff Law  <law@redhat.com>
12969         PR tree-optimization/65658
12970         * tree-ssa-threadupdate.c (redirection_block_p): Remove
12971         redundant test for GIMPLE_ASSIGN in last change.
12973 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
12975         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
12976         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
12977         (legitimize_tls_address): Ditto.
12978         (ix86_expand_move): Ditto.
12979         (ix86_expand_binary_operator): Remove reload_in_progress checks.
12980         (ix86_expand_unary_operator): Ditto.
12981         * config/i386/predicates.md (index_register_operand): Ditto.
12983 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
12985         * reorg.c (try_merge_delay_insns): Improve correctness checking
12986         for targets with multiple delay slots.
12988 2015-04-20  Jeff Law  <law@redhat.com>
12990         PR tree-optimization/65658
12991         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
12992         statements too.
12994 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
12996         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
12997         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
12998         Delete.
13000 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
13002         PR debug/65807
13003         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
13005 2015-04-20  Richard Biener  <rguenther@suse.de>
13007         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
13008         * gimple-fold.c (gimple_build_valueize): New function.
13009         (gimple_build): Always use gimple_build_valueize as valueize hook.
13011 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
13013         PR target/64134
13014         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
13015         and overwrite variable parts if <= 1/2 the elements are variable.
13017 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
13019         PR rtl-optimization/65805
13020         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
13021         Don't use difference of offset and previous offset if
13022         update_sp_offset is non-zero.
13023         (eliminate_regs_in_insn): Ditto.
13024         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
13025         lra_eliminate_regs_1 call.
13026         * lra-constraints.c (get_equiv_with_elimination): Ditto.
13028 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
13030         * hash-table.h: Remove version of hash_table that stored value_type *.
13031         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
13032         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
13033         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
13034         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
13035         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
13036         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
13037         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13038         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
13039         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
13040         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
13041         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
13042         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
13043         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
13044         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13045         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
13046         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
13048 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13049             Jakub Jelinek  <jakub@redhat.com>
13051         PR target/65787
13052         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
13053         subsequent SH_NONE operand does not overwrite an existing *special
13054         value.
13055         (adjust_extract): Handle case where a vec_extract operation is
13056         wrapped in a PARALLEL.
13058 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13060         PR target/65780
13061         * config/i386/i386.c (ix86_binds_local_p): Define only if
13062         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
13064 2015-04-17  Jeff Law  <law@redhat.com>
13066         PR tree-optimization/47679
13067         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
13068         * tree-ssa-scopedtables.c: New file.
13069         * tree-ssa-scopedtables.h: New file.
13070         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
13071         (const_and_copies): Change name/type.
13072         (record_const_or_copy): Move into tree-ssa-scopedtables.c
13073         (record_const_or_copy_1): Similarly.
13074         (restore_vars_to_original_value): Similarly.
13075         (pass_dominator::execute): Create and destroy const_and_copies table.
13076         (thread_across_edge): Update passing of const_and_copies.
13077         (record_temporary_equivalence): Use method calls rather than
13078         manipulating const_and_copies directly.
13079         (record_equality, cprop_into_successor_phis): Similarly.
13080         (dom_opt_dom_walker::before_dom_children): Similarly.
13081         (dom_opt_dom_walker::after_dom_children): Similarly.
13082         (eliminate_redundant_computations): Similarly.
13083         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
13084         (record_temporary_equivalence): Likewise.
13085         (invalidate_equivalences): Likewise.
13086         (record_temporary_equivalences_from_phis): Update due to type
13087         change of const_and_copies.  Use method calls rather than
13088         manipulating the stack directly.
13089         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
13090         (thread_through_normal_block, thread_across_edge): Likewise.
13091         (thread_across_edge): Likewise.
13092         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13093         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
13094         of equiv_stack.
13095         (identify_jump_threads): Update due to type change of equiv_stack.
13096         (finalize_jump_threads): Delete the equiv_stack when complete.
13098 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
13100         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13101         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
13102         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
13104 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
13106         PR target/65535
13107         * config.gcc: Exit with a comment when we do not have a major version
13108         number for the FreeBSD target.
13110 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13112         PR target/65689
13113         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
13114         maybe_allows_mem bitfields.
13115         (maybe_allows_none_start, maybe_allows_none_end,
13116         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
13117         maybe_allows_mem_end): New variables.
13118         (compute_maybe_allows): New function.
13119         (add_constraint): Use it to initialize maybe_allows_reg and
13120         maybe_allows_mem fields.
13121         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
13122         is_address constraints such that those that allow neither mem nor
13123         reg come first, then those that only allow reg but not mem, then
13124         those that only allow mem but not reg, then the rest.
13125         (write_allows_reg_mem_function): New function.
13126         (write_tm_preds_h): Call it.
13127         * stmt.c (parse_output_constraint, parse_input_constraint): Use
13128         the generated insn_extra_constraint_allows_reg_mem function
13129         instead of always setting *allows_reg = true; *allows_mem = true;
13130         for unknown extra constraints.
13132 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13134         PR target/65780
13135         * output.h (default_binds_local_p_3): New.
13136         * varasm.c (default_binds_local_p_3): Make it public.  Take an
13137         argument to indicate if common symbol may be local.  If common
13138         symbol may be local, treat non-external variable as defined
13139         locally.
13140         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
13141         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
13142         * config/i386/i386.c (ix86_binds_local_p): New.
13143         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
13144         ix86_binds_local_p.
13146 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13148         PR debug/65771
13149         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
13150         trying mem_loc_descriptor on XEXP (rtl, 0).
13152 2015-04-17  Martin Liska  <mliska@suse.cz>
13154         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13155         Release symbol_compare_collection.
13156         * ipa-reference.c: Add TODO that a vector should be released.
13158 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
13160         PR target/65296
13161         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
13162         to new AVR-LibC file layout (bug #44574).
13163         (*avrlibc_devicelib): Same.
13164         * config/avr/avr-mcus.def: Adjust comments.
13165         * config/avr/avr.opt (nodevicelib): Adjust help.
13167 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
13169         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
13171 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
13173         PR c++/64527
13174         * gimplify.c (gimplify_init_constructor): Always emit a
13175         side-effecting constructor.
13177 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13179         PR tree-optimization/64950
13180         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
13181         in cfun->curr_properties.
13182         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
13183         if we generate an IFN_VA_ARG.
13184         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
13185         function if PROP_gimple_lva is not set in src function.
13187 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13188             Michael Matz  <matz@suse.de>
13190         PR tree-optimization/64950
13191         * gimple-iterator.c (update_modified_stmts): Remove static.
13192         * gimple-iterator.h (update_modified_stmts): Declare.
13193         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
13194         (gimplify_va_arg_internal): New function.
13195         (gimplify_va_arg_expr): Use IFN_VA_ARG.
13196         * gimplify.h (gimplify_va_arg_internal): Declare.
13197         * internal-fn.c (expand_VA_ARG): New unreachable function.
13198         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
13199         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
13200         (expand_ifn_va_arg): New function.
13201         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
13202         (pass_stdarg::execute): Call expand_ifn_va_arg.
13203         (pass_data_lower_vaarg): New pass_data.
13204         (pass_lower_vaarg): New gimple_opt_pass.
13205         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
13206         (make_pass_lower_vaarg): New function.
13207         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
13208         properties_required field.
13209         * passes.def (all_passes): Add pass_lower_vaarg.
13210         * tree-pass.h (PROP_gimple_lva): Add define.
13211         (make_pass_lower_vaarg): Declare.
13213 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13215         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
13216         * calls.c (call_expr_flags): Same.
13218 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13220         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
13221         (pass_stdarg::execute): ... here.
13223 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13224             Michael Matz  <matz@suse.de>
13226         * tree-cfg.c (make_blocks_1): Factor out of ...
13227         (make_blocks): ... here.
13228         (make_edges_bb): Factor out of ...
13229         (make_edges): ... here.
13230         (gimple_find_sub_bbs): New function.
13231         * tree-cfg.h (gimple_find_sub_bbs): Declare.
13233 2015-04-17  Tom de Vries  <tom@codesourcery.com>
13235         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
13237 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
13239         * asan.c (set_sanitized_sections): New function.
13240         (section_sanitized_p): Ditto.
13241         (asan_protect_global): Optionally sanitize user-defined
13242         sections.
13243         * asan.h (set_sanitized_sections): Declare new function.
13244         * common.opt (fsanitize-sections): New option.
13245         * doc/invoke.texi (-fsanitize-sections): Document new option.
13246         * opts-global.c (handle_common_deferred_options): Handle new
13247         option.
13249 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
13251         PR debug/65771
13252         * dwarf2out.c (loc_list_from_tree): Return NULL
13253         for DEBUG_EXPR_DECL.
13255 2015-04-17  Christian Bruel  <christian.bruel@st.com>
13257         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
13258         same attributes.
13260 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13262         * ira-color.c (setup_left_conflict_sizes_p): Do not process
13263         node itself when computing left conflict subnode size.
13265 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
13267         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
13268         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
13269         *fop_<mode>_1_sse using enabled attribute.  Use
13270         register_mixssei387nonimm_operand operand 1 predicate. Change
13271         alternative 3 constraints from "x" to "v".
13273 2015-04-16  Richard Biener  <rguenther@suse.de>
13275         PR tree-optimization/65774
13276         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
13277         bit-value tracking on.
13279 2015-04-16  Richard Biener  <rguenther@suse.de>
13281         PR tree-optimization/64277
13282         * tree-vrp.c (check_array_ref): Fix anti-range handling,
13283         simplify upper bound handling.
13284         (search_for_addr_array): Simplify.
13285         (check_array_bounds): Handle ADDR_EXPRs here.
13286         (check_all_array_refs): Simplify.
13288 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
13290         * config/i386/i386.c (print_reg): Rewrite function.
13292 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13294         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
13295         Invert the condition.
13297 2015-04-16  Renlin Li  <renlin.li@arm.com>
13299         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
13300         simplifications for UNSIGNED_FLOAT.
13302 2015-04-16  Nick Clifton  <nickc@redhat.com>
13304         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
13305         MUL_UNINIT.
13306         (enum rl78_cpu_type): New.
13307         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
13308         (umulhi3_shift_virt): Remove m constraint from operand 1.
13309         (umulqihi3_virt): Likewise.
13310         * config/rl78/rl78.c (rl78_option_override): Add code to process
13311         -mcpu and -mmul options.
13312         (rl78_alloc_physical_registers): Add code to handle divhi and
13313         divsi valloc attributes.
13314         (set_origin): Likewise.
13315         * config/rl78/rl78.h (RL78_MUL_G14): Define.
13316         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
13317         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
13318         __RL78_Gxx__.
13319         (ASM_SPEC): Pass -mcpu on to assembler.
13320         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
13321         (mulqi3_rl78): Likewise.
13322         (mulhi3_g13): Likewise.
13323         (mulhi3): Generate the G13 or G14 versions of the insn directly.
13324         (mulsi3): Likewise.
13325         (mulhi3_g14): Add clobbers of AX and BC.
13326         (mulsi3_g14): Likewise.
13327         (mulsi3_g13): Likewise.
13328         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
13329         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
13330         * config/rl78/rl78.opt (mmul): Initialise value to
13331         RL78_MUL_UNINIT.
13332         (mcpu): New option.
13333         (m13, m14, mrl78): New option aliases.
13334         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
13335         (MULTILIB_DIRNAMES): Add g13 and g14.
13336         * doc/invoke.texi: Document -mcpu and -mmul options.
13338 2015-04-16  Richard Biener  <rguenther@suse.de>
13340         * tree-ssa-ccp.c (likely_value): See if we have operands that
13341         are marked as never simulate again and return CONSTANT in this
13342         case.
13343         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
13344         not have any operands that will be simulated again as
13345         not being simulated again.
13347 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
13349         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
13350         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
13351         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
13352         attribute.
13353         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
13354         enabled attribute.
13355         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
13356         *float<SWI48:mode><MODEF:mode>2_sse.
13357         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
13358         enabled attribute.
13359         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
13360         enabled attribute.
13362 2015-04-15  Tom de Vries  <tom@codesourcery.com>
13364         PR other/65487
13365         * function.c (push_dummy_function): New function.
13366         (init_dummy_function_start): Use push_dummy_function.
13367         (pop_dummy_function): New function.  Factored out of ...
13368         (expand_dummy_function_end): ... here.
13369         * function.h (push_dummy_function, pop_dummy_function): Declare.
13370         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
13371         pop_dummy_function.
13372         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
13374 2015-04-15  Jeff Law  <law@redhat.com>
13376         PR tree-optimization/47679
13377         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
13378         need for forward declaration in upcoming changes.
13379         (record_conditions, record_edge_info): Likewise.
13381         PR rtl-optimization/42522
13382         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
13383         SIGN_EXTRACT as a whole object rather than simplifying
13384         its operand.
13386 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
13388         PR ipa/65765
13389         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
13390         and GIMPLE_PREDICT use break instead of return true. For
13391         GIMPLE_EH_DISPATCH, compare dispatch region.
13393 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
13395         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
13396         details about the implementation.  Make clear preference for
13397         __atomic builtins.  Reduce possibility of future change.
13399 2015-04-15  Nick Clifton  <nickc@redhat.com>
13401         * config/rx/rx.opt (mallow-string-insns): New option.
13402         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
13403         builtin if string instructions are denied.
13404         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
13405         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
13406         appropriate.
13407         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
13408         * config/rx/rx.md (movstr): Enable pattern only if string
13409         instructions are allowed.
13410         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
13411         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
13412         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
13413         (MULTILIB_DIRNAMES): Add no-strings.
13414         * doc/invoke.texi: Document -mno-allow-string-insns.
13416 2015-04-15  Alan Modra  <amodra@gmail.com>
13418         PR target/65408
13419         PR target/58744
13420         PR middle-end/36043
13421         * calls.c (load_register_parameters): Don't load past end of
13422         mem unless suitably aligned.
13424 2015-04-15  Nick Clifton  <nickc@redhat.com>
13426         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
13427         decrement instruction as being frame related.
13428         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
13429         based addresses.
13430         If zero extending a function address enclose the operation in
13431         %code(...).
13432         (rl78_preferred_reload_class): New function.
13433         (TARGET_PREFERRED_RELOAD_CLASS): Define.
13434         * config/rl78/rl78.md: Remove useless constraints in expanders.
13435         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
13436         (mulhi3_rl78): Likewise.
13437         (mulhi3_g13): Likewise.
13438         (mulsi3_rl78): Likewise.
13439         (es_addr): Move to before the multiply patterns.
13441 2015-04-15  Alan Modra  <amodra@gmail.com>
13443         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
13444         and sequence_stack.  Add seq.
13445         (seq_stack): Delete.
13446         * function.c (prepare_function_start): Don't access x_last_insn.
13447         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
13448         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
13449         * emit_rtl.c (start_sequence, push_topmost_sequence,
13450         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
13451         sequence accessors.
13452         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
13453         remove_insn): Likewise.  Simplify.
13454         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
13455         and pop_topmost_sequence.
13456         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
13457         debug insns.
13458         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
13460 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
13462         PR target/65729
13463         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
13464         the assertiion.
13466 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
13468         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
13469         (LEGACY_INT_REGNO_P): Ditto.
13470         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
13471         (ANY_MASK_REG_P): Remove.
13472         (BND_REG_P): Rename from ANY_BND_REG_P.
13473         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
13474         legacy integer registers.  Do not handle MMX_REG_P in a special way.
13475         Merge 64byte and 32byte SSE handling.
13477 2015-04-14  Nick Clifton  <nickc@redhat.com>
13479         * expr.c (expand_assignment): Force an address offset computation
13480         into a register before changing its mode.
13481         (expand_expr_real_1): Likewise.
13483 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
13485         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
13486         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
13487         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
13488         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
13489         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
13490         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
13491         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
13492         and __aarch64_vget_lane_any.
13494 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
13496         PR rtl-optimization/65761
13497         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
13498         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
13500 2015-04-14  Richard Biener  <rguenther@suse.de>
13502         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
13503         (graphite_can_represent_scev): Use POINTER_TYPE_P.
13505 2015-04-14  Richard Biener  <rguenther@suse.de>
13507         PR tree-optimization/65758
13508         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
13509         against -1.
13510         (ccp_lattice_meet): Likewise.
13511         (bit_value_unop): Likewise.
13512         (bit_value_binop): Likewise.
13513         (bit_value_assume_aligned): Likewise.
13515 2015-04-14  Christian Bruel  <christian.bruel@st.com>
13517         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
13518         function.
13520 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
13522         PR tree-optimization/63387
13523         * match.pd ((x unord x) | (y unord y) -> (x unord y),
13524         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
13526 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
13528         * config/i386/predicates.md (any_QIreg_operand): Rename from
13529         q_regs_operand.  Do not process subregs.
13530         (QIreg_operand): Use QI_REGNO_P predicate.
13531         (ext_QIreg_operand): Ditto.
13532         (ext_register_operand): Ditto.
13533         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
13534         (AND splitters): Ditto.
13535         (AND with -65536 splitter): Add SWI48 mode for operand 0.
13536         (AND with -256 splitter): Use any_QIreg_operand predicate and
13537         SWI248 mode for operand 0.
13538         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
13539         mode for operand 0.
13540         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
13542 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
13544         * doc/plugins.texi: Rewrite first introductory paragraph.
13546 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
13548         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
13549         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
13551 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
13553         * ipa-profie.c (ipa_profile): Check number of parameters
13554         and possible polymorphic call targets before
13555         devirtualizing.
13557 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
13559         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
13560         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
13562 2015-04-13  Richard Biener  <rguenther@suse.de>
13564         PR tree-optimization/65204
13565         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
13566         takens for bit-CCP.
13568 2015-04-13  Richard Biener  <rguenther@suse.de>
13570         PR target/65660
13571         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
13572         and cond_not_taken_branch_cost to 4 and 2.
13573         (bdver2_cost): Likewise.
13574         (bdver3_cost): Likewise.
13575         (bdver4_cost): Likewise.
13577 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
13579         * hash-table.h (hash_table constructor): Add mem stats.
13580         (alloc_entries): Likewise.
13582 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
13584         * ipa-cp.c (ipcp_driver): Relase prev_edge.
13585         * passes.c (execute_one_pass): Only add transform if pass has one.
13587 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
13589         * config/i386/i386.c (ix86_option_override_internal): Don't set
13590         -fprefetch-loop-arrays if optimizing for size.
13592 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
13593             Gerald Pfeifer  <gerald@pfeifer.com>
13595         * doc/contrib.texi (Contributors): Add Martin Jambor and
13596         Michael Matz.
13598 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
13600         * BASE-VER: Set to 6.0.0.
13602         PR tree-optimization/65747
13603         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
13604         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
13606 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
13608         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
13609         sentence.  Improve grammar.
13611 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
13613         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
13615 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
13617         PR ipa/65743
13618         * ipa-inline-transform.c (speculation_removed): Remove static var.
13619         (check_speculations): New function.
13620         (clone_inlined_nodes): Do not check spculations.
13621         (inline_call): Call check_speculations.
13622         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
13623         consider non-invariants.
13625 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
13626             Martin Liska  <mliska@suse.cz>
13628         PR ipa/65722
13629         * ipa-icf.c (sem_item::compare_cgraph_references): function and
13630         variable can not match.
13631         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
13632         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
13634 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
13636         PR tree-optimization/65735
13637         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
13638         Remove visited_phis argument, add visited_bbs, avoid recursing into the
13639         same bb rather than just into the same phi node.
13640         (thread_through_normal_block): Adjust caller.
13642 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
13644         * doc/contrib.texi (Contributors): Add Ira Rosen.
13646 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
13648         * gcov.c (find_source): Fix miswording in error message.
13649         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
13650         (ix86_expand_sse_comi_round): Fix typo in error message.
13652 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
13654         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
13656 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
13658         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
13660 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
13662         PR target/65710
13663         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
13664         Print bad_spills_num and insn_pseudos_num.
13666 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13668         PR target/65694
13669         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
13670         when creating +1 values for SImode.
13672 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
13674         PR target/65729
13675         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
13676         assert.
13678 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
13679             Iain Sandoe  <iain@codesourcery.com>
13681         PR target/65351
13682         * configure: Regenerate.
13684 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
13686         PR target/65671
13687         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
13689 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
13691         * doc/contrib.texi (Contributors): Add John Marino.
13693 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
13695         PR tree-optimization/65709
13696         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
13697         TREE_TYPE (TREE_TYPE (t)).
13699 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
13701         PR target/65710
13702         * lra-int.h (lra_bad_spill_regno_start): New.
13703         * lra.c (lra_bad_spill_regno_start): New.
13704         (lra): Set up lra_bad_spill_regno_start.  Set up
13705         lra_constraint_new_regno_start unconditionally.
13706         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
13707         spill preferences.
13709 2015-04-09  Marek Polacek  <polacek@redhat.com>
13710             Jakub Jelinek  <jakub@redhat.com>
13712         PR middle-end/65554
13713         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
13714         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
13715         of STRIP_NOPS.
13717 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
13719         PR rtl-optimization/65693
13720         * combine.c (is_parallel_of_n_reg_sets): Move outside of
13721         #ifndef HAVE_cc0.
13723 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
13725         PR target/65296
13726         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
13727         device specs file if "device-specs%s" didn't resolve to a path.
13729 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
13731         PR target/65676
13732         * config/i386/i386.c (fixup_modeless_constant): New.
13733         (ix86_expand_args_builtin): Fixup modeless constant operand.
13734         (ix86_expand_round_builtin): Ditto.
13735         (ix86_expand_special_args_builtin): Ditto.
13736         (ix86_expand_builtin): Ditto.
13738 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
13740         PR target/65693
13741         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
13742         any pow2 integer in between 2 and 0x80000000U inclusive.
13744 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
13746         PR rtl-optimization/65693
13747         * combine.c (is_parallel_of_n_reg_sets): Change first argument
13748         from an rtx_insn * to an rtx.
13749         (try_combine): Adjust both callers.  Use it once more.
13751 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
13753         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
13754         (chkp_make_static_const_bounds): Search existing
13755         symbol by assembler name.  Use make_decl_one_only.
13756         (chkp_get_zero_bounds_var): Remove node search which
13757         is now performed in chkp_make_static_const_bounds.
13758         (chkp_get_none_bounds_var): Likewise.
13760 2015-04-08  Michael Witten  <mfwitten@gmail.com>
13762         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
13763         to an example.
13765 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13767         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
13769 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
13771         * doc/extend.texi (__sync Builtins): Fix grammar.
13773 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13775         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
13777 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13779         * varasm.c (emit_local): Move definition of align.
13781 2015-04-08  Julian Brown  <julian@codesourcery.com>
13783         * config/nvptx/mkoffload.c (process): Support variable mapping.
13785 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
13787         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
13788         alpha_links **.
13789         (alpha_write_one_linkage): Correct typo.
13791 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
13793         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
13795 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
13797         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
13799 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
13801         * tree-chkp.h (chkp_insert_retbnd_call): New.
13802         * tree-chkp.c (chkp_insert_retbnd_call): New.
13803         * ipa-split.c (insert_bndret_call_after): Remove.
13804         (split_function): Use chkp_insert_retbnd_call.
13805         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
13806         bounds for instrumented functions.
13808 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
13810         PR ipa/65540
13811         * calls.c (initialize_argument_information): When producing tail
13812         call also turn SSA_NAMES passed by references to original PARM_DECLs
13814 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
13816         PR target/65648
13817         * lra-remat.c (do_remat): Process input and non-input insn
13818         registers separately.
13820 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
13822         PR debug/65678
13823         * valtrack.c (debug_lowpart_subreg): New function.
13824         (dead_debug_insert_temp): Use it.
13826         PR middle-end/65680
13827         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
13828         into signed HOST_WIDE_INT the same as negative bit_offset.
13830 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
13832         * ipa-comdats.c (ipa_comdats): Visit all thunks
13833         to set proper comdat group.
13835 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13837         PR target/65489
13838         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
13839         on constants for NEON VSTRUCT modes.
13841 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
13842             Iain Sandoe  <iain@codesourcery.com>
13844         PR target/65351
13845         * configure: Regenerate.
13847 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13849         PR target/65614
13850         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
13851         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
13852         that LFD is used to load double constants instead of LFS.  Add
13853         defaults for all costs structures.  Add comments for missing
13854         initialization fields.
13855         (size32_cost): Likewise.
13856         (size64_cost): Likewise.
13857         (rs64a_cost): Likewise.
13858         (mpccore_cost): Likewise.
13859         (ppc403_cost): Likewise.
13860         (ppc405_cost): Likewise.
13861         (ppc440_cost): Likewise.
13862         (ppc476_cost): Likewise.
13863         (ppc601_cost): Likewise.
13864         (ppc603_cost): Likewise.
13865         (ppc604_cost): Likewise.
13866         (ppc604e_cost): Likewise.
13867         (ppc620_cost): Likewise.
13868         (ppc630_cost): Likewise.
13869         (ppccell_cost): Likewise.
13870         (ppc750_cost): Likewise.
13871         (ppc7450_cost): Likewise.
13872         (ppc8540_cost): Likewise.
13873         (ppce300c2c3_cost): Likewise.
13874         (ppce500mc_cost): Likewise.
13875         (ppce500mc64_cost): Likewise.
13876         (ppce5500_cost): Likewise.
13877         (ppce6500_cost): Likewise.
13878         (titan_cost): Likewise.
13879         (power4_cost): Likewise.
13880         (power6_cost): Likewise.
13881         (power7_cost): Likewise.
13882         (power8_cost): Likewise.
13883         (ppca2_cost): Likewise.
13884         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
13886         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
13887         instead of XXLOR to copy SFmode to clear out dirty bits created
13888         when SFmode denormals are generated.
13889         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
13890         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
13892 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
13894         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
13895         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
13896         * config/aarch64/aarch64-tune.md: Regenerate.
13898 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
13900         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
13901         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
13902         * config/arm/arm-cores.def (exynos-m1): New core.
13903         * config/arm/arm-tune.md: Regenerate.
13904         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
13905         * config/arm/bpabi.h: Likewise.
13907 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
13909         * ipa-cp (set_single_call_flag): Remove too
13910         restrictive assert.
13912 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
13914         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
13915         GOMP_offload_unregister from the destructor.
13917 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
13919         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
13920         flags for instrumentation thunk.
13921         (chkp_produce_thunks): Likewise.
13923 2015-04-05  Martin Liska  <mliska@suse.cz>
13925         PR ipa/65665
13926         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
13927         has computed data structure.
13928         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
13930 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
13932         * invoke.texi (inline-unit-growth): Increase growth to 20%
13933         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
13935 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
13937         PR target/65647
13938         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
13939         value checking.
13940         (lra_rematerialization_iter): New.
13941         * lra.c (lra): Initialize lra_rematerialization_iter.
13942         Stop updating lra_constraint_new_regno_start after switching of
13943         inheritance and rematerialization.
13944         * lra-remat.c (lra_rematerialization_iter): New.
13945         (lra_remat): Add printing pass iteration.  Do rematerialization
13946         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
13948 2015-04-04  Richard Biener  <rguenther@suse.de>
13950         PR tree-optimization/64909
13951         PR tree-optimization/65660
13952         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
13953         to take a cost vector for scalar iteration cost.
13954         (vect_get_single_scalar_iteration_cost): Likewise.
13955         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
13956         Compute the scalar iteration cost into a cost vector.
13957         (vect_get_known_peeling_cost): Use the scalar cost vector to
13958         account for the cost of the peeled iterations.
13959         (vect_estimate_min_profitable_iters): Likewise.
13960         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
13961         Likewise.
13963 2015-04-04  Alan Modra  <amodra@gmail.com>
13965         PR target/65576
13966         PR target/65240
13967         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
13968         0.0 constant unless TARGET_VSX.
13969         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
13970         alternative.
13972 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
13974         PR ipa/65654
13975         * ipa-inline-transform.c (inline_call): Skip sanity check to work
13976         around the ICE
13978 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
13980         PR ipa/65655
13981         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
13982         speculative indirect edges to avoid ordering issue.
13984 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
13986         PR ipa/65076
13987         * ipa-inline.c (edge_badness): Add combined size to the denominator.
13989 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
13991         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
13992         TYPE_ARTIFICIAL on the .omp_data* types.
13994 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13996         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
13997         instrumentation thunks.
13999 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14001         * config/i386/i386.c (ix86_expand_call): Avoid nested
14002         PARALLEL in returned call value.
14004 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14006         * lto-cgraph.c (input_cgraph_1): Always link instrumented
14007         assembler name with original one.
14009 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14011         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
14013 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14015         Revert parts of r216820.
14016         * config/i386/i386.md (movqi_internal): Correct type calculation
14017         for alternatives 3 and 5.
14019 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
14021         PR preprocessor/61977
14022         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
14023         predefine __vector/__bool/__pixel macros nor context sensitive
14024         macros for CLK_ASM.
14025         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
14027 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
14029         * config/pa/pa.c (pa_output_move_double): Directly handle register
14030         indexed memory operand.  Simplify handling of scaled register indexed
14031         memory operands.
14033 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
14035         PR driver/65444
14036         * config/i386/linux-common.h (MPX_SPEC): New.
14037         (CHKP_SPEC): Add MPX_SPEC.
14038         * doc/invoke.texi (-fcheck-pointer-boudns): Document
14039         possible issues with '-z bndplt' support in linker.
14041 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
14043         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
14044         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
14045         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
14046         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
14047         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
14049 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
14051         * config/i386/sync.md (UNSPEC_MOVA): Remove.
14052         (atomic_load<mode>): Change operand 0 predicate to
14053         nonimmediate_operand and fix up the destination when needed.
14054         Use UNSPEC_LDA.
14055         (atomic_loaddi_fpu): Use UNSPEC_LDA.
14056         (atomic_store<mode>): Change operand 1 predicate to
14057         nonimmendate_operand and move the source to register when needed.
14058         Use UNSPEC_STA.
14059         (atomic_store<mode>_1): Use UNSPEC_STA.
14060         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
14061         Fix moves from memory operand.  Use UNSPEC_STA.
14063 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14065         * expmed.c (strict_volatile_bitfield_p): Check that the access will
14066         not cross a MODESIZE boundary.
14067         (store_bit_field, extract_bit_field): Added assertions in the
14068         strict volatile bitfields code path.
14070 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14072         PR target/65624
14073         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
14074         Increase args array size by one to avoid buffer overflow.
14076 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
14078         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14079         split_part.
14080         * ipa-inline.c (edge_badness): Add wrapper penalty.
14081         (sum_callers): Move up.
14082         (inline_small_functions): Set single_caller.
14083         * ipa-inline.h (inline_summary): Add single_caller.
14084         * ipa-split.c (split_function): Set split_part.
14085         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
14086         * cgraph.h (cgraph_node): Add split_part.
14088 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
14090         PR target/58945
14091         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14092         Do not split operands 0 and operands 2 to halfmode.
14093         (atomic_compare_and_swap<mode>): Update for
14094         atomic_compare_and_swap<dwi>_doubleword changes.
14096 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
14098         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
14099         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
14100         no caching is done.
14102 2015-03-31  Martin Liska  <mliska@suse.cz>
14104         PR ipa/65557
14105         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
14106         has already filled up function summary.
14107         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
14109 2015-03-31  Richard Biener  <rguenther@suse.de>
14111         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
14112         of types.
14114 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14116         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
14117         nested functions.
14118         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
14119         (s390_asm_output_function_label): Adapt to new signature of
14120         s390_function_num_hotpatch_hw
14121         Optimise the code generating assembler output.
14122         Add comments to assembler file.
14124 2015-03-31  Richard Biener  <rguenther@suse.de>
14126         PR middle-end/65626
14127         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
14128         of the noreturn call so it is last and cleanup_control_flow_bb
14129         can do the CFG part.
14131 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
14133         PR target/65531
14134         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
14135         same_comdat_group for external symbols.
14136         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
14137         infinite same_comdat_group traversal loop.
14139 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
14141         PR plugins/61176
14142         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
14143         automatically to $headers.
14145 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
14147         PR ipa/65610
14148         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
14149         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
14150         function.
14151         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
14152         Use it.
14153         * ipa-prop.c (param_type_may_change_p): Likewise.
14154         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
14155         (remove_unused_scope_block_p): Add in_ctor_dtor_block
14156         argument.  Before inlining, preserve
14157         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
14158         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
14159         recursive calls.
14160         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
14162 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14164         PR ipa/65076
14165         * ipa-inline.c (edge_badness): Base denominator on callee's
14166         grwoth squared.
14168 2015-03-27  Martin Jambor  <mjambor@suse.cz>
14170         PR ipa/65478
14171         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
14172         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
14173         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
14174         node_calling_single_call.
14175         * ipa-cp.c (count_callers): New function.
14176         (set_single_call_flag): Likewise.
14177         (initialize_node_lattices): Count callers and set single_flag_call if
14178         necessary.
14179         (incorporate_penalties): New function.
14180         (good_cloning_opportunity_p): Use it, dump new flags.
14181         (propagate_constants_topo): Set node_within_scc flag if appropriate.
14182         * doc/invoke.texi (ipa-cp-recursion-penalty,
14183         ipa-cp-single-call-pentalty): Document.
14185 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14187         PR ipa/65588
14188         * symtab.c (symtab_node::get_partitioning_class): Register vars
14189         are duplicated.
14190         * varpool.c (symbol_table::output_variables) Do not assemble unefined
14191         decls for non-symbols.
14193 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14195         PR target/65248
14196         * output.h (default_binds_local_p_2): New.
14197         * varasm.c (default_binds_local_p_2): Renamed to ...
14198         (default_binds_local_p_3): This.  Don't return true on protected
14199         data symbol if protected data may be external.
14200         (default_binds_local_p): Use default_binds_local_p_3.
14201         (default_binds_local_p_1): Likewise.
14202         (default_binds_local_p_2): New.
14203         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
14204         default_binds_local_p_2 if TARGET_MACHO is undefined.
14206 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
14208         PR target/65593
14209         * config/i386/i386.c (legitimize_pic_address): If base
14210         is SYMBOL_REF or LABEL_REF using %rip addressing, force
14211         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
14213 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14215         PR target/65531
14216         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
14217         comdat groups.
14219 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
14221         PR ipa/65600
14222         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
14223         of optimized out indirect call.
14224         (redirect_to_unreachable): Always build symbol table node for
14225         BUILT_IN_UNREACHABLE
14227 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14229         PR target/65407
14230         * ira-costs.c (record_reg_classes): Process all constraint string
14231         containing 0-9.
14233 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
14235         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
14236         memory_operand.
14238         PR target/65052
14239         * config/c6x/constraints.md (S3): New constraint.
14240         * config/c6x/c6x.md (real_jump): Use it.
14242 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14244         PR middle-end/65595
14245         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
14246         do redirection if the call is not optimized out.
14248 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
14250         PR target/65495
14251         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
14252         (fchkp-check-incomplete-type): Add LTO.
14253         (fchkp-zero-input-bounds-for-main): Likewise.
14254         (fchkp-first-field-has-own-bounds): Likewise.
14255         (fchkp-narrow-bounds): Likewise.
14256         (fchkp-narrow-to-innermost-array): Likewise.
14257         (fchkp-use-static-bounds): Likewise.
14258         (fchkp-use-static-const-bounds): Likewise.
14259         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
14261 2015-03-27  Marek Polacek  <polacek@redhat.com>
14263         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
14265 2015-03-27  Marek Polacek  <polacek@redhat.com>
14267         PR sanitizer/65583
14268         * ubsan.c (ubsan_create_edge): New function.
14269         (instrument_bool_enum_load): Call it.
14270         (instrument_nonnull_arg): Likewise.
14271         (instrument_nonnull_return): Likewise.
14272         (instrument_object_size): Likewise.
14274 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14276         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
14277         auto_vec.
14279 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14281         PR lto/65536
14282         * lto-streamer.h (class lto_location_cache): New.
14283         (struct data_in): Add location_cache.
14284         (lto_input_location): Update prototype.
14285         (stream_input_location_now): New.
14286         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
14287         pointer to location.
14288         (stream_input_location): Update.
14289         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
14290         (warn_odr): Apply location cache before warning.
14291         (lto_input_location): Update prototype.
14292         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
14293         Use stream_input_location_now.
14294         * lto-streamer-in.c (lto_location_cache::current_cache): New static
14295         variable.
14296         (lto_location_cache::cmp_loc): New function.
14297         (lto_location_cache::apply_location_cache): New function.
14298         (lto_location_cache::accept_location_cache): New function.
14299         (lto_location_cache::revert_location_cache): New function.
14300         (lto_location_cache::input_location): New function.
14301         (lto_input_location): Do location caching.
14302         (stream_input_location_now): New function.
14303         (input_eh_region, input_struct_function_base): Use
14304         stream_input_location_now.
14305         (lto_data_in_create): use new.
14306         (lto_data_in_delete): Use delete.
14307         * tree-streamer-in.c (unpack_ts_block_value_fields,
14308         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
14309         lto_input_ts_exp_tree_pointers): Update for cached location api.
14311 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14313         PR ipa/65076
14314         * passes.def: Add pass_nothrow.
14315         * ipa-pure-const.c: (pass_data_nothrow): New.
14316         (pass_nothrow): New.
14317         (pass_nothrow::execute): New.
14318         (make_pass_nothrow): New.
14319         * tree-pass.h (make_pass_nothrow): Declare.
14321 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14323         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
14324         edge to change by speculation resolution or redirection.
14325         (edge_set_predicate): Likewise.
14326         (inline_summary_t::duplicate): Likewise.
14327         (remap_edge_summaries): Likewise.
14329 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14331         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
14332         New macros.
14333         (can_inline_edge_p): Relax option matching for always inline functions.
14335 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
14337         PR target/65561
14338         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
14339         Check operand 4 and operand 0 for equality.
14340         (avx512f_vextract<shuffletype>32x4_1_maskm):
14341         Check operand 6 and operand 0 for equality.
14342         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
14343         for equality.
14344         (vec_extract_hi_<mode>_maskm): Ditto.
14346 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14348         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
14349         dead calls back to live.
14350         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
14351         cross check to ...
14352         (cgraph_node::verify_node): ... here; verify only callee edges,
14353         not caller.
14354         * cif-code.def (CILK_SPAWN): New code.
14356 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
14358         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
14359         (edge_set_predicate): Use it to mark unreachable edges.
14360         (inline_summary_t::duplicate): Remove unnecesary code.
14361         (remap_edge_summaries): Likewise.
14362         (dump_inline_summary): Report contains_cilk_spawn.
14363         (compute_inline_parameters): Compute contains_cilk_spawn.
14364         (inline_read_section, inline_write_summary): Stream
14365         contains_cilk_spawn.
14366         * ipa-inline.c (can_inline_edge_p): Do not touch
14367         DECL_STRUCT_FUNCTION that may not be available;
14368         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
14369         remove check for callee_fun->can_throw_non_call_exceptions and
14370         replace it by optimization attribute check; check for flag_exceptions.
14371         * ipa-inline-transform.c (inline_call): Maintain
14372         DECL_FUNCTION_PERSONALITY
14373         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
14375 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
14377         PR tree-optimization/65551
14378         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
14379         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
14381 2015-03-26  Richard Biener  <rguenther@suse.de>
14383         PR middle-end/65555
14384         * tree-cfg.c (verify_gimple_call): Do not require a call to
14385         have no LHS if it wasn't recognized as control altering yet.
14387 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
14389         PR tree-optimization/64715
14390         * passes.def: Add another instance of pass_object_sizes before ccp1.
14391         * tree-object-size.c (pass_object_sizes::execute): In
14392         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
14393         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
14394         __bos result and the computed constant.  Remove redundant
14395         checks, obsoleted by gimple_call_builtin_p test.
14397         * var-tracking.c (variable_tracking_main_1): Don't track
14398         variables for targetm.no_register_allocation targets.
14400 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
14402         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
14403         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
14405 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14407         PR target/65569
14408         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
14409         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
14410         0.0 is correctly setup.
14411         (extenddftf2_internal): Likewise.
14413 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
14415         PR tree-optimization/65177
14416         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
14417         (bb_in_bbs): New.
14418         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
14419         edges not adjacent on the path to the original code.
14421 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
14423         PR bootstrap/65537
14424         * doc/install.texi (Building a native compiler): Document new
14425         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
14426         configuration assumes that the host supports the linker plugin.
14428 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
14430         PR target/65508
14431         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
14432         chain for generated call.
14434 2015-03-25  Richard Biener  <rguenther@suse.de>
14436         * passes.c (pass_manager::execute_early_local_passes): Guard
14437         execution of pass_chkp_instrumentation_passes with
14438         flag_check_pointer_bounds.
14439         (pass_chkp_instrumentation_passes::gate): Likewise.
14441 2015-03-25  Martin Liska  <mliska@suse.cz>
14443         PR tree-optimization/65538
14444         * symbol-summary.h (function_summary::~function_summary):
14445         Relese memory for allocated summaries.
14446         (function_summary::release): New function.
14448 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
14450         PR lto/65515
14451         * lto-streamer-out.c (DFS::worklist): New struct.
14452         (DFS::worklist_vec): New data member.
14453         (DFS::next_dfs_num): Remove.
14454         (DFS::DFS): Rewritten using worklist instead of recursion,
14455         using most of code from DFS::DFS_write_tree.
14456         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
14457         pass it to DFS_write_tree calls.
14458         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
14459         quick initial checks push it into worklist_vec and return.
14461 2015-03-25  Richard Biener  <rguenther@suse.de>
14463         PR middle-end/65519
14464         * genmatch.c (expr::gen_transform): Re-write to avoid
14465         using gimple_build.
14467 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
14469         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
14471 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
14473         * config/arm/arm.opt (print_tune_info): New option.
14474         * config/arm/arm.c (arm_print_tune_info): New function.
14475         (arm_file_start): Call arm_print_tune_info.
14476         * config/arm/arm-protos.h (struct tune_params): Add comment.
14477         * doc/invoke.texi (@item -mprint-tune-info): New item.
14478         (-mtune): mention it in ARM Option Summary.
14480 2015-03-25  DJ Delorie  <dj@redhat.com>
14482         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
14483         correct clause.
14485 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
14486             Martin Liska  <mliska@suse.cz>
14488         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
14489         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
14490         (sem_item::add_type): New function.
14491         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
14492         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
14493         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
14494         (sem_function::equals_wpa): Fix typo.
14495         * ipa-icf.h (sem_item::add_type): New function.
14496         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
14497         order.
14499 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
14501         PR tree-optimization/65533
14502         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
14503         with swapped operands, call vect_free_slp_tree on
14504         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
14505         vector.
14507 2015-03-24  Richard Biener  <rguenther@suse.de>
14509         PR middle-end/65517
14510         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
14511         for fixup if necessary.
14513 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
14515         * doc/extend.texi (Function Attributes): Add @cindex entries
14516         for all attributes and regularize their format.  Delete text
14517         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
14518         information about "eightbit_data", "tiny_data", and "model"
14519         variable attributes to the Variable Attributes section.  Fix
14520         some obvious typos and copy-editing issues.
14521         (Variable Attributes, Type Attributes): Likewise add/fix
14522         @cindex entries for all attributes.
14524 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
14526         PR target/65523
14527         * tree-chkp.c (chkp_build_returned_bound): Ignore
14528         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
14530 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
14532         PR target/65505
14533         * config/sh/predicates.md (simple_mem_operand,
14534         displacement_mem_operand): Add test for reg.
14535         (short_displacement_mem_operand): Test for displacement_mem_operand
14536         before invoking sh_disp_addr_displacement.
14537         * config/sh/constraints.md (Sdd, Sra): Simplify.
14538         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
14539         Remove redundant displacement_mem_operand tests.
14541 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
14543         PR target/65296
14544         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
14545         the same -mmcu=MCU more than once.
14547 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
14549         PR bootstrap/65522
14550         * ipa-devirt.c: Remove duplicate demangle.h include.
14552         PR target/65504
14553         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
14554         on the pseudo.
14555         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
14556         REG_POINTER on *destptr after adjusting it for prologue size.
14558         PR ipa/65521
14559         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
14560         ultimate_alias_target ()->order ints instead of
14561         ultimate_alias_target () pointers.
14563 2015-03-23  Richard Biener  <rguenther@suse.de>
14565         PR tree-optimization/65518
14566         * tree-vect-stmts.c (vectorizable_load): Reject single-element
14567         interleaving cases we generate absymal code for.
14569 2015-03-23  Richard Biener  <rguenther@suse.de>
14571         PR tree-optimization/65494
14572         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
14573         matches here.
14574         (vect_analyze_slp_instance): But do that here, always and once.
14576 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14578         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
14579         adding T or multiplying by T+1 and subracting T.
14581 2015-03-22  Jeff Law  <law@redhat.com>
14583         PR rtl-optimization/64317
14584         * Makefile.in (OBJS): Add gcse-common.c
14585         * gcse.c: Include gcse-common.h
14586         (struct modify_pair_s): Move structure definition to gcse-common.h
14587         (compute_transp): Move function to gcse-common.c.
14588         (canon_list_insert): Similarly.
14589         (record_last_mem_set_info): Break out some code and put it into
14590         gcse-common.c.  Call into the new common code.
14591         (compute_local_properties): Pass additional arguments to compute_transp.
14592         * postreload-gcse.c: Include gcse-common.h and df.h
14593         (modify_mem_list_set, blocks_with_calls): New variables.
14594         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
14595         (get_bb_avail_insn): Pass in the expression index too.
14596         (alloc_mem): Allocate memory for the new bitmaps and lists.
14597         (free_mem): Free memory for the new bitmaps and lists.
14598         (insert_expr_in_table): Record a bitmap index for each entry we
14599         add to the table.
14600         (record_last_mem_set_info): Call into common code in gcse-common.c.
14601         (get_bb_avail_insn): If no available insn was found in the requested
14602         BB.  If BB has a single predecessor, see if the expression is
14603         transparent in BB and available in that single predecessor.
14604         (compute_expr_transp): New wrapper for compute_transp.
14605         (eliminate_partially_redundant_load): Pass expression's bitmap_index
14606         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
14607         (gcse_after_reload_main): If there are elements in the hash table,
14608         then compute transparency for all the elements in the hash table.
14609         * gcse-common.h: New file.
14610         * gcse-common.c: New file.
14612 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
14614         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
14615         as an adjective.
14616         (System Headers): Likewise.
14617         (Ifdef): Likewise.
14618         (Traditional macros): Likewise.
14619         (Invocation): Likewise.
14620         (Option Index): Likewise.
14621         * doc/cppopts.texi (-M): Likewise.
14622         (-finput-charset): Likewise.
14623         (--help): Likewise.
14624         * doc.invoke.texi (AVR Options): Likewise.
14625         (V850 Options): Likewise.
14627 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
14629         PR ipa/65475
14630         * ipa-devirt.c: Include demangle.h
14631         (odr_type_d): Add field rtti_broken.
14632         (odr_subtypes_equivalent_p): Do not require name to match.
14633         (compare_virtual_tables): Fix typo; if type already has ODR violation,
14634         bypass the tests; be ready for function referneces in vtables that are
14635         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
14636         (warn_odr): Give up for nameless types.
14637         (warn_types_mismatch): Report mismatch in mangled names;
14638         report mismatch in anonymous namespaces; look into component types to
14639         give useful error; report when mismatch is dragged in from other ODR
14640         type.
14641         (odr_types_equivalent_p): Match types for being polymorphic; avoid
14642         duplicated diagnostics.
14643         (add_type_duplicate): Reorder checks so more informative ones come
14644         first; fix typo; do not output "the extra base is defined here" when
14645         we did not warn.
14646         (BINFO_N_BASE_BINFOS): Relax sanity check.
14648 2015-03-22  Martin Liska  <mliska@suse.cz>
14649             Jakub Jelinek  <jakub@redhat.com>
14651         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
14652         masks that can potentially include a builtin.
14653         (ix86_add_new_builtins): Introduce fast filter for isa values
14654         that cannot trigger builtin inclusion.
14656 2015-03-22  Martin Liska  <mliska@suse.cz>
14658         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
14659         (sem_item::update_hash_by_local_refs): Likewise.
14660         (sem_variable::get_hash): Empty line is fixed.
14661         (sem_item_optimizer::execute): Include adding of hash references.
14662         (sem_item_optimizer::update_hash_by_addr_refs): New function.
14663         (sem_item_optimizer::build_hash_based_classes): Use local hash.
14664         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
14665         (sem_item::update_hash_by_local_refs): Likewise.
14667 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
14669         PR ipa/65502
14670         * ipa-comdats.c (enqueue_references): Walk through thunks.
14671         (ipa_comdats): Likewise.
14672         (set_comdat_group_1): New function.
14674 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
14676         PR ipa/65475
14677         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
14678         non-polymorphic
14680 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
14681             Gerald Pfeifer  <gerald@pfeifer.com>
14683         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
14685 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14686             Sandra Loosemore  <sandra@codesourcery.com>
14688         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
14689         function parameter declaration.
14690         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
14691         Update arguments to nios2_adjust_call_address().
14692         (sibcall_internal): Rename from *sibcall.
14693         (sibcall_value_internal): Rename from *sibcall_value.
14694         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
14695         (nios2_large_got_address): Add target temp reg parameter.
14696         (nios2_got_address): Adjust call to nios2_large_got_address, add
14697         force_reg around it.
14698         (nios2_load_pic_address): Add target temp reg parameter, replace call
14699         to nios2_got_address with corresponding code.
14700         (nios2_legitimize_constant_address): Update call to
14701         nios2_load_pic_address.
14702         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
14703         to use temp reg for PIC loading purposes.
14704         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
14705         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14706         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
14708 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
14710         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
14711         usage of "the @option{...}".
14712         (-Wopenmp-simd): Likewise.
14713         (-fsanitize-recover): Likewise.
14714         (-fsanitize-undefined-trap-on-error): Likewise.
14715         (-flto): Likewise.
14716         (tracer-dynamic-coverage-feedback): Likewise.
14717         (reorder-block-duplicate-feedback): Likewise.
14718         (loop-unroll-jam-size): Likewise.
14719         (-B): Likewise.
14720         (-I-): Likewise.
14721         (-mabs=legacy): Likewise.
14722         (-mupper-regs-df): Likewise.
14723         (-mupper-regs-sf): Likewise.
14724         (-mpointers-to-nested-functions): Likewise.
14726 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
14728         * doc/extend.texi (Cilk Plus Builtins): Add markup.
14730 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
14732         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
14733         additional index entries and cross-references.
14734         (-fchkp-check-incomplete-type): Likewise.
14735         (-fchkp-first-field-has-own-bounds): Likewise.
14736         (-fchkp-narrow-to-innermost-array): Likewise.
14737         (-fchkp-use-fast-string-functions): Likewise.
14738         (-fchkp-use-nochk-string-functions): Likewise.
14739         (-fchkp-use-static-const-bounds): Likewise.
14740         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
14741         (-fchkp-instrument-marked-only): Likewise.
14742         (-fchkp-use-wrappers): Likewise.
14743         (-static-libmpx): Likewise.
14744         (-static-libmpxwrappers): Likewise.
14745         * doc/extend.texi (bnd_legacy): Likewise.
14746         (bnd_instrument): Likewise.
14747         (bnd_variable_size): Likewise.
14748         (Pointer Bounds Checker builtins): Likewise.
14750 2015-03-21  Tom de Vries  <tom@codesourcery.com>
14752         PR tree-optimization/65458
14753         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
14754         * cgraph.h (cgraph_node): Add parallelized_function field.
14755         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
14756         (input_overwrite_node): Read parallelized_function field.
14757         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
14758         parallelized_function on cgraph_node for child_fn.
14759         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
14760         Remove include of gt-tree-parloops.h.
14761         (parallelized_functions): Remove static variable.
14762         (parallelized_function_p): Rewrite using parallelized_function field of
14763         cgraph_node.
14764         (create_loop_fn): Remove adding to parallelized_functions.
14765         * Makefile.in (GTFILES): Remove tree-parloops.c
14767 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
14769         PR rtl-optimization/64366
14770         * lra.c (lra_update_insn_regno_info): Consider regs in
14771         CALL_INSN_FUNCTION_USAGE memory.
14773 2015-03-20  Richard Biener  <rguenther@suse.de>
14775         PR middle-end/64715
14776         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
14777         for type comparison and gcc_checking_assert.
14778         (chrec_fold_plus_poly_poly): Likewise.
14779         (chrec_fold_multiply_poly_poly): Likewise.
14780         (chrec_convert_1): Likewise.
14781         * gimplify.c (gimplify_expr): Remove premature folding of
14782         &X + CST to &MEM[&X, CST].
14784 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
14786         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
14787         already is final.
14788         (ipa_inline): Recompute inline_failed codes.
14789         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
14790         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
14791         CIF_FINAL_ERROR.
14793 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
14795         PR rtl-optimization/60851
14796         * recog.c (constrain_operands): Accept a pseudo register before reload
14797         for LRA enabled targets.
14799 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
14801         PR target/65240
14802         * config/rs6000/predicates.md (easy_fp_constant): Remove special
14803         -ffast-math handling that kept non-0 constants live in the RTL
14804         until reload.  Remove logic testing the number of instructions it
14805         took to create a constant in a GPR that was never used, due to a
14806         test for soft-float earlier.
14807         (memory_fp_constant): Delete, no longer used.
14809         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
14810         alternatives for loading non-0 constants into GPRs for hard
14811         floating point that is no longer needed due to changes in
14812         easy_fp_constant.  Add support for loading 0.0 into GPRs.
14813         (mov<mode>_hardfloat32): Likewise.
14814         (mov<mode>_hardfloat64): Likewise.
14815         (mov<mode>_64bit_dm): Likewise.
14816         (movtd_64bit_nodm): Likewise.
14817         (pre-reload move FP constant define_split): Delete define_split,
14818         since it is no longer used.
14819         (extenddftf2_internal): Remove GHF constraints that are not valid
14820         for extenddftf2.
14822 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
14824         PR rtl-optimization/63491
14825         * lra-constraints.c (check_and_process_move): Use src instead of
14826         sreg.  Remove some dead code.
14828 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
14830         PR ipa/65380
14831         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
14832         (sem_variable::merge): Likewise.
14834 2015-03-19  Martin Liska  <mliska@suse.cz>
14836         PR ipa/65465
14837         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
14838         all fields of cgraph_thunk_info.
14840 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
14842         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
14843         clone instrumented thunks.
14845 2015-03-19  Richard Biener  <rguenther@suse.de>
14847         Revert
14848         2015-03-10  Richard Biener  <rguenther@suse.de>
14850         PR middle-end/63155
14851         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
14852         * tree-ssa-coalesce.c: Include timevar.h.
14853         (attempt_coalesce): Handle graph being NULL.
14854         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
14855         Split out abnormal coalescing to ...
14856         (perform_abnormal_coalescing): ... this function.
14857         (coalesce_ssa_name): Perform abnormal coalescing without computing
14858         live/conflict.
14859         (verify_ssa_coalescing_worker): New function.
14860         (verify_ssa_coalescing): Likewise.
14862 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14863             Jakub Jelinek  <jakub@redhat.com>
14865         PR sanitizer/65400
14866         * tsan.c (instrument_gimple): Clear tail call flag on
14867         calls.
14869 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
14871         PR sanitizer/65400
14872         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
14873         call in the return bb.
14874         (find_split_points): Add RETURN_BB argument, don't call
14875         find_return_bb.
14876         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
14877         if true append TSAN_FUNC_EXIT internal call after the call to
14878         the split off function.
14879         (execute_split_functions): Call find_return_bb here.
14880         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
14881         Adjust find_split_points and split_function calls.
14883 2015-03-18  DJ Delorie  <dj@redhat.com>
14885         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
14886         (iorqi3_virt): Likewise.
14888 2015-03-18  Tom de Vries  <tom@codesourcery.com>
14890         * tree-parloops.c (parallelize_loops): Make static.
14891         * tree-parloops.h (parallelize_loops): Remove extern declaration.
14893 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
14895         PR middle-end/64491
14896         Revert:
14897         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
14899         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
14900         condition would be removed due to undefined behaviour.
14902 2015-03-18  Martin Liska  <mliska@suse.cz>
14904         PR ipa/65432
14905         * cgraph.c (cgraph_node::get_create): Remove unnecessary
14906         xstrdup_for_dump wrapper.
14907         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
14908         sem_item::name.
14909         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
14910         with xstrdup_for_dump.
14911         (sem_variable::equals): Likewise.
14912         (sem_item_optimizer::read_section): Use symtab_node::name instead of
14913         sem_item::name.
14914         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
14915         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
14916         symtab_node::asm_name with xstrdup_for_dump.
14917         (congruence_class::dump): Use symtab_node::name instead of
14918         sem_item::name.
14919         * ipa-icf.h (symtab_node::name): Remove.
14920         (symtab_node::asm_name): Likewise.
14922 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
14924         PR tree-optimization/65450
14925         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
14926         function.
14927         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
14928         it instead of duplicate_ssa_name_ptr_info.
14930         PR target/65222
14931         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
14933 2015-03-18  Richard Biener  <rguenther@suse.de>
14935         * tree-data-ref.h (struct access_matrix): Remove.
14936         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14937         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14938         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
14939         (am_vector_index_for_loop): Likewise.
14940         (struct data_reference): Remove access_matrix member.
14941         (DR_ACCESS_MATRIX): Remove.
14942         (lambda_vector_new): Add comment.
14943         (lambda_matrix_new): Use XOBNEWVEC.
14945 2015-03-18  Richard Biener  <rguenther@suse.de>
14947         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
14948         (pass_ch::execute): Cleanup the CFG only if we did sth.
14949         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
14951 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14953         * expmed.c (synth_mult): Use std::swap instead of manually
14954         swapping algorithms.
14956 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
14958         PR target/65078
14959         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
14961 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
14963         PR target/65296
14964         * config/avr/avr.opt (-nodevicelib): New option.
14965         * doc/invoke.texi (AVR Options): Document it.
14966         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
14967         libgcc.a, libc.a, libm.a.
14968         * config/avr/specs.h: Same.
14969         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
14970         which don't (directly) depend on the device.  Print more help.
14971         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
14972         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
14973         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
14974         case of an error.
14975         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
14976         for specs file name.
14977         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
14978         * config/avr/avr-mcus.def: Adjust initializers and comments.
14980 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
14982         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
14983         DECL_ONE_ONLY to check if decl is one only.
14984         * ipa-split.c (consider_split): Limit splitt of one only functions.
14986 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
14988         PR tree-optimization/65427
14989         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
14990         functions.
14991         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
14993 2015-03-16  Marek Polacek  <polacek@redhat.com>
14995         * cgraph.h (add_new_static_var): Remove declaration.
14996         * varpool.c (add_new_static_var): Remove function.
14998 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
15000         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
15001         instead of vec<tree> * with vec_alloc and release for args.
15002         Adjust all users.
15004         PR middle-end/65431
15005         * omp-low.c (delete_omp_context): Only splay_tree_delete
15006         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
15007         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
15009 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15011         PR sanitizer/64820
15012         * cfgexpand.c (align_base): New function.
15013         (alloc_stack_frame_space): Call it.
15014         (expand_stack_vars): Align prev_frame to be sure
15015         data->asan_vec elements aligned properly.
15017 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
15019         PR middle-end/65409
15020         * expr.c (store_field): Do not do a direct block copy if the source is
15021         a PARALLEL with BLKmode.
15023 2015-03-16  Tom de Vries  <tom@codesourcery.com>
15025         PR middle-end/65414
15026         Revert:
15027         2015-03-12  Tom de Vries  <tom@codesourcery.com>
15029         PR rtl-optimization/64895
15030         * lra-lives.c (check_pseudos_live_through_calls): Use
15031         actual_call_used_reg_set instead of call_used_reg_set, if available.
15033 2015-03-16  Alan Modra  <amodra@gmail.com>
15035         PR target/63150
15036         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
15037         Modify Z->r bswapdi splitter to use dest in place of scratch.
15038         In r->Z and Z->r bswapdi splitter rename word_high, word_low
15039         to word1, word2 and rearrange logic to suit.
15040         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
15041         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
15042         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
15043         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
15044         early clobber.
15046 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
15048         PR tree-optimization/65369
15049         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
15050         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
15051         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
15053         PR tree-optimization/65418
15054         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
15055         are casts in the first PLUS_EXPR operand, ensure tbias and
15056         *totallowp are in the inner type.
15058         PR rtl-optimization/65401
15059         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
15060         argument.  If true, adjust_address_nv of x with big-endian
15061         correction for the mode widening to GET_MODE (y).
15062         (make_field_assignment): Don't do MEM mode widening here.
15063         Use MEM_P instead of GET_CODE == MEM.
15065 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15067         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
15068         the external decls.
15070 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15072         PR target/64600
15073         * config/arm/arm.c (arm_gen_constant, AND case): Use
15074         ARM_SIGN_EXTEND when constructing AND mask.
15076 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15078         * graph.c (print_graph_cfg): Make function names visible and append
15079         parenthesis to it.  Also make groups of basic blocks belonging to the
15080         same function visible.
15082 2015-03-12  Richard Biener  <rguenther@suse.de>
15084         PR middle-end/44563
15085         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
15086         to avoid quadratic behavior with inline expansion splitting blocks.
15087         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
15088         with the successor if the predecessor will be merged with it.
15089         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
15090         entry block with its successor.
15092 2015-03-13  Richard Biener  <rguenther@suse.de>
15094         PR middle-end/44563
15095         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
15096         (cleanup_tree_cfg_1): Do not call it.
15097         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
15098         (fixup_noreturn_call): Mark the stmt as control altering.
15099         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
15100         here.
15101         (pass_data_fixup_cfg): Produce a dump file.
15102         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
15103         (need_noreturn_fixup): New global.
15104         (pass_dominator::execute): Fixup queued noreturn calls.
15105         (optimize_stmt): Queue calls that became noreturn for fixup.
15106         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
15107         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
15108         (el_to_fixup): New global.
15109         (eliminate_dom_walker::before_dom_childre): Queue calls that
15110         became noreturn for fixup.
15111         (eliminate): Fixup queued noreturn calls.
15112         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
15113         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
15114         (substitute_and_fold_dom_walker::before_dom_children): Queue
15115         alls that became noreturn for fixup.
15116         (substitute_and_fold): Fixup queued noreturn calls.
15118 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
15120         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
15121         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
15122         are building; for methods check ODR type of class they belong to if
15123         they may lead to a polymorphic call.
15124         (sem_function::compare_polymorphic_p): Be bit smarter about testing
15125         when function may lead to a polymorphic call.
15126         (sem_function::compare_type_list): Remove.
15127         (sem_variable::equals): Update use of compatible_types_p.
15128         (sem_variable::parse_tree_refs): Remove.
15129         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
15130         cdtor.
15131         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
15132         matching here.
15133         (func_checker::compatible_polymorphic_types_p): Break out from ...
15134         (unc_checker::compatible_types_p): ... here.
15135         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
15136         Declare.
15137         (unc_checker::compatible_types_p): Update.
15138         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
15139         Remove.
15141 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15143         PR rtl-optimization/65235
15144         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
15145         When first element of vec_concat is const_int, calculate its size
15146         using second element.
15148 2015-03-12  Richard Biener  <rguenther@suse.de>
15150         PR middle-end/65270
15151         * fold-const.c (operand_equal_p): Fix ordering of resetting
15152         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
15154 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15156         * config/s390/s390.c (s390_reorg): Move code to output nops after label
15157         to s390_reorg ().
15158         (s390_asm_output_function_label): Likewise.
15159         * config/s390/s390.c (s390_asm_output_function_label):
15160         Fix function label alignment with -mhtopatch.
15161         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
15162         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
15163         ("nop_2_byte"): New define_insn.
15164         ("nop_4_byte"): Likewise.
15165         ("nop_6_byte"): Likewise.
15166         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
15167         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
15169 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
15171         PR target/65103
15172         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
15173         register.
15175 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
15177         PR target/65044
15178         * toplev.c (process_options): Restrict Pointer Bounds Checker
15179         usage with Address Sanitizer.
15181 2015-03-12  Richard Biener  <rguenther@suse.de>
15183         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
15184         to split on.
15185         * omp-low.c (expand_omp_taskreg): Split block before removing
15186         the stmt.
15187         (expand_omp_target): Likewise.
15188         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
15189         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
15190         stmt to split_block.
15192 2015-03-12  Tom de Vries  <tom@codesourcery.com>
15194         PR rtl-optimization/64895
15195         * lra-lives.c (check_pseudos_live_through_calls): Use
15196         actual_call_used_reg_set instead of call_used_reg_set, if available.
15198 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
15200         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
15201         (cgraph_node::remove): Likewise.
15202         (cgraph_node::get_untransformed_body): Likewise.
15203         * varpool.c (varpool_node::remove): Likewise.
15204         (varpool_node::get_constructor): Add sanity check.
15206 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
15208         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
15209         old GCC versions.
15210         (-fabi-compat-version): Likewise.
15211         (-ffriend-injection): Likewise.
15212         (-Wdeclaration-after-statement): Likewise.
15213         (-fomit-frame-pointer): Likewise.
15214         (-ftree-coalesce-inlined-vars): Likewise.
15215         (-fvisibility=): Likewise.
15216         * doc/extend.texi (Typeof): Likewise.
15217         (Zero Length): Likewise.
15218         (Escaped Newlines): Likewise.
15219         (Compound Literals): Likewise.
15220         (Function Attributes): Likewise.
15221         (Label Attributes): Likewise.
15222         (Type Attributes): Likewise.
15223         (Function Names): Likewise.
15224         (Other Builtins): Likewise.
15225         (Function Specific Option Pragmas): Likewise.
15226         (C++ Interface): Likewise.
15228 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
15230         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
15232 2015-03-11  Marek Polacek  <polacek@redhat.com>
15234         PR tree-optimization/65388
15235         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
15237 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
15239         PR target/65296
15240         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
15241         * configure: Regenerate.
15242         * config.in: Regenerate.
15243         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
15244         [-mn-flash]: Document it.
15245         [__AVR_ARCH__]: Document avrtiny.
15247         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
15248         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
15249         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
15251 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15253         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
15255 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15257         PR target/65242
15258         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
15259         allow reloads of PLUS in floating point/VSX registers.
15261 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
15263         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
15264         crypto_sha256_fast.
15265         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
15267 2015-03-11  Richard Biener  <rguenther@suse.de>
15269         PR tree-optimization/65310
15270         * tree-sra.c (build_ref_for_offset): Also preserve larger
15271         alignment.
15273 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
15275         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
15277 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
15279         PR target/65368
15280         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
15281         new define_expand.
15282         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
15284 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
15286         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
15287         (sem_function::equals_wpa): ... here.
15289 2015-03-10  Marek Polacek  <polacek@redhat.com>
15290             Jakub Jelinek  <jakub@redhat.com>
15292         PR sanitizer/65367
15293         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
15294         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
15295         separately.
15297 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
15299         PR target/65286
15300         * config/rs6000/t-linux: For powerpc64* target set
15301         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
15303 2015-03-10  Richard Biener  <rguenther@suse.de>
15305         PR middle-end/44563
15306         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
15307         for redirect_all_calls.
15309 2015-03-10  Marek Polacek  <polacek@redhat.com>
15311         * gdbinit.in (pcfun): Define and document.
15313 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
15315         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
15316         of libgomp-plugin.h.
15317         (find_target_compiler): Support a case when the path to gcc is
15318         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
15319         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
15320         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
15321         libgomp-plugin.h.
15322         (main): Use GCC_INSTALL_NAME as target_driver_name.
15323         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
15324         define.
15325         (mkoffload.o): Remove obsolete include path and defines.
15326         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
15328 2015-03-10  Richard Biener  <rguenther@suse.de>
15330         PR middle-end/63155
15331         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15332         * tree-ssa-coalesce.c: Include timevar.h.
15333         (attempt_coalesce): Handle graph being NULL.
15334         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15335         Split out abnormal coalescing to ...
15336         (perform_abnormal_coalescing): ... this function.
15337         (coalesce_ssa_name): Perform abnormal coalescing without computing
15338         live/conflict.
15339         (verify_ssa_coalescing_worker): New function.
15340         (verify_ssa_coalescing): Likewise.
15342 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
15344         PR target/65296
15345         * config.gcc (extra_options) [avr]: Remove.
15346         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
15347         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
15348         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
15350         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
15351         (-mmcu=): Add Var and MissingArgError properties.
15352         (-march=): Remove.
15353         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
15354         * config/avr/t-multilib: Regenerate.
15355         * config/avr/specs.h: New file.
15356         * config/avr/driver-avr.c: New file.
15357         * config/avr/genopt.sh: Remove file.
15358         * config/avr/avr-tables.opt: Remove file.
15359         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
15360         * config/avr/avr-c.c: Same.
15361         * avr-arch.h: Same.
15362         (avr_current_device): Remove proto.
15363         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
15364         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
15365         (EXTRA_SPEC_FUNCTIONS): Define.
15366         (avr_devicespecs_file): New specs function proto.
15367         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
15368         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
15369         (avr_current_device): Remove definition and usage.
15370         (avr_set_core_architecture): New static function.
15371         (avr_option_override): Use it.
15372         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
15373         (mcu_name): New static array.
15374         (comparator, avr_archs_str, avr_mcus_str): New static functions.
15375         (avr_inform_devices, avr_inform_core_architectures): New functions.
15376         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
15377         (avrlibc.h) [WITH_AVRLIBC]: Include.
15378         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
15379         (print_mcu): Rewrite from scratch.
15380         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
15381         Forward to avr-specific specs defined in device-specs file.
15382         * config/avr/t-avr (driver-avr.o): New rule.
15383         (avr-devices.o): Depend on avr-arch.h.
15384         (avr-mcus): No more depend on avr-tables.opt.
15385         (avr-tables.opt): Remove rule.
15386         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
15388 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15390         * c-family/c.opt (fchkp-use-wrappers): New.
15391         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
15392         (chkp_wrap_function): New.
15393         (chkp_build_instrumented_fndecl): Support wrapped
15394         functions.
15395         * doc/invoke.texi (-fcheck-pointer-bounds): New.
15396         (-fchkp-check-incomplete-type): New.
15397         (-fchkp-first-field-has-own-bounds): New.
15398         (-fchkp-narrow-bounds): New.
15399         (-fchkp-narrow-to-innermost-array): New.
15400         (-fchkp-optimize): New.
15401         (-fchkp-use-fast-string-functions): New.
15402         (-fchkp-use-nochk-string-functions): New.
15403         (-fchkp-use-static-bounds): New.
15404         (-fchkp-use-static-const-bounds): New.
15405         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
15406         (-fchkp-check-read): New.
15407         (-fchkp-check-write): New.
15408         (-fchkp-store-bounds): New.
15409         (-fchkp-instrument-calls): New.
15410         (-fchkp-instrument-marked-only): New.
15411         (-fchkp-use-wrappers): New.
15412         (-static-libmpx): New.
15413         (-static-libmpxwrappers): New.
15415 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15417         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
15418         (CHKP_SPEC): Add wrappers library.
15419         * c-family/c.opt (static-libmpxwrappers): New.
15421 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15423         * config/i386/linux-common.h (LIBMPX_LIBS): New.
15424         (LIBMPX_SPEC): New.
15425         (CHKP_SPEC): New.
15426         * gcc.c (CHKP_SPEC): New.
15427         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
15428         * c-family/c.opt (static-libmpx): New.
15430 2015-03-10  Richard Biener  <rguenther@suse.de>
15432         PR middle-end/44563
15433         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
15434         for compare_type.
15435         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
15436         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
15437         (cgraph_add_edge_to_call_site_hash): Likewise.
15438         (cgraph_node::get_edge): Likewise.
15439         (cgraph_edge::set_call_stmt): Likewise.
15440         (cgraph_edge::remove_caller): Likewise.
15442 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
15444         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
15445         (callee_saved_gpr_regs_size): ... this.
15446         (callee_saved_regs_first_regno): Rename to ...
15447         (callee_saved_first_gpr_regno): ... this.
15448         (callee_saved_regs_last_regno) Rename to ...
15449         (callee_saved_last_gpr_regno): ... this.
15450         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
15451         variables.
15452         (nds32_initial_elimination_offset): Likewise.
15453         (nds32_expand_prologue): Likewise.
15454         (nds32_expand_epilogue): Likewise.
15455         (nds32_expand_prologue_v3push): Likewise.
15456         (nds32_expand_epilogue_v3pop): Likewise.
15457         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
15458         Adjust renamed variables.
15459         (nds32_output_stack_pop): Likewise.
15461 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15463         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
15464         code in comment.
15466 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
15468         PR rtl-optimization/65321
15469         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
15470         than shift mode.
15471         * var-tracking.c (use_narrower_mode): Likewise.
15473 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
15475         PR tree-optimization/65355
15476         * varasm.c (notice_global_symbol): Do not produce RTL.
15477         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
15478         anchor.
15479         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
15480         check for section anchors.
15482 2015-03-10  Alan Modra  <amodra@gmail.com>
15484         PR target/65286
15485         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
15486         to be single-arch by default.  Set cpu_is_64bit for powerpc64
15487         given --with-cpu=native.
15488         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
15489         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
15490         and powerpc64le.
15491         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
15492         rs6000_isa_flags rather than TARGET_64BIT.
15494 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
15495             Kaz Kojima  <kkojima@gcc.gnu.org>
15497         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
15499 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
15501         PR lto/65361
15502         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
15503         on a TREE_BINFO, instead use BINFO_TYPE.
15505 2015-03-09  Richard Biener  <rguenther@suse.de>
15507         PR middle-end/65270
15508         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
15509         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
15510         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
15511         of that.  When comparing dereferences compare alignment.
15512         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
15514 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
15516         * ipa-inline-analysis.c (check_callers): Check
15517         node->can_remove_if_no_direct_calls_and_refs_p.
15518         (growth_likely_positive): Reorganize to call
15519         can_remove_if_no_direct_calls_p later.
15520         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
15521         will_be_removed_from_program_if_no_direct_calls_p): Add
15522         will_inline parameter.
15523         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
15524         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
15525         Handle inliner case correctly.
15527 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15529         PR tree-optimization/63743
15530         * cfgexpand.c (reorder_operands): Also reorder if only second operand
15531         had its definition forwarded by TER.
15533 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
15535         PR lto/65316
15536         * ipa-utils.h (types_odr_comparable): Add strict argument.
15537         * ipa-devirt.c: Fix whitespace;
15538         (odr_hasher): Remove.
15539         (odr_name_hasher, odr_vtable_hasher): New hashers.
15540         (can_be_name_hashed_p): New predicate.
15541         (hash_type_name): remove.
15542         (hash_odr_name): New.
15543         (odr_name_hasher::hash): new.
15544         (can_be_vtable_hashed_p): New.
15545         (hash_odr_vtable): New.
15546         (odr_vtable_hasher::hash): New.
15547         (types_same_for_odr): Add strict parameter.
15548         (types_odr_comparable): Likewise.
15549         (odr_name_hasher::equal): New.
15550         (odr_vtable_hasher::equal): New.
15551         (odr_name_hasher::remove): New.
15552         (odr_hash_type): Change to hash_table<odr_name_hasher>.
15553         (odr_vtable_hash_type): New.
15554         (odr_vtable_hash): New.
15555         (odr_subtypes_equivalent_p): Do strict comparsion.
15556         (add_type_duplicate): Merge type names; cleanup; avoid type
15557         duplicates.
15558         (register_odr_type): Initialize vtable hash.
15559         (build_type_inheritance_graph): Likewise
15560         (get_odr_type): Reorg to use two hashes.
15561         (dump_possible_polymorphic_call_targets): Move sanity check after debug
15562         output.
15563         (ipa_devirt): Dump type_inheritance_graph.
15564         (types_same_for_odr): Add strict mode.
15566 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
15568         PR ipa/65334
15569         * cgraph.h (symtab_node): Add definition_alignment,
15570         can_increase_alignment_p and increase_alignment.
15571         * symtab.c (symtab_node::can_increase_alignment_p,
15572         increase_alignment_1, symtab_node::increase_alignment,
15573         symtab_node::definition_alignment): New.
15574         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
15575         can_increase_alignment_p.
15576         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
15577         * tree-vect-stmts.c (ensure_base_align): Likewise.
15578         * varasm.c (function_section_1): Use definition_alignment.
15579         (assemble_start_function): Likewise.
15580         (emit_local): likewise.
15581         (build_constant_desc): Likewsie.
15582         (output_constant_def_contents): Likewise.
15583         (place_block_symbol): Likewise.
15584         (output_object_block): Likewise.
15586 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
15588         PR ipa/65316
15589         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
15590         when outputting debug.
15592 2015-03-07  Marek Polacek  <polacek@redhat.com>
15593             Martin Uecker  <uecker@eecs.berkeley.edu>
15595         PR sanitizer/65280
15596         * doc/invoke.texi: Update description of -fsanitize=bounds.
15598 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
15600         * tree-ssa-phiopt.c (neg_replacement): Remove.
15601         (tree_ssa_phiopt_worker): Remove negate optimization.
15603 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
15605         PR ipa/65302
15606         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
15608 2015-03-06  Richard Biener  <rguenther@suse.de>
15610         PR middle-end/64928
15611         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
15612         and liveout_obstack members.
15613         (calculate_live_on_exit): Remove.
15614         (calculate_live_ranges): Change declaration.
15615         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
15616         (new_tree_live_info): Adjust.
15617         (calculate_live_ranges): Delete livein when not wanted.
15618         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
15619         Deal with partly deleted live info.
15620         (loe_visit_block): Remove temporary bitmap by using
15621         bitmap_ior_and_compl_into.
15622         (live_worklist): Adjust accordingly.
15623         (calculate_live_on_exit): Make static.
15624         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
15625         we do not need livein.
15627 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
15629         * real.c (real_from_string): Fix typo in assertion.
15631 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
15633         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
15634         the patch.
15636 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
15638         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
15640 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
15642         PR target/64342
15643         * lra-assigns.c (find_hard_regno_for): Rename to
15644         find_hard_regno_for_1.  Add a new parameter.
15645         (find_hard_regno_for): New function using find_hard_regno_for_1.
15647 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15649         PR rtl-optimization/65067
15650         * expmed.c (store_bit_field, extract_bit_field): Reworked the
15651         strict volatile bitfield handling.
15653 2015-03-05  Martin Liska  <mliska@suse.cz>
15655         PR ipa/65318
15656         * ipa-icf.c (sem_variable::equals): Compare variables types.
15658 2015-03-05  Richard Henderson  <rth@redhat.com>
15660         PR target/65121
15661         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
15662         correctly check weak symbol binding.
15664 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
15666         PR middle-end/65315
15667         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
15668         needed alignment.
15670 2015-03-05  Martin Liska  <mliska@suse.cz>
15672         * ipa-inline.c (inline_small_functions): Set default value to
15673         prevent warning during bootstrap.
15674         * tree.h: Add pragma guard that ignores false positives during
15675         bootstrap.
15677 2015-03-05  Richard Biener  <rguenther@suse.de>
15679         PR tree-optimization/65310
15680         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15681         Properly preserve alignment of the base of the access.
15683 2015-03-05  Richard Biener  <rguenther@suse.de>
15685         PR ipa/65270
15686         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
15687         Compare dependence info.
15689 2015-03-05  Richard Biener  <rguenther@suse.de>
15691         PR middle-end/65233
15692         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
15693         tree-into-ssa.h.
15694         (walk_ssa_copies): Revert last chage.  Instead do not walk
15695         SSA names registered for SSA update.
15697 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
15699         PR ipa/65270
15700         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
15701         vtable references for their containing type.
15702         (sem_function::equals_wpa): Compare TYPE_RESTRICT
15703         and type attributes.
15705 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
15707         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
15708         before negating it.
15709         * stor-layout.c (finalize_record_size): Revert latest change.
15711 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
15713         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
15715 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
15717         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
15718         for correct comdat handling.
15719         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
15720         Likewise.
15721         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
15722         (used_from_object_file_p_worker): Remove.
15723         (cgraph_node::only_called_directly_or_alised): Add
15724         used_from_object_file_p.
15725         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
15726         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
15727         can_remove_if_no_direct_calls_and_refs_p.
15729 2015-03-04  Nick Clifton  <nickc@redhat.com>
15731         * config/rl78/rl78.h (enum reg_class): Remove real registers from
15732         General register class.
15733         * config/rl78/rl78-real.md: Replace general register constraints
15734         with real+virtual register constraints.
15736 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15738         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
15739         from checking for -mhtm option.
15741 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
15743         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
15744         (struct ipa_sra_check_caller_data): Add has_thunk field.
15745         (ipa_sra_check_caller): Check for thunk.
15746         (ipa_sra_preliminary_function_checks): Give up on function with
15747         thunks.
15748         (ipa_early_sra): Use call_for_symbol_and_aliases.
15750 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
15752         PR target/65249
15753         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
15754         called for __stack_chk_guard symbol.
15756 2015-03-03  DJ Delorie  <dj@redhat.com>
15758         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
15759         inc/dec.
15760         (*addhi3_real): Likewise.
15761         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
15762         pattern to match incrementing memory.
15763         * config/rl78/predicates.md (rl78_1_2_operand): New.
15764         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
15765         it's the same and only mem.
15766         (rl78_alloc_physical_registers_op2): If there's effectively only
15767         one MEM, transcode it into HL.
15768         (rl78_far_p): Reject addresses that aren't legitimate.
15770 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15772         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
15773         negating it.
15775         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
15777 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
15779         Implement call0 ABI for xtensa
15780         * config/xtensa/constraints.md ("a" constraint): Include stack
15781         pointer in case of call0 ABI.
15782         ("q" constraint): Make empty in case of call0 ABI.
15783         ("D" constraint): Include stack pointer in case of call0 ABI.
15784         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
15785         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
15786         prototypes.
15787         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
15788         variable.
15789         (xtensa_regno_to_class): Make it a local variable in the
15790         function xtensa_regno_to_class.
15791         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
15792         macro, function prototype and implementation.
15793         (reg_nonleaf_alloc_order): Make it a local variable in the
15794         function order_regs_for_local_alloc.
15795         (xtensa_conditional_register_usage): New function.
15796         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
15797         (xtensa_valid_move): Allow direct moves to stack pointer
15798         register in call0 ABI.
15799         (xtensa_setup_frame_addresses): Only spill register windows in
15800         windowed ABI.
15801         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
15802         call0 ABI respectively.
15803         (xtensa_function_arg_1): Only mark a7 register for copying in
15804         windowed ABI.
15805         (xtensa_call_save_reg): New function.
15806         (compute_frame_size): Add space for callee saved register
15807         storage to the frame size in call0 ABI.
15808         (xtensa_expand_prologue): Generate code to set up stack frame
15809         and save callee-saved registers in call0 ABI.
15810         (xtensa_expand_epilogue): New function.
15811         (xtensa_set_return_address): New function.
15812         (xtensa_return_addr): Calculate return address in call0 ABI.
15813         (xtensa_builtin_saveregs): Only mark a7 register for copying and
15814         emit copying code in windowed ABI.
15815         (order_regs_for_local_alloc): Add preferred register allocation
15816         order for non-leaf function in call0 ABI.
15817         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
15818         (xtensa_asm_trampoline_template): Add trampoline generation for
15819         call0 ABI.
15820         (xtensa_trampoline_init): Add trampoline initialization for
15821         call0 ABI.
15822         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
15823         functions.
15824         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
15825         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
15826         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
15827         ABI call-used registers.
15828         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
15829         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
15830         call0 ABI.
15831         (REG_CLASS_CONTENTS): Include all registers into the preferred
15832         reload registers set, adjust the set in the
15833         xtensa_conditional_register_usage.
15834         (xtensa_regno_to_class): Drop variable declaration.
15835         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
15836         function.
15837         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
15838         respectively.
15839         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
15840         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
15841         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
15842         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
15843         location in call0 ABI.
15844         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
15845         stack adjustment size when handling exception.
15846         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
15847         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
15848         definitions.
15849         ("return" pattern): Generate ret.n/ret in call0 ABI.
15850         ("epilogue" pattern): Expand epilogue.
15851         ("nonlocal_goto" pattern): Use default in call0 ABI.
15852         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
15853         emit eh_set_a0_* depending on ABI.
15854         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
15855         ("eh_set_a0_call0", "blockage"): New patterns.
15857 2015-03-03  Martin Liska  <mliska@suse.cz>
15859         PR ipa/65287
15860         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
15862 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15864         PR 65138/target
15865         * config/rs6000/rs6000-tables.opt: Regenerate table.
15867 2015-03-03  Renlin Li  <renlin.li@arm.com>
15869         * doc/md.texi (@item ^): Change ? into ^.
15871 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
15873         * doc/tm.texi: Regenerated.
15875 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
15877         * builtins.c (expand_builtin_return_addr): Add
15878         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
15879         surrounding #ifdef.
15880         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
15881         definition to 1.
15882         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
15883         Likewise.
15884         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
15885         undefined.
15886         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
15887         paragraph.
15889 2015-03-03  Martin Jambor  <mjambor@suse.cz>
15890             Eric Botcazou  <ebotcazou@adacore.com>
15892         * tree-sra.c (ipa_sra_check_caller_data): New type.
15893         (has_caller_p): Removed.
15894         (ipa_sra_check_caller): New function.
15895         (ipa_sra_preliminary_function_checks): Use it.
15897 2015-03-03  Martin Liska  <mliska@suse.cz>
15899         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
15900         instead of if branch.
15902 2015-03-03  Martin Liska  <mliska@suse.cz>
15904         PR ipa/65282
15905         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
15907 2015-03-23  Jeff Law  <law@redhat.com>
15909         PR tree-optimization/65241
15910         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
15911         hash table if INSERT is true.
15913 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
15915         PR target/65296
15916         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
15918 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
15920         PR target/64331
15921         * config/avr/avr.c (context.h, tree-pass.h): Include them.
15922         (avr_pass_data_recompute_notes): New static variable.
15923         (avr_pass_recompute_notes): New class.
15924         (avr_register_passes): New static function.
15925         (avr_option_override): Call it.
15927 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
15929         Fix various problems with specs file generation.
15931         PR target/65296
15932         * config.gcc (extra_gcc_objs) [avr]: Remove.
15933         * config/avr/driver-avr.c: Remove file.
15934         * config/avr/t-avr (driver-avr.o): Remove rule.
15935         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
15936         INCLUDES to build.  Depend on TM_H.
15937         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
15938         build warnings.  Fix non-matching types and non-existing %-codes.
15939         (tm.h): Include.
15940         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
15941         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
15942         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
15943         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
15944         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
15945         (LIBGCC_SPEC): Remove definitions.
15947 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15949         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
15950         to create a register in testing mode.
15952 2015-03-03  Martin Liska  <mliska@suse.cz>
15953             Jan Hubicka  <hubicka@ucw.cz>
15955         PR ipa/65263
15956         * cgraph.c (cgraph_node::has_thunk_p): New function.
15957         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
15958         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
15959         (sem_function::merge): Assert is changed.
15961 2015-03-03  Martin Liska  <mliska@suse.cz>
15962             Martin Jambor  <mjambor@suse.cz>
15964         PR ipa/65087
15965         * ipa-icf.c (sem_item_optimizer::execute): Change function
15966         return value to boolean.
15967         (sem_item_optimizer::merge_classes): Likewise.
15968         (ipa_icf_driver): Return TODO_remove_functions in case there's
15969         a merge operation processed.
15970         * ipa-icf.h: Change function return value to boolean.
15972 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15974         PR 65138/target
15975         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
15976         processor type for 64-bit little endian PowerPC.
15978         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15979         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
15980         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
15981         printing built-in mask so it does not pass NULL pointers.
15983         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
15984         -mcpu=powerpc64le.
15986 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
15988         PR target/58158
15989         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
15990         !ISA_HAS_FP_CONDMOVE.
15992 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
15994         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
15995         reload_completed.
15997 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
15999         * doc/invoke.texi (Options for Code Generation Conventions):
16000         Fix URL of DSO paper.
16002 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16004         PR ipa/65130
16005         * ipa-inline.c (check_callers): Looks for recursion.
16006         (inline_to_all_callers): Give up on uninlinable or recursive edges.
16007         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
16008         summary of inline clones.
16009         (do_estimate_growth_1): Fix recursion check.
16011 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16013         PR ipa/64988
16014         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
16015         comdat groups.
16017 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
16018             Aldy Hernandez  <aldyh@redhat.com>
16020         PR lto/65276
16021         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
16022         when checking TYPE_BINFO.
16024 2015-03-02  Richard Biener  <rguenther@suse.de>
16026         PR ipa/65270
16027         * ipa-icf-gimple.c: Include builtins.h.
16028         (func_checker::compare_memory_operand): Compare base alignment.
16030 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16032         PR target/65184
16033         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
16034         are never passed by reference.
16036 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16038         PR target/65183
16039         * tree-chkp.c (chkp_check_lower): Don't check against
16040         zero bounds for already instrumented functions.
16041         (chkp_check_upper): Likewise.
16042         (chkp_fini): Clean pass local data to avoid wrong reusage.
16044 2015-02-28  Martin Liska  <mliska@suse.cz>
16045             Jan Hubicka  <hubicka@ucw.cz>
16047         * ipa-icf.c (sem_variable::equals): Improve debug output;
16048         get variable constructor.
16049         (sem_variable::parse): Do not filter out too early; give up on
16050         volatile and register vars.
16051         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
16052         variables.
16053         * ipa-icf.h (sem_variable::init): Do not set ctor.
16054         (sem_variable::ctor): Remove.
16056 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
16058         PR middle-end/65233
16059         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
16061 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16063         * ipa-icf.c: Include stor-layout.h
16064         (sem_function::compare_cgraph_references): Rename to ...
16065         (sem_item::compare_cgraph_references): ... this one.
16066         (sem_variable::equals_wpa): New function
16067         (sem_variable::equals): Do not check stuff already verified by
16068         equals_wpa.
16069         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
16070         * ipa-icf.h (sem_item): Add compare_cgraph_references.
16071         (sem_function): Remove compare_cgraph_references.
16072         (sem_variable): Turns equals_wpa into non-inline.
16074 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16076         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
16077         (sem_item::add_expr): New function.
16078         (sem_function::hash_stmt): Handle operands of most statements.
16079         (sem_variable::get_hash): Hash the actual constructor.
16080         * ipa-icf.h (sem_item): Add add_expr.
16081         (sem_function): Update prototype of hash_stmt
16083 2015-02-28  Martin Liska  <mliska@suse.cz>
16084             Jan Hubicka  <hubicka@ucw.cz>
16086         PR ipa/65245
16087         * ipa-icf-gimple.c (func_checker::compare_function_decl):
16088         Remove.
16089         (func_checker::compare_variable_decl): Skip symtab vars.
16090         (func_checker::compare_cst_or_decl): Update.
16091         * ipa-icf.c (sem_function::parse): Do not consider aliases.
16092         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
16093         use correct symtab predicates.
16094         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
16095         (sem_variable::parse):  Update comment.
16096         (sem_item_optimizer::build_graph): Consider ultimate aliases
16097         for references.
16099 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16101         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
16102         of OBJ_TYPE_REF.
16104 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16106         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
16107         (sem_variable::merge) Likewise.
16109 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16111         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
16112         target; also match flag_ipa_devirt.
16114 2015-03-01  Martin Liska  <mliska@suse.cz>
16115             Jan Hubicka  <hubicka@ucw.cz>
16117         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
16118         Validate variable alignment.
16119         * ipa-icf.c (sem_function::equals_private): Be more precise
16120         about non-common function attributes.
16121         (sem_variable::equals): Likewise.
16123 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16125         PR ipa/65237
16126         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
16127         across COMDAT group boundary.
16129 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16131         PR ipa/65232
16132         * ipa-icf.c (clear_decl_rtl): New function.
16133         (sem_function::merge): Clear RTL before forming alias.
16134         (sem_variable::merge): Clear RTL before forming alias.
16136 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
16138         PR ipa/65236
16139         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
16141 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
16143         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
16144         to neon_to_gp<q>.
16146 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16148         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
16149         a typo in the description.
16151 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16153         PR target/64317
16154         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16155         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
16156         * lra-constraints.c: Include "params.h".
16157         (EBB_PROBABILITY_CUTOFF): Use
16158         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
16159         (lra_inheritance): Use '<' instead of '<=' for
16160         EBB_PROBABILITY_CUTOFF.
16161         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
16162         Document change.
16164 2015-02-27  Martin Liska  <mliska@suse.cz>
16166         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
16167         vector length condition.
16169 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
16171         * doc/extend.texi (x86 transactional memory intrinsics):
16172         Reorganize discussion of _xbegin.  Clarify that the return
16173         value is a bit mask.  Expand example and move to end of section.
16175 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16176             Aldy Hernandez  <aldyh@redhat.com>
16178         PR rtl-optimization/65220
16179         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
16181 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16183         PR target/65032
16184         * lra-remat.c (update_scratch_ops): New.
16185         (do_remat): Call it.
16186         * lra.c (lra_register_new_scratch_op): New. Take code from ...
16187         (remove_scratches): ... here.
16188         * lra-int.h (lra_register_new_scratch_op): New prototype.
16190 2015-02-27  Marek Polacek  <polacek@redhat.com>
16192         PR c/65040
16193         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
16194         -Wformat-signedness anymore.
16196 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16198         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
16199         function.
16200         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
16202 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16204         * config/s390/s390.c (enum s390_builtin):
16205         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
16206         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
16207         (s390_init_builtins): Generate new builtin functions.
16208         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
16209         (s390_sfpc, s390_efpc): New pattern definitions.
16211 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16213         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
16214         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
16215         (s390_builtin_decls): New array.
16216         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
16217         (s390_builtin_decl): New function.
16218         (TARGET_BUILTIN_DECL): Define macro.
16220 2015-02-27  Richard Biener  <rguenther@suse.de>
16222         PR middle-end/63175
16223         * builtins.c (get_object_alignment_2): Make sure to re-apply
16224         the ANDed mask after recursing to its operand gets us a new
16225         misalignment bit position.
16227 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
16228             Martin Liska  <mliska@suse.cz>
16230         PR bootstrap/65150
16231         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
16232         Use address_matters_p.
16233         (redirect_all_callers, set_addressable): New functions.
16234         (sem_function::merge): Reorganize and fix merging issues.
16235         (sem_variable::merge): Likewise.
16236         (sem_variable::compare_sections): Remove.
16237         * common.opt (fmerge-all-constants, fmerge-constants): Remove
16238         Optimization flag.
16239         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
16240         redirect them.
16241         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
16242         decl is used.
16243         (address_matters_1): New function.
16244         (symtab_node::address_matters_p): New function.
16245         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
16246         check for merged flag.
16247         * cgraph.h (address_matters_p): Declare.
16248         (symtab_node::address_taken_from_non_vtable_p): Remove.
16249         (symtab_node::address_can_be_compared_p): New method.
16250         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
16251         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
16252         Remove.
16253         (comdat_can_be_unshared_p_1) Use address_matters_p.
16254         (update_vtable_references): Fix formating.
16255         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
16256         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
16257         * cgraphclones.c: Preserve merged and icf_merged flags.
16259 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
16261         * doc/extend.texi (Function Attributes): Fix spelling and typos.
16262         (Label Attributes): Likewise.
16263         (Cilk Plus Builtins): Likewise.
16264         (ARC SIMD Built-in Functions): Likewise.
16265         (ARM C Language Extensions (ACLE)): Likewise.
16266         (PowerPC Built-in Functions): Likewise.
16267         (PowerPC Hardware Transactional Memory Built-in Functions):
16268         Likewise.
16270 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16272         PR tree-optimization/65216
16273         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
16274         new stmt and new SSA_NAME for lhs whenever the arguments have
16275         changed and weren't just swapped.  Fix comment typo.
16277         PR tree-optimization/65215
16278         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
16279         for PDP endian targets.
16280         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
16281         Fix up formatting issues.
16282         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
16283         size is smaller than the original, adjust MEM_REF offset by the
16284         difference of sizes.  Use is_gimple_mem_ref_addr instead of
16285         is_gimple_min_invariant test to avoid adding address temporaries.
16287 2015-02-26  Martin Liska  <mliska@suse.cz>
16288             Jan Hubicka  <hubicka@ucw.cz>
16290         PR ipa/64693
16291         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
16292         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
16293         (sem_item_optimizer::process_cong_reduction): Include division by
16294         sensitive references.
16295         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
16296         * ipa-ref.c (ipa_ref::address_matters_p): New function.
16297         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
16299 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
16301         PR target/65192
16302         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
16303         Remove.
16304         * config/avr/avr.c: Same.
16305         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
16306         Refuse any constant address not in 0..0xbf.
16307         * config/avr/avr.md (*mov<mode>, *movsf): Remove
16308         tiny_valid_direct_memory_access_range from insn conditions.
16309         (mov<mode>): Don't special-case expansion of avrtiny addresses.
16311 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
16313         PR target/61142
16314         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
16315         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
16316         * config/sh/predicates.md (const_logical_operand): New predicate.
16317         * config/sh/sh.md: Add new peephole2 patterns.
16319 2015-02-26  Marek Polacek  <polacek@redhat.com>
16321         PR ipa/65008
16322         * ipa-inline.c (early_inliner): Recompute inline parameters.
16324 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16326         PR target/65171
16327         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
16328         instructions with TImode operands are included in the analysis.
16330 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
16332         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
16333         of an EDGE_FSM_THREAD.
16335 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16337         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
16339 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
16341         PR debug/46102
16342         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
16344 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
16346         PR tree-optimization/65048
16347         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
16348         (thread_through_all_blocks): Call valid_jump_thread_path.
16349         Remove invalid FSM jump-thread paths.
16351 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
16353         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
16354         (ipa_write_optimization_summaries): Likewise.
16355         * tree-streamer.h: Include data-streamer.h.
16356         (streamer_mode_table): Declare extern variable.
16357         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
16358         * lto-streamer-out.c (lto_output_init_mode_table,
16359         lto_write_mode_table): New functions.
16360         (produce_asm_for_decls): Call lto_write_mode_table when streaming
16361         offloading LTO.
16362         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
16363         (lto_create_simple_input_block): Add mode_table argument to the
16364         lto_input_block constructors.
16365         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
16366         Likewise.
16367         * data-streamer-in.c (string_for_index): Likewise.
16368         * ipa-inline-analysis.c (inline_read_section): Likewise.
16369         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
16370         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16371         * lto-streamer-in.c (lto_read_body_or_constructor,
16372         lto_input_toplevel_asms): Likewise.
16373         (lto_input_mode_table): New function.
16374         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
16375         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
16376         Use bp_pack_machine_mode.
16377         * real.h (struct real_format): Add name field.
16378         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
16379         (class lto_input_block): Add mode_table member.
16380         (lto_input_block::lto_input_block): Add mode_table_ argument,
16381         initialize mode_table.
16382         (struct lto_file_decl_data): Add mode_table field.
16383         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
16384         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
16385         unpack_ts_decl_common_value_fields,
16386         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
16387         * tree-streamer.c (streamer_mode_table): New variable.
16388         * real.c (ieee_single_format, mips_single_format,
16389         motorola_single_format, spu_single_format, ieee_double_format,
16390         mips_double_format, motorola_double_format,
16391         ieee_extended_motorola_format, ieee_extended_intel_96_format,
16392         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
16393         ibm_extended_format, mips_extended_format, ieee_quad_format,
16394         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
16395         decimal_single_format, decimal_double_format, decimal_quad_format,
16396         ieee_half_format, arm_half_format, real_internal_format): Add name
16397         field.
16398         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
16400 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
16402         PR target/65161
16403         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
16404         reordering for selective scheduling.
16406 2015-02-26  Terry Guo  <terry.guo@arm.com>
16408         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
16409         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
16410         (arm_arch_no_volatile_ce): Declare new global variable.
16411         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
16412         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
16413         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
16414         (TARGET_NO_VOLATILE_CE): New macro.
16415         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
16416         volatile memory access in IT block
16418 2015-02-25  Kai Tietz  <ktietz@redhat.com>
16420         PR tree-optimization/61917
16421         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
16422         that reduc_def_stmt is null.
16424 2015-02-25  Martin Liska  <mliska@suse.cz>
16426         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
16427         hard register variables.
16429 2015-02-25  Kai Tietz  <ktietz@redhat.com>
16431         PR target/64212
16432         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
16433         (symtab::noninterposable_alias): Likewise.
16435 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
16437         PR target/65167
16438         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
16439         bounds registers.
16440         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
16442 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
16444         PR target/64997
16445         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
16446         as split condition; force split via '#' in output pattern.
16448 2015-02-25  Richard Biener  <rguenther@suse.de>
16449             Kai Tietz  <ktietz@redhat.com>
16451         PR tree-optimization/61917
16452         * tree-vect-loop.c (vectorizable_reduction): Allow
16453         vect_internal_def without reduction to exit graceful.
16455 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
16457         PR target/65196
16458         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
16459         only with NONDEBUG_INSN_P.
16461 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
16463         Use variadic macros with avr-log.c.
16465         * config/avr/avr-protos.h (avr_vdump): New prototype.
16466         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
16467         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
16468         * config/avr/avr-log.c: Adjust comments.
16469         (avr_vdump): New function.
16470         (avr_vadump): Pass caller as 2nd argument instead of format string.
16471         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
16472         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
16474 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
16476         PR lto/64374
16477         * target.def (target_option_stream_in): New target hook.
16478         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
16479         targetm.target_option.post_stream_in if non-NULL.
16480         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
16481         * doc/tm.texi: Updated.
16482         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
16483         function.
16484         (TARGET_OPTION_POST_STREAM_IN): Redefine.
16486 2015-02-24  Jeff Law  <law@redhat.com>
16488         PR target/65117
16489         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
16490         of operand 0 and operand 2.
16491         (zero_cost_loop_end, loop_end): Similarly.
16493 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
16495         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
16496         CXX_MEM_STAT_INFO.
16498 2015-02-24  DJ Delorie  <dj@redhat.com>
16500         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
16501         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
16502         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
16503         instead of hardcoding SImode.
16505 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
16507         * omp-low.c (create_omp_child_function): Tag entrypoint
16508         functions with a special attribute.
16510 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16512         PR target/65058
16513         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
16515 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
16517         PR rtl-optimization/65123
16518         * lra-remat.c (operand_to_remat): Check hard regs in insn
16519         definition too.
16521 2015-02-24  Nick Clifton  <nickc@redhat.com>
16523         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
16524         to the assembler.
16526 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
16528         PR libgomp/64625
16529         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
16530         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
16531         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
16532         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
16533         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
16534         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
16535         (BUILT_IN_GOACC_PARALLEL): Specify as
16536         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
16537         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
16538         * builtin-types.def
16539         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16540         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16541         Remove function types.
16542         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
16543         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16544         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16545         New function types.
16547 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
16549         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
16551 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
16553         PR tree-optimization/65170
16554         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
16555         if val[1] < 0, clear also val[2] and return 3.
16557 2015-02-24  Alan Modra  <amodra@gmail.com>
16559         PR target/65172
16560         * config/rs6000/rs6000.c (get_memref_parts): Only return true
16561         when *base is a reg.  Handle nested plus addresses.  Simplify
16562         pre_modify test.
16564 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
16566         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
16567         use natural alignment when optimizing for size.
16569 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
16571         PR target/65153
16572         * config/sh/sh.md (movsicc_true+3): Remove peephole.
16573         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
16574         * config/sh/sh.c (replace_n_hard_rtx): Remove.
16576 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
16578         PR fortran/63427
16579         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
16580         too big for a wide_int.  Implement missing wrapping operation.
16582 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
16584         PR target/65163
16585         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
16586         instead of const_int 4294901760.
16588 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
16590         * config/avr/t-avr: Fix typo in comment.
16592 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
16594         * doc/rtl.texi (fma): Clarify documentation.
16596 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
16598         PR debug/58123
16599         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
16600         over input_location.
16602 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
16604         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
16605         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
16606         restrict alignments to absolute_biggest_alignment.
16607         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
16608         Define.
16609         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
16610         * doc/tm.texi: Regenerate.
16611         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
16613 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
16615         PR target/64172
16616         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
16618 2015-02-20  Richard Biener  <rguenther@suse.de>
16620         PR tree-optimization/65136
16621         * tree-ssa-propagate.c: Include cfgloop.h.
16622         (replace_phi_args_in): Avoid replacing loop latch edge PHI
16623         arguments with constants.
16625 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
16626             Martin Liska  <mliska@suse.cz>
16628         PR target/63892
16629         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
16630         don't try to create_thunk if stdarg_p.  If
16631         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
16632         redirect_callers if possible.
16633         (sem_item_optimizer::execute): Call unregister_hooks here...
16634         (ipa_icf_driver): ... instead of here.
16636 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16638         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
16639         Mark operand 0 as earlyclobber in 2nd alternative.
16640         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
16641         Write negated shift amount into QI lowpart operand 0 and use it
16642         in the shift step.
16643         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16645 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
16647         * cgraph.h (clone_function_name_1): Declare.
16648         * cgraphclones.c (clone_function_name_1): New function.
16649         (clone_function_name): Use it.
16650         * lto-partition.c: Include "stringpool.h".
16651         (must_not_rename, maybe_rewrite_identifier)
16652         (validize_symbol_for_target): New static functions.
16653         (privatize_symbol_name): Use must_not_rename.
16654         (promote_symbol): Call validize_symbol_for_target.
16655         (lto_promote_cross_file_statics): Likewise.
16656         (lto_promote_statics_nonwpa): Likewise.
16658 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
16660         PR target/64452
16661         * config/avr/avr.md (pushhi_insn): New insn.
16662         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
16664 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
16665             Jakub Jelinek  <jakub@redhat.com>
16667         * tree-streamer.c (preload_common_nodes): Don't preload
16668         TI_VA_LIST* for offloading.
16669         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
16670         in_lto_p.
16672 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
16674         * config/pa/pa.c (pa_emit_move_sequence): Always force
16675         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
16676         note on insn.
16678         * config/pa/pa.c (pa_reloc_rw_mask): New function.
16679         (TARGET_ASM_RELOC_RW_MASK): Define.
16680         (pa_cannot_force_const_mem): Revert previous change.
16682 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
16683             Jan Hubicka  <hubicka@ucw.cz>
16685         PR ipa/65028
16686         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
16687         across jump functions.
16689 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
16691         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
16693 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
16695         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
16697 2015-02-19  Richard Henderson  <rth@redhat.com>
16699         PR middle-end/65074
16700         * varasm.c (default_binds_local_p_2): Don't test node->definition;
16701         test DECL_EXTERNAL independent of symtab_node.
16703 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
16705         PR lto/65012
16706         * varpool.c (varpool_node::get_constructor): Return early
16707         if this->lto_file_data is NULL.
16709 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16711         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
16712         (rank_for_schedule_debug): Update.
16713         (ready_sort): Make static.  Move sorting logic to ...
16714         (ready_sort_debug, ready_sort_real): New static functions.
16715         (schedule_block): Sort both debug insns and real insns in preparation
16716         for ready list trimming.  Improve debug output.
16717         * sched-int.h (ready_sort): Remove global declaration.
16719 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
16721         * ipa-icf.c (sem_function::equals_private): Adjust.
16722         (sem_function::bb_dict_test): Take a vec<int> * instead of
16723         auto_vec<int>.
16724         * ipa-icf.h (bb_dict_test): Likewise.
16726 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
16728         PR gcov-profile/64634
16729         * tree-eh.c (frob_into_branch_around): Fix up typos
16730         in function comment.
16731         (lower_catch): Put eh_seq resulting from EH lowering of
16732         the cleanup sequence after the cleanup rather than before it.
16734 2015-02-18  Tom de Vries  <tom@codesourcery.com>
16736         * common.opt (fstdarg-opt): New option.
16737         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
16738         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
16739         (@item -fstdarg-opt): New item.
16741 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
16743         PR target/65064
16744         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
16745         for common symbols.
16747 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
16749         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
16750         insn-modes.h.
16751         (ALL_HOST_OBJS): Add mkoffload.o.
16752         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
16754 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
16756         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
16757         (compare_virtual_tables): Be smarter about skipping typeinfos;
16758         do sane output on virtual table table mismatch.
16759         (warn_odr): Be ready for forward declarations of enums;
16760         output sane info on base mismatch and virtual table mismatch.
16761         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
16762         when only one type is polymorphic.
16763         (get_odr_type): Fix hashtable corruption.
16764         (dump_odr_type): Dump mangled names.
16766 2015-02-18  Richard Biener  <rguenther@suse.de>
16768         PR tree-optimization/65063
16769         * tree-predcom.c (determine_unroll_factor): Return 1 if we
16770         have replaced looparound PHIs.
16772 2015-02-18  Martin Liska  <mliska@suse.cz>
16774         * lto-streamer.c (lto_streamer_init): Encapsulate
16775         streamer_check_handled_ts_structures with checking macro.
16777 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
16779         PR ipa/65087
16780         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
16781         section if !implicit_section.
16782         (cgraph_node::create_version_clone_with_body): Likewise.
16783         * trans-mem.c (ipa_tm_create_version): Likewise.
16785 2015-02-18  Richard Biener  <rguenther@suse.de>
16787         PR tree-optimization/62217
16788         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
16789         into BIVs.
16791 2015-02-18  Marek Polacek  <polacek@redhat.com>
16793         PR sanitizer/65081
16794         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
16795         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
16796         is in range [-16K, -1].  Don't issue run-time error if
16797         (ptr > ptr + offset).
16799 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
16801         * doc/install.texi (nvptx-*-none): New section.
16802         * doc/invoke.texi (Nvidia PTX Options): Likewise.
16803         * config/nvptx/nvptx.opt: Update.
16805         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
16806         (access_check): New functions, copied from
16807         config/i386/intelmic-mkoffload.c.
16808         (main): For non-installed testing, look in all COMPILER_PATHs for
16809         GCC_INSTALL_NAME.
16811         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
16813 2015-02-18  Andrew Pinski  <apinski@cavium.com>
16814             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16816         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
16817         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
16819 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
16821         * ipa-visibility.c (function_and_variable_visibility): Only
16822         check locality if node is not already local.
16823         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
16824         call_for_symbol_and_aliases instead of
16825         call_for_symbol_thunks_and_aliases.
16826         (ipa_inline): Likewise.
16827         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16828         first walk aliases.
16829         * ipa.c (symbol_table::remove_unreachable_nodes): Use
16830         call_for_symbol_and_aliases.
16831         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
16832         (ipa_propagate_frequency_1): Use it; use opt_for_fn
16833         (ipa_propagate_frequency): Update.
16834         (ipa_profile): Add opt_for_fn gueards.
16836 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
16838         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
16839         * doc/invoke.texi (SH options): Document it.
16840         * config/sh/sh.c (sh_insn_length_adjustment): Check
16841         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
16843 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
16845         * common.opt (fipa-cp-alignment): New.
16846         * ipa-cp.c (ipcp_store_alignment_results): Check
16847         flag_ipa_cp_alignment.
16848         * opts.c (default_options_table): Enable -fipa-cp-alignment for
16849         -O2.
16850         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
16851         * doc/invoke.texi: Document -fipa-cp-alignment.
16853 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
16855         PR target/64793
16856         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
16857         to nil.  Adjust comments.
16859 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
16861         * ipa-visibility.c (function_and_variable_visibility): Only
16862         check locality if node is not already local.
16863         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
16864         call_for_symbol_and_aliases instead of
16865         call_for_symbol_thunks_and_aliases.
16866         (ipa_inline): Likewise.
16867         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16868         first walk aliases.
16869         * ipa.c (symbol_table::remove_unreachable_nodes): Use
16870         call_for_symbol_and_aliases.
16871         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
16872         (ipa_propagate_frequency_1): Use it; use opt_for_fn
16873         (ipa_propagate_frequency): Update.
16874         (ipa_profile): Add opt_for_fn guards.
16876 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16878         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
16879         skipping of "strange" tokens.
16881 2015-02-17  Jeff Law  <law@redhat.com>
16883         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
16884         obsolete comment.
16886 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
16888         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
16889         as forcing a HARD_DEP between instructions, thereby
16890         disallowing rewriting to break dependencies.
16892 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
16894         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
16895         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
16896         variables in boundary that have no inlitalizer encoded and are
16897         not aliases.
16898         * varasm.c (default_binds_local_p_2): External definitions do not
16899         count as definitions here.
16901 2015-02-16  Jeff Law  <law@redhat.com>
16903         PR tree-optimization/64823
16904         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
16905         statements.
16906         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
16907         threading through blocks with PHIs, but no statements.
16908         (thread_through_normal_block): Distinguish between blocks where
16909         we did not process all the statements and blocks with no statements.
16911 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
16912             James Greenhalgh  <james.greenhalgh@arm.com>
16914         PR ipa/64963
16915         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
16916         section if not linkonce.  Fix up formatting.
16917         (cgraph_node::create_version_clone_with_body): Copy section.
16918         * trans-mem.c (ipa_tm_create_version): Likewise.
16920 2015-02-16  Richard Biener  <rguenther@suse.de>
16922         PR tree-optimization/65077
16923         * tree-ssa-structalias.c (get_constraint_for_1): Handle
16924         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
16925         (find_func_aliases): Allow float values to carry pointers again.
16927 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
16929         * doc/install.texi (Specific): Reorder targets list to put
16930         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
16931         from the top menu.
16933 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
16934             David Edelsohn  <dje.gcc@gmail.com>
16936         PR target/65058
16937         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
16938         mapping class to external variable or function reference.
16939         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
16940         mapping class.
16942 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
16944         PR target/53348
16945         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
16946         ASM_WEAKEN_DECL if defined.
16948 2015-02-16  Richard Biener  <rguenther@suse.de>
16950         PR lto/65015
16951         * varasm.c (default_file_start): For LTO produced units
16952         emit <artificial> as file directive.
16954 2015-02-16  Richard Biener  <rguenther@suse.de>
16956         PR tree-optimization/63593
16957         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
16958         stmts and releasing SSA names until...
16959         (execute_pred_commoning): ... after processing all chains.
16961 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
16963         PR ipa/65059
16964         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
16965         external functions.
16967 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
16969         * doc/bugreport.texi: Adjust section titles throughout the file
16970         to use "Title Case".
16971         * doc/extend.texi: Likewise.
16972         * doc/gcov.texi: Likewise.
16973         * doc/implement-c.texi: Likewise.
16974         * doc/implement-cxx.texi: Likewise.
16975         * doc/invoke.texi: Likewise.
16976         * doc/objc.texi: Likewise.
16977         * doc/standards.texi: Likewise.
16978         * doc/trouble.texi: Likewise.
16980 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
16982         * cgraph.h (symtab_node::has_aliases_p): Simplify.
16983         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
16984         * tree.c (lookup_binfo_at_offset): Make static.
16985         (get_binfo_at_offset): Do not shadow offset; add explanatory
16986         comment.
16988 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
16990         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
16991         for all floading point loads and stores except those using a register
16992         index address.
16993         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
16994         to a register.
16996 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
16998         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
16999         (do_estimate_growth_1): Record if any uninlinable edge was seen.
17000         (estimate_growth): Handle uninlinable edges correctly.
17001         (check_callers): New.
17002         (growth_likely_positive): Handle aliases correctly.
17004 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
17006         * ipa-chkp.c: Use iterate_direct_aliases.
17007         * symtab.c (resolution_used_from_other_file_p): Move inline.
17008         (symtab_node::create_reference): Fix formating.
17009         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17010         (symtab_node::iterate_reference): Move inline.
17011         (symtab_node::iterate_referring): Move inline.
17012         (symtab_node::iterate_direct_aliases): Move inline.
17013         (symtab_node::used_from_object_file_p_worker): Inline into ...
17014         (symtab_node::used_from_object_file_p): ... this one; move inline.
17015         (symtab_node::call_for_symbol_and_aliases): Move inline;
17016         use iterate_direct_aliases.
17017         (symtab_node::call_for_symbol_and_aliases_1): New method.
17018         (cgraph_node::call_for_symbol_and_aliases): Move inline;
17019         use iterate_direct_aliases.
17020         (cgraph_node::call_for_symbol_and_aliases_1): New method.
17021         (varpool_node::call_for_node_and_aliases): Rename to ...
17022         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
17023         use iterate_direct_aliases.
17024         (varpool_node::call_for_symbol_and_aliases_1): New method.
17025         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
17026         (ipa_discover_readonly_nonaddressable_var): Update.
17027         * ipa-devirt.c: Fix formating.
17028         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
17029         Move inline.
17030         (cgraph_node::call_for_symbol_and_aliases): Move inline.
17031         (cgraph_node::call_for_symbol_and_aliases_1): New function..
17032         * cgraph.h (used_from_object_file_p_worker): Remove.
17033         (resolution_used_from_other_file_p): Move inline.
17034         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
17035         (symtab_node::iterate_reference): Move inline.
17036         (symtab_node::iterate_referring): Move inline.
17037         (symtab_node::iterate_direct_aliases): Move inline.
17038         (symtab_node::used_from_object_file_p_worker): Inline into ...
17039         (symtab_node::used_from_object_file_p): Move inline.
17040         * tree-emutls.c (ipa_lower_emutls): Update.
17041         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
17042         (varpool_node::call_for_node_and_aliases): Remove.
17044 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
17046         PR tree-optimization/62209
17047         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
17048         op == range->exp, insert seq and gimplified code after labels
17049         instead of after the phi.
17051 2015-02-13  Jeff Law  <law@redhat.com>
17053         PR bootstrap/65060
17054         Revert my change for tree-optimization/64823.
17056 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
17058         PR tree-optimization/65053
17059         * tree-ssa-phiopt.c (value_replacement): When moving assign before
17060         cond, either reset VR on lhs or set it to phi result VR.
17062 2015-02-13  Jeff Law  <law@redhat.com>
17064         PR tree-optimization/64823
17065         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
17066         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
17067         threading through blocks with PHIs, but no statements.
17068         (thread_through_normal_block): Distinguish between blocks where
17069         we did not process all the statements and blocks with no statements.
17071         PR rtl-optimization/47477
17072         * match.pd (convert (plus/minus (convert @0) (convert @1): New
17073         simplifier to narrow arithmetic.
17075 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
17077         PR ipa/65028
17078         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
17079         polymorphic call info when type is not known to be preserved.
17081 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
17083         PR ipa/65028
17084         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
17085         (inline_call): Use it.
17087 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
17089         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
17090         GOMP_DEVICE_NVIDIA_PTX.
17092 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
17094         PR ipa/65034
17095         * stmt.c (emit_case_nodes): Use void_type_node instead of
17096         NULL_TREE as LABEL_DECL type.
17098 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
17100         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
17101         constraints.
17102         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
17103         symbolic references to data to be forced to constant memory on the
17104         SOM target.
17106 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17108         PR tree-optimization/65002
17109         * tree-cfg.c (pass_data_fixup_cfg): Don't update
17110         SSA on start.
17111         * tree-sra.c (some_callers_have_no_vuse_p): New.
17112         (ipa_early_sra): Reject functions whose callers
17113         assume function is read only.
17115 2015-02-13  Richard Biener  <rguenther@suse.de>
17117         PR lto/65015
17118         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
17119         for LTO produced CUs.
17121 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
17123         PR tree-optimization/64705
17124         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
17125         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
17126         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
17127         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
17128         expand_simple_operations.
17130 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
17131             Richard Henderson  <rth@redhat.com>
17133         PR rtl/32219
17134         * cgraphunit.c (cgraph_node::finalize_function): Set definition
17135         before notice_global_symbol.
17136         (varpool_node::finalize_decl): Likewise.
17137         * varasm.c (default_binds_local_p_2): Rename from
17138         default_binds_local_p_1, add weak_dominate argument.  Use direct
17139         returns instead of assigning to local variable.  Unify varpool and
17140         cgraph paths via symtab_node.  Reject undef weak variables before
17141         testing visibility.  Reorder tests for simplicity.
17142         (default_binds_local_p): Use default_binds_local_p_2.
17143         (default_binds_local_p_1): Likewise.
17144         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
17145         via symtab_node.
17146         (default_elf_asm_output_external): Emit visibility when specified.
17148 2015-02-13  Alan Modra  <amodra@gmail.com>
17150         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
17151         code setting up r11 for out-of-line fp restore.
17153 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17155         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
17156         (muser-mode): Likewise.
17158 2015-02-13  Alan Modra  <amodra@gmail.com>
17160         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
17161         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
17163 2015-02-12  David Howells  <dhowells@redhat.com>
17165         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
17166         warning.
17167         * tree-ssa-uninit.c (dump_predicates): Likewise.
17168         * opts.c (print_filtered_help): Likewise.
17170 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
17172         * dwarf2out.c (output_die): Use "%s", name instead of name to
17173         avoid -Wformat-security warning.
17175         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
17176         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
17177         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
17178         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
17180 2015-02-12  Jason Merrill  <jason@redhat.com>
17182         * common.opt (-flifetime-dse): New.
17184 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
17186         PR sanitizer/65019
17187         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
17189         PR tree-optimization/65014
17190         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
17191         use original second operand of arg0 or arg1 instead of
17192         that adjusted by STRIP_NOPS.
17194 2015-02-11  Jeff Law  <law@redhat.com>
17196         PR target/63347
17197         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
17198         that needs to be queued, just queue it for a single cycle.
17200 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
17202         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
17203         bodies of thunks; comment on why.
17204         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
17205         symbols are extern.
17207 2015-02-11  Richard Henderson  <rth@redhat.com>
17209         PR sanitize/65000
17210         * tree-eh.c (mark_reachable_handlers): Mark source and destination
17211         regions of __builtin_eh_copy_values.
17213 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
17215         PR middle-end/65003
17216         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
17217         ultimate alias is MEM with SYMBOL_REF satisfying
17218         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
17219         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
17221 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
17223         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
17224         "diagnostic-core.h".
17225         (main): Initialize progname, and call diagnostic_initialize.
17227         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
17228         instead of __OPENMP_TARGET__.
17230         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
17231         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
17232         hard-coding PTX_ID.
17234 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
17236         * doc/sourcebuild.texi (pie_enabled): Document.
17238 2015-02-11  Martin Liska  <mliska@suse.cz>
17240         PR ipa/64813
17241         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
17242         a return value for call to a function that is noreturn.
17244 2015-02-11  Richard Biener  <rguenther@suse.de>
17246         PR lto/65015
17247         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
17248         and -fresolution.
17250 2015-02-11  Andrew Pinski  <apinski@cavium.com>
17252         PR target/64893
17253         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17254         Change the first argument type to size_type_node and add another
17255         size_type_node.
17256         (aarch64_simd_expand_builtin): Handle the new argument to
17257         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
17258         print an out when the first two arguments are not
17259         nonzero integer constants.
17260         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
17261         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
17263 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
17265         PR target/61925
17266         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
17267         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
17268         (ix86_set_current_function): Rewritten.
17269         (ix86_add_new_builtins): Temporarily clear current_target_pragma
17270         when creating builtin fndecls.
17272 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17274         PR ipa/65005
17275         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
17276         function.
17277         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
17278         have no comdat group.
17279         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
17280         (lto_output_varpool_node): Always output alias info.
17281         (output_refs): Output refs of boundary aliases, too.
17282         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
17283         (output_symtab): Output call eges in thunks in boundary.
17284         (get_alias_symbol): Remove.
17285         (input_node, input_varpool_node): Do not special case weakrefs.
17286         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
17287         alias and thunks targets in the boundary; do not take removed symbols
17288         from their comdat groups.
17289         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
17290         (cgraph_node::global_info): Remove.
17291         (cgraph_node::rtl_info): Look through aliases and thunks.
17292         * cgrpah.h (global_info): Remove.
17293         (non_local_p): Remove.
17295 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17296             Sandra Loosemore  <sandra@codesourcery.com>
17298         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
17299         to inline asm.  List dialects in proper order.
17301 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17302             Sandra Loosemore  <sandra@codesourcery.com>
17304         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
17306 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
17308         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
17309         modified) reference to Solaris.
17311 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
17313         * doc/extend.texi (Extended Asm): Fix typos.
17315 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
17317         PR sanitizer/65004
17318         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
17320 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
17322         PR target/64661
17323         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
17324         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
17325         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
17326         * config/sh/constraints.md (Ara, Add): New constraints.
17327         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
17328         predicates.
17329         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
17330         atomic_mem_operand_0.  Don't use force_reg on the memory address.
17331         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
17332         Sra constraint.  Convert to insn_and_split.  Add workaround for
17333         PR 64974.
17334         (atomic_compare_and_swap<mode>_hard): Copy to
17335         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
17336         Use atomic_mem_operand_0 predicate.
17337         (atomic_compare_and_swap<mode>_soft_gusa,
17338         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
17339         AraAdd constraints.
17340         (atomic_compare_and_swap<mode>_soft_tcb,
17341         atomic_compare_and_swap<mode>_soft_imask,
17342         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
17343         atomic_mem_operand_0 predicate and SraSdd constraints.
17344         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
17345         constraint.
17346         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
17347         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
17348         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
17349         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
17350         force_reg on the memory address.
17351         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
17352         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
17353         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
17354         atomic_mem_operand_1 predicate and Sra constraint.
17355         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
17356         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
17357         Use atomic_mem_operand_1 predicate.
17358         (atomic_<fetchop_name><mode>_hard): Copy to
17359         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
17360         Use atomic_mem_operand_1 predicate.
17361         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
17362         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
17363         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
17364         insn_and_split.  Use atomic_mem_operand_1 predicate.
17365         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
17366         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
17367         Use atomic_mem_operand_1 predicate.
17368         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
17369         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
17370         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
17371         in generated insn with original mem operand before emitting the insn.
17372         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
17373         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
17374         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
17375         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
17376         Use atomic_mem_operand_1 predicate and AraAdd constraints.
17377         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
17378         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
17379         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
17380         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
17381         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
17382         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
17383         atomic_not_fetch<mode>_soft_tcb,
17384         atomic_<fetchop_name>_fetch<mode>_soft_imask,
17385         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
17386         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
17387         Use atomic_mem_operand_1 predicate and SraSdd constraints.
17389 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
17391         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
17392         and 3 earlyclobber operands.
17394 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17396         * common.opt (fstack-reuse): Mark as optimization.
17398 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
17400         PR ipa/64982
17401         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
17403 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
17405         PR tree-optimization/64326
17406         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
17408 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
17410         PR gcov-profile/61889
17411         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
17413 2015-02-10  Richard Biener  <rguenther@suse.de>
17415         PR tree-optimization/64995
17416         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
17417         value we use is final.
17418         (visit_reference_op_store): Always valueize op.
17419         (visit_use): Properly valueize vuses.
17421 2015-02-10  Richard Biener  <rguenther@suse.de>
17423         PR tree-optimization/64909
17424         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
17425         pass a scalar-stmt count estimate to the cost model.
17426         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
17428 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
17430         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
17431         enabled by default together with var-tracking.
17433 2015-02-10  Nick Clifton  <nickc@redhat.com>
17435         * config/rl78/rl78.c: Remove DIV attribute code accidentally
17436         included in previous rl78 commit.
17438 2015-02-10  Richard Biener  <rguenther@suse.de>
17440         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
17441         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
17442         return the bitpack.
17444 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
17446         PR gcov-profile/61889
17447         * config.in: regenerate.
17448         * configure.in: Likewise.
17449         * configure.ac: Check for ftw.h.
17450         * gcov-tool.c: Check for ftw.h before using nftw.
17452 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
17454         PR lto/64076
17455         * ipa-visibility.c (update_visibility_by_resolution_info): Only
17456         assert when not in lto mode.
17458 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17460         * ira-color.c (setup_left_conflict_sizes_p): Simplify
17461         initialization/assignment of conflict_size.
17463 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
17465         PR ipa/64978
17466         * ipa-cp.c (gather_caller_stats): Skip thunks.
17467         (propagate_constants_topo): Skip aliases.
17469 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
17471         PR target/64761
17472         * config/sh/sh.c (sh_option_override): Don't change
17473         -freorder-blocks-and-partition to -freorder-blocks even when
17474         unwinding is enabled.
17475         (sh_can_follow_jump): Return false if the followee jump is
17476         a crossing jump when -freorder-blocks-and-partition is specified.
17477         * config/sh/sh.md (*jump_compact_crossing): New insn.
17479 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
17480             Kaz Kojima  <kkojima@gcc.gnu.org>
17482         PR target/64761
17483         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
17484         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
17485         (sh_can_redirect_branch): Rename to ...
17486         (sh_can_follow_jump): ... this.  Constify argument types.
17487         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
17488         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
17489         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
17490         * doc/tm.texi: Regenerate.
17492 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
17494         PR sanitizer/64981
17495         * builtins.c (expand_builtin): Call targetm.expand_builtin
17496         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
17498 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17500         PR ipa/61548
17501         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
17503 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17505         PR ipa/63566
17506         * ipa-icf.c (set_local): New function.
17507         (sem_function::merge): Use it.
17509 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17511         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
17512         (add_type_duplicate): Fix comparison of BINFOs.
17514 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17516         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
17517         on getting VOID pointer.
17519 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
17521         PR target/64979
17522         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
17523         va_list escapes.
17525 2015-02-09  Richard Biener  <rguenther@suse.de>
17527         * genmatch.c (replace_id): Copy expr_type.
17529 2015-02-09  Richard Biener  <rguenther@suse.de>
17531         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
17532         (streamer_write_tree_bitfields): Declare.
17533         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
17534         properly unpack padding.
17535         (unpack_value_fields): Inline ...
17536         (streamer_read_tree_bitfields): ... here.
17537         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
17538         and properly add padding bits.
17539         (streamer_pack_tree_bitfields): Fold into ...
17540         (streamer_write_tree_bitfields): ... this new function,
17541         exposing the bitpack object.
17542         * lto-streamer-out.c (lto_write_tree_1): Call
17543         streamer_write_tree_bitfields.
17545 2015-02-09  Richard Biener  <rguenther@suse.de>
17547         PR tree-optimization/54000
17548         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
17549         (struct ivopts_data): Add loop_loc member.
17550         (tree_ssa_iv_optimize_loop): Dump loop location.
17551         (create_new_ivs): Likewise, also dump number of IVs generated.
17553 2015-02-09  Martin Liska  <mliska@suse.cz>
17555         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
17556         just if not yet registered.
17557         (ipa_icf_generate_summary): Register callgraph hooks.
17559 2015-02-08  Andrew Pinski  <apinski@cavium.com>
17561         * config/aarch64/aarch64.c (gty_dummy): Delete.
17563 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17565         PR ipa/63566
17566         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
17567         (cgraph_node::local_p): Remove thunk related FIXME.
17569 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17571         PR ipa/63566
17572         * i386.c (ix86_function_regparm): Look through aliases to see if callee
17573         is local and optimized.
17574         (ix86_function_sseregparm): Likewise; also use target's SSE math
17575         settings; error out instead of silently generating wrong code
17576         on mismatches.
17577         (init_cumulative_args): Look through aliases.
17579 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17581         PR ipa/63566
17582         * ipa-split.c (execute_split_functions): Split if function has aliases.
17584 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
17586         PR ipa/63566
17587         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
17588         aliases before trying to expand it.
17589         (cgraph_node::expand_thunk): Fix formating.
17591 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
17593         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
17594         (Using Assembly Language with C): Expand introduction.
17595         (Basic Asm): Copy-edit.  Add more information about uses of
17596         basic asm.
17597         (Extended Asm): Copy-edit.  Document new escape syntax and
17598         %l[label] syntax.
17599         (Global Reg Vars): Copy-edit.
17600         (Local Reg Vars): Likewise.
17602 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
17604         PR debug/2714
17605         PR bootstrap/64256
17606         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
17607         (DBX_CONTIN_CHAR): Define.
17609 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
17610             Brian Rzycki  <b.rzycki@samsung.com>
17612         PR tree-optimization/64878
17613         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
17614         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
17615         Stop recursion at loop phi nodes after having visited a loop phi node.
17617 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
17619         * toplev.c (process_options): Change flag_ipa_ra before creating
17620         optimization_{default,current}_node.
17622         PR ipa/64896
17623         * cgraphunit.c (cgraph_node::expand_thunk): If
17624         restype is not is_gimple_reg_type nor the thunk_fndecl
17625         returns aggregate_value_p, set restmp to a temporary variable
17626         instead of resdecl.
17628 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
17630         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
17632 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17634         PR target/64205
17635         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
17636         add a general secondary reload handler for SDmode, unless we have
17637         both read/write support for SDmode.
17639 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
17641         PR middle-end/64937
17642         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
17643         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
17644         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
17645         1 before, push it to abstract_vec.
17646         (dwarf2out_abstract_function): Adjust caller.  Don't call
17647         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
17648         DECL_ABSTRACT_P flags for all abstract_vec elts.
17650 2015-02-06  Renlin Li  <renlin.li@arm.com>
17652         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
17653         complex gimple.
17654         * tree-ssa.c (execute_update_addresses_taken): Likewise.
17656 2015-02-06  Jeff Law  <law@redhat.com>
17658         PR target/64889
17659         * config/h8300/h8300.c (push): New argument "in_prologue".
17660         Pass "in_prologue" along to "F".
17661         (h8300_push_pop): Corresponding changes.
17662         (h8300_expand_prologue): Likewise.
17663         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
17665 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
17667         PR rtl-optimization/64957
17668         PR debug/64817
17669         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
17670         IOR rather than for AND.
17672 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
17674         PR target/62631
17675         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
17676         of shift-add and (add + shift) operations.  Rename local variable.
17678 2015-02-05  Jeff Law  <law@redhat.com>
17680         PR target/17306
17681         * config/h8300/constraints.md (U): Correctly dectect
17682         "eightbit_data" memory addresses.
17683         * config/h8300/h8300.c (eightbit_constant_address_p): Also
17684         handle (const (plus (symbol_ref (x)))) where x is declared
17685         as an 8-bit data memory address.
17686         * config/h8300/h8300.md (call, call_value): Correctly detect
17687         "funcvec" functions.
17689         PR target/43264
17690         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
17691         24 to 28 bits for the H8/300.
17693 2015-02-06  Alan Modra  <amodra@gmail.com>
17695         PR target/64876
17696         * config/rs6000/rs6000.c (chain_already_loaded): New function.
17697         (rs6000_call_aix): Use it.
17699 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
17701         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
17702         check.
17704 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
17706         * config/h8300/constraints.md ("U" constraint): Use strict
17707         variant of REG_OK_FOR_BASE_P after reload has started.
17709 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
17711         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
17712         define to zero if !TARGET_NEON.
17713         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
17715 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17716             Trevor Saunders  <tsaunders@mozilla.com>
17718         PR ipa/61548
17719         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
17721 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17723         PR ipa/61548
17724         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
17725         when removing varpool nodes.
17727 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17729         PR ipa/61548
17730         * varpool.c (varpool_node::remove): Fix order of variables.
17732 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17734         PR ipa/64686
17735         * ipa-inline.c (inline_small_functions): Fix ordering issue between
17736         speculation resolution and key updates.
17738 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17740         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
17741         about not letting any speculative edges unupdated.
17743 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17745         PR gcov/64123
17746         * gcov-io.c (gcov_var): Export.
17748 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17750         PR middle-end/64922
17751         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
17752         edges that become speculative.
17754 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
17756         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
17757         or DW_LANG_Fortran08.
17758         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
17759         DW_LANG_Fortran08.
17760         (gen_compile_unit_die): Handle "GNU Fortran2003" and
17761         "GNU Fortran2008" language strings.
17762         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
17763         * langhooks.h (lang_GNU_Fortran): New prototype.
17764         * langhooks.c (lang_GNU_Fortran): New function.
17765         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
17766         lang_GNU_Fortran.
17768 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
17770         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
17771         (RTX_OK_FOR_OLO10_P): Likewise.
17773 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
17775         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
17777 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
17779         PR middle-end/64922
17780         * gimple.c: Include gimple-ssa.h.
17781         (maybe_remove_unused_call_args): New function.
17782         * gimple.h (maybe_remove_unused_call_args): Declare.
17783         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
17784         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
17785         * gimple-fold.c (gimple_fold_call): Likewise.
17787 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
17789         PR rtl-optimization/64905
17790         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
17791         pointer alignment if it isn't needed.
17793 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
17795         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
17796         cortex-a72.cortex-a53.
17797         * config/aarch64/aarch64-tune.md: Regenerate.
17798         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
17800 2015-02-04  Nick Clifton  <nickc@redhat.com>
17802         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
17803         inside a MEM.
17805 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
17807         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
17808         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
17809         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
17810         of DEF_BUILTIN.
17811         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
17812         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
17813         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
17814         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
17815         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
17816         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
17817         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
17818         * tree-core.h (enum built_in_function): In between
17819         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
17820         for builtins that use DEF_BUILTIN_CHKP macro.
17822 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
17824         PR debug/64817
17825         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
17826         operands for tcc_comparison exprs.  Fix typos.
17828         PR debug/64817
17829         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
17830         of two XORs that have an intervening AND or IOR.
17832         PR debug/64817
17833         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
17834         simplification of XOR of AND to not allocate new rtx before
17835         committing to a simplification.
17837 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17839         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
17840         manual swaps in all peepholes.
17842 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17844         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
17845         of manual swapping implementation.
17846         (aarch64_expand_vec_perm_const_1): Likewise.
17848 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
17850         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
17851         (generic_addrcost_table): Remove NAMED_PARAM.
17852         (cortexa57_addrcost_table): Likewise.
17853         (xgene1_addrcost_table): Likewise.
17854         (generic_regmove_table): Likewise.
17855         (cortexa53_regmove_table): Likewise.
17856         (xgene1_regmove_table): Likewise.
17857         (generic_vector_table): Likewise.
17858         (cortexa57_vector_table): Likewise.
17859         (xgene1_vector_table): Likewise.
17860         (generic_tunings): Likewise.
17861         (cortexa53_tunings): Likewise.
17862         (cortexa57_tunings): Likewise.
17863         (xgene1_tunings): Likewise.
17865 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
17867         * config/arm/arm-cores.def: Add cortex-a72 and
17868         cortex-a72.cortex-a53.
17869         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
17870         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
17871         * config/arm/arm-tune.md: Regenerate.
17872         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
17873         "cortex-a72.cortex-a53".
17874         * doc/invoke.texi (ARM Options/-mtune): Likewise.
17876 2015-02-04  Nick Clifton  <nickc@redhat.com>
17878         PR target/64408
17879         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
17880         of accepted codes.
17881         (nonimmediate_di_operand): Likewise.
17883         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
17884         prefixes of known F5 using MSP430 MCUs.
17886 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17888         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
17889         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
17890         instead of __builtin_sqrt.
17892 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
17894         * varasm.c (do_assemble_alias): Follow transparent alias
17895         chain for target.
17896         (default_assemble_visibility): Follow transparent alias
17897         chain for decl name.
17899 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17901         PR middle-end/62103
17902         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
17903         to compute size of referenced value in the constant case.
17905 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
17907         PR rtl-optimization/64756
17908         * cse.c (invalidate_dest): New function.
17909         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
17910         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
17911         invalidate and do not record it.
17913 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
17915         PR target/64660
17916         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
17917         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
17918         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
17919         atomic_nand<mode>_soft_tcb): New insns.
17920         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
17921         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
17922         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
17923         Split into atomic_not_fetchsi_hard if operands[0] is unused.
17924         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
17925         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
17926         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
17927         atomic_not<mode>_hard if operands[0] is unused.
17928         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
17929         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
17930         if operands[0] is unused.
17931         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
17932         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
17933         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
17934         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
17935         unused.
17936         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
17937         into atomic_not<mode>_soft_tcb if operands[0] is unused.
17938         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
17939         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
17940         if operands[0] is unused.
17941         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
17942         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
17943         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
17944         atomic_nand_fetchsi_hard if operands[0] is unused.
17945         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
17946         atomic_nand<mode>_hard if operands[0] is unused.
17947         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
17948         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
17949         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
17950         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
17951         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
17952         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
17953         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
17954         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
17955         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
17956         atomic_not<mode>_hard if operands[0] is unused.
17957         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
17958         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
17959         unused.
17960         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
17961         into atomic_not<mode>_soft_tcb if operands[0] is unused.
17962         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
17963         atomic_nand<mode>_hard if operands[0] is unused.
17964         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
17965         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
17967 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
17969         PR jit/64810
17970         * Makefile.in (GCC_OBJS): Add gcc-main.o.
17971         * gcc-main.c: New file, containing "main" taken from gcc.c.
17972         * gcc.c (do_self_spec): Free decoded_options.
17973         (class driver): Move declaration to gcc.h.
17974         (main): Move declaration and implementation to new file
17975         gcc-main.c.
17976         (driver_get_configure_time_options): New function.
17977         * gcc.h (class driver): Move this declaration here, from
17978         gcc.c.
17979         (driver_get_configure_time_options): New declaration.
17981 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
17983         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
17984         cross-module inlining.
17985         * cgraph.h (cgraph_node): Add flag merged.
17986         * ipa-icf.c (sem_function::merge): Maintain it.
17988 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
17990         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
17991         instead of OBJECT_P.
17993 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
17995         PR target/62631
17996         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
17997         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
17998         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
17999         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
18001 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
18003         PR other/63504
18004         * combine.c (reg_n_sets_max): New variable.
18005         (can_change_dest_mode, reg_nonzero_bits_for_combine,
18006         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
18007         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
18008         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
18009         (rest_of_handle_combine): Initialize reg_n_sets_max.
18011 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
18013         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
18014         if some always_inline was inlined, apply changes before inlining
18015         heuristically.
18017 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
18019         PR jit/64810
18020         * config/arm/arm.c (arm_option_override): Set
18021         arm_selected_arch/cpu/tune to NULL on entry.
18023 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
18024             Andrew Pinski  <pinskia@gcc.gnu.org>
18025             Jakub Jelinek  <jakub@gcc.gnu.org>
18027         PR target/64231
18028         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
18029         integer typing for small model. Use IN_RANGE.
18031 2015-02-02  Richard Biener  <rguenther@suse.de>
18033         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
18034         * tree-vrp.c (vrp_valueize_1): Likewise.
18036 2015-02-02  Alan Modra  <amodra@gmail.com>
18038         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
18039         than mem for toc_restore.
18040         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
18041         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
18042         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
18044 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
18046         PR target/64047
18047         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
18048         explicit default options.
18050 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
18052         PR ipa/64872
18053         * ipa-utils.c (ipa_merge_profiles): Add release argument.
18054         * ipa-icf.c (sem_function::merge): Do not release body when merging.
18055         * ipa-utils.h (ipa_merge_profiles): Update prototype.
18057 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
18059         PR debug/64817
18060         * cfgexpand.c (deep_ter_debug_map): New variable.
18061         (avoid_deep_ter_for_debug): New function.
18062         (expand_debug_expr): If TERed SSA_NAME is in
18063         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
18064         instead of trying to expand SSA_NAME's def stmt.
18065         (expand_debug_locations): When expanding debug bind
18066         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
18067         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
18068         value.
18069         (pass_expand::execute): Call avoid_deep_ter_for_debug on
18070         all debug bind stmts.  Delete deep_ter_debug_map after
18071         expand_debug_location if non-NULL and clear it.
18073 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
18075         PR target/64851
18076         * config/sh/sync.md (atomic_fetch_notsi_hard,
18077         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
18078         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
18079         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
18080         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
18081         atomic_not_fetch<mode>_soft_imask): New insns.
18083 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
18085         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
18086         (rank_for_schedule_debug): Split from ...
18087         (rank_for_schedule): ... this.
18088         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
18089         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
18091 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
18093         * doc/md.texi (Machine Constraints): Alphabetize table by target.
18094         * doc/extend.texi (x86 Variable Attributes): Move section to
18095         correct alphabetization after renaming.
18096         (x86 Type Attributes): Likewise.
18097         (Target Builtins): Re-alphabetize menu.
18098         (x86 Built-in Functions): Move section to correct alphabetization
18099         after renaming.
18100         (x86 transactional memory intrinsics): Likewise.
18101         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
18102         and x86 Windows Options in table and menu.
18103         (x86 Options): Move section to correct alphabetization after
18104         renaming.
18105         (x86 Windows Options): Likewise.
18107 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
18109         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
18110         preferred names of the architecture and its 32- and 64-bit
18111         variants.
18112         * doc/invoke.texi: Likewise.
18113         * doc/md.texi: Likewise.
18115 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
18117         PR target/64882
18118         * config/i386/predicates.md (address_no_seg_operand): Reject
18119         non-CONST_INT_P operands in invalid mode.
18121 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
18123         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
18124         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
18125         * config/i386/predicates.md (address_no_seg_operand): Call
18126         address_operand with VOIDmode.
18127         (vsib_address_operand): Ditto.
18128         (address_mpx_no_base_operand): Ditto.
18129         (address_mpx_no_index_operand): Ditto.
18131 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
18133         PR target/64688
18134         * lra-constraints.c (original_subreg_reg_mode): New.
18135         (simplify_operand_subreg): Try to simplify subreg of const.  Use
18136         original_subreg_reg_mode for it.
18137         (swap_operands): Update original_subreg_reg_mode.
18138         (curr_insn_transform): Set up original_subreg_reg_mode.
18140 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
18142         PR target/64617
18143         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
18144         function.
18145         (process_alt_operands): Use it.
18146         (curr_insn_transform): Check the optional reload pseudo class is
18147         ok for the mode.
18149 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
18151         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
18152         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
18153         prototype.
18154         * toplev.h (init_asm_output): Update comment on use of
18155         UNKNOWN_LOCATION with fatal_error.
18156         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
18157         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
18158         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
18159         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
18160         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
18161         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
18162         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
18163         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
18164         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
18165         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
18166         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
18167         fatal_error changed to pass input_location as first argument.
18169 2015-01-30  Martin Liska  <mliska@suse.cz>
18171         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
18172         in #pragma GCC diagnostic guards.
18174 2015-01-30  Richard Biener  <rguenther@suse.de>
18176         PR tree-optimization/64829
18177         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
18178         not add a widening conversion pattern but hand off extra
18179         widenings to callers.
18180         (vect_recog_widen_mult_pattern): Handle extra widening produced
18181         by vect_handle_widen_op_by_const.
18182         (vect_recog_widen_shift_pattern): Likewise.
18183         (vect_pattern_recog_1): Remove excess vertical space in dumping.
18184         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18185         (vect_init_vector_1): Likewise.
18186         (vect_get_vec_def_for_operand): Likewise.
18187         (vect_finish_stmt_generation): Likewise.
18188         (vectorizable_load): Likewise.
18189         (vect_analyze_stmt): Likewise.
18190         (vect_is_simple_use): Likewise.
18192 2015-01-29  Jeff Law  <law@redhat.com>
18194         * combine.c (try_combine): Fix typo in comment.
18196 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
18198         PR target/64580
18199         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
18200         (rs6000_stack_info): Add assert.
18201         (rs6000_output_savres_externs): New function, split off from...
18202         (rs6000_output_function_prologue): ... here.  Do not call it for
18203         thunks.
18205 2015-01-29  Jeff Law  <law@redhat.com>
18207         PR target/15184
18208         * combine.c (try_combine): If I0 is a memory load and I3 a store
18209         to a related address, increase the "goodness" of doing a 4-insn
18210         combination with I0-I3.
18211         (make_field_assignment): Handle SUBREGs in the ior+and case.
18213 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
18215         PR tree-optimization/64746
18216         * tree-if-conv.c (mask_exists): New function.
18217         (predicate_mem_writes): Save created mask with given size for further
18218         use.
18219         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
18220         (ifcvt_repair_bool_pattern): Collect all statements that are root
18221         of bool pattern and use iterative algorithm to remove multiple uses
18222         of predicates, display number of required iterations.
18224 2015-01-29  Richard Biener  <rguenther@suse.de>
18226         PR tree-optimization/64853
18227         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
18228         stmt will get simulated again.
18229         * tree-ssa-ccp.c (valueize_op_1): Likewise.
18231 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18233         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
18234         return_in_pc.  Remove redundant assignments.
18235         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
18236         (arm_expand_epilogue): Don't compare boolean with true in if condition.
18238 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
18240         * config/i386/i386.c (ix86_mode_after): Make static.
18242 2015-01-29  Richard Biener  <rguenther@suse.de>
18244         PR tree-optimization/64844
18245         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
18246         dump cost model analysis.
18247         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18248         Do not register adjusted load/store costs here.
18250 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
18251             Uros Bizjak  <ubizjak@gmail.com>
18253         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
18254         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
18255         using x86_use_pseudo_pic_reg.
18256         * config/i386/i386.c (ix86_conditional_register_usage): Remove
18257         support for fixed PIC register.
18258         (ix86_use_pseudo_pic_reg): Not static any more.
18260 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
18262         PR middle-end/64805
18263         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
18264         to avoid error in cgraph node verification.
18266 2015-01-29  Marek Polacek  <polacek@redhat.com>
18268         * doc/standards.texi: Reflect that the default for C is gnu11.
18270 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18272         PR target/64761
18273         * reorg.c (switch_text_sections_between_p): New function.
18274         (relax_delay_slots): Call it when testing if the jump insn
18275         is removable.  Use targetm.can_follow_jump when testing if
18276         the conditional branch can follow an unconditional jump.
18278 2015-01-27  Caroline Tice  <cmtice@google.com>
18280         Committing VTV Cywin/Ming patch for Patrick Wollgast
18281         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
18282         if -fvtable-verify=preinit/std is used.
18283         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
18284         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
18285         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
18286         if -fvtable-verify=preinit/std is used.
18287         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18288         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
18289         if -fvtable-verify=preinit/std is used.
18290         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
18291         * config/i386/mingw32.h (LIB_SPEC): Likewise.
18292         * varasm.c (assemble_variable): Add code to properly set the comdat
18293         section and name for the .vtable_map_vars section in case the
18294         target is PE or COFF.
18296 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
18298         PR ipa/64801
18299         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
18300         make sane BB profile.
18301         (cgraph_node::expand_thunk): Make sane BB profile.
18302         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
18303         * cgraph.h (init_lowered_empty_function): Update prototype.
18304         * config/i386/i386.c (make_resolver_func): Update call.
18305         * predict.c (gate): Disable branch prediction pass if
18306         profile is already there.
18308 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
18310         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
18311         * opth-gen.awk: Likewise.
18312         * common.opt: Mark flag_fp_contract_mode as Optimization.
18314 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18316         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
18317         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
18319 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
18321         PR target/64659
18322         * config/sh/predicates.md (atomic_arith_operand,
18323         atomic_logical_operand): Remove.
18324         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
18325         (atomic_arith_operand_0): New predicate.
18326         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
18327         Use atomic_arith_operand_0 for input values.
18328         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
18329         atomic_compare_and_swap<mode>_soft_gusa,
18330         atomic_compare_and_swap<mode>_soft_tcb,
18331         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
18332         arith_reg_operand instead of register_operand.
18333         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
18334         atomic_arith_operand_0 for newval input.
18335         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
18336         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
18337         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
18338         arith_reg_operand instead of register_operand.
18339         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
18340         fetchop_predicate_1, fetchop_constraint_1_llcs,
18341         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
18342         fetchop_constraint_1_imask): New code iterator attributes.
18343         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
18344         register_operand.  Use fetchop_predicate_1.
18345         (atomic_fetch_<fetchop_name>si_hard,
18346         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
18347         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
18348         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
18349         and arith_reg_operand instead of register_operand.  Use
18350         fetchop_predicate_1, fetchop_constraint_1_gusa.
18351         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
18352         and arith_reg_operand instead of register_operand.  Use
18353         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
18354         to allow R0 usage.
18355         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
18356         and arith_reg_operand instead of register_operand.  Use
18357         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
18358         to allow R0 usage.
18359         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
18360         register_operand.  Use atomic_logical_operand_1.
18361         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
18362         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
18363         arith_reg_operand instead of register_operand.
18364         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
18365         Use arith_reg_dest and arith_reg_operand instead of register_operand.
18366         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
18367         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
18368         register_operand.  Use fetchop_predicate_1.
18369         (atomic_<fetchop_name>_fetchsi_hard,
18370         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
18371         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18372         fetchop_constraint_1_llcs.
18373         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
18374         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18375         fetchop_constraint_1_gusa.
18376         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
18377         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18378         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
18379         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
18380         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
18381         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
18382         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
18383         register_operand.  Use atomic_logical_operand_1.
18384         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
18385         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
18386         arith_reg_operand instead of register_operand.
18387         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
18388         arith_reg_operand instead of register_operand.  Use logical_operand
18389         and K08.  Adjust asm sequence to allow R0 usage.
18390         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
18391         arith_reg_operand instead of register_operand.  Use logical_operand
18392         and K08.
18394 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
18396         PR other/63504
18397         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
18398         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
18399         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
18400         only get_full_len HOST_WIDE_INTs from get_val () array rather than
18401         all bits in *val_wide.
18403 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
18405         * varpool.c (tls_model_names): Fix names.
18406         (varpool_node::dump): Dump tls- prefix for tls models.
18408 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
18409             Bernd Schmidt  <bernds@codesourcery.com>
18410             Nathan Sidwell  <nathan@codesourcery.com>
18412         * config/nvptx/mkoffload.c: New file.
18413         * config/nvptx/t-nvptx: Add build rules for it.
18414         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
18415         (extra_programs): Add mkoffload.
18416         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
18417         function.
18418         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
18420 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
18422         PR middle-end/64809
18423         * cfgexpand.c (reorder_operands): Skip debug gimples.
18425 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
18427         PR tree-optimization/64277
18428         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
18429         range info when possible to refine estimation.
18431 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18433         PR tree-optimization/64718
18434         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
18435         be a 16bit unsigned integer when n->range is 16.
18436         (bswap_replace): Convert src to that type if necessary for all bswap
18437         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
18438         set in pass_optimize_bswap::execute ().
18440 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
18442         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
18443         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
18444         integer and floating point variants.
18445         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
18447 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
18449         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
18450         for all vector modes.
18452 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
18454         PR bootstrap/64612
18455         * doc/sourcebuild.texi (comdat_group): Document.
18457 2015-01-28  Terry Guo  <terry.guo@arm.com>
18459         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
18461 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
18463         * toplev.c (print_version): Add param "show_global_state", and
18464         only print GGC and plugin information if it is true.
18465         (init_asm_output): Pass in "true" for the new param when calling
18466         print_version.
18467         (process_options): Likewise.
18468         (toplev::main): Likewise.
18469         * toplev.h (print_version): Add new param to decl.
18471 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
18473         PR ipa/60871
18474         PR ipa/64139
18475         * tree.c (lookup_binfo_at_offset): New function.
18476         (get_binfo_at_offset): Use it.
18478 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
18480         PR ipa/64282
18481         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
18482         on vtable being vtable.
18484 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18486         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
18487         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
18488         -mhotpatch= option.
18489         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
18490         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
18491         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
18492         Renamed.
18493         (s390_hotpatch_trampoline_halfwords_max): Renamed.
18494         (s390_hotpatch_hw_max): New name.
18495         (s390_hotpatch_trampoline_halfwords): Renamed.
18496         (s390_hotpatch_hw_before_label): New name.
18497         (get_hotpatch_attribute): Removed.
18498         (s390_hotpatch_hw_after_label): New name.
18499         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
18500         attribute.
18501         (s390_attribute_table): Ditto.
18502         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
18503         (s390_function_num_hotpatch_hw): New name.
18504         Remove special handling of inline functions and hotpatching.
18505         Return number of nops before and after the function label.
18506         (s390_can_inline_p): Removed.
18507         (s390_asm_output_function_label): Emit a configurable number of nops
18508         after the function label.
18509         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
18510         (TARGET_CAN_INLINE_P) Removed.
18511         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
18513 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18514             Jiong Wang  <jiong.wang@arm.com>
18516         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
18517         of scratch reg.
18518         (cb<optab><mode>1): Likewise.
18519         * config/aarch64/iterators.md (bcond): New define_code_attr.
18521 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18523         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
18524         memory accesses.
18526 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18528         * config/s390/s390.c (s390_register_move_cost): Increase costs for
18529         FPR->GPR moves.
18531 2015-01-27  Richard Biener  <rguenther@suse.de>
18533         * tree-vrp.c (update_value_range): Intersect the range with
18534         old recorded SSA name range information.
18536 2015-01-27  Nick Clifton  <nickc@redhat.com>
18538         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
18539         BC, DE and HL registers directly, not via AX.
18540         When decrementing the stack pointer by a large amount, transfer SP
18541         into AX and perform the subtraction there.
18542         (rl78_expand_epilogue): Perform the inverse of the above
18543         enhancements.
18545 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18547         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
18549 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
18550             Yury Gribov  <y.gribov@samsung.com>
18552         PR ubsan/64741
18553         * ubsan.c (ubsan_source_location): Refactor code.
18554         (ubsan_type_descriptor): Update type size. Refactor code.
18556 2015-01-27  Richard Biener  <rguenther@suse.de>
18558         PR tree-optimization/56273
18559         PR tree-optimization/59124
18560         PR tree-optimization/64277
18561         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
18562         from the first VRP pass.
18564 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
18566         PR ipa/64776
18567         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
18568         handle the first argument in the same loop as all the other arguments.
18570         PR rtl-optimization/61058
18571         * jump.c (cleanup_barriers): Update basic block boundaries
18572         if BLOCK_FOR_INSN is non-NULL on PREV.
18574 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
18576         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
18577         bounds narrowing, already instrumented calls and calls to
18578         not instrumentable functions.
18580 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
18582         PR tree-optimization/64807
18583         * wide-int.cc (wi::divmod_internal): Clear
18584         b_dividend[dividend_blocks_needed].
18586 2015-01-26  DJ Delorie  <dj@redhat.com>
18588         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
18589         volatile memory references.
18591 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
18593         PR target/49263
18594         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
18595         remove_insn.
18596         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
18597         shifts if it already fits into K08.
18599 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
18601         PR ipa/64730
18602         * ipa-inline.c (inline_small_functions): Print "unknown" even
18603         if edge->call_stmt is non-NULL, but has builtins or unknown
18604         location.
18606         PR middle-end/64421
18607         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
18608         with asterisk, skip the first character.
18610 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
18612         PR target/64806
18613         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
18614         order change.
18616 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
18618         PR target/64795
18619         * config/i386/i386.md (*movdi_internal): Also check operand 0
18620         to determine TYPE_LEA operand.
18621         (*movsi_internal): Ditto.
18623 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
18625         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
18626         OPTION_MASK_QUAD_MEMORY_ATOMIC.
18628 2015-01-26  Renlin Li  <renlin.li@arm.com>
18630         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
18631         the comment.
18632         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
18633         for higher part.
18635 2015-01-26  Richard Biener  <rguenther@suse.de>
18637         PR middle-end/64764
18638         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
18639         combining two BIT_AND_EXPR predicates.
18641 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
18643         PR bootstrap/64754
18644         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
18646 2015-01-26  Terry Guo  <terry.guo@arm.com>
18648         * config/arm/arm.c (arm_file_start): Update the assignment of
18649         Tag_ABI_HardFP_use.
18651 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
18653         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
18654         pipeline model.
18655         config/arm/arm.md: Include the new Cortex-A57 model.
18656         (generic_sched): Don't use generic_sched when tuning for
18657         Cortex-A57.
18659 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
18660             Uros Bizjak  <ubizjak@gmail.com>
18662         * config/i386/i386.c (get_builtin_code_for_version): Add
18663         support for BMI and BMI2 multiversion functions.
18665 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18667         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
18668         (extract_bit_field): Likewise.
18669         (extract_low_bits): Likewise.
18670         (expand_mult): Likewise.
18671         (expand_mult_highpart_adjust): Likewise.
18673 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18675         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
18676         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
18677         * config/i386/i386.c (processor_model): Add
18678         M_INTEL_COREI7_BROADWELL.
18679         (arch_names_table): Add "broadwell".
18681 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
18683         PR target/49263
18684         PR target/53987
18685         PR target/64345
18686         PR target/59533
18687         PR target/52933
18688         PR target/54236
18689         PR target/51244
18690         * config/sh/sh-protos.h
18691         (sh_extending_set_of_reg::can_use_as_unextended_reg,
18692         sh_extending_set_of_reg::use_as_unextended_reg,
18693         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
18694         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
18695         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
18696         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
18697         (sh_treg_insns): New class.
18698         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
18699         (scope_counter): New class.
18700         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
18701         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
18702         sh_extending_set_of_reg::can_use_as_unextended_reg,
18703         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
18704         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
18705         sh_split_treg_set_expr): New functions.
18706         (addsubcosts): Handle treg_set_expr.
18707         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
18708         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
18709         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
18710         (sh_insn_operands_modified_between_p): Make non-static.
18711         * config/sh/predicates.md (zero_extend_movu_operand): Allow
18712         simple_mem_operand in addition to displacement_mem_operand.
18713         (zero_extend_operand): Don't allow zero_extend_movu_operand.
18714         (treg_set_expr, treg_set_expr_not_const01,
18715         arith_reg_or_treg_set_expr): New predicates.
18716         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
18717         arith_or_int_operand instead of logical_operand.  Convert to
18718         insn_and_split.  Try to optimize constant operand in splitter.
18719         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
18720         (*tstqi_t_zero): Delete.
18721         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
18722         (tstsi_t_and_not): Delete.
18723         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
18724         Convert to insn_and_split.
18725         (unnamed split, tstsi_t_zero_extract_xor,
18726         tstsi_t_zero_extract_subreg_xor_little,
18727         tstsi_t_zero_extract_subreg_xor_big): Delete.
18728         (*tstsi_t_shift_mask): New insn_and_split.
18729         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
18730         to recombine with surrounding insns when splitting.
18731         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
18732         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
18733         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
18734         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
18735         (*cbranch_div0s: Delete.
18736         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
18737         Try to recombine with surrounding insns when splitting.  Add operand
18738         order variants.
18739         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
18740         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
18741         *addc_r_r_msb, *addc_2r_msb): Delete.
18742         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
18743         order variant.
18744         (*addc_negreg_t): New insn_and_split.
18745         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
18746         Try to recombine with surrounding insns when splitting.
18747         Add operand order variants.
18748         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
18749         insn_and_split patterns.
18750         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
18751         surrounding insns when splitting.
18752         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
18753         (*rotcl): Likewise.  Add zero_extract variant.
18754         (*ashrsi2_31): New insn_and_split.
18755         (*negc): Convert to insn_and_split.  Use treg_set_expr.
18756         (*zero_extend<mode>si2_disp_mem): Update comment.
18757         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
18758         condition.
18759         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
18760         with surrounding insns when splitting.
18761         (any_treg_expr_to_reg): New insn_and_split.
18762         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
18763         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
18764         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
18765         *zero_extract_2): New single bit zero extract patterns.
18766         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
18767         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
18768         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
18769         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
18770         set destination.
18771         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
18772         register_operand for set source.
18774 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
18776         * i386.opt (prefetch_sse): New targetsave.
18777         * i386.c (ix86_function_specific_save): Save prefetch_sse.
18778         (ix86_function_specific_restore): Restore prefetch_sse and initialize
18779         ix86_cost/ix86_tune_cost.
18781 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
18783         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
18784         Support the JIT by using 0 as the language type.
18786 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
18788         PR target/64317
18789         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
18790         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
18791         (mark_regno_live, process_bb_lives): Pass new parameter value to
18792         make_hard_regno_born.
18794 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
18796         PR rtl-optimization/63637
18797         PR rtl-optimization/60663
18798         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
18799         if elt->cost is MAX_COST for ASM_OPERANDS.
18800         (find_sets_in_insn): Fix up comment typo.
18801         (cse_insn): Don't set src_volatile for all non-volatile
18802         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
18803         or with "memory" clobber.  Set elt->cost to MAX_COST
18804         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
18805         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
18807 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
18809         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
18810         alternative 1.
18812 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
18814         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
18815         libgcc/config/i386/elf-lib.h.
18817 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
18819         PR driver/64737
18820         * gcc.c (print_configuration): Don't print a blank line at the end
18821         here...
18822         (run_attempt): ... but here unstead.
18824         PR middle-end/64734
18825         * omp-low.c (scan_sharing_clauses): Don't ignore
18826         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
18827         on target data/update constructs.
18829 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18831         PR target/50928
18832         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
18833         (DEBUG_RELOAD): Removed define.
18834         (m32c_limit_reload_class): Enable traces with if DEBUG0.
18835         (m32c_function_arg): Added a type cast.
18836         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
18837         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
18838         * config/m32c/bitops.md (andqi3_16): Likewise.
18839         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
18840         (push_a01_l): Likewise.
18842 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
18844         PR jit/64721
18845         * main.c (main): Construct toplev instances with init_signals=true.
18846         * toplev.c (general_init): Add param "init_signals", and use it to
18847         conditionalize the calls to signal and host_hooks.extra_signals.
18848         (toplev::toplev): Add param "init_signals".
18849         (toplev::main): When invoking general_init, pass m_init_signals
18850         to control whether signal-handlers are installed.
18851         * toplev.h (toplev::toplev): Add param "init_signals".
18852         (toplev::m_init_signals): New field.
18854 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
18856         PR jit/64722
18857         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
18858         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
18859         latter may be affected by the former (e.g. on i686).
18861 2015-01-23  Martin Liska  <mliska@suse.cz>
18863         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
18864         false positive during profiledbootstrap.
18866 2015-01-23  Tom de Vries  <tom@codesourcery.com>
18868         PR libgomp/64672
18869         * lto-opts.c (lto_write_options): Output non-explicit conservative
18870         -fno-openacc.
18871         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
18872         (append_compiler_options): Pass -fopenacc through.
18874 2015-01-23  Tom de Vries  <tom@codesourcery.com>
18876         PR libgomp/64707
18877         * lto-opts.c (lto_write_options): Output non-explicit conservative
18878         -fno-openmp.
18879         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
18880         (append_compiler_options): Pass -fopenmp through.
18882 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
18884         PR debug/64511
18885         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
18886         GTY markup.
18888         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
18889         * diagnostic.def (DK_ICE_NOBT): New kind.
18890         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
18891         like DK_ICE, but never print backtrace.
18892         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
18893         (internal_error_no_backtrace): New function.
18894         * gcc.c (execute): Use internal_error_no_backtrace instead of
18895         internal_error.
18897 2015-01-22  Jeff Law  <law@redhat.com>
18899         PR target/52076
18900         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
18901         improve code density for small immediate to memory case.
18902         (insv): Better handle bitfield assignments when the field is
18903         being set to all ones.
18904         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
18905         operand predicate.
18907 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18908             Jakub Jelinek  <jakub@redhat.com>
18910         PR middle-end/64729
18911         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
18912         for !TARGET_LIBC_PROVIDES_SSP version and
18913         -fstack-protector-{all,strong,explicit} otherwise.
18914         * config/freebsd.h (LINK_SSP_SPEC): Handle
18915         -fstack-protector-{strong,explicit}.
18917 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
18918             H.J. Lu  <hongjiu.lu@intel.com>
18920         PR ipa/64694
18921         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
18922         heap.
18924 2015-01-22  Wei Mi  <wmi@google.com>
18926         PR rtl-optimization/64557
18927         * dse.c (record_store): Call get_addr for mem_addr.
18928         (check_mem_read_rtx): Likewise.
18930 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
18932         * fold-const.c (const_binop): Add early return for non-tcc_binary.
18934 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
18936         * toplev.c (init_local_tick): Process the failure when read
18937         fails for random_seed.
18939         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
18940         'pretty_name' to avoid memory overflow.
18942 2015-01-22  Richard Biener  <rguenther@suse.de>
18944         PR middle-end/64728
18945         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
18946         abnormal coalescing on undefined SSA names.
18948 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
18950         PR target/64688
18951         PR target/64477
18952         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
18953         for alternative 3.
18954         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
18956 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
18958         PR middle-end/63325
18959         * fold-const.c (fold_checksum_tree): Don't include value of
18960         expr->decl_with_vis.symtab_node in the checksum.
18962 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18964         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
18966 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18968         PR driver/64690
18969         * gcc.c (insert_comments): New function.
18970         (try_generate_repro): Call it.
18971         (append_text): Removed.
18973 2015-01-22  Richard Biener  <rguenther@suse.de>
18975         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
18976         with IL incompatible options.  Properly honor user optimize
18977         attributes.
18979 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
18981         PR rtl-optimization/64682
18982         * combine.c (distribute_notes): When moving a death note for
18983         a register that is set in the new I2, make sure to put it
18984         before that new I2.
18986 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
18988         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
18989         not TARGET_DEFAULT.
18991 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
18993         PR debug/64511
18994         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
18995         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
18996         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
18998         PR sanitizer/64706
18999         * doc/invoke.texi (-fsanitize=vptr): Document.
19001         PR rtl-optimization/62078
19002         * dse.c: Include cfgcleanup.h.
19003         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
19004         anything call purge_all_dead_edges and cleanup_cfg at the end
19005         of the pass.
19007 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
19009         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
19010         edges.
19012 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19014         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
19015         decl attribute.
19017 2015-01-21  David Sherwood  <david.sherwood@arm.com>
19018             Tejas Belagod <Tejas.Belagod@arm.com>
19020         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
19021         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
19022         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
19023         Removed.
19025 2015-01-21  David Sherwood  <david.sherwood@arm.com>
19026             Tejas Belagod <Tejas.Belagod@arm.com>
19028         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
19029         (aarch64_reverse_mask): New decls.
19030         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
19031         (insn_count): New mode_attr.
19032         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
19033         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
19034         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
19035         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
19036         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
19037         (aarch64_simd_st4): New patterns.
19038         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
19039         (aarch64_reverse_mask): New functions.
19041 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
19043         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
19044         Declare.
19045         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
19046         addressing modes for BE.
19047         (aarch64_print_operand): Add 'R' specifier.
19048         (aarch64_simd_disambiguate_copy): Delete.
19049         (aarch64_simd_emit_reg_reg_move): New function.
19050         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
19051         in define_splits for structural moves.
19052         (mov<mode>): Use less restrictive predicates.
19053         (*aarch64_mov<mode>): Simplify and only allow for LE.
19054         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
19056 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
19058         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
19060 2015-01-21  Richard Henderson  <rth@redhat.com>
19062         PR target/64669
19063         * ccmp.c (used_in_cond_stmt_p): Remove.
19064         (expand_ccmp_expr): Don't use it.
19066 2015-01-21  Nick Clifton  <nickc@redhat.com>
19068         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
19069         PARALLELs.
19071 2015-01-21  Richard Biener  <rguenther@suse.de>
19073         PR middle-end/64313
19074         * tree-core.h (builtin_info, builtin_info_type): Turn from
19075         an object with two arrays into an array of an object with
19076         decl and two flags, implicit_p and declared_p.
19077         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
19078         set_builtin_decl, set_builtin_decl_implicit_p,
19079         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
19080         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
19081         * builtins.c (builtin_info): Adjust.
19082         * gimplify.c (gimplify_addr_expr): References to builtins
19083         that have been declared by the user makes them eligible for
19084         use by the compiler.  Call set_builtin_decl_implicit_p on them.
19086 2015-01-20  Jeff Law  <law@redhat.com>
19088         PR target/59946
19089         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
19090         allow pc-relative addresses in operand predicates or constraints.
19092 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
19094         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
19095         neon on aarch32 processors for stringops.
19097 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19099         PR ipa/63576
19100         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
19102 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19104         PR lto/45375
19105         * ipa-inline.c: Include lto-streamer.h
19106         (report_inline_failed_reason): Output source file differences and
19107         flags on optimization/target node mismatch.
19108         (can_inline_edge_p): Consider caller to be the outer inline function;
19109         be less restrictive about matching opimize and optimize_size attributes.
19110         (inline_account_function_p): Break out from ...
19111         (inline_small_functions): ... here.
19112         * ipa-inline-transform.c (clone_inlined_nodes): Use
19113         inline_account_function_p.
19114         (inline_call): Use optimize attribution; use inline_account_function_p.
19115         (inline_transform): Use opt_for_fn.
19116         * ipa-inline.h (inline_account_function_p): Declare.
19118 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
19120         PR debug/64663
19121         * dwarf2out.c (decl_piece_node): Don't put bitsize into
19122         mode if bitsize <= 0.
19123         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
19124         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
19125         sizes and positions.
19127 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
19129         * config/nios2/nios2.c (nios2_asm_file_end): Implement
19130         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
19131         needed.
19132         (TARGET_ASM_FILE_END): Define.
19134 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19136         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
19137         (struct tune_params): Use the enum.
19138         * arm.c (arm_*_tune): Update.
19139         (arm_option_override): Update.
19141 2015-01-20  Richard Biener  <rguenther@suse.de>
19143         PR ipa/64684
19144         * ipa-reference.c (add_static_var): Inline ...
19145         (analyze_function): ... here after splitting out from ...
19146         (is_proper_for_analysis): ... this.
19148 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
19150         PR target/64149
19151         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
19152         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
19153         replace the conditional with it's true branch.
19154         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
19155         (arm_lra_p): Remove.
19157 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
19159         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
19161 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19163         * config/tilegx/mul-tables.c: Move symtab.h include after
19164         coretypes.h include.
19165         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
19166         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
19167         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
19168         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
19169         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
19171 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
19173         PR bootstrap/64676
19174         Revert:
19175         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
19177         PR rtl-optimization/64081
19178         * loop-iv.c (def_pred_latch_p): New function.
19179         (latch_dominating_def): Allow specific cases with non-single
19180         definitions.
19181         (iv_get_reaching_def): Likewise.
19182         (check_complex_exit_p): New function.
19183         (check_simple_exit): Use check_complex_exit_p to allow certain cases
19184         with exits not executing on any iteration.
19186 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19188         PR lto/45375
19189         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
19190         to set branch cost.
19192 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19194         PR lto/45375
19195         * i386.c (gate): Check flag_expensive_optimizations and
19196         optimize_size.
19197         (ix86_option_override_internal): Drop optimize_size condition
19198         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
19199         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
19200         MASK_PREFER_AVX128.
19201         (ix86_avx256_split_vector_move_misalign,
19202         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
19203         * sse.md (all uses of TARGET_PREFER_AVX128): Add
19204         optimize_insn_for_speed_p check.
19206 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
19208         * config/mips/mips.h (FP_ASM_SPEC): New define.
19209         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
19210         instead.
19212 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
19214         PR target/53988
19215         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
19216         nullptr for insn when reaching the first insn.
19217         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
19218         (sh_insn_operands_modified_between_p): Add nullptr check.
19219         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
19220         sign extending mem load if the insn contains any UNSPEC or
19221         UNSPEC_VOLATILE.
19223 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19225         * params.def (inline-unit-growth): Drop to 15%.
19226         * invoke.texi (inline-unit-growth): Document change.
19228 2015-01-19  Martin Liska  <mliska@suse.cz>
19230         PR ipa/64668
19231         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
19232         function for second argument of OBJ_TYPE_REF.
19234 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19236         PR ipa/64218
19237         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
19238         whether function is an alias.
19240 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
19242         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
19243         cases.
19245 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19247         PR rtl-optimization/64671
19248         * lra-remat.c (operand_to_remat): Don't consider jump and call
19249         insns.
19251 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
19253         PR target/59828
19254         * config/rs6000/default64.h: Include rs6000-cpus.def.
19255         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
19256         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
19257         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
19258         and POWER8.
19259         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
19260         POWER8.
19261         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
19262         pseudo-op to specify assembler dialect.
19264 2015-01-19  Martin Liska  <mliska@suse.cz>
19266         PR ipa/64664
19267         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
19268         Handle safe potentially removed nodes during filtering.
19270 2015-01-19  Martin Liska  <mliska@suse.cz>
19272         * doc/extend.texi (no_icf): Add new attribute description.
19273         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
19274         where the pass attempts to merge a function with no_icf attribute.
19276 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19278         PR target/64532
19279         * doc/md.texi (ARM Options): Document register constraints.
19281 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
19282             Andrew Pinski  <apinski@cavium.com>
19284         PR target/64304
19285         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
19286         (ashl<mode>3): Don't expand if operands[2] is not constant.
19288 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19290         PR target/64448
19291         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
19292         Match xor-and-xor RTL pattern.
19294 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
19296         PR rtl-optimization/64081
19297         * loop-iv.c (def_pred_latch_p): New function.
19298         (latch_dominating_def): Allow specific cases with non-single
19299         definitions.
19300         (iv_get_reaching_def): Likewise.
19301         (check_complex_exit_p): New function.
19302         (check_simple_exit): Use check_complex_exit_p to allow certain cases
19303         with exits not executing on any iteration.
19305 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
19307         * common.opt (fgraphite): Fix a typo.
19309 2015-01-19  Felix Yang  <felix.yang@huawei.com>
19311         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
19312         pattern.
19313         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
19314         uminp, smax_nanp, smin_nanp): New builtins.
19315         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
19316         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
19317         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
19318         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
19319         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
19320         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
19321         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
19322         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
19323         vpminnms_f32): Rewrite using builtin functions.
19325 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
19327         PR libgomp/64625
19328         * omp-low.c (offload_symbol_decl): Remove variable.
19329         (get_offload_symbol_decl): Remove function.
19330         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
19331         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
19332         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
19333         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
19334         BUILT_IN_GOACC_UPDATE don't pass it at all.
19336 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19338         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
19339         callers.
19341 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
19343         * ipa-chkp.c (chkp_produce_thunks): Add early param
19344         to split thunks production into two passes.  Keep
19345         'always_inline' function bodies after the first pass.
19346         (pass_data_ipa_chkp_early_produce_thunks): New.
19347         (pass_ipa_chkp_early_produce_thunks): New.
19348         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
19349         chkp_produce_thunks signature.
19350         (make_pass_ipa_chkp_early_produce_thunks): New.
19351         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
19352         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
19353         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
19355 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19357         * cgraph.c (cgraph_node::dump): Dump profile flags.
19359 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
19361         PR target/64652
19362         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
19363         reg appear first in the parallel.
19365 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19367         * ipa-reference.c (set_reference_optimization_summary,
19368         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
19369         disabled.
19370         (ignore_module_statics): New static var.
19371         (propagate_bits): If ipa-reference is disabled, do not look into local
19372         properties.
19373         (analyze_function): Disable analysis when ipa_reference is disabled.
19374         (generate_summary): Do not dump when reference is disabled;
19375         collect vars accessed from functions with ipa-reference disabled.
19376         (get_read_write_all_from_node): When ipa-reference is disabled, use the
19377         node flags.
19378         (gate): Enable for LTO.
19379         (ignore_edge_p): New function.
19380         (propagate): Skip functions w/o ipa-reference analysis.
19381         * optc-save-gen.awk: Handle optimize_debug correctly.
19382         * opth-gen.awk: Likewise.
19383         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
19384         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
19385         fira-share-save-slots, fira-share-spill-slots,
19386         fmodulo-sched-allow-regmoves, fpartial-inlining,
19387         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
19388         ftracer, ftree-parallelize-loops, fassociative-math,
19389         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
19390         Optimization
19391         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
19392         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
19393         Optimization.
19394         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
19395         Fix for IPA.
19397 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
19399         PR ipa/64378
19400         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
19401         flag correctly.
19402         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
19404 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
19406         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
19407         Remove duplicate option listings.
19409 2015-01-18  Felix Yang  <felix.yang@huawei.com>
19411         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
19412         (autofdo_source_profile::get_callsite_total_count,
19413         function_instance::get_function_instance_by_decl,
19414         string_table::get_index, string_table::get_index_by_decl,
19415         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
19416         Fix comment typos. Reformatting and minor code rearrangement.
19418 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19420         * config/rs6000/rs6000.md (probe_stack): Delete.
19421         (probe_stack_address): New.
19423 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19425         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
19426         to test for 32-bit ABIs, not !TARGET_POWERPC64.
19428 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
19430         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
19431         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
19432         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
19433         snafu.
19434         (rs6000_libcall_value): Use the new function.
19436 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
19438         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
19440 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
19442         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
19443         implement a more precise life analysis for it during backward scan.
19445 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
19447         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
19449 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
19451         PR rtl-optimization/52773
19452         * calls.c (emit_library_call_value): When pushing arguments use
19453         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
19454         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
19455         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
19457 2015-01-17  Jeff Law  <law@redhat.com>
19459         PR rtl-optimization/32790
19460         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
19461         not ZERO_EXTEND in SET_DESTs.
19463 2015-01-17  Alan Modra  <amodra@gmail.com>
19465         * cprop.c (do_local_cprop): Revert last change.
19467 2015-01-16  DJ Delorie  <dj@redhat.com>
19468             Nick Clifton  <nickc@redhat.com>
19470         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
19471         (addhi3_real): Likewise.  Fix [HL+0] syntax.
19472         (subqi3_real): Likewise.
19473         (subhi3_real): Likewise.
19474         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
19475         (cbranchhi4_real): Likewise.
19476         (cbranchhi4_real_inverted): Likewise.
19477         (cbranchsi4_real_lt): Likewise.
19478         (cbranchsi4_real_ge): Likewise.
19479         (cbranchsi4_real_ge): Likewise.
19480         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
19481         (sub<mode>3_virt): Likewise.
19482         (cbranchqi4_virt): Likewise.
19483         (cbranchhi4_virt): Likewise.
19484         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
19485         always use '[reg+imm]' even when imm is zero.
19486         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
19487         (rl78_general_operand): New.
19488         (rl78_nonimmediate_operand): New.
19489         (rl78_nonfar_operand): Use them.
19490         (rl78_nonfar_nonimm_operand): Likewise.
19491         (rl78_stack_based_mem): Fix.
19492         * config/rl78/constraints.md (Ibqi): New.
19493         (IBqi): New.
19494         (Wsa): New.
19495         (Wsf): New.
19496         (Cs1): Fix.
19497         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
19498         (iorqi3): Likewise.
19499         (xorqi3): Likewise.
19500         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
19502         * config/rl78/constrains (Qs8): New constraint.
19503         * config/rl78/rl78.c (rl78_flags_already_set): New function.
19504         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
19505         * config/rl78/rl78-real.md (update_Z): New attribute.
19506         Update patterns to set it.
19507         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
19508         shorter compare and branch sequence can be used.
19509         (cbranchhi4_real): Likewise.
19510         (cbranchhi4_real_inverted): Likewise.
19512         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
19513         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
19514         address space.
19515         * config/rl78/rl78.c (rl78_get_name_encoding): New.
19516         (rl78_option_override): Allow -mes0 only if C.
19517         (characterize_address): Support subregs of symbol_refs.
19518         (rl78_addr_space_address_mode): Move.  Add __near.
19519         (rl78_far_p): Likewise.
19520         (rl78_addr_space_pointer_mode): Likewise.
19521         (rl78_as_legitimate_address): Likewise.
19522         (rl78_addr_space_subset_p): Likewise.
19523         (rl78_addr_space_convert): Likewise.
19524         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
19525         symbols with -mes0.
19526         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
19527         addressing.
19528         (rl78_alloc_physical_registers_op1): Change logic to prefer
19529         symbol[BC] addressing.
19530         (frodata_section): New.
19531         (rl78_asm_init_sections): Initialize it.
19532         (rl78_select_section): Put __far readonly symbols in .frodata.
19533         (rl78_make_type_far): New.
19534         (rl78_insert_attributes): Force all readonly symbols to be
19535         __far when -mes0.
19536         (rl78_asm_out_integer): New.
19537         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
19538         * config/rl78/rl78.opt (-mes0): New.
19540         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
19541         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19542         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
19543         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
19544         (rl78_saddr_p): New.
19545         (rl78_output_aligned_common): New.
19546         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
19547         (rl78_handle_saddr_attribute): New.
19548         (rl78_handle_naked_attribute): New.
19549         (rl78_attribute_table): Add saddr.
19550         (rl78_print_operand_1): Don't print '!' on saddr operands.
19551         (rl78_print_operand_1): Strip encodings.
19552         (rl78_sfr_p): New.
19553         (rl78_strip_name_encoding): New.
19554         (rl78_attrlist_to_encoding): New.
19555         (rl78_encode_section_info): New.
19556         (rl78_asm_init_sections): New.
19557         (rl78_select_section): New.
19558         (rl78_output_labelref): New.
19559         (rl78_output_aligned_common): New.
19560         (rl78_asm_out_integer): New.
19561         (rl78_asm_ctor_dtor): New.
19562         (rl78_asm_constructor): New.
19563         (rl78_asm_destructor): New.
19565         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
19566         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
19567         (transcode_memory_rtx): Update.
19568         (rl78_expand_epilogue): Use A_REG instead of 0.
19570 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19572         * config/arm/arm-protos.h (struct tune_params): New field
19573         sched_autopref_queue_depth.
19574         * config/arm/arm.c (sched-int.h): Include header.
19575         (arm_first_cycle_multipass_dfa_lookahead_guard,)
19576         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
19577         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
19578         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
19579         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
19580         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
19581         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
19582         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
19583         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
19584         * config/arm/t-arm (arm.o): Update.
19585         * haifa-sched.c (update_insn_after_change): Update.
19586         (rank_for_schedule): Use auto-prefetcher model, if requested.
19587         (autopref_multipass_init): New static function.
19588         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
19589         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
19590         variable for debug dumps.
19591         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
19592         (autopref_multipass_dfa_lookahead_guard): New global function that
19593         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
19594         (init_h_i_d): Update.
19595         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
19596         * sched-int.h (enum autopref_multipass_data_status): New const enum.
19597         (autopref_multipass_data_): Structure for auto-prefetcher data.
19598         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
19599         (struct _haifa_insn_data:autopref_multipass_data): New field.
19600         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
19601         (autopref_multipass_dfa_lookahead_guard): Declare.
19603 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19605         * rtlanal.c (get_base_term): Handle SCRATCH.
19607 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19609         * config/aarch64/aarch64.c
19610         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
19611         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
19612         * config/arm/arm.c
19613         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
19614         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
19616 2015-01-17  Alan Modra  <amodra@gmail.com>
19618         * cprop.c (do_local_cprop): Disallow replacement of fixed
19619         hard registers.
19621 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19623         PR target/62066
19624         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
19625         early return 0.
19627 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19629         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
19630         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
19632 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19634         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
19635         * config/arm/thumb1.md: ... Here.
19637 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
19639         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
19640         TImode for TARGET_32BIT.
19642 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
19644         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
19645         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
19646         as ...
19647         (rs6000_abi_word_mode): New function.
19649 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
19651         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
19652         instead of UNITS_PER_WORD to describe the size of stack slots.
19654 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
19656         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
19657         as rs6000_promote_function_mode.  Move comment to there.
19658         (rs6000_promote_function_mode): New function.
19660 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
19662         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
19663         -mpowerpc64 is active.
19665 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
19667         PR middle-end/64353
19668         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
19669         virtuals on start.
19671 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
19673         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
19674         introduced in revision 219724.
19676 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19677             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19679         PR target/64263
19680         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
19681         destination is not a GP reg.
19682         (*movdi_aarch64): Likewise.
19684 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
19686         PR target/64623
19687         * config/rs6000/default64.h: Revert ISA change.
19689 2015-01-16  Richard Biener  <rguenther@suse.de>
19691         PR middle-end/64614
19692         * tree-ssa-uninit.c: Include tree-cfg.h.
19693         (MAX_SWITCH_CASES): New define.
19694         (convert_control_dep_chain_into_preds): Handle switch statements.
19695         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
19696         (normalize_one_pred_1): Do not split bit-manipulations.
19697         Record (x & CST).
19699 2015-01-16  Richard Biener  <rguenther@suse.de>
19701         PR tree-optimization/64568
19702         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
19703         complex load rewriting for TARGET_MEM_REFs.
19705 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
19707         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
19709 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
19711         PR target/64149
19712         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
19713         variable.
19714         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
19715         (aarch64_lra_p): Remove.
19717 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
19719         PR target/64363
19720         * ipa-chkp.h (chkp_instrumentable_p): New.
19721         * ipa-chkp.c: Include tree-inline.h.
19722         (chkp_instrumentable_p): New.
19723         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
19724         Fix processing of not instrumentable functions.
19725         (chkp_versioning): Use chkp_instrumentable_p. Warn about
19726         not instrumentable functions.
19727         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
19728         chkp_instrumentable_p.
19729         * tree-inline.h (copy_forbidden): New.
19730         * tree-inline.c (copy_forbidden): Not static anymore.
19732 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19734         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
19735         ptr1, ptr2 unused.
19737 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
19739         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
19740         type OP_OUT to OP_INOUT.
19742 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
19744         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
19745         (high x) y) to y if x and y have the same base.
19747 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
19749         * config/arm/cortex-a57.md: New.
19750         * config/aarch64/aarch64.md: Include it.
19751         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
19752         * config/aarch64/aarch64-tune.md: Regenerate.
19754 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19756         PR target/64015
19757         * ccmp.c (expand_ccmp_next): New function.
19758         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
19759         and compare insn sequence.
19760         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
19761         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
19762         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
19763         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
19764         (*ccmp_ior): Changed to ccmp_ior<mode>.
19765         (cmp<mode>): New pattern.
19766         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
19767         parameters.
19768         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
19770 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
19772         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
19773         _mm256_bsrli_epi128): New.
19774         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
19776 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
19778         * expmed.c (store_bit_field_using_insv): Improve warning message.
19779         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
19781 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
19783         PR rtl-optimization/64011
19784         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
19785         there is partial overflow.
19787 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19789         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
19790         prototype.
19791         (nds32_expand_epilogue_v3pop): Likewise.
19792         * config/nds32/nds32.md (sibcall): Define this for sibling call
19793         optimization.
19794         (sibcall_register): Likewise.
19795         (sibcall_immediate): Likewise.
19796         (sibcall_value): Likewise.
19797         (sibcall_value_register): Likewise.
19798         (sibcall_value_immediate): Likewise.
19799         (sibcall_epilogue): Likewise.
19800         (epilogue): Pass false to indicate this is not a sibcall epilogue.
19801         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
19802         (nds32_expand_epilogue_v3pop): Likewise.
19804 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19806         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
19807         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
19808         (return_internal): New.
19809         (return): Define this named pattern.
19810         (simple_return): Define this named pattern.
19811         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
19812         pattern instead of unspec_volatile_func_return.
19813         (nds32_expand_epilogue_v3pop): Likewise.
19814         (nds32_can_use_return_insn): New function.
19816 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19818         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
19819         * config/nds32/nds32.md (pop25return): New.
19820         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
19821         pop25return pattern.
19823 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19825         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
19826         -mforbid-fp-as-gp, and -mex9 options.
19828 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19830         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
19831         remove -mgp-direct option.
19833 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
19835         * doc/invoke.texi (--param early-inlining-insns): Update default value.
19836         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
19838 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
19840         * ipa-inline.c (inline_small_functions): Work around hints
19841         cache issue.
19843 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
19845         PR target/59710
19846         * doc/invoke.texi (Option Summary): Document new Nios II
19847         -mgpopt= syntax.
19848         (Nios II Options): Likewise.
19849         * config/nios2/nios2.opt: Add -mgpopt= option support.
19850         Modify existing -mgpopt and -mno-gpopt options to be aliases.
19851         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
19852         * config/nios2/nios2.c (nios2_option_override): Adjust
19853         -mgpopt defaulting.
19854         (nios2_in_small_data_p): Return true for explicit small data
19855         sections even with -G0.
19856         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
19857         option choices.
19859 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
19861         PR ipa/64612
19862         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
19863         of comdat locals.
19864         (inline_call): Fix removal of aliases.
19866 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
19868         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
19869         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
19870         * opts.c (common_handle_option): Add -fsanitize=vptr.
19871         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
19872         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
19873         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
19874         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
19875         (ubsan_expand_vptr_ifn): New prototype.
19876         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
19877         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
19878         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
19879         expand_LOOP_VECTORIZED): Make argument nameless, remove
19880         ATTRIBUTE_UNUSED.
19881         (expand_UBSAN_VPTR): New function.
19882         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
19883         in fn spec.
19884         (UBSAN_VPTR): New internal function.
19885         * sanopt.c (tree_map_traits): Renamed to ...
19886         (sanopt_tree_map_traits): ... this.
19887         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
19888         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
19889         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
19890         (maybe_optimize_ubsan_vptr_ifn): New function.
19891         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
19892         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
19893         -fsanitize=vptr.
19894         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
19895         internal calls like pure functions for aliasing, even when they
19896         have other side-effects that prevent making them ECF_PURE.
19897         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
19898         (ubsan_expand_vptr_ifn): New function.
19900 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
19902         PR rtl-optimization/64110
19903         * stmt.c (parse_output_constraint): Process '^' and '$'.
19904         (parse_input_constraint): Ditto.
19905         * lra-constraints.c (process_alt_operands): Process the new
19906         constraints.
19907         * ira-costs.c (record_reg_classes): Process the new constraint
19908         '^'.
19909         * genoutput.c (indep_constraints): Add '^' and '$'.
19910         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
19911         * doc/md.texi: Add description of the new constraints.
19913 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
19914             Bernd Schmidt  <bernds@codesourcery.com>
19915             Cesar Philippidis  <cesar@codesourcery.com>
19916             James Norris  <jnorris@codesourcery.com>
19917             Tom de Vries  <tom@codesourcery.com>
19918             Ilmir Usmanov  <i.usmanov@samsung.com>
19919             Dmitry Bocharnikov  <dmitry.b@samsung.com>
19920             Evgeny Gavrin  <e.gavrin@samsung.com>
19921             Jakub Jelinek  <jakub@redhat.com>
19923         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
19924         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19925         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19926         New function types.
19927         * builtins.c: Include "gomp-constants.h".
19928         (expand_builtin_acc_on_device): New function.
19929         (expand_builtin, is_inexpensive_builtin): Handle
19930         BUILT_IN_ACC_ON_DEVICE.
19931         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
19932         New macros.
19933         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
19934         flag_openmp.
19935         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
19936         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
19937         i386/intelmic-offload.h.
19938         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
19939         to libgomp and its dependencies.
19940         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
19941         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19942         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
19943         * config/ia64/hpux.h (LIB_SPEC): Likewise.
19944         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19945         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
19946         * doc/generic.texi: Update for OpenACC changes.
19947         * doc/gimple.texi: Likewise.
19948         * doc/invoke.texi: Likewise.
19949         * doc/sourcebuild.texi: Likewise.
19950         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
19951         GF_OMP_FOR_KIND_OACC_LOOP.
19952         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
19953         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
19954         GF_OMP_TARGET_KIND_OACC_UPDATE,
19955         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
19956         Dump more data.
19957         * gimple.c: Update comments for OpenACC changes.
19958         * gimple.def: Likewise.
19959         * gimple.h: Likewise.
19960         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
19961         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
19962         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
19963         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
19964         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
19965         appropriate place.
19966         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
19967         * gimplify.c: Include "gomp-constants.h".
19968         Update comments for OpenACC changes.
19969         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
19970         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
19971         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
19972         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
19973         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
19974         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
19975         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
19976         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
19977         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19978         OMP_CLAUSE_SEQ.
19979         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
19980         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
19981         OMP_CLAUSE_SET_MAP_KIND.
19982         (gimplify_oacc_cache): New function.
19983         (gimplify_omp_for): Handle OACC_LOOP.
19984         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
19985         OACC_DATA.
19986         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
19987         OACC_EXIT_DATA, OACC_UPDATE.
19988         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
19989         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
19990         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
19991         (gimplify_body): Consider flag_openacc next to flag_openmp.
19992         * lto-streamer-out.c: Include "gomp-constants.h".
19993         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
19994         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
19995         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
19996         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
19997         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
19998         (BUILT_IN_ACC_ON_DEVICE): New builtins.
19999         * omp-low.c: Include "gomp-constants.h".
20000         Update comments for OpenACC changes.
20001         (struct omp_context): Add reduction_map, gwv_below, gwv_this
20002         members.
20003         (extract_omp_for_data, use_pointer_for_field, install_var_field)
20004         (new_omp_context, delete_omp_context, scan_sharing_clauses)
20005         (create_omp_child_function, scan_omp_for, scan_omp_target)
20006         (check_omp_nesting_restrictions, lower_reduction_clauses)
20007         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
20008         Update for OpenACC changes.
20009         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
20010         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
20011         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
20012         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
20013         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
20014         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
20015         OMP_CLAUSE_MAP_*.
20016         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
20017         Handle GF_OMP_FOR_KIND_OACC_LOOP.
20018         (expand_omp_target, lower_omp_target): Handle
20019         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
20020         GF_OMP_TARGET_KIND_OACC_UPDATE,
20021         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
20022         GF_OMP_TARGET_KIND_OACC_DATA.
20023         (pass_expand_omp::execute, execute_lower_omp)
20024         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
20025         flag_openmp.
20026         (offload_symbol_decl): New variable.
20027         (oacc_get_reduction_array_id, oacc_max_threads)
20028         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
20029         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
20030         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
20031         (oacc_gimple_assign, oacc_initialize_reduction_data)
20032         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
20033         functions.
20034         (is_targetreg_ctx): Remove function.
20035         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
20036         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
20037         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
20038         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
20039         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
20040         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
20041         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
20042         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
20043         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
20044         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
20045         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
20046         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
20047         * tree-core.h: Update comments for OpenACC changes.
20048         (enum omp_clause_map_kind): Remove.
20049         (struct tree_omp_clause): Change type of map_kind member from enum
20050         omp_clause_map_kind to unsigned char.
20051         * tree-inline.c: Update comments for OpenACC changes.
20052         * tree-nested.c: Likewise.  Include "gomp-constants.h".
20053         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
20054         (convert_tramp_reference_stmt, convert_gimple_call): Update for
20055         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
20056         OMP_CLAUSE_SET_MAP_KIND.
20057         * tree-pretty-print.c: Include "gomp-constants.h".
20058         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
20059         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
20060         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
20061         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
20062         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
20063         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
20064         instead of OMP_CLAUSE_MAP_*.
20065         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
20066         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
20067         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
20068         * tree-streamer-in.c: Include "gomp-constants.h".
20069         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
20070         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
20071         * tree-streamer-out.c: Include "gomp-constants.h".
20072         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
20073         OMP_CLAUSE_MAP_*.
20074         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
20075         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
20076         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
20077         * tree.c (omp_clause_num_ops): Update accordingly.
20078         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
20079         Likewise.
20080         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
20081         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
20082         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
20083         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
20084         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
20085         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
20086         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
20087         (OMP_CLAUSE_SET_MAP_KIND): New macro.
20088         * varpool.c (varpool_node::get_create): Consider flag_openacc next
20089         to flag_openmp.
20090         * config/i386/intelmic-offload.h: New file.
20091         * config/nvptx/offload.h: Likewise.
20093 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20095         * explow.h: Remove duplicate contents.
20096         * dojump.h: Likewise.
20098 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
20100         * arm.c (arm_xgene_tune): Add default initializer for instruction
20101         fusion.
20103 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
20105         PR ipa/64068
20106         PR ipa/64559
20107         * ipa.c (symbol_table::remove_unreachable_nodes):
20108         Do not put abstract origins into boundary.
20110 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
20112         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
20113         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
20115 2015-01-15  Steve Ellcey  <sellcey@mips.com>
20117         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
20118         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
20119         builtins.def, and chkp-builtins.def.
20121 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
20123         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
20124         ISA 2.7 (POWER8).
20126 2015-01-15  Richard Biener  <rguenther@suse.de>
20128         PR tree-optimization/61743
20129         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
20130         information on PHIs for some simple cases.
20132 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20134         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
20135         Include xgene1.md.
20136         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
20137         * config/arm/arm-cores.def (xgene1): New entry.
20138         * config/arm/arm-tables.opt: Regenerate.
20139         * config/arm/arm-tune.md: Regenerate.
20140         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
20142 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
20144         * tree-if-conv.c: Include hash-map.h.
20145         (aggressive_if_conv): New variable.
20146         (fold_build_cond_expr): Add simplification of non-zero condition.
20147         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
20148         destination block is not always executed.
20149         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
20150         than two predecessors if AGGRESSIVE_IF_CONV is true.
20151         (if_convertible_stmt_p): Fix commentary.
20152         (all_preds_critical_p): New function.
20153         (has_pred_critical_p): New function.
20154         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
20155         BB can have more than two predecessors and all incoming edges can be
20156         critical.
20157         (predicate_bbs): Skip predication for loop exit block, use build2_loc
20158         to compute predicate for true edge.
20159         (find_phi_replacement_condition): Delete this function.
20160         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
20161         Allow interchange PHI arguments if EXTENDED is false.
20162         Change check that block containing reduction statement candidate
20163         is predecessor of phi-block since phi may have more than two arguments.
20164         (phi_args_hash_traits): New helper structure.
20165         (struct phi_args_hash_traits): New type.
20166         (phi_args_hash_traits::hash): New function.
20167         (phi_args_hash_traits::equal_keys): New function.
20168         (gen_phi_arg_condition): New function.
20169         (predicate_scalar_phi): Add handling of phi nodes with more than two
20170         arguments, delete COND and TRUE_BB arguments, insert body of
20171         find_phi_replacement_condition to predicate ordinary phi nodes.
20172         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
20173         delete call of find_phi_replacement_condition and invoke
20174         predicate_scalar_phi with two arguments.
20175         (insert_gimplified_predicates): Add assert that non-predicated block
20176         don't have statements to insert.
20177         (ifcvt_split_critical_edges): New function.
20178         (ifcvt_split_def_stmt): Likewise.
20179         (ifcvt_walk_pattern_tree): Likewise.
20180         (stmt_is_root_of_bool_pattern): Likewise.
20181         (ifcvt_repair_bool_pattern): Likewise.
20182         (ifcvt_local_dce): Likewise.
20183         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
20184         is copy of inner or outer loop force_vectorize field, invoke
20185         ifcvt_split_critical_edges, ifcvt_local_dce and
20186         ifcvt_repair_bool_pattern for aggressive if-conversion.
20188 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
20190         * config/aarch64/aarch64.md: Include xgene1.md.
20191         * config/aarch64/xgene1.md: New file.
20193 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
20195         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
20196         xgene1 (APM XGene-1) core definition.
20197         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
20198         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
20199         * doc/invoke.texi: Document -mcpu=xgene1.
20201 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20203         * dojump.h: New header file.
20204         * explow.h: Likewise.
20205         * expr.h: Remove includes.
20206         Move expmed.c prototypes to expmed.h.
20207         Move dojump.c prototypes to dojump.h.
20208         Move alias.c prototypes to alias.h.
20209         Move explow.c prototypes to explow.h.
20210         Move calls.c prototypes to calls.h.
20211         Move emit-rtl.c prototypes to emit-rtl.h.
20212         Move varasm.c prototypes to varasm.h.
20213         Move stmt.c prototypes to stmt.h.
20214         (saved_pending_stack_adjust): Move to dojump.h.
20215         (adjust_address): Move to explow.h.
20216         (adjust_address_nv): Move to emit-rtl.h.
20217         (adjust_bitfield_address): Likewise.
20218         (adjust_bitfield_address_size): Likewise.
20219         (adjust_bitfield_address_nv): Likewise.
20220         (adjust_automodify_address_nv): Likewise.
20221         * explow.c (expr_size): Move to expr.c.
20222         (int_expr_size): Likewise.
20223         (tree_expr_size): Likewise.
20224         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20225         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
20226         * genemit.c (main): Generate includes statistics.h, real.h,
20227         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
20228         stmt.h.
20229         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
20230         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
20231         explow.h, emit-rtl.h, stmt.h.
20232         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
20233         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
20234         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
20235         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
20236         emit-rtl.h, varasm.h, stmt.h.
20237         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
20238         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
20239         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
20240         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
20241         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20242         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
20243         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
20244         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
20245         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
20246         tm.h tree.h varasm.h vec.h wide-int.h.
20247         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20248         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
20249         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
20250         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
20251         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
20252         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
20253         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
20254         * loop-iv.c: Likewise.
20255         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
20256         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
20257         statistics.h stmt.h tree.h varasm.h wide-int.h.
20258         * lra-constraints.c: Likewise.
20259         * lra-eliminations.c: Likewise.
20260         * lra-lives.c: Likewise.
20261         * lra-remat.c: Likewise.
20262         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20263         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
20264         statistics.h stmt.h tree.h varasm.h wide-int.h.
20265         * hw-doloop.c: Likewise.
20266         * ira-color.c: Likewise.
20267         * ira-emit.c: Likewise.
20268         * loop-doloop.c: Likewise.
20269         * loop-invariant.c: Likewise.
20270         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20271         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
20272         statistics.h stmt.h tree.h varasm.h wide-int.h.
20273         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
20274         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
20275         statistics.h stmt.h tree.h varasm.h wide-int.h.
20276         * combine-stack-adj.c: Likewise.
20277         * cse.c: Likewise.
20278         * ddg.c: Likewise.
20279         * ifcvt.c: Likewise.
20280         * ira-costs.c: Likewise.
20281         * jump.c: Likewise.
20282         * lra-coalesce.c: Likewise.
20283         * lra-spills.c: Likewise.
20284         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20285         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
20286         stmt.h varasm.h wide-int.h.
20287         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
20288         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
20289         varasm.h.
20290         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
20291         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
20292         statistics.h stmt.h varasm.h wide-int.h.
20293         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
20294         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
20295         varasm.h wide-int.h.
20296         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
20297         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
20298         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
20299         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
20300         statistics.h stmt.h.
20301         * config/tilepro/tilepro.c: Likewise.
20302         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
20303         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
20304         * config/pdp11/pdp11.c: Likewise.
20305         * config/xtensa/xtensa.c: Likewise.
20306         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
20307         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
20308         varasm.h.
20309         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20310         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
20311         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
20312         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20313         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
20314         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
20315         * rtl-chkp.c: Likewise.
20316         * tree-chkp-opt.c: Likewise.
20317         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
20318         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
20319         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
20320         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20321         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
20322         statistics.h stmt.h.
20323         * tree-vect-data-refs.c: Likewise.
20324         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
20325         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20326         rtl.h statistics.h stmt.h varasm.h.
20327         * internal-fn.c: Likewise.
20328         * ipa-icf-gimple.c: Likewise.
20329         * lto-section-out.c: Likewise.
20330         * tree-data-ref.c: Likewise.
20331         * tree-nested.c: Likewise.
20332         * tree-outof-ssa.c: Likewise.
20333         * tree-predcom.c: Likewise.
20334         * tree-pretty-print.c: Likewise.
20335         * tree-scalar-evolution.c: Likewise.
20336         * tree-ssa-strlen.c: Likewise.
20337         * tree-vect-loop.c: Likewise.
20338         * tree-vect-patterns.c: Likewise.
20339         * tree-vect-slp.c: Likewise.
20340         * tree-vect-stmts.c: Likewise.
20341         * tsan.c: Likewise.
20342         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20343         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
20344         stmt.h.
20345         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
20346         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20347         statistics.h stmt.h varasm.h.
20348         * loop-unroll.c: Likewise.
20349         * ubsan.c: Likewise.
20350         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
20351         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
20352         stmt.h varasm.h.
20353         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20354         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
20355         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
20356         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
20357         statistics.h stmt.h.
20358         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
20359         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
20360         statistics.h stmt.h varasm.h.
20361         * gimple-match-head.c: Likewise.
20362         * lto-cgraph.c: Likewise.
20363         * lto-section-in.c: Likewise.
20364         * lto-streamer-in.c: Likewise.
20365         * lto-streamer-out.c: Likewise.
20366         * tree-affine.c: Likewise.
20367         * tree-cfg.c: Likewise.
20368         * tree-cfgcleanup.c: Likewise.
20369         * tree-if-conv.c: Likewise.
20370         * tree-into-ssa.c: Likewise.
20371         * tree-ssa-alias.c: Likewise.
20372         * tree-ssa-copyrename.c: Likewise.
20373         * tree-ssa-dse.c: Likewise.
20374         * tree-ssa-forwprop.c: Likewise.
20375         * tree-ssa-live.c: Likewise.
20376         * tree-ssa-math-opts.c: Likewise.
20377         * tree-ssa-pre.c: Likewise.
20378         * tree-ssa-sccvn.c: Likewise.
20379         * tree-tailcall.c: Likewise.
20380         * tree-vect-generic.c: Likewise.
20381         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20382         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
20383         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20384         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
20385         * varasm.c: Likewise.
20386         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20387         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
20388         varasm.h.
20389         * init-regs.c: Likewise.
20390         * ira.c: Likewise.
20391         * omp-low.c: Likewise.
20392         * stack-ptr-mod.c: Likewise.
20393         * tree-ssa-reassoc.c: Likewise.
20394         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20395         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
20396         varasm.h.
20397         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20398         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
20399         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20400         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
20401         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20402         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
20403         * tree-ssa-phiopt.c: Likewise.
20404         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20405         fixed-value.h hashtab.h real.h statistics.h stmt.h.
20406         * config/fr30/fr30.c: Likewise.
20407         * config/frv/frv.c: Likewise.
20408         * expr.c: Likewise.
20409         * final.c: Likewise.
20410         * optabs.c: Likewise.
20411         * passes.c: Likewise.
20412         * simplify-rtx.c: Likewise.
20413         * stmt.c: Likewise.
20414         * toplev.c: Likewise.
20415         * var-tracking.c: Likewise.
20416         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20417         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
20418         * lower-subreg.c: Likewise.
20419         * postreload-gcse.c: Likewise.
20420         * ree.c: Likewise.
20421         * reginfo.c: Likewise.
20422         * store-motion.c: Likewise.
20423         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20424         fixed-value.h hashtab.h real.h stmt.h varasm.h.
20425         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20426         fixed-value.h hashtab.h statistics.h stmt.h.
20427         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20428         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
20429         * except.c: Likewise.
20430         * explow.c: Likewise.
20431         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20432         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
20433         varasm.h.
20434         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20435         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
20436         * tree-ssa-structalias.c: Likewise.
20437         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20438         fixed-value.h insn-config.h real.h statistics.h.
20439         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20440         fixed-value.h insn-config.h real.h statistics.h stmt.h.
20441         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20442         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
20443         * cfgbuild.c: Likewise.
20444         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20445         fixed-value.h real.h rtl.h statistics.h stmt.h.
20446         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20447         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
20448         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20449         fixed-value.h real.h statistics.h stmt.h.
20450         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
20451         fixed-value.h real.h statistics.h stmt.h varasm.h.
20452         * cprop.c: Likewise.
20453         * modulo-sched.c: Likewise.
20454         * postreload.c: Likewise.
20455         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
20456         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
20457         statistics.h stmt.h varasm.h.
20458         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
20459         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20460         rtl.h statistics.h stmt.h varasm.h.
20461         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
20462         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
20463         varasm.h.
20464         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
20465         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
20466         varasm.h.
20467         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
20468         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
20469         varasm.h.
20470         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
20471         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
20472         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
20473         function.h real.h statistics.h stmt.h varasm.h.
20474         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
20475         insn-config.h real.h statistics.h stmt.h.
20476         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
20477         statistics.h stmt.h.
20478         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
20479         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
20480         statistics.h stmt.h varasm.h.
20481         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
20482         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
20483         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
20484         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
20485         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
20486         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
20487         statistics.h stmt.h varasm.h.
20488         * ipa-polymorphic-call.c: Likewise.
20489         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
20490         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20491         statistics.h stmt.h.
20492         * config/c6x/c6x.c: Likewise.
20493         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
20494         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
20495         statistics.h stmt.h varasm.h.
20496         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
20497         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
20498         stmt.h varasm.h.
20499         * ipa-split.c: Likewise.
20500         * tree-eh.c: Likewise.
20501         * tree-ssa-dce.c: Likewise.
20502         * tree-ssa-loop-niter.c: Likewise.
20503         * tree-vrp.c: Likewise.
20504         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
20505         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
20506         stmt.h.
20507         * config/nds32/nds32-fp-as-gp.c: Likewise.
20508         * config/nds32/nds32-intrinsic.c: Likewise.
20509         * config/nds32/nds32-isr.c: Likewise.
20510         * config/nds32/nds32-md-auxiliary.c: Likewise.
20511         * config/nds32/nds32-memory-manipulation.c: Likewise.
20512         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20513         * config/nds32/nds32-predicates.c: Likewise.
20514         * config/nds32/nds32.c: Likewise.
20515         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
20516         fixed-value.h hashtab.h real.h statistics.h.
20517         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
20518         fixed-value.h hashtab.h real.h statistics.h stmt.h.
20519         * config/arm/arm.c: Likewise.
20520         * config/avr/avr.c: Likewise.
20521         * config/bfin/bfin.c: Likewise.
20522         * config/h8300/h8300.c: Likewise.
20523         * config/i386/i386.c: Likewise.
20524         * config/ia64/ia64.c: Likewise.
20525         * config/iq2000/iq2000.c: Likewise.
20526         * config/m32c/m32c.c: Likewise.
20527         * config/m32r/m32r.c: Likewise.
20528         * config/m68k/m68k.c: Likewise.
20529         * config/mcore/mcore.c: Likewise.
20530         * config/mep/mep.c: Likewise.
20531         * config/mips/mips.c: Likewise.
20532         * config/mn10300/mn10300.c: Likewise.
20533         * config/moxie/moxie.c: Likewise.
20534         * config/pa/pa.c: Likewise.
20535         * config/rl78/rl78.c: Likewise.
20536         * config/rx/rx.c: Likewise.
20537         * config/s390/s390.c: Likewise.
20538         * config/sh/sh.c: Likewise.
20539         * config/sparc/sparc.c: Likewise.
20540         * config/spu/spu.c: Likewise.
20541         * config/stormy16/stormy16.c: Likewise.
20542         * config/v850/v850.c: Likewise.
20543         * config/vax/vax.c: Likewise.
20544         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
20545         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
20546         * config/msp430/msp430.c: Likewise.
20547         * predict.c: Likewise.
20548         * value-prof.c: Likewise.
20549         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
20550         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
20551         * config/microblaze/microblaze.c: Likewise.
20552         * config/nios2/nios2.c: Likewise.
20553         * config/rs6000/rs6000.c: Likewise.
20554         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
20555         insn-config.h real.h rtl.h statistics.h stmt.h.
20556         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
20557         insn-config.h real.h statistics.h stmt.h.
20558         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
20559         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
20560         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
20561         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
20562         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
20563         fixed-value.h real.h statistics.h stmt.h.
20564         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
20565         fixed-value.h statistics.h stmt.h.
20566         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
20567         stmt.h.
20569 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
20571         * gengtype.c (create_user_defined_type): Workaround
20572         -Wmaybe-uninitialized false positives.
20573         * cse.c (fold_rtx): Likewise.
20574         * loop-invariant.c (gain_for_invariant): Likewise.
20576 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
20578         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
20579         set the memory attributes in all cases but clear MEM_EXPR if need be.
20581 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
20583         PR tree-optimization/64434
20584         * cfgexpand.c (reorder_operands): New function.
20585         (expand_gimple_basic_block): Insert call of reorder_operands if
20586         optimized is true.
20588 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
20590         * config/mips/micromips.md (*swp): Remove explicit parallel.
20591         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
20592         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
20593         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
20594         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
20595         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
20596         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
20597         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
20598         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
20599         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
20600         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
20601         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
20602         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
20603         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
20604         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
20605         (mips_wrdsp): Likewise.
20606         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
20607         parallel.
20608         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
20609         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
20610         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
20611         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
20612         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
20613         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
20614         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
20615         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
20616         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
20618 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
20620         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
20621         (mips_print_operand): Support 'y' to print exact log2 in decimal
20622         of a const_int.
20623         * config/mips/mips.h (ISA_HAS_LSA): New define.
20624         (ISA_HAS_DLSA): Likewise.
20625         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
20626         * config/mips/predicates.md (const_immlsa_operand): New predicate.
20628 2015-01-15  Martin Liska  <mliska@suse.cz>
20630         PR target/64377
20631         * optc-save-gen.awk: Add support for array types.
20633 2015-01-15  Richard Biener  <rguenther@suse.de>
20635         PR middle-end/64365
20636         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
20637         for MEM_REF access functions with the same base can never partially
20638         overlap.
20640 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
20642         * common.opt: New option -fstack-protector-explicit.
20643         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
20644         (stack_protect_decl_phase): Handle stack_protect attribute for
20645         explicit stack protection requests.
20646         (expand_used_vars): Similarly.
20647         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
20648         * doc/extend.texi: Add documentation for "stack_protect" attribute.
20649         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
20651 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
20653         PR target/53988
20654         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
20655         reg-reg copies.
20656         (sh_extending_set_of_reg): New struct.
20657         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
20658         sh_remove_reg_dead_or_unused_notes): New Declarations.
20659         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
20660         sh_find_extending_set_of_reg, sh_split_tst_subregs,
20661         sh_extending_set_of_reg::use_as_extended_reg): New functions.
20662         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
20663         convert to insn_and_split and use new function sh_split_tst_subregs.
20665 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
20667         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
20668         option.
20669         (Optimization Options): Move -fuse-ld documentation to...
20670         (Link Options): ...here.
20672 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
20674         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
20675         offsets.
20676         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
20677         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
20678         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
20679         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
20680         instead of ZR for the memory operand of LL/SC.
20681         (compare_and_swap_12, sync_add<mode>): Likewise.
20682         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
20683         (sync_new_<optab>_12, sync_nand_12): Likewise.
20684         (sync_old_nand_12, sync_new_nand_12): Likewise.
20685         (sync_sub<mode>, sync_old_add<mode>): Likewise.
20686         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
20687         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
20688         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
20689         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
20690         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
20691         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
20692         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
20693         * doc/md.texi (ZC): Update description.
20695 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
20697         * builtins.c (expand_builtin_atomic_exchange): Remove error when
20698         memory model is CONSUME.
20699         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
20700         expand_builtin_atomic_store): Change invalid memory model errors to
20701         warnings.
20702         (expand_builtin_atomic_clear): Change invalid model errors to warnings
20703         and issue warning for CONSUME.
20705 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
20707         * lto-cgraph: Update function comments for
20708         lto_symtab_encoder_encode_*.
20710 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
20712         * Makefile.in (site.exp): Do not set ENABLE_LTO.
20714 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
20716         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
20717         * lto-cgraph.c (select_what_to_stream): Remove argument, use
20718         lto_stream_offload_p instead.
20719         * lto-streamer.h (select_what_to_stream): Remove argument.
20720         * passes.c (ipa_write_summaries): Likewise.
20721         * tree-pass.h (ipa_write_summaries): Likewise.
20723 2015-01-14  Richard Biener  <rguenther@suse.de>
20725         PR tree-optimization/59354
20726         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
20727         groups larger than the slp group size as having gaps.
20729 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
20731         PR middle-end/59448
20732         * builtins.c (get_memmodel): Promote consume to acquire always.
20734 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
20736         PR target/64386
20737         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
20738         V32HImode.
20740 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
20742         PR target/64393
20743         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
20744         Enable AVX512BW.
20745         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
20746         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
20747         AVX512VBMI, as it implies AVX512BW.
20749 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
20751         PR target/64387
20752         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
20753         (vec_unpacks_hi_v16sf): Ditto.
20755 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20757         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
20758         is not available.
20760 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20762         * doc/invoke.texi (mapcs): Mention deprecation.
20763         (mapcs-frame): Likewise.
20765 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20767         PR target/64453
20768         * config/arm/arm.c (callee_saved_reg_p): Define.
20769         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
20770         register is callee saved instead of !call_used_regs[reg].
20771         (thumb1_compute_save_reg_mask): Likewise.
20773 2015-01-14  Hale Wang  <hale.wang@arm.com>
20775         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
20776         Cortex-M7.
20778 2015-01-14  Richard Biener  <rguenther@suse.de>
20780         PR lto/64415
20781         * tree-inline.c (insert_debug_decl_map): Check destination
20782         function MAY_HAVE_DEBUG_STMTS.
20783         (insert_init_debug_bind): Likewise.
20784         (insert_init_stmt): Remove redundant check.
20785         (remap_gimple_stmt): Drop debug stmts if the destination
20786         function has var-tracking assignments disabled.
20788 2015-01-14  Martin Liska  <mliska@suse.cz>
20790         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
20791         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
20793 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20795         PR target/64460
20796         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
20797         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
20799 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
20801         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
20802         level from an ARCH; do not inject the default.
20803         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
20804         MIPS_ISA_LEVEL_SPEC.
20805         (MIPS_ISA_NAN2008_SPEC): Update comment.
20806         (BASE_DRIVER_SELF_SPECS): Likewise.
20807         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
20808         MIPS_DEFAULT_ISA_LEVEL_SPEC.
20809         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
20810         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
20811         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
20813 2015-01-14  Richard Biener  <rguenther@suse.de>
20815         PR tree-optimization/64493
20816         PR tree-optimization/64495
20817         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
20818         assign the proper vectorized PHI to the inner loop exit PHIs.
20820 2015-01-14  Joey Ye  <joey.ye@arm.com>
20822         * config/arm/arm.c (arm_compute_save_reg_mask):
20823         Do not save lr in case of tail call.
20824         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
20826 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
20828         * tree-vrp.c (check_array_ref): Emit more warnings
20829         for warn_array_bounds >= 2.
20830         * common.opt: New option -Warray-bounds=.
20831         * doc/invoke.texi: Document -Warray-bounds=.
20833 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
20835         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
20836         (mforbid-fp-as-gp): Remove.
20837         (mex9): Remove.
20838         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
20839         (nds32_symbol_load_store_p): Remove.
20840         (nds32_fp_as_gp_check_available): Clean up implementation.
20841         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
20842         cases.
20843         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
20844         fp-as-gp and ex9 cases.
20846 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
20848         * tree-profile.c (init_ic_make_global_vars): Drop workaround
20849         for bintuils bug 14342.
20850         (init_ic_make_global_vars): Likewise.
20851         (gimple_init_edge_profiler): Likewise.
20852         (gimple_gen_ic_func_profiler): Likewise.
20854 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20856         * ipa-inline.c (inline_small_functions): Swap the operands in
20857         enum.
20859 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
20861         PR ipa/64481
20862         * ipa-inline-analysis.c (node_growth_cache): Remove.
20863         (initialize_growth_caches): Do not initialize it.
20864         (free_growth_caches): Do not free it.
20865         (do_estimate_growth): Rename to ...
20866         (estimate_growth): ... this one; drop growth cache code.
20867         (growth_likely_positive): Always go the heuristics way.
20868         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
20869         (reset_edge_caches): Do not reset node growth.
20870         (heap_edge_removal_hook): Do not maintain cache.
20871         (inline_small_functions): Likewise; strenghten sanity check.
20872         (ipa_inline): Do not maintain caches.
20873         * ipa-inline.h (node_growth_cache): Remove.
20874         (do_estimate_growth): Remove to ...
20875         (estimate_growth): this one; remove inline version.
20876         (reset_node_growth_cache): Remove.
20878 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
20880         PR ipa/64565
20881         * ipa-inline.c (inline_small_functions): Update callee keys after
20882         resolving speculation
20883         (inline_small_functions): Always check monotonicity of the queue.
20885 2015-01-13  Marek Polacek  <polacek@redhat.com>
20887         PR middle-end/64391
20888         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
20890 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
20892         PR rtl-optimization/64286
20893         * ree.c (combine_reaching_defs): Move part of comment earlier,
20894         remove !SCALAR_INT_MODE_P check.
20895         (add_removable_extension): Don't add vector mode
20896         extensions if all uses of the source register aren't the same
20897         vector extensions.
20899 2015-01-13  Renlin Li  <renlin.li@arm.com>
20901         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
20902         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
20904 2015-01-13  Martin Liska  <mliska@suse.cz>
20906         * ipa-icf.c (sem_function::equals_private): Call new functions
20907         cl_target_option_print_diff and cl_optimization_print_diff.
20908         * optc-save-gen.awk (cl_target_option_print_diff): New function.
20909         (cl_optimization_print_diff): Likewise.
20910         * opth-gen.awk: Likewise.
20912 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
20914         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
20915         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
20916         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
20917         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
20918         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
20919         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
20921 2015-01-13  Andrew Pinski  <apinski@cavium.com>
20923         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
20924         instead of src mode.
20926 2015-01-13  Richard Biener  <rguenther@suse.de>
20928         PR lto/64373
20929         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
20930         DECL_CONTEXT.
20932 2015-01-13  Andrew Pinski  <apinski@cavium.com>
20934         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
20935         volatile mems.
20936         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
20938 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
20940         PR middle-end/63974
20941         * cfgexpand.c (expand_computed_goto): Don't call
20942         convert_memory_address here.
20944 2015-01-13  Richard Biener  <rguenther@suse.de>
20946         PR tree-optimization/64406
20947         * tree-loop-distibution.c (pass_loop_distribution::execute):
20948         Reset the SCEV hashtable if we distributed anything.
20950 2015-01-13  Richard Biener  <rguenther@suse.de>
20952         PR tree-optimization/64404
20953         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
20954         SLP types for CSEd loads.
20956 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20958         PR tree-optimization/64436
20959         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
20960         merge of two symbolic numbers for a bitwise OR to ...
20961         (perform_symbolic_merge): This. Also fix computation of the range and
20962         end of the symbolic number corresponding to the result of a bitwise OR.
20964 2015-01-13  Richard Biener  <rguenther@suse.de>
20966         PR tree-optimization/64568
20967         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
20968         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
20970 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
20972         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
20973         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
20975 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
20977         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
20978         target-specific symbol_ref flag.
20979         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
20980         resides in rodata section.
20981         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
20982         (nds32_encode_section_info): New function.
20984 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
20986         * config/nds32/nds32.md (call): Use pseudo instruction bal which
20987         clobbers TA_REGNUM if large code model is specified.
20988         (call_register): Likewise.
20989         (call_immediate): Likewise.
20990         (call_value): Likewise.
20991         (call_value_register): Likewise.
20992         (call_value_immediate): Likewise.
20994 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
20996         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
20997         (TARGET_CMODEL_MEDIUM): New macro.
20998         (TARGET_CMODEL_LARGE): New macro.
20999         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
21000         code model setting in assembly code.
21002 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21004         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21005         Remove MASK_GP_DIRECT flag.
21006         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
21007         one of the multilib default options.
21008         * config/nds32/nds32.opt (mgp-direct): Remove.
21009         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
21010         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
21012 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
21014         * config/nds32/nds32.opt (mcmodel): Add new option.
21015         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
21016         to describe code model.
21018 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
21020         PR target/64479
21021         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
21023 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
21025         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
21026         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
21027         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
21028         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
21029         __builtin_sh_set_fpscr.
21031 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21033         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
21034         after a funtion name just to indicate it is a function.
21035         ([-fsanitize-undefined-trap-on-error]): Likewise.
21036         ([-fdbg-cnt=]): Likewise.
21037         ([-mmemcpy]): Likewise.
21038         ([-mflush-func]): Likewise.
21039         ([-msynci]): Likewise.
21041 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21043         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
21044         example.
21046 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
21048         PR tree-optimization/64563
21049         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
21050         instead of != VR_VARYING.
21052         PR target/64513
21053         * config/i386/i386.c (ix86_expand_prologue): Add
21054         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
21056         PR tree-optimization/64454
21057         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
21058         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
21059         for signed or [0, op1 - 1] for unsigned modulo.
21060         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
21061         even if op1 does not satisfy integer_pow2p.
21063         PR other/64370
21064         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
21066 2015-01-12  Jeff Law  <law@redhat.com>
21068         PR target/64461
21069         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
21070         (trunchiqi2, truncsihi2): Similarly.
21072         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
21073         rather than calling F.
21075 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21077         * tsan.c (instrument_expr): Use force_gimple_operand.
21078         Use may_be_nonaddressable_p instead of is_gimple_addressable.
21080 2015-01-12  Richard Biener  <rguenther@suse.de>
21082         PR tree-optimization/64530
21083         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
21084         back dr1.
21086 2015-01-12  Richard Biener  <rguenther@suse.de>
21088         PR middle-end/64357
21089         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
21090         latches properly.
21092 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21094         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
21095         Cortex-A17 tuning parameters.
21096         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
21098 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21100         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
21101         * config/arm/arm.c (arm_macro_fusion_p): New function.
21102         (arm_macro_fusion_pair_p): Likewise.
21103         (TARGET_SCHED_MACRO_FUSION_P): Define.
21104         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
21105         (ARM_FUSE_NOTHING): Likewise.
21106         (ARM_FUSE_MOVW_MOVT): Likewise.
21107         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
21108         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
21109         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
21110         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
21111         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
21112         arm_cortex_a5_tune): Specify fuseable_ops value.
21114 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
21116         PR bootstrap/64561
21117         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
21118         test for PIE with copy reloc.
21119         * configure: Regenerated.
21121 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21123         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
21124         in gen_rtx_REG.
21125         (arm_tls_descseq_addr): Likewise.
21126         (arm_gen_movmemqi): Likewise.
21127         (arm_expand_epilogue_apcs_frame): Likewise.
21128         (arm_expand_epilogue): Likewise.
21129         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
21130         in gen_rtx_REG.
21132 2015-01-12  Martin Liska  <mliska@suse.cz>
21134         PR ipa/64550
21135         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
21136         volatility for correct operands.
21138 2015-01-12  Martin Liska  <mliska@suse.cz>
21140         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
21141         indication that a function is not leaf.
21142         (sem_function::compare_polymorphic_p): Likewise.
21144 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21146         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
21147         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
21148         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
21149         fold-const.h, tree-check.h.
21151 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
21153         PR ipa/63967
21154         PR ipa/64425
21155         * ipa-inline.c (compute_uninlined_call_time,
21156         compute_inlined_call_time): Use counts for extra precision when
21157         needed possible.
21158         (big_speedup_p): Fix formating.
21159         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
21160         (relative_time_benefit): Remove.
21161         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
21162         merge guessed and read profile paths.
21163         (inline_small_functions): Count only !optimize_size functions into
21164         initial size; be more lax about sanity check when profile is used;
21165         be sure to update inlined function profile when profile is read.
21167 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
21169         PR ipa/63470
21170         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
21171         cost when edge becomes direct.
21172         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
21173         is resolved or when introducing new speculation.
21175 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
21177         PR ipa/64551
21178         PR ipa/64552
21179         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
21180         '||' to fix typo issue.
21182         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
21183         accept and return NULL.
21185 2015-01-12  Martin Liska  <mliska@suse.cz>
21187         * cgraph.c (cgraph_edge::remove_callee): Move function to header
21188         file for being inlined.
21189         (cgraph_set_edge_callee): Delete.
21190         (cgraph_edge::redirect_callee): Move function to header file
21191         for being inlined.
21192         (cgraph_edge::make_direct): Use new function.
21193         (cgraph_edge::dump_edge_flags): New function created from
21194         static dump_edge_flags function.
21195         (cgraph_node::dump): Use new function.
21196         (cgraph_edge::verify_count_and_frequency): New function created
21197         from verify_edge_count_and_frequency.
21198         (cgraph_edge::verify_corresponds_to_fndecl): New function created
21199         from verify_edge_corresponds_to_fndecl.
21200         (verify_edge_corresponds_to_fndecl): Delete.
21201         (cgraph_node::verify_node): Use new function.
21202         * cgraph.h (cgraph_edge::set_callee): New function.
21203         (cgraph_edge::dump_edge_flags): Likewise.
21204         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
21206 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
21208         * ipa-utils.c (estimate_function_body_sizes): Do not
21209         free node params when called late with early=true.
21211 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
21213         * doc/md.texi (Instruction Patterns): Rewrite text for
21214         clarity.
21215         (Example): Likewise.
21217 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
21219         * doc/invoke.texi (Option Summary): Break long lines.
21220         [(-fdiagnostics-color)]: Put long literal in @smallexample
21221         instead of inline.
21222         [(-fsanitize-recover)]: Likewise.
21223         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
21224         [(-ffast-math)]: Likewise.
21225         [(--param max-inline-insns-recursive)]: Likewise.
21226         [(--param max-inline-recursive-depth)]: Likewise.
21227         [(-mno-text-section-literals)]: Likewise.
21229 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
21231         * doc/install.texi: Update for libgomp being renamed from "GNU
21232         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
21233         Runtime Library".
21234         * doc/sourcebuild.texi: Likewise.
21236 2015-01-10  Anthony Green  <green@moxielogic.com>
21238         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
21239         mul.x availability for moxiebox configuration.
21241 2015-01-09  Anthony Green  <green@moxielogic.com>
21243         * config/moxie/moxie.md: Tabify assembly output.
21245 2015-01-09  Anthony Green  <green@moxielogic.com>
21247         * config/moxie/moxie.md (CC_REG): Correct register definition.
21249 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
21251         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
21252         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
21253         of log files.
21255 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21257         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
21259 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
21260             Jakub Jelinek  <jakub@redhat.com>
21262         PR middle-end/64412
21263         * lto-streamer.h (lto_stream_offload_p): New declaration.
21264         * lto-streamer.c (lto_stream_offload_p): New variable.
21265         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
21266         at the same time as section_name_prefix.
21267         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
21268         if lto_stream_offload_p.
21269         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
21270         stream TREE_TARGET_OPTION if lto_stream_offload_p.
21271         (write_ts_function_decl_tree_pointers): Don't
21272         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
21273         * tree-streamer-in.c (unpack_value_fields): Don't stream
21274         TREE_TARGET_OPTION in if ACCEL_COMPILER.
21275         (lto_input_ts_function_decl_tree_pointers): Don't stream
21276         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
21277         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
21278         instead of section_name_prefix string comparisons.
21280 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
21282         PR rtl-optimization/64536
21283         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
21284         tablejumps.
21286 2015-01-09  Michael Collison  <michael.collison@linaro.org>
21288         PR tree-optimization/64322
21289         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
21290         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
21292 2015-01-09  Tom de Vries  <tom@codesourcery.com>
21294         PR rtl-optimization/64539
21295         * regcprop.c (kill_clobbered_values): Factor out of ...
21296         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
21297         instead of note_stores with kill_clobbered_value.
21299 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21301          * ginclude/unwind-arm-common.h: Revert previous commit.
21303 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
21305         * config.gcc (arm*-*-freebsd*): New configuration.
21306         * config/arm/freebsd.h: New file.
21307         * config.host: Add extra components for arm*-*-freebsd*.
21308         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
21309         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
21311 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21313         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
21314         for -mcpu=e6500.
21315         * config/rs6000/t-rtems: Add e6500 multilibs.
21317 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21319         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
21320         MPC8540.
21322 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21324         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
21325         MULTILIB_EXCEPTIONS.
21327 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21329         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
21330         MULTILIB_EXCEPTIONS.
21332 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21334         * config/arm/t-rtems-eabi: Rename to...
21335         * config/arm/t-rtems: ...this.
21336         * config/arm/rtems-eabi.h: Rename to...
21337         * config/arm/rtems.h: ...this.
21338         * config.gcc (arm*-*-rtems*): Reflect changes above.
21340 2015-01-09  Richard Biener  <rguenther@suse.de>
21342         PR tree-optimization/64410
21343         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
21344         on the LHS.
21345         (execute_update_addresses_taken): Deal with that.
21346         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
21347         loads/stores for complex variables.
21349 2015-01-09  Martin Liska  <mliska@suse.cz>
21351         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
21352         name comparison.
21353         (func_checker::compare_memory_operand): New function.
21354         (func_checker::compare_operand): Split case to newly
21355         added functions.
21356         (func_checker::compare_cst_or_decl): New function.
21357         (func_checker::compare_gimple_call): Identify
21358         memory operands.
21359         (func_checker::compare_gimple_assign): Likewise.
21360         * ipa-icf-gimple.h: New function.
21362 2015-01-09  Martin Liska  <mliska@suse.cz>
21364         PR ipa/64503
21365         * sreal.c (sreal::dump): Change unsigned format to signed for
21366         m_exp value.
21367         (sreal::to_double): Replace exp2 with scalbln.
21369 2015-01-09  Martin Liska  <mliska@suse.cz>
21371         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
21372         * ipa-icf.c (sem_function::equals_private): Add support for target and
21373         (sem_item_optimizer::merge_classes): Remove redundant function
21374         optimization flags comparison.
21375         * tree.h (target_opts_for_fn): New function.
21377 2015-01-09  Tom de Vries  <tom@codesourcery.com>
21379         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
21381 2015-01-09  Kito Cheng  <kito@0xlab.org>
21383         PR rtl-optimization/64348
21384         * lra-constraints.c (split_reg): Fix caller-save store/restore
21385         instruction generation.
21387 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
21389         PR gcov-profile/61790
21390         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
21391         long long.  Fallback to int64_t if host doesn't have long long and
21392         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
21394 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
21396         PR tree-optimization/63989
21397         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
21398         from 1000 to 10000.
21399         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
21400         (get_stridx): If we don't have a record for certain SSA_NAME,
21401         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
21402         constant offset, call get_stridx_plus_constant.
21403         (get_stridx_plus_constant): New function.
21404         (zero_length_string): Don't use get_stridx here.
21406         PR target/55023
21407         PR middle-end/64388
21408         * dse.c (struct insn_info): Mention frame_read set also
21409         before reload for tail calls on some targets.
21410         (scan_insn): Revert 2014-12-22 change.  Set frame_read
21411         also before reload for tail calls if
21412         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
21413         instead of add_non_frame_wild_read for non-const/memset
21414         tail calls after reload.
21416 2015-01-08  Jason Merrill  <jason@redhat.com>
21418         * ubsan.c (do_ubsan_in_current_function): New.
21419         (pass_ubsan::gate): Use it.
21420         * ubsan.h: Declare it.
21421         * convert.c (convert_to_integer): Use it.
21423 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
21425         PR target/64338
21426         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
21427         compare_code when it is unconditionally overwritten afterwards.
21428         Use ix86_reverse_condition instead of reverse_condition.  Don't
21429         change code if *reverse_condition* returned UNKNOWN and don't
21430         swap ct/cf and negate diff in that case.
21432 2015-01-08  Mike Stump  <mikestump@comcast.net>
21434         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
21435         (pass_tsan_O0::gate): Likewise.
21436         * extend.texi (Function Attributes): Add no_sanitize_thread
21437         documentation.
21439 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
21441         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
21442         for registering builtins.
21443         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
21444         add -fopenmp to the argv_obstack used when invoking
21445         compile_for_target.
21447         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
21448         add "-m32" or "-m64" to argv_obstack.
21449         (generate_host_descr_file): Likewise, when invoking host_compiler.
21450         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
21451         ld.
21453 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
21455         * config/sh/sh-mem.cc: Use constant as second operand when emitting
21456         tstsi_t insns.
21458 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
21460         PR target/55212
21461         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
21462         constant load if constant operand fits into I08.
21464 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
21466         PR sanitizer/64336
21467         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
21468         and TREE_THIS_VOLATILE for MEM_REFs.
21469         (build5_stat): Fix up initialization of TREE_READONLY and
21470         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
21472 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
21474         PR target/64533
21475         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
21476         of r for the second alternative of the destination operand.
21478 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
21480         PR target/36557
21481         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
21483 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
21485         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
21486         keywords.
21487         ([-fivar-visibility], [-fvisibility]): Likewise.
21489 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
21491         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
21492         the file where @code, @command, etc is more appropriate.
21494 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
21496         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
21497         of -mrecip= documentation.
21499 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21501         PR target/64505
21502         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
21503         correct reload handler if -m32 -mpowerpc64 is used.
21505 2015-01-06  Tom de Vries  <tom@codesourcery.com>
21507         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
21509 2015-01-08  Christian Bruel  <christian.bruel@st.com>
21511         PR target/64507
21512         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
21514 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21516         PR tree-optimization/63259
21517         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
21518         if optab exists for 16bit byteswap.
21520 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
21522         * opts.c (common_handle_option): Add support for
21523         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
21524         * doc/invoke.texi: Document -fno-sanitize=all,
21525         -f{,no-}sanitize-recover=all.  Document that
21526         -fsanitize=float-cast-overflow is not enabled
21527         by -fsanitize=undefined.  Fix up documentation
21528         of -f{,no-}sanitize-recover.
21530 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
21532         * config.gcc: Add Visium support.
21533         * configure.ac: Likewise.
21534         * configure: Regenerate.
21535         * doc/extend.texi (interrupt attribute): Add Visium.
21536         * doc/invoke.texi: Document Visium options.
21537         * doc/install.texi: Document Visium target.
21538         * doc/md.texi: Document Visium constraints.
21539         * common/config/visium: New directory.
21540         * config/visium: Likewise.
21542 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
21544         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
21545         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
21547 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
21549         * combine.c (combine_validate_cost): Do not count the cost of a
21550         split I2 twice.  Do not display it twice in the dump, either.
21552 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21554         Revert parts of r219199.
21555         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
21556         <inttypes.h>.
21557         ([-Wtraditional]): Restore markup on <limits.h>.
21559 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
21561         PR c++/31397
21562         * doc/invoke.texi: Document -Wsuggest-override.
21564 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
21566         PR rtl-optimization/64287
21567         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
21568         (process_options): Disable flag_ipa_ra if profiling.
21570 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
21572         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
21574 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
21576         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
21577         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
21578         put under #if TARGET_LOOPS guard.
21580 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
21582         * config/i386/i386.c (output_387_binary_op): Use std::swap.
21584 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
21586         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
21587         * rtl.h (refers_to_regno_p): Add overload.
21588         * cse.c: Use it.
21589         * bt-load.c: Likewise.
21590         * combine.c: Likewise.
21591         * df-scan.c: Likewise.
21592         * sched-deps.c: Likewise.
21593         * config/s390/s390.c: Likewise.
21594         * config/m32r/m32r.c: Likewise.
21595         * config/rs6000/spe.md: Likewise.
21596         * config/rs6000/rs6000.c: Likewise.
21597         * config/pa/pa.c: Likewise.
21598         * config/stormy16/stormy16.c: Likewise.
21599         * config/cris/cris.c: Likewise.
21600         * config/arc/arc.md: Likewise.
21601         * config/arc/arc.c: Likewise.
21602         * config/sh/sh.md: Likewise.
21603         * config/sh/sh.c: Likewise.
21604         * config/frv/frv.c: Likewise.
21606 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
21608         PR sanitizer/64265
21609         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
21610         call as cleanup of the whole body.
21611         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
21612         * tsan.c (replace_func_exit): New function.
21613         (instrument_func_exit): Moved earlier.
21614         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
21615         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
21616         been found.
21617         (tsan_pass): Don't call instrument_func_exit.
21618         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
21619         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
21620         inlining.
21622         PR sanitizer/64344
21623         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
21624         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
21625         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
21626         if the result is integer_zerop, return NULL_TREE.
21627         * convert.c (convert_to_integer): Pass expr as ARG.
21629         PR tree-optimization/64465
21630         * tree-inline.c (redirect_all_calls): During inlining
21631         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
21632         changed the stmt to a non-throwing call.
21634 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
21636         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
21637         etc markup throughout the file.
21639 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21641         Enable experimental TSAN support for Ada.
21642         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
21644 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
21646         PR tree-optimization/64494
21647         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
21648         clear SSA_NAME_ANTI_RANGE_P flag.
21650 2015-01-05  Marek Polacek  <polacek@redhat.com>
21652         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
21654 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
21656         Update copyright years.
21658         * gcc.c (process_command): Update copyright notice dates.
21659         * gcov-dump.c: Ditto.
21660         * gcov.c: Ditto.
21661         * doc/cpp.texi: Bump @copying's copyright year.
21662         * doc/cppinternals.texi: Ditto.
21663         * doc/gcc.texi: Ditto.
21664         * doc/gccint.texi: Ditto.
21665         * doc/gcov.texi: Ditto.
21666         * doc/install.texi: Ditto.
21667         * doc/invoke.texi: Ditto.
21669         * auto-profile.c, auto-profile.h: Fix up Copyright line.
21671 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
21673         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
21674         verb tense, etc.
21675         ([-fvtable-verify], [-fvtv-debug]): Likewise.
21676         ([-Wabi]): Likewise.
21677         ([-fmessage-length]): Likewise.
21678         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
21679         ([-Wno-discarded-qualifiers]): Likewise.
21680         ([-Wnodiscarded-array-qualifiers]): Likewise.
21681         ([-Wno-virtual-move-assign]): Likewise.
21682         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
21683         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
21684         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
21685         ([-fsanitize-undefined-trap-on-error]): Likewise.
21686         ([-floop-interchange]): Likewise.
21687         ([-ftree-coalesce-inlined-vars]): Likewise.
21688         ([-fvect-cost-model]): Likewise.
21689         ([-flto]): Likewise.
21690         ([--param]): Likewise.
21691         (Spec Files): Likewise.
21692         ([-mstrict-align]): Likewise.
21693         ([-mfix-cortex-a53-835769]): Likewise.
21694         ([-march], [-mtune]): Likewise.
21695         ([-mpic-register]): Likewise.
21696         ([-munaligned-access]): Likewise.
21697         ([-msp8]): Likewise.
21698         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
21699         (AVR Built-in Macros): Likewise.
21700         ([-mpreferred-stack-boundary]): Likewise.
21701         ([-mtune-crtl]): Likewise.
21702         ([-mashf]): Likewise.
21703         ([-mmcu=]): Likewise.
21704         ([-minrt]): Likewise.
21705         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
21706         ([-mupper-regs]): Likewise.
21707         ([-matomic-model]): Likewise.
21708         ([-mdiv]): Likewise.
21709         ([-mzdcbranch]): Likewise.
21710         ([-mdisable-callt]): Likewise.
21711         ([-msoft-float]): Likewise.
21712         ([-m8byte-align]): Likewise.
21713         ([-fstack-reuse]): Likewise.
21715 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
21717         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
21718         Fix markup, light copy-editing.
21719         ([-fauto-profile]): Rewrite to fix formatting and content
21720         problems.
21722 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
21724         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
21725         Copy-edit description.
21726         ([-fisolate-erroneous-paths-attribute]): Likewise.
21727         * common.opt (fisolate-erroneous-paths-dereference):
21728         Copy-edit description.
21729         (fisolate-erroneous-paths-attribute): Likewise.
21731 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
21733         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
21734         tidy grammar.
21736 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
21738         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
21739         ([-fvtv-debug]): Likewise.
21740         ([-Wc++-compat]): Likewise.
21741         ([-Wc++11-compat]): Likewise.
21742         ([-Wc++14-compat]): Likewise.
21743         ([-Wno-sized-deallocation]): Likewise.
21744         ([-femit-class-debug-always]): Likewise.
21745         ([-femit-struct-debug-detailed]): Likewise.
21746         ([-fno-keep-inline-dllexport]): Likewise.
21747         ([-fira-algorithm]): Likewise.
21748         ([-fira-region]): Likewise.
21749         ([-flra-remat]): Likewise.
21750         ([-fipa-ra]): Likewise.
21751         ([-fhoist-adjacent-loads]): Likewise.
21752         ([-fisolate-erroneous-paths-dereference]): Likewise.
21753         ([-fisolate-erroneous-paths-attribute]): Likewise.
21754         ([-ftree-switch-conversion]): Likewise.
21755         ([-ftree-tail-merge]): Likewise.
21756         ([-ftree-loop-if-convert]): Likewise.
21757         ([-ftree-loop-if-convert-stores]): Likewise.
21758         ([-ftree-loop-distribution]): Likewise.
21759         ([-ftree-loop-distribute-patterns]): Likewise.
21760         ([-flto-compression-level]): Likewise.
21761         ([-flto-report]): Likewise.
21762         ([-flto-report-wpa]): Likewise.
21763         ([-fuse-linker-plugin]): Likewise.
21764         ([-mfix-cortex-a53-835769]): Likewise.
21765         ([-mno-fix-cortex-a53-835769]): Likewise.
21766         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
21767         explicit listing; add a note to the discussion indicating they
21768         exist.  Reorder table to group similar options.  Add missing
21769         @opindex entries.  Add @need commands throughout the table to
21770         allow it to be split across multiple pages.
21771         ([-m8bit-idiv]): Fix @opindex.
21772         ([-mavx256-split-unaligned-load]): Likewise.
21773         ([-mavx256-split-unaligned-store]): Likewise.
21774         ([-mstack-protector-guard]): Likewise.
21775         ([-mcpu=]): Likewise.
21776         ([-mcpu]): Likewise.
21777         ([-mpointer-size=]): Likewise.
21779 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
21781         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
21782         instead of `m' constraint.  Likewise for unnamed movb comparison
21783         patterns using reg_before_reload_operand predicate.
21784         * config/pa/predicates.md (reg_before_reload_operand): Tighten
21785         predicate to reject register index and LO_SUM DLT memory forms
21786         after reload.
21788 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
21790         * doc/invoke.texi (Option Summary): Fix spelling of
21791         -fdevirtualize-at-ltrans.
21792         ([-fdevirtualize]): Fix markup.
21793         ([-fdevirtualize-speculatively]): Fix typo.
21794         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
21795         implementor-speaky.
21796         * common.opt (fdevirtualize-at-ltrans): Likewise.
21797         * ipa-devirt.c: Fix typos in comments throughout the file.
21798         (ipa_devirt): Fix typos in format strings for dump output.
21800 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
21802         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
21803         discussion of defaults, light copy-editing.
21805 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21807         * tsan.c (instrument_expr): corrected previous checkin.
21809 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21811         Instrument bit field and unaligned accesses for TSAN.
21812         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
21813         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
21814         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
21815         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
21816         unaligned memory regions.
21818 2015-01-01  Anthony Green  <green@moxielogic.com>
21820         * config/moxie/predicates.md (moxie_general_movsrc_operand):
21821         Restrict move source register offsets to 16 bits.
21823 Copyright (C) 2015 Free Software Foundation, Inc.
21825 Copying and distribution of this file, with or without modification,
21826 are permitted in any medium without royalty provided the copyright
21827 notice and this notice are preserved.